LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O2/saulvargas[P]re-C-sys/test_usersim.c
// Function: main
int main(int argc, char** argv) {
    FILE* user_data;
    FILE* item_data;
    int N_users;
    int N_items;
    int N_prefs;
    int binary;
    recdata_t* recdata;
    int uid;
    int i;
    similarity_t* similarity;
    idpairs_t* pairs;

    if (!read_args(argc, argv, &user_data, &item_data, &N_users, &N_items, &N_prefs, &binary)) {
        return EXIT_FAILURE;
    }

    recdata = recdata_simple_create(user_data, item_data, N_users, N_items, N_prefs, binary);
    
    fclose(user_data);
    fclose(item_data);

    if (!binary) {
        similarity = similarity_veccosine_create(recdata);
    } else {
        similarity = similarity_setcosine_create(recdata);
    }

    for (uid = 0; uid < recdata->N_users; uid++) {
        pairs = similarity_calculate(similarity, uid, 100);

        for (i = 0; i < idpairs_size(pairs); i++) {
            printf("%d\t%d\t%.4f\n", uid, idpairs_keys(pairs)[i], idpairs_values(pairs)[i]);
        }
        
        idpairs_close_deep(pairs);
    }
 
    similarity_close(similarity);
    
    recdata_close(recdata);
    
    return EXIT_SUCCESS;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
leaq 0xc(%rsp), %rax
leaq 0x1c(%rsp), %r10
leaq 0x30(%rsp), %rdx
leaq 0x28(%rsp), %rcx
leaq 0x24(%rsp), %r8
leaq 0x20(%rsp), %r9
pushq %rax
pushq %r10
callq 0x2478
popq %rcx
popq %rdx
testl %eax, %eax
je 0x128f
movq 0x30(%rsp), %rdi
movq 0x28(%rsp), %rsi
movl 0x24(%rsp), %edx
movl 0x20(%rsp), %ecx
movl 0x1c(%rsp), %r8d
movl 0xc(%rsp), %r9d
callq 0x1676
movq %rax, %r14
movq 0x30(%rsp), %rdi
callq 0x1060
movq 0x28(%rsp), %rdi
callq 0x1060
cmpl $0x0, 0xc(%rsp)
je 0x1297
movq %r14, %rdi
callq 0x190a
jmp 0x129f
pushq $0x1
popq %rax
jmp 0x1324
movq %r14, %rdi
callq 0x1b9d
movq %rax, 0x10(%rsp)
xorl %r15d, %r15d
leaq 0x1d56(%rip), %r12      # 0x3004
cmpl (%r14), %r15d
jge 0x1310
movq 0x10(%rsp), %rdi
movl %r15d, %esi
pushq $0x64
popq %rdx
callq 0x17a8
movq %rax, %r13
xorl %ebx, %ebx
movq %r13, %rdi
callq 0x23ef
cltq
cmpq %rax, %rbx
jge 0x1303
movq %r13, %rdi
callq 0x23f2
movl (%rax,%rbx,4), %ebp
movq %r13, %rdi
callq 0x23f7
movsd (%rax,%rbx,8), %xmm0
movq %r12, %rdi
movl %r15d, %esi
movl %ebp, %edx
movb $0x1, %al
callq 0x1080
incq %rbx
jmp 0x12c8
movq %r13, %rdi
callq 0x23cb
incl %r15d
jmp 0x12ae
movq 0x10(%rsp), %rdi
callq 0x17b8
movq %r14, %rdi
callq 0x136c
xorl %eax, %eax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_c_makefile_star2_O2/agraf[P]kvmbench/l3cache.c
// Function: main
int main(int argc, char **argv)
{
    int i;
    sigset_t fSigSet;

    sigemptyset(&fSigSet);
    sigaddset(&fSigSet, SIGUSR1);
    pthread_sigmask(SIG_BLOCK, &fSigSet, NULL);

    pthread_create(&threads[0], NULL, notifier_thread, NULL);
    pthread_create(&threads[1], NULL, waiter_thread, NULL);

    for (i=0; i<(sizeof(threads) / sizeof(threads[0])); i++) {
        pthread_join(threads[i], NULL);
    }

    return 0;
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x88, %rsp
leaq 0x8(%rsp), %rbx
movq %rbx, %rdi
callq 0x1080
pushq $0xa
popq %rsi
movq %rbx, %rdi
callq 0x10e0
xorl %r14d, %r14d
xorl %edi, %edi
movq %rbx, %rsi
xorl %edx, %edx
callq 0x10a0
leaq 0x2e8c(%rip), %rbx      # 0x40b0
leaq 0x47(%rip), %rdx        # 0x1272
movq %rbx, %rdi
xorl %esi, %esi
xorl %ecx, %ecx
callq 0x10b0
leaq 0x2e7a(%rip), %rdi      # 0x40b8
leaq 0x61(%rip), %rdx        # 0x12a6
xorl %esi, %esi
xorl %ecx, %ecx
callq 0x10b0
cmpq $0x10, %r14
je 0x1265
movq (%r14,%rbx), %rdi
xorl %esi, %esi
callq 0x10d0
addq $0x8, %r14
jmp 0x124e
xorl %eax, %eax
addq $0x88, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O2/agraf[P]kvmbench/l3cache.c
// Function: notifier_thread
static void *notifier_thread(void *opaque)
{
    while (sig_state != SIG_STATE_IDLE) ;
    while (1) {
//printf("[%d] trigger\n", gettid());
        sig_state = SIG_STATE_SENDING;
        pthread_kill(threads[1], SIGUSR1);
        while (sig_state != SIG_STATE_IDLE) ;
    }

    return NULL;
}

// Assembly:
pushq %rbx
movl 0x2e27(%rip), %eax      # 0x40a0
cmpl $0x1, %eax
jne 0x1273
pushq $0xa
popq %rbx
movl $0x2, 0x2e15(%rip)      # 0x40a0
movq 0x2e26(%rip), %rdi      # 0x40b8
movl %ebx, %esi
callq 0x1070
movl 0x2e01(%rip), %eax      # 0x40a0
cmpl $0x1, %eax
jne 0x1299
jmp 0x1281
// File: /workspace/github_c_makefile_star2_O2/agraf[P]kvmbench/l3cache.c
// Function: waiter_thread
static void *waiter_thread(void *opaque)
{
    struct timeval tv_start;
    struct timeval tv_end;
    struct timeval tv;
    uint64_t loops = 0;
    struct sigaction sa = {
        .sa_handler = sig_handler,
    };

    sigset_t fSigSet;

    sigemptyset(&fSigSet);
    sigaddset(&fSigSet, SIGUSR1);
    pthread_sigmask(SIG_UNBLOCK, &fSigSet, NULL);

    sigaction(SIGUSR1, &sa, NULL);

    assert(!gettimeofday(&tv_start, NULL));
    tv_end = tv_start;
    tv_end.tv_sec += 1;

    sig_state = SIG_STATE_IDLE;

    while(1) {
        assert(!gettimeofday(&tv, NULL));
        if ((tv.tv_sec >= tv_end.tv_sec) && (tv.tv_usec >= tv_end.tv_usec))
            break;

        loops++;
//printf("[%d] pre-received \n", gettid());
        while (sig_state != SIG_STATE_RECEIVED) ;
//printf("[%d] recevied\n", gettid());
        sig_state = SIG_STATE_IDLE;
    }

    printf("Number of sleeps: %ld\n", loops);
    exit(0);
    return NULL;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x140, %rsp            # imm = 0x140
leaq 0x2aa4(%rip), %rsi      # 0x3d60
leaq 0xa8(%rsp), %rbx
movl $0x98, %edx
movq %rbx, %rdi
callq 0x1090
leaq 0x28(%rsp), %r14
movq %r14, %rdi
callq 0x1080
pushq $0xa
popq %rbp
movq %r14, %rdi
movl %ebp, %esi
callq 0x10e0
pushq $0x1
popq %rdi
movq %r14, %rsi
xorl %edx, %edx
callq 0x10a0
movl %ebp, %edi
movq %rbx, %rsi
xorl %edx, %edx
callq 0x1030
leaq 0x18(%rsp), %rdi
xorl %esi, %esi
callq 0x1050
testl %eax, %eax
jne 0x1365
movq 0x18(%rsp), %r15
movq 0x20(%rsp), %r12
movl $0x1, 0x2d78(%rip)      # 0x40a0
xorl %ebx, %ebx
leaq 0x8(%rsp), %r14
movq %r14, %rdi
xorl %esi, %esi
callq 0x1050
testl %eax, %eax
jne 0x137e
cmpq %r15, 0x8(%rsp)
jle 0x134b
cmpq %r12, 0x10(%rsp)
jge 0x139b
movl 0x2d4f(%rip), %eax      # 0x40a0
cmpl $0x3, %eax
jne 0x134b
incq %rbx
movl $0x1, 0x2d3d(%rip)      # 0x40a0
jmp 0x132f
leaq 0xc98(%rip), %rdi       # 0x2004
leaq 0xcb0(%rip), %rsi       # 0x2023
leaq 0xcb3(%rip), %rcx       # 0x202d
pushq $0x40
jmp 0x1395
leaq 0xcc4(%rip), %rdi       # 0x2049
leaq 0xc97(%rip), %rsi       # 0x2023
leaq 0xc9a(%rip), %rcx       # 0x202d
pushq $0x47
popq %rdx
callq 0x1060
leaq 0xcc0(%rip), %rdi       # 0x2062
movq %rbx, %rsi
xorl %eax, %eax
callq 0x1040
xorl %edi, %edi
callq 0x10c0
// File: /workspace/github_c_makefile_star2_O2/accre[P]Cprogramming/loops.c
// Function: main
int main()
{
   
   int n = 10;

   int i; // we'll use i as an index within a for loop
   int x[n];
   for ( i=0; i<n ; i++ ) {
      x[i] = i * 10;
      printf("i: %d x[i]: %d\n",i,x[i]);
   }

   // while loops are useful in certain situations as well
   int y = 0;
   while ( y < 100 ) {
      y += 12;
      printf("y: %d\n",y);
   }

   // and do-while loops, use these instead of while loops
   // if you want the code block executed before evaluation
   // of a condition (rather than vice versa, as is done with
   // a normal while loop)
   y = 0;
   do {
      y += 12;
      printf("y: %d\n",y);
   }
   while ( y < 100 );

   return 0;

}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
leaq 0xebd(%rip), %rbx       # 0x2004
xorl %ebp, %ebp
xorl %r14d, %r14d
cmpl $0xa, %r14d
je 0x1169
movq %rbx, %rdi
movl %r14d, %esi
movl %ebp, %edx
xorl %eax, %eax
callq 0x1030
incl %r14d
addl $0xa, %ebp
jmp 0x114c
leaq 0xea4(%rip), %rbx       # 0x2014
xorl %ebp, %ebp
cmpl $0x64, %ebp
jae 0x1188
addl $0xc, %ebp
movq %rbx, %rdi
movl %ebp, %esi
xorl %eax, %eax
callq 0x1030
jmp 0x1172
pushq $-0xc
popq %r14
leaq 0xe81(%rip), %rbx       # 0x2014
leal 0x18(%r14), %esi
movq %rbx, %rdi
xorl %eax, %eax
callq 0x1030
addl $0xc, %r14d
cmpl $0x58, %r14d
jb 0x1193
xorl %eax, %eax
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/jafrado[P]magdec/test.c
// Function: main
int main(int argc, char* argv[])
{
	int i, year;
	double variance[100];

	printf("Showing Magnetic declination changes for "
	       "%ld locations over %ld years\n\n", n_locations, n_years);
	
	for (int i = 0; i < n_locations; i++) {
		for (int j = 0; j < n_years; j++) { 		
			year = years[j];
			printf("%s,%s, %s (%2.3f,%2.3f) in "
			       "%d: %2.2f degrees\n", 
			       locations[i].city, locations[i].state,
			       locations[i].country,
			       locations[i].lat,
			       locations[i].lon, year,
			       lookup_magdev(locations[i].lat,
					     locations[i].lon, year));

		}
		printf("---\n");
	}

}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
leaq 0xf98(%rip), %rdi       # 0x20f9
xorl %ebx, %ebx
pushq $0xd
popq %rsi
pushq $0x6
popq %rdx
xorl %eax, %eax
callq 0x1040
cmpq $0xd, %rbx
je 0x1218
movq %rbx, (%rsp)
shlq $0x5, %rbx
leaq 0x2eb7(%rip), %rax      # 0x4040
addq %rax, %rbx
xorl %r14d, %r14d
cmpq $0x18, %r14
je 0x1200
leaq 0x3044(%rip), %rax      # 0x41e0
movl (%r14,%rax), %ebp
movq (%rbx), %r15
movq 0x8(%rbx), %r12
movq 0x10(%rbx), %r13
movss 0x18(%rbx), %xmm0
cvtss2sd %xmm0, %xmm1
movsd %xmm1, 0x10(%rsp)
movss 0x1c(%rbx), %xmm1
cvtss2sd %xmm1, %xmm2
movsd %xmm2, 0x8(%rsp)
movl %ebp, %edi
callq 0x122c
cvtss2sd %xmm0, %xmm2
leaq 0xf66(%rip), %rdi       # 0x2141
movq %r15, %rsi
movq %r12, %rdx
movq %r13, %rcx
movsd 0x10(%rsp), %xmm0
movsd 0x8(%rsp), %xmm1
movl %ebp, %r8d
movb $0x3, %al
callq 0x1040
addq $0x4, %r14
jmp 0x118f
leaq 0xf68(%rip), %rdi       # 0x216f
callq 0x1030
movq (%rsp), %rbx
incq %rbx
jmp 0x1170
xorl %eax, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O2/jafrado[P]magdec/magdec.c
// Function: lookup_magdev
float lookup_magdev(float lat, float lon, int year)
{
	int i, n;
	int lati, loni;
	magdec_correction_t* c = NULL;
	
	lati = (int)lat;
	loni = (int)lon;
	
	//printf("lookup: %d,%d\n", lati, loni);

	if (year <= 2019) { 
		c = &corr[0];
		n = n_magdec_entries;
	}
	else { 
		c = &corr_2020[0];
		n = n_magdec_entries_2020;
	}
	
	for (i = 0; i < n; i++){ 
		if ((c[i].lat == lati) && (c[i].lon == loni) && 
		    (c[i].year == year)){
		  // printf("entry %d - %d, %d\n", i, corr[i].lat, corr[i].lon);
			break;
		}
	}
	if (i < n)
		return c[i].magdec;
	else { 
		printf("WARNING: %2.2f, %2.2f not in database for %d,"
		       " correction most likely incorrect\n", lat, lon, year);
		return 0;
	}
}

// Assembly:
pushq %rax
movl %edi, %esi
cvttss2si %xmm0, %eax
cmpl $0x7e4, %edi            # imm = 0x7E4
leaq 0x2fc790(%rip), %rcx    # 0x2fd9d0
cmovlq 0x2da0(%rip), %rcx      # 0x3fe8
leaq 0x8ef701(%rip), %rdi    # 0x8f0950
cmovlq 0x2d71(%rip), %rdi      # 0x3fc8
cvttss2si %xmm1, %edx
movl (%rdi), %r8d
xorl %edi, %edi
testl %r8d, %r8d
cmovlel %edi, %r8d
shlq $0x4, %r8
cmpq %rdi, %r8
je 0x1287
cmpl %eax, 0x4(%rcx,%rdi)
jne 0x1281
cmpl %edx, 0x8(%rcx,%rdi)
jne 0x1281
cmpl %esi, (%rcx,%rdi)
je 0x12a2
addq $0x10, %rdi
jmp 0x126b
cvtss2sd %xmm0, %xmm0
cvtss2sd %xmm1, %xmm1
leaq 0xedd(%rip), %rdi       # 0x2173
movb $0x2, %al
callq 0x1040
xorps %xmm0, %xmm0
popq %rax
retq
movss 0xc(%rcx,%rdi), %xmm0
jmp 0x12a0
nop
// File: /workspace/github_c_makefile_star2_O2/PARKINHYO[P]BlackjackGame/shm/shm_client.c
// Function: set_shutdown
void *set_shutdown ()
{
        printf("[SIGNAL] : Got shutdown signal\n");
        shmctl( gnShmID2, IPC_RMID, 0 );
        printf("[SIGNAL] : Shared meory segment marked for deletion\n");;
        semctl( gnSemID2, IPC_RMID, 0 );
        printf("[SIGNAL] : Semapore segment marked for deletion\n");
        exit (1);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
leaq 0xcdd(%rip), %rdi       # 0x2104
callq 0x1060
movl 0x2d5e(%rip), %edi      # 0x4190
xorl %esi, %esi
xorl %edx, %edx
callq 0x10f0
leaq 0xce1(%rip), %rdi       # 0x2123
callq 0x1060
movl 0x2d47(%rip), %edi      # 0x4194
xorl %esi, %esi
xorl %edx, %edx
xorl %eax, %eax
callq 0x1110
leaq 0xcf8(%rip), %rdi       # 0x2157
callq 0x1060
pushq $0x1
popq %rdi
callq 0x1160
// File: /workspace/github_c_makefile_star2_O2/wtakuo[P]SVM/vmtest.c
// Function: main
int main (int argc, char *argv[]) {
    vm_mode_t mode = vm_normal_mode;
    int n = 0;
    int i = 1;

    while (i < argc && argv[i][0] == '-') {
        char *arg = argv[i];
        int j = 1;
        while (arg[j] != '\0') {
            switch (arg[j]) {
            case 't':
                mode = vm_trace_mode;
                break;
            case 's':
                mode = vm_step_mode;
                break;
            default:
                fprintf(stderr, "usage: %s [-t][-s] [n]\n", argv[0]);
                return EXIT_FAILURE;
            }
            j++;
        }
        i++;
    }
    if (i < argc) {
        n = atoi(argv[i]);
    }

    vmtest(n, mode);

    return EXIT_SUCCESS;
}

// Assembly:
pushq %rbx
movslq %edi, %rcx
xorl %edi, %edi
pushq $0x1
popq %rdx
pushq $0x1
popq %r8
pushq $0x2
popq %r9
xorl %ebx, %ebx
cmpq %rcx, %rdx
jge 0x17ec
movq (%rsi,%rdx,8), %rax
cmpb $0x2d, (%rax)
jne 0x17e2
incq %rax
movzbl (%rax), %r10d
cmpl $0x73, %r10d
je 0x17ad
movl %r8d, %r11d
cmpl $0x74, %r10d
je 0x17b0
jmp 0x17b8
movl %r9d, %r11d
incq %rax
movl %r11d, %ebx
jmp 0x1798
testl %r10d, %r10d
jne 0x17c2
incq %rdx
jmp 0x1787
movq 0x282f(%rip), %rax      # 0x3ff8
movq (%rax), %rdi
movq (%rsi), %rdx
leaq 0xb3a(%rip), %rsi       # 0x2310
xorl %eax, %eax
callq 0x1070
pushq $0x1
popq %rax
jmp 0x17f5
movq %rax, %rdi
callq 0x10a0
movl %eax, %edi
movl %ebx, %esi
callq 0x17f8
xorl %eax, %eax
popq %rbx
retq
nop
// File: /workspace/github_c_makefile_star2_O2/wtakuo[P]SVM/test3.c
// Function: vmtest
void vmtest (int n, vm_mode_t trace) {
    int codelen = sizeof(code)/sizeof(Bcode);
    Function f = new_function(2, 0, code + 12, codelen - 12);
    gv[0] = (Value)n;
    gv[1] = (Value)f;

    vm(code, codelen, vs_base, VS_SIZE, gv, GV_SIZE, trace);

    delete_function(f);
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
subq $0x10, %rsp
movl %esi, %ebx
movl %edi, %ebp
leaq 0x2871(%rip), %rdx      # 0x407c
pushq $0x2
popq %rdi
pushq $0x17
popq %rcx
xorl %esi, %esi
callq 0x1578
movq %rax, %r14
leaq 0x284e(%rip), %rdi      # 0x4070
movslq %ebp, %rax
movq %rax, 0x2884(%rip)      # 0x40b0
leaq 0x287d(%rip), %r8       # 0x40b0
movq %r14, 0x287e(%rip)      # 0x40b8
movl %ebx, (%rsp)
leaq 0x30ac(%rip), %rdx      # 0x48f0
pushq $0x23
popq %rsi
pushq $0x8
popq %r9
movl $0x100, %ecx            # imm = 0x100
callq 0x11bc
movq %r14, %rdi
addq $0x10, %rsp
popq %rbx
popq %r14
popq %rbp
jmp 0x15c8
// File: /workspace/github_c_makefile_star2_O2/zhou-yuxin[P]redis-aof-no-cow/src/redis-benchmark.c
// Function: showThroughput
int showThroughput(struct aeEventLoop *eventLoop, long long id, void *clientData) {
    UNUSED(eventLoop);
    UNUSED(id);
    UNUSED(clientData);

    if (config.liveclients == 0) {
        fprintf(stderr,"All clients disconnected... aborting.\n");
        exit(1);
    }
    if (config.csv) return 250;
    if (config.idlemode == 1) {
        printf("clients: %d\r", config.liveclients);
        fflush(stdout);
	return 250;
    }
    float dt = (float)(mstime()-config.start)/1000.0;
    float rps = (float)config.requests_finished/dt;
    printf("%s: %.2f\r", config.title, rps);
    fflush(stdout);
    return 250; /* every 250ms */
}

// Assembly:
pushq %rax
movl 0x3b1cf(%rip), %esi     # 0x4845c
testl %esi, %esi
je 0xd307
cmpl $0x0, 0x3b21c(%rip)     # 0x484b4
jne 0xd300
cmpl $0x1, 0x3b21b(%rip)     # 0x484bc
jne 0xd2b3
leaq 0x26fa9(%rip), %rdi     # 0x34253
xorl %eax, %eax
callq 0xb1c0
jmp 0xd2f1
callq 0xd32b
subq 0x3b1c9(%rip), %rax     # 0x48488
cvtsi2ss %rax, %xmm0
divss 0x26ed8(%rip), %xmm0    # 0x341a4
cvtsi2ssl 0x3b194(%rip), %xmm1 # 0x48468
divss %xmm0, %xmm1
movq 0x3b1c1(%rip), %rsi     # 0x484a0
cvtss2sd %xmm1, %xmm0
leaq 0x26f76(%rip), %rdi     # 0x34260
movb $0x1, %al
callq 0xb1c0
movq 0x3acc8(%rip), %rax     # 0x47fc0
movq (%rax), %rdi
callq 0xb3a0
movl $0xfa, %eax
popq %rcx
retq
movq 0x3acea(%rip), %rax     # 0x47ff8
movq (%rax), %rcx
leaq 0x26f14(%rip), %rdi     # 0x3422c
pushq $0x26
popq %rsi
pushq $0x1
popq %rdx
callq 0xb520
pushq $0x1
popq %rdi
callq 0xb500
// File: /workspace/github_c_makefile_star2_O2/zhou-yuxin[P]redis-aof-no-cow/src/redis-benchmark.c
// Function: mstime
static long long mstime(void) {
    struct timeval tv;
    long long mst;

    gettimeofday(&tv, NULL);
    mst = ((long long)tv.tv_sec)*1000;
    mst += tv.tv_usec/1000;
    return mst;
}

// Assembly:
pushq %rbx
subq $0x10, %rsp
movq %rsp, %rbx
movq %rbx, %rdi
xorl %esi, %esi
callq 0xb200
imulq $0x3e8, (%rbx), %rcx    # imm = 0x3E8
movq 0x8(%rbx), %rax
movl $0x3e8, %esi            # imm = 0x3E8
cqto
idivq %rsi
addq %rcx, %rax
addq $0x10, %rsp
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O2/zhou-yuxin[P]redis-aof-no-cow/src/redis-benchmark.c
// Function: test_is_selected
int test_is_selected(char *name) {
    char buf[256];
    int l = strlen(name);

    if (config.tests == NULL) return 1;
    buf[0] = ',';
    memcpy(buf+1,name,l);
    buf[l+1] = ',';
    buf[l+2] = '\0';
    return strstr(config.tests,buf) != NULL;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x108, %rsp            # imm = 0x108
movq 0x3b161(%rip), %rbx     # 0x484d0
testq %rbx, %rbx
je 0xd3dc
movq %rdi, %r14
callq 0xb190
movb $0x2c, %bpl
leaq 0x1(%rsp), %rdi
movb %bpl, -0x1(%rdi)
movslq %eax, %rdx
movq %rax, %r15
shlq $0x20, %r15
movq %r14, %rsi
callq 0xb340
movabsq $0x100000000, %rax      # imm = 0x100000000
addq %r15, %rax
sarq $0x20, %rax
movb %bpl, (%rsp,%rax)
movabsq $0x200000000, %rax      # imm = 0x200000000
addq %r15, %rax
sarq $0x20, %rax
movb $0x0, (%rsp,%rax)
movq %rsp, %rsi
movq %rbx, %rdi
callq 0xb590
movq %rax, %rcx
xorl %eax, %eax
testq %rcx, %rcx
setne %al
jmp 0xd3df
pushq $0x1
popq %rax
addq $0x108, %rsp            # imm = 0x108
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/zhou-yuxin[P]redis-aof-no-cow/src/redis-benchmark.c
// Function: createMissingClients
static void createMissingClients(client c) {
    int n = 0;

    while(config.liveclients < config.numclients) {
        createClient(NULL,0,c);

        /* Listen backlog is quite limited on most systems */
        if (++n > 64) {
            usleep(50000);
            n = 0;
        }
    }
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
xorl %r14d, %r14d
movl 0x3a640(%rip), %eax     # 0x4845c
cmpl 0x3a636(%rip), %eax     # 0x48458
jge 0xde49
xorl %edi, %edi
xorl %esi, %esi
movq %rbx, %rdx
callq 0xdafb
leal 0x1(%r14), %eax
cmpl $0x40, %r14d
movl %eax, %r14d
jl 0xde16
movl $0xc350, %edi           # imm = 0xC350
callq 0xb5e0
jmp 0xde13
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O2/zhou-yuxin[P]redis-aof-no-cow/src/redis-benchmark.c
// Function: writeHandler
static void writeHandler(aeEventLoop *el, int fd, void *privdata, int mask) {
    client c = privdata;
    UNUSED(el);
    UNUSED(fd);
    UNUSED(mask);

    /* Initialize request when nothing was written. */
    if (c->written == 0) {
        /* Enforce upper bound to number of requests. */
        if (config.requests_issued++ >= config.requests) {
            freeClient(c);
            return;
        }

        /* Really initialize: randomize keys and set start time. */
        if (config.randomkeys) randomizeClientKey(c);
        c->start = ustime();
        c->latency = -1;
    }

    if (sdslen(c->obuf) > c->written) {
        void *ptr = c->obuf+c->written;
        ssize_t nwritten = write(c->context->fd,ptr,sdslen(c->obuf)-c->written);
        if (nwritten == -1) {
            if (errno != EPIPE)
                fprintf(stderr, "Writing to socket: %s\n", strerror(errno));
            freeClient(c);
            return;
        }
        c->written += nwritten;
        if (sdslen(c->obuf) == c->written) {
            aeDeleteFileEvent(config.el,c->context->fd,AE_WRITABLE);
            aeCreateFileEvent(config.el,c->context->fd,AE_READABLE,readHandler,c);
        }
    }
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rdx, %rbx
movq 0x28(%rdx), %r15
testq %r15, %r15
jne 0xe149
movl 0x3a39b(%rip), %eax     # 0x48464
leal 0x1(%rax), %ecx
movl %ecx, 0x3a392(%rip)     # 0x48464
cmpl 0x3a388(%rip), %eax     # 0x48460
jge 0xe1e9
cmpl $0x0, 0x3a38f(%rip)     # 0x48474
je 0xe137
xorl %r14d, %r14d
pushq $0xc
popq %r15
pushq $0xa
popq %r12
cmpq 0x18(%rbx), %r14
jae 0xe137
movq 0x10(%rbx), %rax
movq (%rax,%r14,8), %r13
callq 0xb370
movslq 0x3a36c(%rip), %rcx     # 0x48478
cqto
idivq %rcx
movq %rdx, %rax
movq %r15, %rsi
movq %r15, %rcx
subq $0x1, %rcx
jb 0xe132
xorl %edx, %edx
divq %r12
orb $0x30, %dl
movb %dl, -0x1(%r13,%rsi)
movq %rcx, %rsi
jmp 0xe11a
incq %r14
jmp 0xe0f2
callq 0xe2bb
movq %rax, 0x30(%rbx)
orq $-0x1, 0x38(%rbx)
movq 0x28(%rbx), %r15
movq 0x8(%rbx), %r14
movq %r14, %rdi
callq 0xe072
subq %r15, %rax
jbe 0xe1d3
addq %r15, %r14
movq (%rbx), %rcx
movl 0x84(%rcx), %edi
movq %r14, %rsi
movq %rax, %rdx
callq 0xb150
cmpq $-0x1, %rax
je 0xe1dd
movq %rax, %r14
addq 0x28(%rbx), %r14
movq %r14, 0x28(%rbx)
movq 0x8(%rbx), %rdi
callq 0xe072
cmpq %r14, %rax
jne 0xe1d3
movq 0x3a2a1(%rip), %rdi     # 0x48438
movq (%rbx), %rax
movl 0x84(%rax), %esi
pushq $0x2
popq %rdx
callq 0xb9b8
movq 0x3a289(%rip), %rdi     # 0x48438
movq (%rbx), %rax
movl 0x84(%rax), %esi
leaq 0x11f(%rip), %rcx       # 0xe2de
pushq $0x1
popq %rdx
movq %rbx, %r8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
jmp 0xb8f8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
callq 0xb080
movl (%rax), %edi
cmpl $0x20, %edi
jne 0xe1f7
movq %rbx, %rdi
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
jmp 0xe21c
movq 0x39dfa(%rip), %rax     # 0x47ff8
movq (%rax), %r14
callq 0xb560
leaq 0x26378(%rip), %rsi     # 0x34585
movq %r14, %rdi
movq %rax, %rdx
xorl %eax, %eax
callq 0xb310
jmp 0xe1e9
// File: /workspace/github_c_makefile_star2_O2/zhou-yuxin[P]redis-aof-no-cow/src/redis-benchmark.c
// Function: freeClient
static void freeClient(client c) {
    listNode *ln;
    aeDeleteFileEvent(config.el,c->context->fd,AE_WRITABLE);
    aeDeleteFileEvent(config.el,c->context->fd,AE_READABLE);
    redisFree(c->context);
    sdsfree(c->obuf);
    zfree(c->randptr);
    zfree(c);
    config.liveclients--;
    ln = listSearchKey(config.clients,c);
    assert(ln != NULL);
    listDelNode(config.clients,ln);
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
movq 0x3a211(%rip), %rdi     # 0x48438
movq (%rbx), %rax
movl 0x84(%rax), %esi
pushq $0x2
popq %rdx
callq 0xb9b8
movq 0x3a1f9(%rip), %rdi     # 0x48438
movq (%rbx), %rax
movl 0x84(%rax), %esi
pushq $0x1
popq %rdx
callq 0xb9b8
movq (%rbx), %rdi
callq 0xfdc0
movq 0x8(%rbx), %rdi
callq 0x10aec
movq 0x10(%rbx), %rdi
callq 0xe9bd
movq %rbx, %rdi
callq 0xe9bd
decl 0x3a1e4(%rip)           # 0x4845c
movq 0x3a229(%rip), %rdi     # 0x484a8
movq %rbx, %rsi
callq 0xe7cf
testq %rax, %rax
je 0xe29c
movq 0x3a215(%rip), %rdi     # 0x484a8
movq %rax, %rsi
popq %rbx
jmp 0xe6a8
leaq 0x262f9(%rip), %rdi     # 0x3459c
leaq 0x262fd(%rip), %rsi     # 0x345a7
leaq 0x26308(%rip), %rcx     # 0x345b9
movl $0x87, %edx
callq 0xb210
// File: /workspace/github_c_makefile_star2_O2/zhou-yuxin[P]redis-aof-no-cow/src/redis-benchmark.c
// Function: ustime
static long long ustime(void) {
    struct timeval tv;
    long long ust;

    gettimeofday(&tv, NULL);
    ust = ((long)tv.tv_sec)*1000000;
    ust += tv.tv_usec;
    return ust;
}

// Assembly:
pushq %rbx
subq $0x10, %rsp
movq %rsp, %rbx
movq %rbx, %rdi
xorl %esi, %esi
callq 0xb200
imulq $0xf4240, (%rbx), %rax  # imm = 0xF4240
addq 0x8(%rbx), %rax
addq $0x10, %rsp
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O2/zhou-yuxin[P]redis-aof-no-cow/deps/jemalloc/src/jemalloc.c
// Function: a0ialloc
static void *
a0ialloc(size_t size, bool zero, bool is_metadata)
{

	if (unlikely(malloc_init_a0()))
		return (NULL);

	return (iallocztm(TSDN_NULL, size, size2index(size), zero, NULL,
	    is_metadata, arena_get(TSDN_NULL, 0, true), true));
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movl %edx, %ebp
movl %esi, %r14d
movq %rdi, %rbx
cmpl $0x3, 0x35b02(%rip)     # 0x4835c
je 0x12922
cmpq $0x1000, %rbx           # imm = 0x1000
ja 0x1294e
leaq -0x1(%rbx), %rax
shrq $0x3, %rax
leaq 0x24144(%rip), %rcx     # 0x369c0
movzbl (%rax,%rcx), %r15d
pushq $0x1
popq %rdx
xorl %edi, %edi
xorl %esi, %esi
callq 0x12be9
movzbl %r14b, %r8d
xorl %edi, %edi
movq %rax, %rsi
movq %rbx, %rdx
movl %r15d, %ecx
callq 0x1bc0d
movq %rax, %rbx
testb %bpl, %bpl
je 0x12916
testq %rbx, %rbx
je 0x12916
leaq 0x3681b(%rip), %r15     # 0x490d0
movq (%r15), %rax
notq %rax
andq %rbx, %rax
cmpq %rax, %rbx
je 0x1295e
movq (%rax), %r14
cmpq %rax, %rbx
je 0x12977
movq %rbx, %rcx
subq %rax, %rcx
shrq $0xc, %rcx
leaq 0x366dc(%rip), %rdx     # 0x48fc0
subq (%rdx), %rcx
movq 0x78(%rax,%rcx,8), %rax
movl %eax, %ecx
shrl $0x5, %ecx
movl $0xff, %edx
andl %edx, %ecx
cmpl %edx, %ecx
je 0x12983
movl %ecx, %eax
leaq 0x23937(%rip), %rcx     # 0x36240
movq (%rcx,%rax,8), %rax
lock
xaddq %rax, 0x90(%r14)
movq %rbx, %rax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
leaq 0x35a37(%rip), %r15     # 0x48360
movq %r15, %rdi
callq 0xb5a0
callq 0x18d93
movl %eax, %r12d
movq %r15, %rdi
callq 0xb380
testb %r12b, %r12b
je 0x12860
xorl %ebx, %ebx
jmp 0x12916
movq %rbx, %rdi
callq 0x19a84
movl %eax, %r15d
jmp 0x12881
movq %rbx, %rdi
callq 0x28ce3
movq %rax, %r14
movq (%r15), %rax
notq %rax
andq %rbx, %rax
jmp 0x128ca
xorl %edi, %edi
movq %rbx, %rsi
callq 0x292e1
jmp 0x1290d
shrq %rax
andq $-0x1000, %rax          # imm = 0xF000
addq $-0x1000, %rax          # imm = 0xF000
jmp 0x1290d
// File: /workspace/github_c_makefile_star2_O2/zhou-yuxin[P]redis-aof-no-cow/deps/jemalloc/src/jemalloc.c
// Function: je_arena_init
arena_t *
arena_init(tsdn_t *tsdn, unsigned ind)
{
	arena_t *arena;

	malloc_mutex_lock(tsdn, &arenas_lock);
	arena = arena_init_locked(tsdn, ind);
	malloc_mutex_unlock(tsdn, &arenas_lock);
	return (arena);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movl %esi, %ebx
movq %rdi, %r14
leaq 0x35a42(%rip), %r15     # 0x48548
movq %r15, %rdi
callq 0xb5a0
movq %r14, %rdi
movl %ebx, %esi
callq 0x12b2c
movq %rax, %rbx
movq %r15, %rdi
callq 0xb380
movq %rbx, %rax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/zhou-yuxin[P]redis-aof-no-cow/deps/jemalloc/src/jemalloc.c
// Function: arena_init_locked
static arena_t *
arena_init_locked(tsdn_t *tsdn, unsigned ind)
{
	arena_t *arena;

	assert(ind <= narenas_total_get());
	if (ind > MALLOCX_ARENA_MAX)
		return (NULL);
	if (ind == narenas_total_get())
		narenas_total_inc();

	/*
	 * Another thread may have already initialized arenas[ind] if it's an
	 * auto arena.
	 */
	arena = arena_get(tsdn, ind, false);
	if (arena != NULL) {
		assert(ind < narenas_auto);
		return (arena);
	}

	/* Actually initialize the arena. */
	arena = arena_new(tsdn, ind);
	arena_set(ind, arena);
	return (arena);
}

// Assembly:
cmpl $0xffe, %esi            # imm = 0xFFE
jbe 0x12b37
xorl %eax, %eax
retq
pushq %r14
pushq %rbx
pushq %rax
movl %esi, %ebx
movq %rdi, %r14
xorl %eax, %eax
lock
xaddl %eax, 0x359f6(%rip)     # 0x48540
cmpl %esi, %eax
jne 0x12b59
pushq $0x1
popq %rax
lock
xaddl %eax, 0x359e7(%rip)     # 0x48540
movq %r14, %rdi
movl %ebx, %esi
xorl %edx, %edx
callq 0x12be9
testq %rax, %rax
jne 0x12b84
movq %r14, %rdi
movl %ebx, %esi
callq 0x1e142
movq 0x35a35(%rip), %rcx     # 0x485b0
movl %ebx, %edx
movq %rax, %rsi
xchgq %rsi, (%rcx,%rdx,8)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O2/zhou-yuxin[P]redis-aof-no-cow/deps/jemalloc/src/jemalloc.c
// Function: je_arena_migrate
void
arena_migrate(tsd_t *tsd, unsigned oldind, unsigned newind)
{
	arena_t *oldarena, *newarena;

	oldarena = arena_get(tsd_tsdn(tsd), oldind, false);
	newarena = arena_get(tsd_tsdn(tsd), newind, false);
	arena_nthreads_dec(oldarena, false);
	arena_nthreads_inc(newarena, false);
	tsd_arena_set(tsd, newarena);
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0x35a16(%rip), %rax     # 0x485b0
movl %esi, %ecx
movq (%rax,%rcx,8), %rdi
testq %rdi, %rdi
je 0x12bcd
movl %edx, %ecx
movq (%rax,%rcx,8), %r14
testq %r14, %r14
je 0x12bde
xorl %esi, %esi
callq 0x1e129
movq %r14, %rdi
xorl %esi, %esi
callq 0x1e11d
movq %r14, 0x30(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
xorl %edi, %edi
lock
xaddq %rdi, (%rax,%rcx,8)
movq 0x359d4(%rip), %rax     # 0x485b0
jmp 0x12ba5
xorl %r14d, %r14d
lock
xaddq %r14, (%rax,%rcx,8)
jmp 0x12bb0
// File: /workspace/github_c_makefile_star2_O2/zhou-yuxin[P]redis-aof-no-cow/deps/jemalloc/include/jemalloc/internal/jemalloc_internal.h
// Function: je_arena_get
JEMALLOC_INLINE arena_t *
arena_get(tsdn_t *tsdn, unsigned ind, bool init_if_missing)
{
	arena_t *ret;

	assert(ind <= MALLOCX_ARENA_MAX);

	ret = arenas[ind];
	if (unlikely(ret == NULL)) {
		ret = atomic_read_p((void *)&arenas[ind]);
		if (init_if_missing && unlikely(ret == NULL))
			ret = arena_init(tsdn, ind);
	}
	return (ret);
}

// Assembly:
movq 0x359c0(%rip), %rcx     # 0x485b0
movl %esi, %r8d
movq (%rcx,%r8,8), %rax
testq %rax, %rax
jne 0x12c15
xorl %eax, %eax
lock
xaddq %rax, (%rcx,%r8,8)
testq %rax, %rax
sete %cl
andb %dl, %cl
cmpb $0x1, %cl
je 0x12af5
retq
// File: /workspace/github_c_makefile_star2_O2/zhou-yuxin[P]redis-aof-no-cow/deps/jemalloc/src/jemalloc.c
// Function: arena_unbind
static void
arena_unbind(tsd_t *tsd, unsigned ind, bool internal)
{
	arena_t *arena;

	arena = arena_get(tsd_tsdn(tsd), ind, false);
	arena_nthreads_dec(arena, internal);
	if (internal)
		tsd_iarena_set(tsd, NULL);
	else
		tsd_arena_set(tsd, NULL);
}

// Assembly:
pushq %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0x3563f(%rip), %rax     # 0x485b0
movl %esi, %ecx
movq (%rax,%rcx,8), %rdi
testq %rdi, %rdi
je 0x12f9b
movzbl %dl, %ebp
movl %ebp, %esi
callq 0x1e129
xorb $0x1, %bpl
movzbl %bpl, %eax
andq $0x0, 0x28(%rbx,%rax,8)
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
xorl %edi, %edi
lock
xaddq %rdi, (%rax,%rcx,8)
jmp 0x12f7c
// File: /workspace/github_c_makefile_star2_O2/zhou-yuxin[P]redis-aof-no-cow/deps/jemalloc/src/jemalloc.c
// Function: je_free
JEMALLOC_NOTHROW
je_free(void *ptr)
{

	UTRACE(ptr, 0, 0);
	if (likely(ptr != NULL)) {
		tsd_t *tsd = tsd_fetch();
		witness_assert_lockless(tsd_tsdn(tsd));
		if (likely(!malloc_slow))
			ifree(tsd, ptr, tcache_get(tsd, false), false);
		else
			ifree(tsd, ptr, tcache_get(tsd, false), true);
		witness_assert_lockless(tsd_tsdn(tsd));
	}
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
testq %rdi, %rdi
je 0x153be
movq %rdi, %rbx
movq 0x32c67(%rip), %r15     # 0x47ff0
movq %fs:0x0, %r14
addq %r15, %r14
movl %fs:(%r15), %eax
testl %eax, %eax
je 0x153c4
cmpl $0x2, %eax
je 0x153ce
movzbl 0x32faf(%rip), %ecx     # 0x48358
movq %fs:0x8(%r15), %rdx
movq %r14, %rdi
movq %rbx, %rsi
popq %rbx
popq %r14
popq %r15
jmp 0x14e67
popq %rbx
popq %r14
popq %r15
retq
movl $0x1, %fs:(%r15)
jmp 0x153d6
movl $0x3, %fs:(%r15)
leaq 0x340f7(%rip), %rax     # 0x494d4
movl (%rax), %edi
movq %r14, %rsi
callq 0xb5b0
testl %eax, %eax
je 0x153a2
leaq 0x2198f(%rip), %rdi     # 0x36d81
callq 0x3126c
cmpb $0x1, 0x33122(%rip)     # 0x48520
jne 0x153a2
callq 0xb070
// File: /workspace/github_c_makefile_star2_O2/zhou-yuxin[P]redis-aof-no-cow/deps/jemalloc/src/jemalloc.c
// Function: je_dallocx
JEMALLOC_NOTHROW
je_dallocx(void *ptr, int flags)
{
	tsd_t *tsd;
	tcache_t *tcache;

	assert(ptr != NULL);
	assert(malloc_initialized() || IS_INITIALIZER);

	tsd = tsd_fetch();
	witness_assert_lockless(tsd_tsdn(tsd));
	if (unlikely((flags & MALLOCX_TCACHE_MASK) != 0)) {
		if ((flags & MALLOCX_TCACHE_MASK) == MALLOCX_TCACHE_NONE)
			tcache = NULL;
		else
			tcache = tcaches_get(tsd, MALLOCX_TCACHE_GET(flags));
	} else
		tcache = tcache_get(tsd, false);

	UTRACE(ptr, 0, 0);
	if (likely(!malloc_slow))
		ifree(tsd, ptr, tcache, false);
	else
		ifree(tsd, ptr, tcache, true);
	witness_assert_lockless(tsd_tsdn(tsd));
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movl %esi, %r15d
movq %rdi, %rbx
movq 0x30875(%rip), %r12     # 0x47ff0
movq %fs:0x0, %r14
addq %r12, %r14
movl %fs:(%r12), %eax
testl %eax, %eax
je 0x177ce
cmpl $0x2, %eax
je 0x17812
andl $0xfff00, %r15d         # imm = 0xFFF00
jne 0x177c1
movq %fs:0x8(%r12), %rdx
movzbl 0x30bad(%rip), %ecx     # 0x48358
movq %r14, %rdi
movq %rbx, %rsi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0x14e67
cmpl $0x100, %r15d           # imm = 0x100
jne 0x177d9
xorl %edx, %edx
jmp 0x177a4
movl $0x1, %fs:(%r12)
jmp 0x1781b
shrl $0x8, %r15d
addl $-0x2, %r15d
leaq 0x31ca0(%rip), %rax     # 0x49488
movq (%rax), %r12
movq (%r12,%r15,8), %rdx
testq %rdx, %rdx
jne 0x177a4
movq %r14, %rdi
xorl %esi, %esi
callq 0x19a6b
movq %r14, %rdi
movq %rax, %rsi
callq 0x307e8
movq %rax, %rdx
movq %rax, (%r12,%r15,8)
jmp 0x177a4
movl $0x3, %fs:(%r12)
leaq 0x31cb2(%rip), %rax     # 0x494d4
movl (%rax), %edi
movq %r14, %rsi
callq 0xb5b0
testl %eax, %eax
je 0x17795
leaq 0x1f546(%rip), %rdi     # 0x36d81
callq 0x3126c
cmpb $0x1, 0x30cd9(%rip)     # 0x48520
jne 0x17795
callq 0xb070
// File: /workspace/github_c_makefile_star2_O2/zhou-yuxin[P]redis-aof-no-cow/deps/jemalloc/src/jemalloc.c
// Function: je_mallctl
JEMALLOC_NOTHROW
je_mallctl(const char *name, void *oldp, size_t *oldlenp, void *newp,
    size_t newlen)
{
	int ret;
	tsd_t *tsd;

	if (unlikely(malloc_init()))
		return (EAGAIN);

	tsd = tsd_fetch();
	witness_assert_lockless(tsd_tsdn(tsd));
	ret = ctl_byname(tsd, name, oldp, oldlenp, newp, newlen);
	witness_assert_lockless(tsd_tsdn(tsd));
	return (ret);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %r8, %rbx
movq %rcx, %r14
movq %rdx, %r15
movq %rsi, %r12
movq %rdi, %r13
cmpl $0x0, 0x30131(%rip)     # 0x4835c
jne 0x1827f
movq %fs:0x0, %rbp
addq 0x2fdb3(%rip), %rbp     # 0x47ff0
cmpq $0x0, 0x302e3(%rip)     # 0x48528
jne 0x1829a
movq 0x2fda2(%rip), %rax     # 0x47ff0
movl %fs:(%rax), %ecx
testl %ecx, %ecx
je 0x182bf
cmpl $0x2, %ecx
je 0x182c8
movq %rbp, %rdi
movq %r13, %rsi
movq %r12, %rdx
movq %r15, %rcx
movq %r14, %r8
movq %rbx, %r9
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x224b4
callq 0x19ad3
testb %al, %al
je 0x1822d
pushq $0xb
popq %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x2fd4f(%rip), %rcx     # 0x47ff0
movl %fs:(%rcx), %eax
testl %eax, %eax
je 0x18306
cmpl $0x2, %eax
je 0x1830f
cmpq $0x0, %fs:0x50(%rcx)
jne 0x18247
movq %rbp, %rdi
callq 0x2ac50
jmp 0x18247
movl $0x1, %fs:(%rax)
jmp 0x182cf
movl $0x3, %fs:(%rax)
leaq 0x311fe(%rip), %rax     # 0x494d4
movl (%rax), %edi
movq %rbp, %rsi
callq 0xb5b0
testl %eax, %eax
je 0x1825a
leaq 0x1ea92(%rip), %rdi     # 0x36d81
callq 0x3126c
cmpb $0x1, 0x30225(%rip)     # 0x48520
jne 0x1825a
callq 0xb070
movl $0x1, %fs:(%rcx)
jmp 0x18316
movl $0x3, %fs:(%rcx)
leaq 0x311b7(%rip), %rax     # 0x494d4
movl (%rax), %edi
movq %rbp, %rsi
callq 0xb5b0
movq 0x2fcc2(%rip), %rcx     # 0x47ff0
testl %eax, %eax
je 0x182ad
leaq 0x1ea44(%rip), %rdi     # 0x36d81
callq 0x3126c
movq 0x2fca7(%rip), %rcx     # 0x47ff0
cmpb $0x1, 0x301d0(%rip)     # 0x48520
jne 0x182ad
jmp 0x18301
// File: /workspace/github_c_makefile_star2_O2/zhou-yuxin[P]redis-aof-no-cow/deps/jemalloc/src/jemalloc.c
// Function: je_mallctlnametomib
JEMALLOC_NOTHROW
je_mallctlnametomib(const char *name, size_t *mibp, size_t *miblenp)
{
	int ret;
	tsdn_t *tsdn;

	if (unlikely(malloc_init()))
		return (EAGAIN);

	tsdn = tsdn_fetch();
	witness_assert_lockless(tsdn);
	ret = ctl_nametomib(tsdn, name, mibp, miblenp);
	witness_assert_lockless(tsdn);
	return (ret);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
cmpl $0x0, 0x2ffeb(%rip)     # 0x4835c
jne 0x183ce
cmpq $0x0, 0x301ad(%rip)     # 0x48528
jne 0x183e4
leaq 0x3112c(%rip), %rax     # 0x494b0
cmpb $0x1, (%rax)
jne 0x183b1
movq 0x2fc60(%rip), %rax     # 0x47ff0
movq %fs:0x0, %r12
addq %rax, %r12
movl %fs:(%rax), %ecx
testl %ecx, %ecx
je 0x1841e
cmpl $0x2, %ecx
jne 0x183b4
movl $0x3, %fs:(%rax)
jmp 0x18425
xorl %r12d, %r12d
movq %r12, %rdi
movq %r15, %rsi
movq %r14, %rdx
movq %rbx, %rcx
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
jmp 0x22834
callq 0x19ad3
testb %al, %al
je 0x18373
pushq $0xb
popq %rax
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
movq 0x2fc05(%rip), %r13     # 0x47ff0
movq %fs:0x0, %r12
addq %r13, %r12
movl %fs:(%r13), %eax
testl %eax, %eax
je 0x1845c
cmpl $0x2, %eax
je 0x18467
cmpq $0x0, %fs:0x50(%r13)
jne 0x1837d
movq %r12, %rdi
callq 0x2ac50
jmp 0x1837d
movl $0x1, %fs:(%rax)
leaq 0x310a8(%rip), %rax     # 0x494d4
movl (%rax), %edi
movq %r12, %rsi
callq 0xb5b0
testl %eax, %eax
je 0x183b4
leaq 0x1e93c(%rip), %rdi     # 0x36d81
callq 0x3126c
cmpb $0x1, 0x300cf(%rip)     # 0x48520
jne 0x183b4
callq 0xb070
movl $0x1, %fs:(%r13)
jmp 0x18470
movl $0x3, %fs:(%r13)
leaq 0x3105d(%rip), %rax     # 0x494d4
movl (%rax), %edi
movq %r12, %rsi
callq 0xb5b0
testl %eax, %eax
je 0x18405
leaq 0x1e8f5(%rip), %rdi     # 0x36d81
callq 0x3126c
cmpb $0x1, 0x30088(%rip)     # 0x48520
jne 0x18405
jmp 0x18457
// File: /workspace/github_c_makefile_star2_O2/zhou-yuxin[P]redis-aof-no-cow/deps/jemalloc/src/jemalloc.c
// Function: je_mallctlbymib
JEMALLOC_NOTHROW
je_mallctlbymib(const size_t *mib, size_t miblen, void *oldp, size_t *oldlenp,
  void *newp, size_t newlen)
{
	int ret;
	tsd_t *tsd;

	if (unlikely(malloc_init()))
		return (EAGAIN);

	tsd = tsd_fetch();
	witness_assert_lockless(tsd_tsdn(tsd));
	ret = ctl_bymib(tsd, mib, miblen, oldp, oldlenp, newp, newlen);
	witness_assert_lockless(tsd_tsdn(tsd));
	return (ret);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %r9, %r12
movq %r8, %r9
movq %rcx, %r14
movq %rdx, %r15
movq %rsi, %r13
movq %rdi, %rbp
cmpl $0x0, 0x2fe95(%rip)     # 0x4835c
jne 0x1851d
movq %fs:0x0, %rbx
addq 0x2fb17(%rip), %rbx     # 0x47ff0
cmpq $0x0, 0x30047(%rip)     # 0x48528
jne 0x18531
movq 0x2fb06(%rip), %rax     # 0x47ff0
movl %fs:(%rax), %ecx
testl %ecx, %ecx
je 0x18560
cmpl $0x2, %ecx
je 0x18569
movq %r12, (%rsp)
movq %rbx, %rdi
movq %rbp, %rsi
movq %r13, %rdx
movq %r15, %rcx
movq %r14, %r8
callq 0x2288a
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %r9, %rbx
callq 0x19ad3
movq %rbx, %r9
testb %al, %al
je 0x184c9
pushq $0xb
popq %rax
jmp 0x1850e
movq 0x2fab8(%rip), %rcx     # 0x47ff0
movl %fs:(%rcx), %eax
testl %eax, %eax
je 0x185b6
cmpl $0x2, %eax
je 0x185bf
cmpq $0x0, %fs:0x50(%rcx)
jne 0x184e3
movq %rbx, %rdi
movq %r9, 0x10(%rsp)
callq 0x2ac50
movq 0x10(%rsp), %r9
jmp 0x184e3
movl $0x1, %fs:(%rax)
jmp 0x18570
movl $0x3, %fs:(%rax)
leaq 0x30f5d(%rip), %rax     # 0x494d4
movl (%rax), %edi
movq %rbx, %rsi
movq %r9, 0x10(%rsp)
callq 0xb5b0
movq 0x10(%rsp), %r9
testl %eax, %eax
je 0x184f6
leaq 0x1e7e7(%rip), %rdi     # 0x36d81
callq 0x3126c
movq 0x10(%rsp), %r9
cmpb $0x1, 0x2ff75(%rip)     # 0x48520
jne 0x184f6
callq 0xb070
movl $0x1, %fs:(%rcx)
jmp 0x185c6
movl $0x3, %fs:(%rcx)
leaq 0x30f07(%rip), %rax     # 0x494d4
movl (%rax), %edi
movq %rbx, %rsi
movq %r9, 0x10(%rsp)
callq 0xb5b0
movq 0x2fa0d(%rip), %rcx     # 0x47ff0
movq 0x10(%rsp), %r9
testl %eax, %eax
je 0x18544
leaq 0x1e78a(%rip), %rdi     # 0x36d81
callq 0x3126c
movq 0x2f9ed(%rip), %rcx     # 0x47ff0
movq 0x10(%rsp), %r9
cmpb $0x1, 0x2ff11(%rip)     # 0x48520
jne 0x18544
jmp 0x185b1
// File: /workspace/github_c_makefile_star2_O2/zhou-yuxin[P]redis-aof-no-cow/deps/jemalloc/src/jemalloc.c
// Function: je_malloc_stats_print
JEMALLOC_NOTHROW
je_malloc_stats_print(void (*write_cb)(void *, const char *), void *cbopaque,
    const char *opts)
{
	tsdn_t *tsdn;

	tsdn = tsdn_fetch();
	witness_assert_lockless(tsdn);
	stats_print(write_cb, cbopaque, opts);
	witness_assert_lockless(tsdn);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
leaq 0x30e84(%rip), %rax     # 0x494b0
cmpb $0x1, (%rax)
jne 0x18650
movq 0x2f9b8(%rip), %rax     # 0x47ff0
movq %fs:0x0, %rsi
addq %rax, %rsi
movl %fs:(%rax), %ecx
testl %ecx, %ecx
je 0x18663
cmpl $0x2, %ecx
je 0x1866c
movq %r15, %rdi
movq %r14, %rsi
movq %rbx, %rdx
popq %rbx
popq %r14
popq %r15
jmp 0x2b714
movl $0x1, %fs:(%rax)
jmp 0x18673
movl $0x3, %fs:(%rax)
leaq 0x30e5a(%rip), %rax     # 0x494d4
movl (%rax), %edi
callq 0xb5b0
testl %eax, %eax
je 0x18650
leaq 0x1e6f5(%rip), %rdi     # 0x36d81
callq 0x3126c
cmpb $0x1, 0x2fe88(%rip)     # 0x48520
jne 0x18650
callq 0xb070
// File: /workspace/github_c_makefile_star2_O2/zhou-yuxin[P]redis-aof-no-cow/deps/jemalloc/src/jemalloc.c
// Function: je_malloc_usable_size
JEMALLOC_NOTHROW
je_malloc_usable_size(JEMALLOC_USABLE_SIZE_CONST void *ptr)
{
	size_t ret;
	tsdn_t *tsdn;

	assert(malloc_initialized() || IS_INITIALIZER);
	malloc_thread_init();

	tsdn = tsdn_fetch();
	witness_assert_lockless(tsdn);

	if (config_ivsalloc)
		ret = ivsalloc(tsdn, ptr, config_prof);
	else
		ret = (ptr == NULL) ? 0 : isalloc(tsdn, ptr, config_prof);

	witness_assert_lockless(tsdn);
	return (ret);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %rbx
cmpq $0x0, 0x2fe79(%rip)     # 0x48528
jne 0x1874a
leaq 0x30df4(%rip), %rax     # 0x494b0
cmpb $0x1, (%rax)
jne 0x186f0
movq 0x2f928(%rip), %rax     # 0x47ff0
movq %fs:0x0, %r14
addq %rax, %r14
movl %fs:(%rax), %ecx
testl %ecx, %ecx
je 0x187ac
cmpl $0x2, %ecx
jne 0x186f3
movl $0x3, %fs:(%rax)
jmp 0x187b3
xorl %r14d, %r14d
testq %rbx, %rbx
je 0x18742
leaq 0x309d1(%rip), %rax     # 0x490d0
movq (%rax), %rax
notq %rax
andq %rbx, %rax
cmpq %rbx, %rax
je 0x1878b
subq %rax, %rbx
shrq $0xc, %rbx
leaq 0x308a5(%rip), %rcx     # 0x48fc0
subq (%rcx), %rbx
movq 0x78(%rax,%rbx,8), %rax
movl %eax, %ecx
shrl $0x5, %ecx
movl $0xff, %edx
andl %edx, %ecx
cmpl %edx, %ecx
je 0x1879b
movl %ecx, %eax
leaq 0x1db04(%rip), %rcx     # 0x36240
movq (%rcx,%rax,8), %rax
jmp 0x18744
xorl %eax, %eax
popq %rbx
popq %r14
popq %r15
retq
movq 0x2f89f(%rip), %r15     # 0x47ff0
movq %fs:0x0, %r14
addq %r15, %r14
movl %fs:(%r15), %eax
testl %eax, %eax
je 0x187ea
cmpl $0x2, %eax
je 0x187f4
cmpq $0x0, %fs:0x50(%r15)
jne 0x186b5
movq %r14, %rdi
callq 0x2ac50
jmp 0x186b5
movq %r14, %rdi
movq %rbx, %rsi
popq %rbx
popq %r14
popq %r15
jmp 0x292e1
shrq %rax
andq $-0x1000, %rax          # imm = 0xF000
addq $-0x1000, %rax          # imm = 0xF000
jmp 0x18744
movl $0x1, %fs:(%rax)
leaq 0x30d1a(%rip), %rax     # 0x494d4
movl (%rax), %edi
movq %r14, %rsi
callq 0xb5b0
testl %eax, %eax
je 0x186f3
leaq 0x1e5ae(%rip), %rdi     # 0x36d81
callq 0x3126c
cmpb $0x1, 0x2fd41(%rip)     # 0x48520
jne 0x186f3
callq 0xb070
movl $0x1, %fs:(%r15)
jmp 0x187fc
movl $0x3, %fs:(%r15)
leaq 0x30cd1(%rip), %rax     # 0x494d4
movl (%rax), %edi
movq %r14, %rsi
callq 0xb5b0
testl %eax, %eax
je 0x18772
leaq 0x1e565(%rip), %rdi     # 0x36d81
callq 0x3126c
cmpb $0x1, 0x2fcf8(%rip)     # 0x48520
jne 0x18772
jmp 0x187e5
// File: /workspace/github_c_makefile_star2_O2/zhou-yuxin[P]redis-aof-no-cow/deps/jemalloc/src/jemalloc.c
// Function: je_jemalloc_prefork
void
jemalloc_prefork(void)
#else
JEMALLOC_EXPORT void
_malloc_prefork(void)
#endif
{
	tsd_t *tsd;
	unsigned i, j, narenas;
	arena_t *arena;

#ifdef JEMALLOC_MUTEX_INIT_CB
	if (!malloc_initialized())
		return;
#endif
	assert(malloc_initialized());

	tsd = tsd_fetch();

	narenas = narenas_total_get();

	witness_prefork(tsd);
	/* Acquire all mutexes in a safe order. */
	ctl_prefork(tsd_tsdn(tsd));
	malloc_mutex_prefork(tsd_tsdn(tsd), &arenas_lock);
	prof_prefork0(tsd_tsdn(tsd));
	for (i = 0; i < 3; i++) {
		for (j = 0; j < narenas; j++) {
			if ((arena = arena_get(tsd_tsdn(tsd), j, false)) !=
			    NULL) {
				switch (i) {
				case 0:
					arena_prefork0(tsd_tsdn(tsd), arena);
					break;
				case 1:
					arena_prefork1(tsd_tsdn(tsd), arena);
					break;
				case 2:
					arena_prefork2(tsd_tsdn(tsd), arena);
					break;
				default: not_reached();
				}
			}
		}
	}
	base_prefork(tsd_tsdn(tsd));
	for (i = 0; i < narenas; i++) {
		if ((arena = arena_get(tsd_tsdn(tsd), i, false)) != NULL)
			arena_prefork3(tsd_tsdn(tsd), arena);
	}
	prof_prefork1(tsd_tsdn(tsd));
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq 0x2f70c(%rip), %rax     # 0x47ff0
movq %fs:0x0, %rbx
addq %rax, %rbx
movl %fs:(%rax), %ecx
testl %ecx, %ecx
je 0x189f4
cmpl $0x2, %ecx
je 0x189fd
xorl %r15d, %r15d
xorl %ebp, %ebp
lock
xaddl %ebp, 0x2fc2f(%rip)     # 0x48540
movq %rbx, %rdi
callq 0x3243e
movq %rbx, %rdi
callq 0x22983
leaq 0x2fc20(%rip), %rsi     # 0x48548
movq %rbx, %rdi
callq 0x2946c
movq %rbx, %rdi
callq 0x2a8ca
movl %ebp, %r14d
leaq (,%r14,8), %r12
cmpl $0x3, %r15d
je 0x1899d
xorl %r13d, %r13d
cmpq %r13, %r12
je 0x18998
movq 0x2fc58(%rip), %rax     # 0x485b0
movq (%rax,%r13), %rsi
testq %rsi, %rsi
je 0x18989
movq %rbx, %rdi
cmpl $0x2, %r15d
je 0x18977
cmpl $0x1, %r15d
jne 0x1897e
callq 0x1eb5f
jmp 0x18983
callq 0x1eb6b
jmp 0x18983
callq 0x1eb56
addq $0x8, %r13
jmp 0x1894c
xorl %esi, %esi
lock
xaddq %rsi, (%rax,%r13)
testq %rsi, %rsi
jne 0x18961
jmp 0x18983
incl %r15d
jmp 0x18943
movq %rbx, %rdi
callq 0x21058
shlq $0x3, %r14
xorl %r15d, %r15d
cmpq %r15, %r14
je 0x189de
movq 0x2fbf8(%rip), %rax     # 0x485b0
movq (%rax,%r15), %rsi
testq %rsi, %rsi
je 0x189cf
movq %rbx, %rdi
callq 0x1eb77
addq $0x8, %r15
jmp 0x189ac
xorl %esi, %esi
lock
xaddq %rsi, (%rax,%r15)
testq %rsi, %rsi
jne 0x189c1
jmp 0x189c9
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x2a946
movl $0x1, %fs:(%rax)
jmp 0x18a04
movl $0x3, %fs:(%rax)
leaq 0x30ac9(%rip), %rax     # 0x494d4
movl (%rax), %edi
movq %rbx, %rsi
callq 0xb5b0
testl %eax, %eax
je 0x18904
leaq 0x1e35d(%rip), %rdi     # 0x36d81
callq 0x3126c
cmpb $0x1, 0x2faf0(%rip)     # 0x48520
jne 0x18904
callq 0xb070
// File: /workspace/github_c_makefile_star2_O2/zhou-yuxin[P]redis-aof-no-cow/deps/jemalloc/src/jemalloc.c
// Function: je_jemalloc_postfork_parent
void
jemalloc_postfork_parent(void)
#else
JEMALLOC_EXPORT void
_malloc_postfork(void)
#endif
{
	tsd_t *tsd;
	unsigned i, narenas;

#ifdef JEMALLOC_MUTEX_INIT_CB
	if (!malloc_initialized())
		return;
#endif
	assert(malloc_initialized());

	tsd = tsd_fetch();

	witness_postfork_parent(tsd);
	/* Release all mutexes, now that fork() has completed. */
	base_postfork_parent(tsd_tsdn(tsd));
	for (i = 0, narenas = narenas_total_get(); i < narenas; i++) {
		arena_t *arena;

		if ((arena = arena_get(tsd_tsdn(tsd), i, false)) != NULL)
			arena_postfork_parent(tsd_tsdn(tsd), arena);
	}
	prof_postfork_parent(tsd_tsdn(tsd));
	malloc_mutex_postfork_parent(tsd_tsdn(tsd), &arenas_lock);
	ctl_postfork_parent(tsd_tsdn(tsd));
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq 0x2f5a9(%rip), %rax     # 0x47ff0
movq %fs:0x0, %rbx
addq %rax, %rbx
movl %fs:(%rax), %ecx
testl %ecx, %ecx
je 0x18ae1
cmpl $0x2, %ecx
je 0x18aea
movq %rbx, %rdi
callq 0x32443
movq %rbx, %rdi
callq 0x21064
xorl %r14d, %r14d
xorl %eax, %eax
lock
xaddl %eax, 0x2fabc(%rip)     # 0x48540
movl %eax, %r15d
shlq $0x3, %r15
cmpq %r14, %r15
je 0x18abd
movq 0x2fb19(%rip), %rax     # 0x485b0
movq (%rax,%r14), %rsi
testq %rsi, %rsi
je 0x18aae
movq %rbx, %rdi
callq 0x1ebca
addq $0x8, %r14
jmp 0x18a8b
xorl %esi, %esi
lock
xaddq %rsi, (%rax,%r14)
testq %rsi, %rsi
jne 0x18aa0
jmp 0x18aa8
movq %rbx, %rdi
callq 0x2a99d
leaq 0x2fa7c(%rip), %rsi     # 0x48548
movq %rbx, %rdi
callq 0x29474
movq %rbx, %rdi
popq %rbx
popq %r14
popq %r15
jmp 0x2298f
movl $0x1, %fs:(%rax)
jmp 0x18af1
movl $0x3, %fs:(%rax)
leaq 0x309dc(%rip), %rax     # 0x494d4
movl (%rax), %edi
movq %rbx, %rsi
callq 0xb5b0
testl %eax, %eax
je 0x18a67
leaq 0x1e270(%rip), %rdi     # 0x36d81
callq 0x3126c
cmpb $0x1, 0x2fa03(%rip)     # 0x48520
jne 0x18a67
callq 0xb070