LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O1/darwin-on-arm[P]darwin-sdk/xcode_tools/xcrun/xcrun.c
// Function: toolchain_cfg_handler
static int toolchain_cfg_handler(void *user, const char *section, const char *name, const char *value)
{
	toolchain_config *config = (toolchain_config *)user;

	if (MATCH_INI_STON("TOOLCHAIN", "name"))
		config->name = strdup(value);
	else if (MATCH_INI_STON("TOOLCHAIN", "version"))
		config->version = strdup(value);
	else
		return 0;

	return 1;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rcx, %r14
movq %rdx, %r15
movq %rsi, %rax
movq %rdi, %rbx
leaq 0x19e5(%rip), %rsi      # 0x59c3
movq %rax, %rdi
callq 0x2120
xorl %ebp, %ebp
testl %eax, %eax
jne 0x4038
movl %eax, %r12d
leaq 0x19c8(%rip), %rsi      # 0x59be
movq %r15, %rdi
callq 0x2120
testl %eax, %eax
je 0x4028
testl %r12d, %r12d
jne 0x4038
leaq 0x12ab(%rip), %rsi      # 0x52b9
movq %r15, %rdi
callq 0x2120
testl %eax, %eax
jne 0x4038
movq %r14, %rdi
callq 0x2200
movq %rax, 0x8(%rbx)
jmp 0x4033
movq %r14, %rdi
callq 0x2200
movq %rax, (%rbx)
movl $0x1, %ebp
movl %ebp, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/chatziko-k08[P]lecture-code/tests/../modules/UsingHashTable/ADTMap.c
// Function: map_create
Map map_create(CompareFunc compare, DestroyFunc destroy_key, DestroyFunc destroy_value) {
	// Δεσμεύουμε κατάλληλα τον χώρο που χρειαζόμαστε για το hash table
	Map map = malloc(sizeof(*map));
	map->capacity = prime_sizes[0];
	map->array = malloc(map->capacity * sizeof(struct map_node));

	// Αρχικοποιούμε τους κόμβους που έχουμε σαν διαθέσιμους.
	for (int i = 0; i < map->capacity; i++)
		map->array[i].state = EMPTY;

	map->size = 0;
	map->deleted = 0;
	map->compare = compare;
	map->destroy_key = destroy_key;
	map->destroy_value = destroy_value;

	return map;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
movl $0x38, %edi
callq 0x21a0
movq %rax, %r12
movslq 0x4244(%rip), %rbp      # 0x9170
movl %ebp, 0x8(%rax)
leaq (,%rbp,8), %rax
leaq (%rax,%rax,2), %r13
movq %r13, %rdi
callq 0x21a0
movq %rax, (%r12)
testq %rbp, %rbp
jle 0x4f5f
xorl %ecx, %ecx
movl $0x0, 0x10(%rax,%rcx)
addq $0x18, %rcx
cmpq %rcx, %r13
jne 0x4f4e
movq $0x0, 0xc(%r12)
movq %r15, 0x18(%r12)
movq %r14, 0x28(%r12)
movq %rbx, 0x30(%r12)
movq %r12, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/chatziko-k08[P]lecture-code/tests/../modules/UsingHashTable/ADTMap.c
// Function: map_remove
bool map_remove(Map map, Pointer key) {
	MapNode node = map_find_node(map, key);
	if (node == MAP_EOF)
		return false;

	// destroy
	if (map->destroy_key != NULL)
		map->destroy_key(node->key);
	if (map->destroy_value != NULL)
		map->destroy_value(node->value);

	// θέτουμε ως "deleted", ώστε να μην διακόπτεται η αναζήτηση, αλλά ταυτόχρονα να γίνεται ομαλά η εισαγωγή
	node->state = DELETED;
	map->deleted++;
	map->size--;

	return true;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
callq 0x51a3
movq %rax, %r14
testq %rax, %rax
je 0x5195
movq 0x28(%rbx), %rax
testq %rax, %rax
je 0x5178
movq (%r14), %rdi
callq *%rax
movq 0x30(%rbx), %rax
testq %rax, %rax
je 0x5187
movq 0x8(%r14), %rdi
callq *%rax
movl $0x2, 0x10(%r14)
incl 0x10(%rbx)
decl 0xc(%rbx)
testq %r14, %r14
setne %al
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O1/chatziko-k08[P]lecture-code/tests/../modules/UsingHashTable/ADTMap.c
// Function: map_find_node
MapNode map_find_node(Map map, Pointer key) {
	// Διασχίζουμε τον πίνακα, ξεκινώντας από τη θέση που κάνει hash το key, και για όσο δε βρίσκουμε EMPTY
	for (uint pos = map->hash_function(key) % map->capacity;		// ξεκινώντας από τη θέση που κάνει hash το key
		map->array[pos].state != EMPTY;							// αν φτάσουμε σε EMPTY σταματάμε
		pos = (pos + 1) % map->capacity) {						// linear probing, γυρνώντας στην αρχή όταν φτάσουμε στη τέλος του πίνακα

		// Μόνο σε OCCUPIED θέσεις (όχι DELETED), ελέγχουμε αν το key είναι εδώ
		if (map->array[pos].state == OCCUPIED && map->compare(map->array[pos].key, key) == 0)
			return &map->array[pos];
	}

	return MAP_EOF;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
movq %rsi, %rdi
callq *0x20(%rbx)
xorl %edx, %edx
divl 0x8(%rbx)
movq (%rbx), %rax
movl %edx, %r12d
leaq (%r12,%r12,2), %r15
movl 0x10(%rax,%r15,8), %ecx
cmpl $0x1, %ecx
je 0x51d6
testl %ecx, %ecx
jne 0x51e7
jmp 0x51ef
leaq (%rax,%r15,8), %rax
movq (%rax), %rdi
movq %r14, %rsi
callq *0x18(%rbx)
testl %eax, %eax
je 0x51f4
incl %r12d
movl %r12d, %eax
jmp 0x51b7
xorl %r15d, %r15d
jmp 0x51fb
shlq $0x3, %r15
addq (%rbx), %r15
movq %r15, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/chatziko-k08[P]lecture-code/tests/../modules/UsingHashTable/ADTMap.c
// Function: map_find
Pointer map_find(Map map, Pointer key) {
	MapNode node = map_find_node(map, key);
	if (node != MAP_EOF)
		return node->value;
	else
		return NULL;
}

// Assembly:
pushq %rax
callq 0x51a3
testq %rax, %rax
je 0x521b
movq 0x8(%rax), %rax
jmp 0x521d
xorl %eax, %eax
popq %rcx
retq
// File: /workspace/github_c_makefile_star2_O1/chatziko-k08[P]lecture-code/tests/../modules/UsingHashTable/ADTMap.c
// Function: map_destroy
void map_destroy(Map map) {
	for (int i = 0; i < map->capacity; i++) {
		if (map->array[i].state == OCCUPIED) {
			if (map->destroy_key != NULL)
				map->destroy_key(map->array[i].key);
			if (map->destroy_value != NULL)
				map->destroy_value(map->array[i].value);
		}
	}

	free(map->array);
	free(map);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %rbx
cmpl $0x0, 0x8(%rdi)
jle 0x5282
xorl %r14d, %r14d
xorl %r15d, %r15d
movq (%rbx), %rax
cmpl $0x1, 0x10(%rax,%r14)
jne 0x5272
movq 0x28(%rbx), %rcx
testq %rcx, %rcx
je 0x525f
movq (%rax,%r14), %rdi
callq *%rcx
movq 0x30(%rbx), %rax
testq %rax, %rax
je 0x5272
movq (%rbx), %rcx
movq 0x8(%rcx,%r14), %rdi
callq *%rax
incq %r15
movslq 0x8(%rbx), %rax
addq $0x18, %r14
cmpq %rax, %r15
jl 0x5245
movq (%rbx), %rdi
callq 0x22a0
movq %rbx, %rdi
popq %rbx
popq %r14
popq %r15
jmp 0x22a0
// File: /workspace/github_c_makefile_star2_O1/chatziko-k08[P]lecture-code/tests/../modules/UsingHashTable/ADTMap.c
// Function: map_first
MapNode map_first(Map map) {
	//Ξεκινάμε την επανάληψή μας απο το 1ο στοιχείο, μέχρι να βρούμε κάτι όντως τοποθετημένο
	for (int i = 0; i < map->capacity; i++)
		if (map->array[i].state == OCCUPIED)
			return &map->array[i];

	return MAP_EOF;
}

// Assembly:
movslq 0x8(%rdi), %rcx
testq %rcx, %rcx
jle 0x52b2
movq (%rdi), %rax
cmpl $0x1, 0x10(%rax)
je 0x52b4
addq $0x18, %rax
decq %rcx
jne 0x52a3
xorl %eax, %eax
retq
// File: /workspace/github_c_makefile_star2_O1/chatziko-k08[P]lecture-code/tests/../modules/UsingHashTable/ADTMap.c
// Function: map_next
MapNode map_next(Map map, MapNode node) {
	// Το node είναι pointer στο i-οστό στοιχείο του array, οπότε node - array == i  (pointer arithmetic!)
	for (int i = node - map->array + 1; i < map->capacity; i++)
		if (map->array[i].state == OCCUPIED)
			return &map->array[i];

	return MAP_EOF;
}

// Assembly:
movq (%rdi), %rcx
subq %rcx, %rsi
shrq $0x3, %rsi
imull $0xaaaaaaab, %esi, %edx # imm = 0xAAAAAAAB
movl 0x8(%rdi), %esi
incl %edx
xorl %eax, %eax
cmpl %esi, %edx
jge 0x52e4
movslq %edx, %rdi
leaq (%rdi,%rdi,2), %rdi
incl %edx
cmpl $0x1, 0x10(%rcx,%rdi,8)
jne 0x52cc
leaq (%rcx,%rdi,8), %rax
retq
// File: /workspace/github_c_makefile_star2_O1/chatziko-k08[P]lecture-code/tests/../modules/UsingHashTable/ADTMap.c
// Function: hash_string
uint hash_string(Pointer value) {
	// djb2 hash function, απλή, γρήγορη, και σε γενικές γραμμές αποδοτική
    uint hash = 5381;
    for (char* s = value; *s != '\0'; s++)
		hash = (hash << 5) + hash + *s;			// hash = (hash * 33) + *s. Το foo << 5 είναι γρηγορότερη εκδοχή του foo * 32.
    return hash;
}

// Assembly:
movb (%rdi), %cl
testb %cl, %cl
je 0x5319
incq %rdi
movl $0x1505, %edx           # imm = 0x1505
movl %edx, %eax
movsbl %cl, %ecx
shll $0x5, %eax
addl %edx, %eax
addl %ecx, %eax
movb (%rdi), %cl
incq %rdi
movl %eax, %edx
testb %cl, %cl
jne 0x5303
retq
movl $0x1505, %eax           # imm = 0x1505
retq
// File: /workspace/github_c_makefile_star2_O1/jacereda[P]fsatrace/src/unix/fsatraceso.c
// Function: init
static void __attribute((constructor(101))) init()
{
	int r;
	D;
	r = emitInit();
	if (r)
		err("init", r);
	else {
		char b[PATH_MAX];
		procPath(b);
		emit('r', b);
	}
	DD;
}

// Assembly:
pushq %rbx
subq $0x1000, %rsp           # imm = 0x1000
xorl %eax, %eax
callq 0x2140
testl %eax, %eax
jne 0x2377
movq %rsp, %rbx
movq %rbx, %rdi
callq 0x2160
movl $0x72, %edi
movq %rbx, %rsi
callq 0x2380
addq $0x1000, %rsp           # imm = 0x1000
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O1/jacereda[P]fsatrace/src/unix/fsatraceso.c
// Function: fopen
FILE *
fopen(const char *p, const char *m)
{
	FILE *r;
	static FILE *(*ofopen)(const char *, const char *) = 0;
	DP;
	R(fopen);
	r = ofopen(p, m);
	if (r)
		emit(strchr(m, 'r') ? 'r' : 'w', p);
	DD;
	return r;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rsi, %r15
movq %rdi, %rbx
leaq 0x3d4a(%rip), %rdi      # 0x6128
leaq 0x1c1b(%rip), %rsi      # 0x4000
callq 0x242a
movq %rbx, %rdi
movq %r15, %rsi
callq *0x3d32(%rip)           # 0x6128
movq %rax, %r14
testq %rax, %rax
je 0x2421
movq %r15, %rdi
movl $0x72, %esi
callq 0x20f0
xorl %ecx, %ecx
testq %rax, %rax
sete %cl
leal (%rcx,%rcx,4), %edi
addl $0x72, %edi
movq %rbx, %rsi
callq 0x2380
movq %r14, %rax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/jacereda[P]fsatrace/src/unix/fsatraceso.c
// Function: resolv
static void
resolv(void **p, const char *n)
{
	if (!*p) {
		SE;
		*p = dlsym(RTLD_NEXT, n);
		RE;
	}
	assert(*p);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
cmpq $0x0, (%rdi)
jne 0x245c
movq %rsi, %r14
callq 0x2050
movq %rax, %r15
movl (%rax), %ebp
movq $-0x1, %rdi
movq %r14, %rsi
callq 0x21e0
movq %rax, (%rbx)
movl %ebp, (%r15)
cmpq $0x0, (%rbx)
je 0x246d
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
leaq 0x1c35(%rip), %rdi      # 0x40a9
leaq 0x1c31(%rip), %rsi      # 0x40ac
leaq 0x1c40(%rip), %rcx      # 0x40c2
movl $0x9b, %edx
callq 0x2130
// File: /workspace/github_c_makefile_star2_O1/jacereda[P]fsatrace/src/unix/fsatraceso.c
// Function: fopen64
FILE *
fopen64(const char *p, const char *m)
{
	FILE *r;
	static FILE *(*ofopen64)(const char *, const char *) = 0;
	DP;
	R(fopen64);
	r = ofopen64(p, m);
	if (r)
		emit(strchr(m, 'r') ? 'r' : 'w', p);
	DD;
	return r;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rsi, %r15
movq %rdi, %rbx
leaq 0x3c92(%rip), %rdi      # 0x6130
leaq 0x1b61(%rip), %rsi      # 0x4006
callq 0x242a
movq %rbx, %rdi
movq %r15, %rsi
callq *0x3c7a(%rip)           # 0x6130
movq %rax, %r14
testq %rax, %rax
je 0x24e1
movq %r15, %rdi
movl $0x72, %esi
callq 0x20f0
xorl %ecx, %ecx
testq %rax, %rax
sete %cl
leal (%rcx,%rcx,4), %edi
addl $0x72, %edi
movq %rbx, %rsi
callq 0x2380
movq %r14, %rax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/jacereda[P]fsatrace/src/unix/fsatraceso.c
// Function: open
int
open(const char *p, int f, mode_t m)
{
	int r;
	static int (*oopen)(const char *, int, mode_t) = 0;
	DP;
	R(open);
	r = oopen(p, f, m);
	if (r >= 0)
		emit(f & wmode ? 'w' : 'r', p);
	DD;
	return r;
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movl %edx, %r14d
movl %esi, %ebp
movq %rdi, %rbx
leaq 0x3c3b(%rip), %rdi      # 0x6138
leaq 0x1afd(%rip), %rsi      # 0x4001
callq 0x242a
movq %rbx, %rdi
movl %ebp, %esi
movl %r14d, %edx
callq *0x3c21(%rip)           # 0x6138
movl %eax, %r14d
testl %eax, %eax
js 0x2537
xorl %eax, %eax
testl $0x643, %ebp            # imm = 0x643
setne %al
leal (%rax,%rax,4), %edi
addl $0x72, %edi
movq %rbx, %rsi
callq 0x2380
movl %r14d, %eax
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/jacereda[P]fsatrace/src/unix/fsatraceso.c
// Function: open64
int
open64(const char *p, int f, mode_t m)
{
	int r;
	static int (*oopen64)(const char *, int, mode_t) = 0;
	DP;
	R(open64);
	r = oopen64(p, f, m);
	if (r >= 0)
		emit(f & wmode ? 'w' : 'r', p);
	DD;
	return r;
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movl %edx, %r14d
movl %esi, %ebp
movq %rdi, %rbx
leaq 0x3bee(%rip), %rdi      # 0x6140
leaq 0x1aae(%rip), %rsi      # 0x4007
callq 0x242a
movq %rbx, %rdi
movl %ebp, %esi
movl %r14d, %edx
callq *0x3bd4(%rip)           # 0x6140
movl %eax, %r14d
testl %eax, %eax
js 0x258c
xorl %eax, %eax
testl $0x643, %ebp            # imm = 0x643
setne %al
leal (%rax,%rax,4), %edi
addl $0x72, %edi
movq %rbx, %rsi
callq 0x2380
movl %r14d, %eax
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/jacereda[P]fsatrace/src/unix/fsatraceso.c
// Function: openat
int
openat(int fd, const char *p, int f, mode_t m)
{
	int r;
	DP;
	static int (*oopenat)(int, const char *, int, mode_t) = 0;
	R(openat);
	r = oopenat(fd, p, f, m);
	if (r >= 0)
		fdemit(f & wmode ? 'w' : 'r', r);
	DD;
	return r;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl %ecx, %ebp
movl %edx, %ebx
movq %rsi, %r14
movl %edi, %r15d
leaq 0x3b9c(%rip), %rdi      # 0x6148
leaq 0x1a5b(%rip), %rsi      # 0x400e
callq 0x242a
movl %r15d, %edi
movq %r14, %rsi
movl %ebx, %edx
movl %ebp, %ecx
callq *0x3b80(%rip)           # 0x6148
movl %eax, %ebp
testl %eax, %eax
js 0x25e6
xorl %eax, %eax
testl $0x643, %ebx            # imm = 0x643
setne %al
leal (%rax,%rax,4), %edi
addl $0x72, %edi
movl %ebp, %esi
callq 0x25f3
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/jacereda[P]fsatrace/src/unix/fsatraceso.c
// Function: fdemit
static void
fdemit(int c, int fd)
{
	char ap[PATH_MAX];
	int  ok;
	SE;
	ok = fdpath(fd, ap, sizeof(ap));
	emitOp(c, ok ? ap : 0, 0);
	RE;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x1000, %rsp           # imm = 0x1000
movl %esi, %ebx
movl %edi, %ebp
callq 0x2050
movq %rax, %r14
movl (%rax), %r12d
movq %rsp, %r15
movl %ebx, %edi
movq %r15, %rsi
callq 0x2d60
xorl %ecx, %ecx
testl %eax, %eax
cmoveq %rcx, %r15
movl %ebp, %edi
movq %r15, %rsi
xorl %edx, %edx
callq 0x2120
movl %r12d, (%r14)
addq $0x1000, %rsp           # imm = 0x1000
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/jacereda[P]fsatrace/src/unix/fsatraceso.c
// Function: openat64
int
openat64(int fd, const char *p, int f, mode_t m)
{
	int r;
	DP;
	static int (*oopenat64)(int, const char *, int, mode_t) = 0;
	R(openat64);
	r = oopenat64(fd, p, f, m);
	if (r >= 0)
		fdemit(f & wmode ? 'w' : 'r', r);
	DD;
	return r;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl %ecx, %ebp
movl %edx, %ebx
movq %rsi, %r14
movl %edi, %r15d
leaq 0x3af3(%rip), %rdi      # 0x6150
leaq 0x19b1(%rip), %rsi      # 0x4015
callq 0x242a
movl %r15d, %edi
movq %r14, %rsi
movl %ebx, %edx
movl %ebp, %ecx
callq *0x3ad7(%rip)           # 0x6150
movl %eax, %ebp
testl %eax, %eax
js 0x2697
xorl %eax, %eax
testl $0x643, %ebx            # imm = 0x643
setne %al
leal (%rax,%rax,4), %edi
addl $0x72, %edi
movl %ebp, %esi
callq 0x25f3
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/jacereda[P]fsatrace/src/unix/fsatraceso.c
// Function: rename
int
rename(const char *p1, const char *p2)
{
	int   r;
	char  b1[PATH_MAX];
	char *rp1 = realpath(p1, b1);
	static int (*orename)(const char *, const char *) = 0;
	D;
	R(rename);
	r = orename(p1, p2);
	if (!r) {
		char  b2[PATH_MAX];
		char *rp2 = realpath(p2, b2);
		emitOp(rp1 ? 'm' : 'M', rp2, rp1);
	}
	DD;
	return r;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x2008, %rsp           # imm = 0x2008
movq %rsi, %r14
movq %rdi, %r15
leaq 0x1000(%rsp), %rsi
callq 0x2180
movq %rax, %rbx
leaq 0x3a8a(%rip), %rdi      # 0x6158
leaq 0x1949(%rip), %rsi      # 0x401e
callq 0x242a
movq %r15, %rdi
movq %r14, %rsi
callq *0x3a72(%rip)           # 0x6158
movl %eax, %ebp
testl %eax, %eax
jne 0x2711
movq %rsp, %rsi
movq %r14, %rdi
callq 0x2180
xorl %edi, %edi
testq %rbx, %rbx
setne %dil
shll $0x5, %edi
orl $0x4d, %edi
movq %rax, %rsi
movq %rbx, %rdx
callq 0x2120
movl %ebp, %eax
addq $0x2008, %rsp           # imm = 0x2008
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/jacereda[P]fsatrace/src/unix/fsatraceso.c
// Function: renamex_np
int
renamex_np(const char *p1, const char *p2, unsigned fl)
{
	int   r;
	char  b1[PATH_MAX];
	char *rp1 = realpath(p1, b1);
	static int (*orenamex_np)(const char *, const char *, unsigned) = 0;
	D;
	R(renamex_np);
	r = orenamex_np(p1, p2, fl);
	if (!r) {
		char  b2[PATH_MAX];
		char *rp2 = realpath(p2, b2);
		emitOp(rp1 ? 'm' : 'M', rp2, rp1);
	}
	DD;
	return r;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x2008, %rsp           # imm = 0x2008
movl %edx, %ebp
movq %rsi, %r14
movq %rdi, %r15
leaq 0x1000(%rsp), %rsi
callq 0x2180
movq %rax, %rbx
leaq 0x3a13(%rip), %rdi      # 0x6160
leaq 0x18d1(%rip), %rsi      # 0x4025
callq 0x242a
movq %r15, %rdi
movq %r14, %rsi
movl %ebp, %edx
callq *0x39f9(%rip)           # 0x6160
movl %eax, %ebp
testl %eax, %eax
jne 0x2792
movq %rsp, %rsi
movq %r14, %rdi
callq 0x2180
xorl %edi, %edi
testq %rbx, %rbx
setne %dil
shll $0x5, %edi
orl $0x4d, %edi
movq %rax, %rsi
movq %rbx, %rdx
callq 0x2120
movl %ebp, %eax
addq $0x2008, %rsp           # imm = 0x2008
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/jacereda[P]fsatrace/src/unix/fsatraceso.c
// Function: renameat2
int
renameat2(int fd1, const char *p1, int fd2, const char *p2, unsigned fl)
{
	int r;
	D;
	static int (*orenameat2)(
	    int, const char *, int, const char *, unsigned) = 0;
	char b[PATH_MAX];
	R(renameat2);
	realpathat(fd1, p1, b, sizeof(b));
	r = orenameat2(fd1, p1, fd2, p2, fl);
	if (!r)
		atemit('m', fd2, p2, b);
	DD;
	return r;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x1000, %rsp           # imm = 0x1000
movl %r8d, %r14d
movq %rcx, %rbx
movl %edx, %ebp
movq %rsi, %r15
movl %edi, %r12d
leaq 0x39a2(%rip), %rdi      # 0x6168
leaq 0x1863(%rip), %rsi      # 0x4030
callq 0x242a
movq %rsp, %rdx
movl %r12d, %edi
movq %r15, %rsi
callq 0x2820
movl %r12d, %edi
movq %r15, %rsi
movl %ebp, %edx
movq %rbx, %rcx
movl %r14d, %r8d
callq *0x3974(%rip)           # 0x6168
movl %eax, %r14d
testl %eax, %eax
jne 0x280d
movq %rsp, %rcx
movl $0x6d, %edi
movl %ebp, %esi
movq %rbx, %rdx
callq 0x28ae
movl %r14d, %eax
addq $0x1000, %rsp           # imm = 0x1000
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/jacereda[P]fsatrace/src/unix/fsatraceso.c
// Function: realpathat
static char *
realpathat(int ifd, const char *p, char *ap, size_t sz)
{
	int f;
	int ok;
	int fd;
	int cur = ifd == AT_FDCWD;
	static int (*oopenat)(int, const char *, int, mode_t) = 0;
	R(openat);
	if (cur)
		fd = oopenat(AT_FDCWD, ".", O_RDONLY, 0);
	else
		fd = ifd;
	f = oopenat(fd, p, O_RDONLY, 0);
	ok = fdpath(f, ap, sz);
	close(f);
	if (cur)
		close(fd);
	return ok ? ap : NULL;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rdx, %rbx
movq %rsi, %r15
movl %edi, %ebp
leaq 0x39a1(%rip), %rdi      # 0x61d8
leaq 0x17d0(%rip), %rsi      # 0x400e
callq 0x242a
movl %ebp, %r14d
cmpl $-0x64, %ebp
jne 0x2864
leaq 0x18a4(%rip), %rsi      # 0x40f6
movl $0xffffff9c, %edi       # imm = 0xFFFFFF9C
xorl %edx, %edx
xorl %ecx, %ecx
callq *0x3977(%rip)           # 0x61d8
movl %eax, %r14d
movl %r14d, %edi
movq %r15, %rsi
xorl %edx, %edx
xorl %ecx, %ecx
callq *0x3964(%rip)           # 0x61d8
movl %eax, %r12d
movl %eax, %edi
movq %rbx, %rsi
callq 0x2d60
movl %eax, %r15d
movl %r12d, %edi
callq 0x2150
cmpl $-0x64, %ebp
jne 0x2899
movl %r14d, %edi
callq 0x2150
xorl %eax, %eax
testl %r15d, %r15d
cmoveq %rax, %rbx
movq %rbx, %rax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/jacereda[P]fsatrace/src/unix/fsatraceso.c
// Function: renameat
int
renameat(int fd1, const char *p1, int fd2, const char *p2)
{
	int r;
	D;
	static int (*orenameat)(int, const char *, int, const char *) = 0;
	char b[PATH_MAX];
	R(renameat);
	realpathat(fd1, p1, b, sizeof(b));
	r = orenameat(fd1, p1, fd2, p2);
	if (!r)
		atemit('m', fd2, p2, b);
	DD;
	return r;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x1008, %rsp           # imm = 0x1008
movq %rcx, %rbx
movl %edx, %ebp
movq %rsi, %r14
movl %edi, %r15d
leaq 0x384b(%rip), %rdi      # 0x6170
leaq 0x170e(%rip), %rsi      # 0x403a
callq 0x242a
movq %rsp, %rdx
movl %r15d, %edi
movq %r14, %rsi
callq 0x2820
movl %r15d, %edi
movq %r14, %rsi
movl %ebp, %edx
movq %rbx, %rcx
callq *0x3820(%rip)           # 0x6170
movl %eax, %r14d
testl %eax, %eax
jne 0x2969
movq %rsp, %rcx
movl $0x6d, %edi
movl %ebp, %esi
movq %rbx, %rdx
callq 0x28ae
movl %r14d, %eax
addq $0x1008, %rsp           # imm = 0x1008
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/jacereda[P]fsatrace/src/unix/fsatraceso.c
// Function: renameatx_np
int
renameatx_np(int fd1, const char *p1, int fd2, const char *p2, unsigned fl)
{
	int  r;
	char b[PATH_MAX];
	D;
	static int (*orenameatx_np)(
	    int, const char *, int, const char *, unsigned) = 0;
	R(renameatx_np);
	realpathat(fd1, p1, b, sizeof(b));
	r = orenameatx_np(fd1, p1, fd2, p2, fl);
	if (!r)
		atemit('m', fd2, p2, b);
	DD;
	return r;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x1000, %rsp           # imm = 0x1000
movl %r8d, %r14d
movq %rcx, %rbx
movl %edx, %ebp
movq %rsi, %r15
movl %edi, %r12d
leaq 0x37da(%rip), %rdi      # 0x6178
leaq 0x169e(%rip), %rsi      # 0x4043
callq 0x242a
movq %rsp, %rdx
movl %r12d, %edi
movq %r15, %rsi
callq 0x2820
movl %r12d, %edi
movq %r15, %rsi
movl %ebp, %edx
movq %rbx, %rcx
movl %r14d, %r8d
callq *0x37ac(%rip)           # 0x6178
movl %eax, %r14d
testl %eax, %eax
jne 0x29e5
movq %rsp, %rcx
movl $0x6d, %edi
movl %ebp, %esi
movq %rbx, %rdx
callq 0x28ae
movl %r14d, %eax
addq $0x1000, %rsp           # imm = 0x1000
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/jacereda[P]fsatrace/src/unix/fsatraceso.c
// Function: unlink
int
unlink(const char *p)
{
	int   r;
	char  b[PATH_MAX];
	char *rp;
	static int (*ounlink)(const char *) = 0;
	DP;
	R(unlink);
	rp = realpath(p, b);
	r = ounlink(p);
	if (!r)
		emitOp('d', rp, 0);
	DD;
	return r;
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
subq $0x1000, %rsp           # imm = 0x1000
movq %rdi, %r14
leaq 0x3773(%rip), %rdi      # 0x6180
leaq 0x163c(%rip), %rsi      # 0x4050
callq 0x242a
movq %rsp, %rsi
movq %r14, %rdi
callq 0x2180
movq %rax, %rbx
movq %r14, %rdi
callq *0x3750(%rip)           # 0x6180
movl %eax, %ebp
testl %eax, %eax
jne 0x2a45
movl $0x64, %edi
movq %rbx, %rsi
xorl %edx, %edx
callq 0x2120
movl %ebp, %eax
addq $0x1000, %rsp           # imm = 0x1000
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/jacereda[P]fsatrace/src/unix/fsatraceso.c
// Function: unlinkat
int
unlinkat(int fd, const char *p, int f)
{
	int r;
	DP;
	char  b[PATH_MAX];
	char *rp = realpathat(fd, p, b, sizeof(b));
	static int (*ounlinkat)(int, const char *, int);
	R(unlinkat);
	r = ounlinkat(fd, p, f);
	if (!r)
		emitOp(rp ? 'd' : 'D', rp ? rp : p, 0);
	DD;
	return r;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x1008, %rsp           # imm = 0x1008
movl %edx, %ebp
movq %rsi, %rbx
movl %edi, %r15d
movq %rsp, %rdx
callq 0x2820
movq %rax, %r14
leaq 0x370e(%rip), %rdi      # 0x6188
leaq 0x15d6(%rip), %rsi      # 0x4057
callq 0x242a
movl %r15d, %edi
movq %rbx, %rsi
movl %ebp, %edx
callq *0x36f4(%rip)           # 0x6188
movl %eax, %ebp
testl %eax, %eax
jne 0x2ab7
xorl %edi, %edi
testq %r14, %r14
setne %dil
cmovneq %r14, %rbx
shll $0x5, %edi
orl $0x44, %edi
movq %rbx, %rsi
xorl %edx, %edx
callq 0x2120
movl %ebp, %eax
addq $0x1008, %rsp           # imm = 0x1008
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/jacereda[P]fsatrace/src/unix/fsatraceso.c
// Function: futimes
int
futimes(int fd, const struct timeval t[2])
{
	int r;
	static int (*ofutimes)(int, const struct timeval[2]);
	D;
	R(futimes);
	r = ofutimes(fd, t);
	if (!r)
		fdemit('t', fd);
	DD;
	return r;
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movq %rsi, %r14
movl %edi, %ebx
leaq 0x36b9(%rip), %rdi      # 0x6190
leaq 0x1582(%rip), %rsi      # 0x4060
callq 0x242a
movl %ebx, %edi
movq %r14, %rsi
callq *0x36a2(%rip)           # 0x6190
movl %eax, %ebp
testl %eax, %eax
jne 0x2b00
movl $0x74, %edi
movl %ebx, %esi
callq 0x25f3
movl %ebp, %eax
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/jacereda[P]fsatrace/src/unix/fsatraceso.c
// Function: utimes
int
utimes(const char *p, const struct timeval t[2])
{
	int r;
	static int (*outimes)(const char *, const struct timeval[2]);
	DP;
	R(utimes);
	r = outimes(p, t);
	if (!r)
		emit('t', p);
	DD;
	return r;
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x3680(%rip), %rdi      # 0x6198
leaq 0x1542(%rip), %rsi      # 0x4061
callq 0x242a
movq %rbx, %rdi
movq %r14, %rsi
callq *0x3668(%rip)           # 0x6198
movl %eax, %ebp
testl %eax, %eax
jne 0x2b43
movl $0x74, %edi
movq %rbx, %rsi
callq 0x2380
movl %ebp, %eax
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/jacereda[P]fsatrace/src/unix/fsatraceso.c
// Function: _fxstat
int
__fxstat(int v, int fd, struct stat *restrict buf)
{
	int r;
	static int (*o__fxstat)(int, int, struct stat *restrict) = 0;
	D;
	R(__fxstat);
	r = o__fxstat(v, fd, buf);
	if (!r)
		fdemit('q', fd);
	DD;
	return r;
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movq %rdx, %r14
movl %esi, %ebx
movl %edi, %ebp
leaq 0x3644(%rip), %rdi      # 0x61a0
leaq 0x1505(%rip), %rsi      # 0x4068
callq 0x242a
movl %ebp, %edi
movl %ebx, %esi
movq %r14, %rdx
callq *0x362b(%rip)           # 0x61a0
movl %eax, %ebp
testl %eax, %eax
jne 0x2b87
movl $0x71, %edi
movl %ebx, %esi
callq 0x25f3
movl %ebp, %eax
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/jacereda[P]fsatrace/src/unix/fsatraceso.c
// Function: _xstat
int
__xstat(int v, const char *restrict p, struct stat *restrict buf)
{
	int r;
	static int (*o__xstat)(
	    int, const char *restrict, struct stat *restrict) = 0;
	DP;
	R(__xstat);
	r = o__xstat(v, p, buf);
	if (!r)
		emit('q', p);
	DD;
	return r;
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movq %rdx, %r14
movq %rsi, %rbx
movl %edi, %ebp
leaq 0x3607(%rip), %rdi      # 0x61a8
leaq 0x14c9(%rip), %rsi      # 0x4071
callq 0x242a
movl %ebp, %edi
movq %rbx, %rsi
movq %r14, %rdx
callq *0x35ed(%rip)           # 0x61a8
movl %eax, %ebp
testl %eax, %eax
jne 0x2bce
movl $0x71, %edi
movq %rbx, %rsi
callq 0x2380
movl %ebp, %eax
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/jacereda[P]fsatrace/src/unix/fsatraceso.c
// Function: _xlstat
int
__xlstat(int v, const char *restrict p, struct stat *restrict buf)
{
	int r;
	static int (*o__xlstat)(
	    int, const char *restrict, struct stat *restrict) = 0;
	DP;
	R(__xlstat);
	r = o__xlstat(v, p, buf);
	if (!r)
		emit('q', p);
	DD;
	return r;
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movq %rdx, %r14
movq %rsi, %rbx
movl %edi, %ebp
leaq 0x35c8(%rip), %rdi      # 0x61b0
leaq 0x148a(%rip), %rsi      # 0x4079
callq 0x242a
movl %ebp, %edi
movq %rbx, %rsi
movq %r14, %rdx
callq *0x35ae(%rip)           # 0x61b0
movl %eax, %ebp
testl %eax, %eax
jne 0x2c15
movl $0x71, %edi
movq %rbx, %rsi
callq 0x2380
movl %ebp, %eax
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/jacereda[P]fsatrace/src/unix/fsatraceso.c
// Function: _lxstat
int
__lxstat(int v, const char *restrict p, struct stat *restrict buf)
{
	int r;
	static int (*o__lxstat)(
	    int, const char *restrict, struct stat *restrict) = 0;
	DP;
	R(__lxstat);
	r = o__lxstat(v, p, buf);
	if (!r)
		emit('q', p);
	DD;
	return r;
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movq %rdx, %r14
movq %rsi, %rbx
movl %edi, %ebp
leaq 0x3589(%rip), %rdi      # 0x61b8
leaq 0x144c(%rip), %rsi      # 0x4082
callq 0x242a
movl %ebp, %edi
movq %rbx, %rsi
movq %r14, %rdx
callq *0x356f(%rip)           # 0x61b8
movl %eax, %ebp
testl %eax, %eax
jne 0x2c5c
movl $0x71, %edi
movq %rbx, %rsi
callq 0x2380
movl %ebp, %eax
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/jacereda[P]fsatrace/src/unix/fsatraceso.c
// Function: _fxstatat
int
__fxstatat(int v, int fd, const char *p, struct stat *buf, int flag)
{
	int r;
	DP;
	static int (*o__fxstatat)(
	    int, int, const char *, struct stat *restrict, int) = 0;
	R(__fxstatat);
	r = o__fxstatat(v, fd, p, buf, flag);
	if (!r)
		atemit('q', fd, p, NULL);
	DD;
	return r;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movl %r8d, %r14d
movq %rcx, %r15
movq %rdx, %rbx
movl %esi, %ebp
movl %edi, %r12d
leaq 0x3540(%rip), %rdi      # 0x61c0
leaq 0x1404(%rip), %rsi      # 0x408b
callq 0x242a
movl %r12d, %edi
movl %ebp, %esi
movq %rbx, %rdx
movq %r15, %rcx
movl %r14d, %r8d
callq *0x3520(%rip)           # 0x61c0
movl %eax, %r14d
testl %eax, %eax
jne 0x2cb8
movl $0x71, %edi
movl %ebp, %esi
movq %rbx, %rdx
xorl %ecx, %ecx
callq 0x28ae
movl %r14d, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/jacereda[P]fsatrace/src/unix/fsatraceso.c
// Function: utimensat
int
utimensat(int fd, const char *p, const struct timespec ts[2], int flags)
{
	int r;
	static int (*outimensat)(
	    int, const char *, const struct timespec[2], int);
	DP;
	R(utimensat);
	r = outimensat(fd, p, ts, flags);
	if (!r)
		atemit('t', fd, p, NULL);
	DD;
	return r;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl %ecx, %r14d
movq %rdx, %r15
movq %rsi, %rbx
movl %edi, %ebp
leaq 0x34eb(%rip), %rdi      # 0x61c8
leaq 0x13b2(%rip), %rsi      # 0x4096
callq 0x242a
movl %ebp, %edi
movq %rbx, %rsi
movq %r15, %rdx
movl %r14d, %ecx
callq *0x34ce(%rip)           # 0x61c8
movl %eax, %r14d
testl %eax, %eax
jne 0x2d12
movl $0x74, %edi
movl %ebp, %esi
movq %rbx, %rdx
xorl %ecx, %ecx
callq 0x28ae
movl %r14d, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/jacereda[P]fsatrace/src/unix/fsatraceso.c
// Function: futimens
int
futimens(int fd, const struct timespec ts[2])
{
	int r;
	static int (*ofutimens)(int, const struct timespec[2]);
	D;
	R(futimens);
	r = ofutimens(fd, ts);
	if (!r)
		fdemit('t', fd);
	DD;
	return r;
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movq %rsi, %r14
movl %edi, %ebx
leaq 0x34a0(%rip), %rdi      # 0x61d0
leaq 0x1369(%rip), %rsi      # 0x40a0
callq 0x242a
movl %ebx, %edi
movq %r14, %rsi
callq *0x3489(%rip)           # 0x61d0
movl %eax, %ebp
testl %eax, %eax
jne 0x2d59
movl $0x74, %edi
movl %ebx, %esi
callq 0x25f3
movl %ebp, %eax
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/jacereda[P]fsatrace/src/unix/fsatraceso.c
// Function: fdpath
static int
fdpath(int fd, char *ap, size_t sz)
{
	int ok;
#ifdef F_GETPATH
	ok = -1 != fcntl(fd, F_GETPATH, ap);
#else
	ssize_t written;
	char	fdp[100];
	snprintf(fdp, sizeof(fdp), "/proc/self/fd/%d", fd);
	ap[0] = 0;
	written = readlink(fdp, ap, sz);
	ok = written >= 0 && written < sz;
	if (ok)
		ap[written] = 0;
#endif
	if (!ok)
		ap[0] = 0;
	return ok;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x70, %rsp
movq %rsi, %rbx
movl %edi, %ecx
leaq 0x1370(%rip), %rdx      # 0x40e5
xorl %r15d, %r15d
movq %rsp, %r14
movl $0x64, %esi
movq %r14, %rdi
xorl %eax, %eax
callq 0x2100
movb %r15b, (%rbx)
movl $0x1000, %edx           # imm = 0x1000
movq %r14, %rdi
movq %rbx, %rsi
callq 0x20a0
xorl %ecx, %ecx
cmpq $0x1000, %rax           # imm = 0x1000
setb %cl
movl $0x0, %edx
cmovbq %rax, %rdx
movb %r15b, (%rbx,%rdx)
movl %ecx, %eax
addq $0x70, %rsp
popq %rbx
popq %r14
popq %r15
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O1/jacereda[P]fsatrace/src/emit.c
// Function: emitInit
static const char *
mygetenv(const char *v)
{
	const char *out = getenv(v);
	if (!out) {
		extern char **environ;
		size_t	      l = strlen(v);
		char **	      p = environ;
		while (*p) {
			char *s = *p;
			if (0 == strncmp(s, v, l)) {
				if (s[l] == '=') {
					out = s + l + 1;
					break;
				}
			}
			p++;
		}
	}
#ifdef _WIN32
	// Workaround, bash distributed with ghc 8.6.5 seems to discard most
	// environment variables, pass environment variables as the first few
	// PATH components.
	if (!out) {
		const char *path = getenv("PATH");
		if (strcmp(v, ENVOUT) == 0) {
			static char buf[PATH_MAX];
			unsigned    i = 0;
			unsigned    j = 0;
			while (path[i] != ';')
				buf[j++] = path[i++];
			buf[j] = 0;
			out = buf;
		}
	}
#endif
	return out;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
leaq 0x1325(%rip), %rdi      # 0x40f8
callq 0x2030
movq %rax, %rbx
testq %rax, %rax
jne 0x2e2c
movq 0x31f9(%rip), %rax      # 0x5fe0
movq (%rax), %r12
xorl %ebx, %ebx
leaq 0x1305(%rip), %r14      # 0x40f8
movq (%r12), %r15
testq %r15, %r15
je 0x2e2c
movl $0x8, %edx
movq %r15, %rdi
movq %r14, %rsi
callq 0x2060
testl %eax, %eax
jne 0x2e22
cmpb $0x3d, 0x8(%r15)
jne 0x2e22
addq $0x9, %r15
xorl %eax, %eax
movq %r15, %rbx
jmp 0x2e28
addq $0x8, %r12
movb $0x1, %al
testb %al, %al
jne 0x2df3
testq %rbx, %rbx
je 0x2e5c
cmpq $0x0, 0x33a7(%rip)      # 0x61e0
jne 0x2e7b
leaq 0x339e(%rip), %rdi      # 0x61e0
movl $0x1000000, %edx        # imm = 0x1000000
movq %rbx, %rsi
xorl %ecx, %ecx
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0x2080
leaq 0x129e(%rip), %rdi      # 0x4101
leaq 0x129b(%rip), %rsi      # 0x4105
leaq 0x129f(%rip), %rcx      # 0x4110
movl $0x3b, %edx
callq 0x2130
leaq 0x129d(%rip), %rdi      # 0x411f
leaq 0x127c(%rip), %rsi      # 0x4105
leaq 0x1280(%rip), %rcx      # 0x4110
movl $0x3c, %edx
callq 0x2130
// File: /workspace/github_c_makefile_star2_O1/jacereda[P]fsatrace/src/emit.c
// Function: emitOp
void
emitOp(int oc, const char *op1, const char *p2)
{
	char *	    dst = shm.buf + 4 + 256;
	char *	    opts = shm.buf + 4;
	uint32_t *  psofar = (uint32_t *)shm.buf;
	uint32_t    sofar;
	uint32_t    sz;
	uint32_t    s1;
	uint32_t    s2;
	char *	    p;
	const char *p1;
	int	    c;
	if (!shm.buf || !opts[tolower(oc)])
		return;
	p1 = op1 ? op1 : "<unknown>";
	c = op1 ? oc : toupper(oc);
	s1 = strlen(p1);
	sz = s1 + 3;
	if (p2) {
		s2 = strlen(p2);
		sz += s2 + 1;
	}
	sofar = __sync_fetch_and_add(psofar, sz);
	p = dst + sofar;
	*p++ = c;
	*p++ = '|';
	memcpy(p, p1, s1);
	p += s1;
	if (p2) {
		*p++ = '|';
		memcpy(p, p2, s2);
		p += s2;
	}
	*p++ = '\n';
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq 0x3316(%rip), %r13      # 0x61e0
testq %r13, %r13
je 0x2fa1
movq %rdx, %rbx
movq %rsi, %r15
movl %edi, %ebp
callq 0x21a0
cltq
cmpb $0x0, 0x4(%r13,%rax)
je 0x2fa1
leaq 0x1233(%rip), %r14      # 0x4128
testq %r15, %r15
cmovneq %r15, %r14
jne 0x2f07
movl %ebp, %edi
callq 0x2090
movl %eax, %ebp
leaq 0x104(%r13), %r15
movq %r14, %rdi
callq 0x20d0
movq %rax, %r12
testq %rbx, %rbx
je 0x2f35
movq %rbx, %rdi
callq 0x20d0
leal (%r12,%rax), %ecx
addl $0x4, %ecx
movl %eax, %eax
movq %rax, (%rsp)
jmp 0x2f43
movl %r12d, %ecx
addl $0x3, %ecx
movq $0x0, (%rsp)
lock
xaddl %ecx, (%r13)
movb %bpl, 0x104(%r13,%rcx)
leaq (%r15,%rcx), %rdi
addq $0x2, %rdi
addq %rcx, %r15
movb $0x7c, 0x105(%r13,%rcx)
movl %r12d, %r12d
movq %r14, %rsi
movq %r12, %rdx
callq 0x2190
leaq (%r12,%r15), %r14
addq $0x2, %r14
testq %rbx, %rbx
je 0x2f9d
leaq 0x1(%r14), %rdi
movb $0x7c, (%r14)
movq %rbx, %rsi
movq (%rsp), %rbx
movq %rbx, %rdx
callq 0x2190
addq %rbx, %r14
incq %r14
movb $0xa, (%r14)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/antonblanchard[P]will-it-scale/tests/write1.c
// Function: testcase
void testcase(unsigned long long *iterations, unsigned long nr)
{
	char buf[BUFLEN];
	char tmpfile[] = "/tmp/willitscale.XXXXXX";
	int fd = mkstemp(tmpfile);
	unsigned long size = 0;

	memset(buf, 0, sizeof(buf));
	assert(fd >= 0);
	unlink(tmpfile);

	while (1) {
		int ret = write(fd, buf, BUFLEN);
		assert(ret >= 0);
		size += ret;
		if (size >= FILESIZE) {
			size = 0;
			lseek(fd, 0, SEEK_SET);
		}

		(*iterations)++;
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x1028, %rsp           # imm = 0x1028
movq %rdi, %rbx
movaps 0x6dd(%rip), %xmm0      # 0x32d0
movq %rsp, %rdi
movaps %xmm0, (%rdi)
movabsq $0x5858585858582e, %rax # imm = 0x5858585858582E
movq %rax, 0x10(%rdi)
callq 0x21d0
movl %eax, %ebp
leaq 0x20(%rsp), %rdi
movl $0x1000, %edx           # imm = 0x1000
xorl %esi, %esi
callq 0x2140
testl %ebp, %ebp
js 0x2c9d
movq %rsp, %rdi
callq 0x2080
leaq 0x20(%rsp), %rsi
movl $0x1000, %edx           # imm = 0x1000
movl %ebp, %edi
callq 0x20d0
testl %eax, %eax
js 0x2c7e
xorl %r15d, %r15d
leaq 0x20(%rsp), %r14
andl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
addq %r15, %rax
cmpq $0x100000, %rax         # imm = 0x100000
jb 0x2c65
movl %ebp, %edi
xorl %esi, %esi
xorl %edx, %edx
callq 0x2120
xorl %eax, %eax
movq %rax, %r15
incq (%rbx)
movl $0x1000, %edx           # imm = 0x1000
movl %ebp, %edi
movq %r14, %rsi
callq 0x20d0
testl %eax, %eax
jns 0x2c48
leaq 0x641(%rip), %rdi       # 0x32c6
leaq 0x5f8(%rip), %rsi       # 0x3284
leaq 0x600(%rip), %rcx       # 0x3293
movl $0x19, %edx
callq 0x2130
leaq 0x5d8(%rip), %rdi       # 0x327c
leaq 0x5d9(%rip), %rsi       # 0x3284
leaq 0x5e1(%rip), %rcx       # 0x3293
movl $0x14, %edx
callq 0x2130
// File: /workspace/github_c_makefile_star2_O1/baileywjohnson[P]mpi-matrix-mult/MyMPI.c
// Function: get_size
int get_size (MPI_Datatype t) {
   if (t == MPI_BYTE) return sizeof(char);
   if (t == MPI_DOUBLE) return sizeof(double);
   if (t == MPI_FLOAT) return sizeof(float);
   if (t == MPI_INT) return sizeof(int);
   printf ("Error: Unrecognized argument to 'get_size'\n");
   fflush (stdout);
   MPI_Abort (MPI_COMM_WORLD, TYPE_ERROR);
	return -1;  // WMJ 
}

// Assembly:
cmpq 0x4475(%rip), %rdi      # 0x5ff0
je 0x1bda
cmpq 0x444c(%rip), %rdi      # 0x5fd0
je 0x1be0
cmpq 0x4453(%rip), %rdi      # 0x5fe0
sete %al
cmpq 0x4411(%rip), %rdi      # 0x5fa8
sete %cl
orb %al, %cl
movl $0x4, %eax
jne 0x1bd9
pushq %rax
leaq 0x2615(%rip), %rdi      # 0x41c0
callq 0x1060
movq 0x4441(%rip), %rax      # 0x5ff8
movq (%rax), %rdi
callq 0x1240
movq 0x4412(%rip), %rdi      # 0x5fd8
movl $0xfffffffd, %esi       # imm = 0xFFFFFFFD
callq 0x1120
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
addq $0x8, %rsp
retq
movl $0x1, %eax
retq
movl $0x8, %eax
retq
// File: /workspace/github_c_makefile_star2_O1/baileywjohnson[P]mpi-matrix-mult/MyMPI.c
// Function: my_malloc
void *my_malloc (
   int id,     /* IN - Process rank */
   int bytes)  /* IN - Bytes to allocate */
{
   void *buffer;
   if ((buffer = malloc ((size_t) bytes)) == NULL) {
      printf ("Error: Malloc failed for process %d\n", id);
      fflush (stdout);
      MPI_Abort (MPI_COMM_WORLD, MALLOC_ERROR);
   }
   return buffer;
}

// Assembly:
pushq %rbp
pushq %rbx
pushq %rax
movl %edi, %ebp
movslq %esi, %rdi
callq 0x10b0
movq %rax, %rbx
testq %rax, %rax
jne 0x1c2b
leaq 0x2540(%rip), %rdi      # 0x4142
movl %ebp, %esi
xorl %eax, %eax
callq 0x1050
movq 0x43e6(%rip), %rax      # 0x5ff8
movq (%rax), %rdi
callq 0x1240
movq 0x43b7(%rip), %rdi      # 0x5fd8
movl $0xfffffffe, %esi       # imm = 0xFFFFFFFE
callq 0x1120
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/baileywjohnson[P]mpi-matrix-mult/MyMPI.c
// Function: terminate
void terminate (
   int   id,            /* IN - Process rank */
   char *error_message) /* IN - Message to print */
{
   if (!id) {
      printf ("Error: %s\n", error_message);
      fflush (stdout);
   }
   MPI_Finalize();
   exit (-1);
}

// Assembly:
pushq %rax
testl %edi, %edi
jne 0x1c57
leaq 0x2526(%rip), %rdi      # 0x4167
xorl %eax, %eax
callq 0x1050
movq 0x43a9(%rip), %rax      # 0x5ff8
movq (%rax), %rdi
callq 0x1240
callq 0x1190
movl $0xffffffff, %edi       # imm = 0xFFFFFFFF
callq 0x1070
// File: /workspace/github_c_makefile_star2_O1/baileywjohnson[P]mpi-matrix-mult/MyMPI.c
// Function: create_mixed_xfer_arrays
void create_mixed_xfer_arrays (
   int id,       /* IN - Process rank */
   int p,        /* IN - Number of processes */
   int n,        /* IN - Total number of elements */
   int **count,  /* OUT - Array of counts */
   int **disp)   /* OUT - Array of displacements */
{

   int i;

   *count = my_malloc (id, p * sizeof(int));
   *disp = my_malloc (id, p * sizeof(int));
   (*count)[0] = BLOCK_SIZE(0,p,n);
   (*disp)[0] = 0;
   for (i = 1; i < p; i++) {
      (*disp)[i] = (*disp)[i-1] + (*count)[i-1];
      (*count)[i] = BLOCK_SIZE(i,p,n);
   }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %r8, %r15
movq %rcx, %r12
movl %edx, %ebx
movl %esi, %r14d
movl %edi, %ebp
leal (,%r14,4), %r13d
movl %r13d, %esi
callq 0x1be6
movq %rax, (%r12)
movl %ebp, %edi
movl %r13d, %esi
callq 0x1be6
movq %rax, %rcx
movq %rax, (%r15)
movl %ebx, %eax
cltd
idivl %r14d
movq (%r12), %r9
movl %eax, (%r9)
movl $0x0, (%rcx)
cmpl $0x2, %r14d
jl 0x1cfd
movl %r14d, %r10d
leal (%rbx,%rbx), %esi
movl $0x1, %r11d
movl %ebx, %edi
movl -0x4(%r9,%r11,4), %eax
addl -0x4(%rcx,%r11,4), %eax
movl %eax, (%rcx,%r11,4)
movl %esi, %eax
cltd
idivl %r10d
movl %eax, %r8d
movl %edi, %eax
cltd
idivl %r14d
subl %eax, %r8d
movl %r8d, (%r9,%r11,4)
leaq 0x1(%r11), %rax
addl %ebx, %edi
addl %ebx, %esi
movq %rax, %r11
cmpq %rax, %r10
jne 0x1cc9
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/baileywjohnson[P]mpi-matrix-mult/MyMPI.c
// Function: create_uniform_xfer_arrays
void create_uniform_xfer_arrays (
   int id,        /* IN - Process rank */
   int p,         /* IN - Number of processes */
   int n,         /* IN - Number of elements */
   int **count,   /* OUT - Array of counts */
   int **disp)    /* OUT - Array of displacements */
{

   int i;

   *count = my_malloc (id, p * sizeof(int));
   *disp = my_malloc (id, p * sizeof(int));
   (*count)[0] = BLOCK_SIZE(id,p,n);
   (*disp)[0] = 0;
   for (i = 1; i < p; i++) {
      (*disp)[i] = (*disp)[i-1] + (*count)[i-1];
      (*count)[i] = BLOCK_SIZE(id,p,n);
   }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %r8, %r15
movq %rcx, %r14
movl %edx, %ebp
movl %esi, %ebx
movl %edi, %r12d
leal (,%rbx,4), %r13d
movl %r13d, %esi
callq 0x1be6
movq %rax, (%r14)
movl %r12d, %edi
movl %r13d, %esi
callq 0x1be6
movq %rax, %rcx
movq %rax, (%r15)
leal 0x1(%r12), %eax
imull %ebp, %eax
cltd
idivl %ebx
movl %eax, %esi
imull %r12d, %ebp
movl %ebp, %eax
cltd
idivl %ebx
subl %eax, %esi
movq (%r14), %rax
movl %esi, (%rax)
movl $0x0, (%rcx)
cmpl $0x2, %ebx
jl 0x1d90
movl %ebx, %edx
movl $0x1, %edi
movl -0x4(%rax,%rdi,4), %r8d
addl -0x4(%rcx,%rdi,4), %r8d
movl %r8d, (%rcx,%rdi,4)
movl %esi, (%rax,%rdi,4)
incq %rdi
cmpq %rdi, %rdx
jne 0x1d77
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/baileywjohnson[P]mpi-matrix-mult/MyMPI.c
// Function: replicate_block_vector
void replicate_block_vector (
   void        *ablock,  /* IN - Block-distributed vector */
   int          n,       /* IN - Elements in vector */
   void        *arep,    /* OUT - Replicated vector */
   MPI_Datatype dtype,   /* IN - Element type */
   MPI_Comm     comm)    /* IN - Communicator */
{
   int *cnt;  /* Elements contributed by each process */
   int *disp; /* Displacement in concatenated array */
   int id;    /* Process id */
   int p;     /* Processes in communicator */

   MPI_Comm_size (comm, &p);
   MPI_Comm_rank (comm, &id);
   create_mixed_xfer_arrays (id, p, n, &cnt, &disp);
   MPI_Allgatherv (ablock, cnt[id], dtype, arep, cnt,
                   disp, dtype, comm);
   free (cnt);
   free (disp);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %r8, %r14
movq %rcx, %rbx
movq %rdx, 0x8(%rsp)
movl %esi, %ebp
movq %rdi, (%rsp)
leaq 0x10(%rsp), %r13
movq %r8, %rdi
movq %r13, %rsi
callq 0x1100
leaq 0x14(%rsp), %r15
movq %r14, %rdi
movq %r15, %rsi
callq 0x1170
movl (%r15), %edi
movl (%r13), %esi
leaq 0x20(%rsp), %r13
leaq 0x18(%rsp), %r12
movl %ebp, %edx
movq %r13, %rcx
movq %r12, %r8
callq 0x1c66
movq (%r13), %r13
movslq (%r15), %rax
movl (%r13,%rax,4), %esi
movq (%r12), %r15
movq (%rsp), %rdi
movq %rbx, %rdx
movq 0x8(%rsp), %rcx
movq %r13, %r8
movq %r15, %r9
pushq %r14
pushq %rbx
callq 0x1210
addq $0x10, %rsp
movq %r13, %rdi
callq 0x10f0
movq %r15, %rdi
callq 0x10f0
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/baileywjohnson[P]mpi-matrix-mult/MyMPI.c
// Function: read_replicated_vector
void read_replicated_vector (
   char        *s,      /* IN - File name */
   void       **v,      /* OUT - Vector */
   MPI_Datatype dtype,  /* IN - Vector type */
   int         *n,      /* OUT - Vector length */
   MPI_Comm     comm)   /* IN - Communicator */
{
   int        datum_size; /* Bytes per vector element */
   // WMJ int        i;
   int        id;         /* Process rank */
   FILE      *infileptr;  /* Input file pointer */
   int        p;          /* Number of processes */

   MPI_Comm_rank (comm, &id);
   MPI_Comm_size (comm, &p);
   datum_size = get_size (dtype);
   if (id == (p-1)) {
      infileptr = fopen (s, "r");
      if (infileptr == NULL) *n = 0;
      else fread (n, sizeof(int), 1, infileptr);
   }
   MPI_Bcast (n, 1, MPI_INT, p-1, MPI_COMM_WORLD);
   if (! *n) terminate (id, "Cannot open vector file");

   *v = my_malloc (id, *n * datum_size);

   if (id == (p-1)) {
      fread (*v, datum_size, *n, infileptr);
      fclose (infileptr);
   }
   MPI_Bcast (*v, *n, dtype, p-1, MPI_COMM_WORLD);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %r8, %r12
movq %rcx, %r14
movq %rdx, %rbp
movq %rsi, 0x8(%rsp)
movq %rdi, %r13
leaq 0x4(%rsp), %rbx
movq %r8, %rdi
movq %rbx, %rsi
callq 0x1170
movq %rsp, %r15
movq %r12, %rdi
movq %r15, %rsi
callq 0x1100
movq %rbp, 0x10(%rsp)
movq %rbp, %rdi
callq 0x1b74
movl %eax, %ebp
movl (%r15), %eax
decl %eax
cmpl %eax, (%rbx)
jne 0x2a58
leaq 0x174b(%rip), %rsi      # 0x4172
movq %r13, %rdi
callq 0x10c0
testq %rax, %rax
je 0x2a4e
movq %rax, %r12
movl $0x4, %esi
movl $0x1, %edx
movq %r14, %rdi
movq %rax, %rcx
callq 0x1160
jmp 0x2a58
movl $0x0, (%r14)
xorl %r12d, %r12d
movl (%rsp), %ecx
decl %ecx
movq 0x3544(%rip), %rdx      # 0x5fa8
movq 0x356d(%rip), %r8       # 0x5fd8
movq %r14, %rdi
movl $0x1, %esi
callq 0x1180
cmpl $0x0, (%r14)
movl 0x4(%rsp), %edi
je 0x2ae4
movl (%r14), %esi
imull %ebp, %esi
callq 0x1be6
movq 0x8(%rsp), %rbx
movq %rax, (%rbx)
movl (%rsp), %ecx
decl %ecx
cmpl %ecx, 0x4(%rsp)
jne 0x2ab9
movslq %ebp, %rsi
movslq (%r14), %rdx
movq %rax, %rdi
movq %r12, %rcx
callq 0x1160
movq %r12, %rdi
callq 0x11c0
movq (%rbx), %rdi
movl (%r14), %esi
movl (%rsp), %ecx
decl %ecx
movq 0x350d(%rip), %r8       # 0x5fd8
movq 0x10(%rsp), %rdx
callq 0x1180
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x16ab(%rip), %rsi      # 0x4196
callq 0x1c35