Сделал модуль на asm:
BITS 64
SECTION .text
global L4
extern arr
extern arr2
L4:
LEA RBX,[arr]
MOV qword [RBX+0], 234
LEA RBX,[arr2]
MOV qword [RBX+0], 345
RET
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
extern __attribute__((fastcall,noinline)) void L4();
uint64_t arr[1];
uint64_t *arr2;
int main() {
arr[0] = 0;
arr2 = (uint64_t *)malloc(1*sizeof(uint64_t));
arr2[0] = 0;
L4();
printf("%llu\n",(unsigned long long int)arr[0]); /* %I64u in Windows */
printf("%llu\n",(unsigned long long int)arr2[0]);
free(arr2);
return 0;
}