LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O2/Tarsnap[P]spiped/liball/../lib/proto/proto_conn.c
// Function: proto_conn_drop
int
proto_conn_drop(void * conn_cookie, int reason)
{
	struct conn_state * C = conn_cookie;
	int rc;

	/* Close the incoming connection. */
	if (close(C->s))
		warnp("close");

	/* Close the outgoing connection if it is open. */
	if ((C->t != -1) && close(C->t))
		warnp("close");

	/* Stop connecting if a connection is in progress. */
	if (C->connect_cookie != NULL)
		network_connect_cancel(C->connect_cookie);

	/* Free the target addresses if we haven't already done so. */
	sock_addr_freelist(C->sas);

	/* Stop handshaking if a handshake is in progress. */
	if (C->handshake_cookie != NULL)
		proto_handshake_cancel(C->handshake_cookie);

	/* Kill timeouts if they are pending. */
	if (C->connect_timeout_cookie != NULL)
		events_timer_cancel(C->connect_timeout_cookie);
	if (C->handshake_timeout_cookie != NULL)
		events_timer_cancel(C->handshake_timeout_cookie);

	/* Free protocol keys. */
	proto_crypt_free(C->k_f);
	proto_crypt_free(C->k_r);

	/* Shut down pipes. */
	if (C->pipe_f != NULL)
		proto_pipe_cancel(C->pipe_f);
	if (C->pipe_r != NULL)
		proto_pipe_cancel(C->pipe_r);

	/* Notify the upstream that we've dropped a connection. */
	rc = (C->callback_dead)(C->cookie, reason);

	/* Free the connection cookie. */
	free(C);

	/* Return success/fail status. */
	return (rc);
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movl %esi, %ebp
movq %rdi, %rbx
movl 0x38(%rdi), %edi
callq 0x30d0
testl %eax, %eax
je 0x8ed8
callq 0x3480
cmpl $0x0, (%rax)
je 0x8eca
movq %rax, %r14
leaq 0x7870(%rip), %rdi      # 0x1072d
xorl %eax, %eax
callq 0x8391
andl $0x0, (%r14)
jmp 0x8ed8
leaq 0x785c(%rip), %rdi      # 0x1072d
xorl %eax, %eax
callq 0x8520
movl 0x3c(%rbx), %edi
cmpl $-0x1, %edi
je 0x8f18
callq 0x30d0
testl %eax, %eax
je 0x8f18
callq 0x3480
cmpl $0x0, (%rax)
je 0x8f0a
movq %rax, %r14
leaq 0x7830(%rip), %rdi      # 0x1072d
xorl %eax, %eax
callq 0x8391
andl $0x0, (%r14)
jmp 0x8f18
leaq 0x781c(%rip), %rdi      # 0x1072d
xorl %eax, %eax
callq 0x8520
movq 0x40(%rbx), %rdi
testq %rdi, %rdi
je 0x8f26
callq 0xe763
movq 0x10(%rbx), %rdi
callq 0x7a9b
movq 0x50(%rbx), %rdi
testq %rdi, %rdi
je 0x8f3d
callq 0x9bff
movq 0x48(%rbx), %rdi
testq %rdi, %rdi
je 0x8f4b
callq 0x5d83
movq 0x58(%rbx), %rdi
testq %rdi, %rdi
je 0x8f59
callq 0x5d83
movq 0x60(%rbx), %rdi
callq 0x98e0
movq 0x68(%rbx), %rdi
callq 0x98e0
movq 0x70(%rbx), %rdi
testq %rdi, %rdi
je 0x8f79
callq 0xa0f6
movq 0x78(%rbx), %rdi
testq %rdi, %rdi
je 0x8f87
callq 0xa0f6
movq 0x8(%rbx), %rdi
movl %ebp, %esi
callq *(%rbx)
movl %eax, %ebp
movq %rbx, %rdi
callq 0x32b0
movl %ebp, %eax
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/Tarsnap[P]spiped/liball/../lib/proto/proto_conn.c
// Function: proto_conn_create
void *
proto_conn_create(int s, struct sock_addr ** sas,
    const struct sock_addr * sa_b, int decr, int nopfs,
    int requirepfs, int nokeepalive, const struct proto_secret * K,
    double timeo, int (* callback_dead)(void *, int), void * cookie)
{
	struct conn_state * C;

	/* Bake a cookie for this connection. */
	if ((C = malloc(sizeof(struct conn_state))) == NULL)
		goto err0;
	C->callback_dead = callback_dead;
	C->cookie = cookie;
	C->sas = sas;
	C->decr = decr;
	C->nopfs = nopfs;
	C->requirepfs = requirepfs;
	C->nokeepalive = nokeepalive;
	C->K = K;
	C->timeo = timeo;
	C->s = s;
	C->t = -1;
	C->connect_cookie = NULL;
	C->connect_timeout_cookie = NULL;
	C->handshake_cookie = NULL;
	C->handshake_timeout_cookie = NULL;
	C->k_f = C->k_r = NULL;
	C->pipe_f = C->pipe_r = NULL;
	C->stat_f = C->stat_r = 1;

	/* Start the connect timer. */
	if ((C->connect_timeout_cookie = events_timer_register_double(
	    callback_connect_timeout, C, C->timeo)) == NULL)
		goto err1;

	/* Connect to target. */
	if ((C->connect_cookie =
	    network_connect_bind(C->sas, sa_b, callback_connect_done, C))
	    == NULL)
		goto err2;

	/* If we're decrypting, start the handshake. */
	if (C->decr) {
		if (starthandshake(C, C->s, C->decr))
			goto err3;
	}

	/* Success! */
	return (C);

err3:
	network_connect_cancel(C->connect_cookie);
err2:
	events_timer_cancel(C->connect_timeout_cookie);
err1:
	free(C);
err0:
	/* Failure! */
	return (NULL);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movsd %xmm0, 0x10(%rsp)
movl %r9d, %ebp
movl %r8d, %r12d
movl %ecx, %r13d
movq %rdx, 0x8(%rsp)
movq %rsi, %r14
movl %edi, %r15d
movl $0x88, %edi
callq 0x31a0
testq %rax, %rax
je 0x90b4
movq %rax, %rbx
movq 0x68(%rsp), %rax
movq 0x60(%rsp), %rcx
movq 0x58(%rsp), %rdx
movl 0x50(%rsp), %esi
movq %rcx, (%rbx)
movq %rax, 0x8(%rbx)
movq %r14, 0x10(%rbx)
movl %r13d, 0x18(%rbx)
movl %r12d, 0x1c(%rbx)
movl %ebp, 0x20(%rbx)
movl %esi, 0x24(%rbx)
movq %rdx, 0x28(%rbx)
movsd 0x10(%rsp), %xmm0
movsd %xmm0, 0x30(%rbx)
movl %r15d, 0x38(%rbx)
orl $-0x1, 0x3c(%rbx)
xorps %xmm1, %xmm1
movups %xmm1, 0x40(%rbx)
movups %xmm1, 0x50(%rbx)
movups %xmm1, 0x60(%rbx)
movups %xmm1, 0x70(%rbx)
movabsq $0x100000001, %rax      # imm = 0x100000001
movq %rax, 0x80(%rbx)
leaq 0x7c(%rip), %rdi        # 0x90c8
movq %rbx, %rsi
callq 0x5d4e
movq %rax, 0x48(%rbx)
testq %rax, %rax
je 0x90ac
movq 0x10(%rbx), %rdi
leaq 0x6d(%rip), %rdx        # 0x90d5
movq 0x8(%rsp), %rsi
movq %rbx, %rcx
callq 0xe746
movq %rax, 0x40(%rbx)
testq %rax, %rax
je 0x90a3
movl 0x18(%rbx), %edx
testl %edx, %edx
je 0x90b6
movl 0x38(%rbx), %esi
movq %rbx, %rdi
callq 0x916d
testl %eax, %eax
je 0x90b6
movq %rbx, %rax
addq $0x40, %rax
movq (%rax), %rdi
callq 0xe763
movq 0x48(%rbx), %rdi
callq 0x5d83
movq %rbx, %rdi
callq 0x32b0
xorl %ebx, %ebx
movq %rbx, %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/Tarsnap[P]spiped/liball/../lib/proto/proto_conn.c
// Function: callback_connect_done
static int
callback_connect_done(void * cookie, int t)
{
	struct conn_state * C = cookie;

	/* This connection attempt is no longer pending. */
	C->connect_cookie = NULL;

	/* Don't need the target address any more. */
	sock_addr_freelist(C->sas);
	C->sas = NULL;

	/* We beat the clock. */
	events_timer_cancel(C->connect_timeout_cookie);
	C->connect_timeout_cookie = NULL;

	/* Did we manage to connect? */
	if ((C->t = t) == -1)
		return (proto_conn_drop(C, PROTO_CONN_CONNECT_FAILED));

	/* If we're encrypting, start the handshake. */
	if (!C->decr) {
		if (starthandshake(C, C->t, C->decr))
			goto err1;
	}

	/* If the handshake already finished, start shuttling data. */
	if ((C->t != -1) && (C->k_f != NULL) && (C->k_r != NULL)) {
		if (launchpipes(C))
			goto err1;
	}

	/* Success! */
	return (0);

err1:
	proto_conn_drop(C, PROTO_CONN_ERROR);

	/* Failure! */
	return (-1);
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movl %esi, %r14d
movq %rdi, %rbx
andq $0x0, 0x40(%rdi)
movq 0x10(%rdi), %rdi
callq 0x7a9b
andq $0x0, 0x10(%rbx)
movq 0x48(%rbx), %rdi
callq 0x5d83
andq $0x0, 0x48(%rbx)
movl %r14d, 0x3c(%rbx)
cmpl $-0x1, %r14d
je 0x912e
cmpl $0x0, 0x18(%rbx)
je 0x913d
xorl %ebp, %ebp
cmpq $0x0, 0x60(%rbx)
je 0x915e
cmpq $0x0, 0x68(%rbx)
je 0x915e
movq %rbx, %rdi
callq 0x92b2
testl %eax, %eax
jne 0x9150
jmp 0x915e
pushq $0x2
popq %rsi
movq %rbx, %rdi
popq %rbx
popq %r14
popq %rbp
jmp 0x8e94
xorl %ebp, %ebp
movq %rbx, %rdi
movl %r14d, %esi
xorl %edx, %edx
callq 0x916d
testl %eax, %eax
je 0x9165
pushq $0x4
popq %rsi
movq %rbx, %rdi
callq 0x8e94
pushq $-0x1
popq %rbp
movl %ebp, %eax
popq %rbx
popq %r14
popq %rbp
retq
cmpl $-0x1, 0x3c(%rbx)
jne 0x9110
jmp 0x915e
// File: /workspace/github_c_makefile_star2_O2/Tarsnap[P]spiped/liball/../lib/proto/proto_conn.c
// Function: starthandshake
static int
starthandshake(struct conn_state * C, int s, int decr)
{

	/* Start the handshake timer. */
	if ((C->handshake_timeout_cookie = events_timer_register_double(
	    callback_handshake_timeout, C, C->timeo)) == NULL)
		goto err0;

	/* Start the handshake. */
	if ((C->handshake_cookie = proto_handshake(s, decr, C->nopfs,
	    C->requirepfs, C->K, callback_handshake_done, C)) == NULL)
		goto err1;

	/* Success! */
	return (0);

err1:
	events_timer_cancel(C->handshake_timeout_cookie);
	C->handshake_timeout_cookie = NULL;
err0:
	/* Failure! */
	return (-1);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl %edx, %ebp
movl %esi, %r14d
movq %rdi, %rbx
movsd 0x30(%rdi), %xmm0
leaq 0x5e(%rip), %rdi        # 0x91e6
movq %rbx, %rsi
callq 0x5d4e
movq %rax, 0x58(%rbx)
pushq $-0x1
popq %r15
testq %rax, %rax
je 0x91d8
movl 0x1c(%rbx), %edx
movl 0x20(%rbx), %ecx
movq 0x28(%rbx), %r8
movq %rbx, (%rsp)
leaq 0x41(%rip), %r9         # 0x91f3
movl %r14d, %edi
movl %ebp, %esi
callq 0x9ae4
movq %rax, %rcx
movq %rax, 0x50(%rbx)
xorl %eax, %eax
testq %rcx, %rcx
jne 0x91db
movq 0x58(%rbx), %rdi
callq 0x5d83
andq $0x0, 0x58(%rbx)
movl %r15d, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/Tarsnap[P]spiped/liball/../lib/proto/proto_conn.c
// Function: callback_handshake_done
static int
callback_handshake_done(void * cookie, struct proto_keys * f,
    struct proto_keys * r)
{
	struct conn_state * C = cookie;

	/* The handshake is no longer in progress. */
	C->handshake_cookie = NULL;

	/* We beat the clock. */
	events_timer_cancel(C->handshake_timeout_cookie);
	C->handshake_timeout_cookie = NULL;

	/* If the protocol handshake failed, drop the connection. */
	if ((f == NULL) && (r == NULL))
		return (proto_conn_drop(C, PROTO_CONN_HANDSHAKE_FAILED));

	/* We should have two keys. */
	assert(f != NULL);
	assert(r != NULL);

	/* Record the keys so we can free them later. */
	C->k_f = f;
	C->k_r = r;

	/* If we already connected to the target, start shuttling data. */
	if ((C->t != -1) && (C->k_f != NULL) && (C->k_r != NULL)) {
		if (launchpipes(C))
			goto err1;
	}

	/* Success! */
	return (0);

err1:
	proto_conn_drop(C, PROTO_CONN_ERROR);

	/* Failure! */
	return (-1);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %rbx
andq $0x0, 0x50(%rdi)
movq 0x58(%rdi), %rdi
callq 0x5d83
andq $0x0, 0x58(%rbx)
movq %r15, %rax
orq %r14, %rax
jne 0x9233
pushq $0x3
popq %rsi
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x8e94
testq %r15, %r15
je 0x9274
testq %r14, %r14
je 0x9293
movq %r15, 0x60(%rbx)
movq %r14, 0x68(%rbx)
xorl %ebp, %ebp
cmpl $-0x1, 0x3c(%rbx)
je 0x9267
movq %rbx, %rdi
callq 0x92b2
testl %eax, %eax
je 0x9267
pushq $0x4
popq %rsi
movq %rbx, %rdi
callq 0x8e94
pushq $-0x1
popq %rbp
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
leaq 0x7e2d(%rip), %rdi      # 0x110a8
leaq 0x7e30(%rip), %rsi      # 0x110b2
leaq 0x7e43(%rip), %rcx      # 0x110cc
movl $0x163, %edx            # imm = 0x163
callq 0x3150
leaq 0x7c01(%rip), %rdi      # 0x10e9b
leaq 0x7e11(%rip), %rsi      # 0x110b2
leaq 0x7e24(%rip), %rcx      # 0x110cc
movl $0x164, %edx            # imm = 0x164
callq 0x3150
// File: /workspace/github_c_makefile_star2_O2/Tarsnap[P]spiped/liball/../lib/proto/proto_handshake.c
// Function: proto_handshake
void *
proto_handshake(int s, int decr, int nopfs, int requirepfs,
    const struct proto_secret * K,
    int (* callback)(void *, struct proto_keys *, struct proto_keys *),
    void * cookie)
{
	struct handshake_cookie * H;

	/* Bake a cookie. */
	if ((H = malloc(sizeof(struct handshake_cookie))) == NULL)
		goto err0;
	H->callback = callback;
	H->cookie = cookie;
	H->s = s;
	H->decr = decr;
	H->nopfs = nopfs;
	H->requirepfs = requirepfs;
	H->K = K;

	/* Generate a 32-byte connection nonce. */
	if (crypto_entropy_read(H->nonce_local, 32))
		goto err1;

	/* Send our nonce. */
	if ((H->write_cookie = network_write(s, H->nonce_local, 32, 32,
	    callback_nonce_write, H)) == NULL)
		goto err1;

	/* Read the other party's nonce. */
	if ((H->read_cookie = network_read(s, H->nonce_remote, 32, 32,
	    callback_nonce_read, H)) == NULL)
		goto err2;

	/* Success! */
	return (H);

err2:
	network_write_cancel(H->write_cookie);
err1:
	free(H);
err0:
	/* Failure! */
	return (NULL);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %r9, %r14
movq %r8, (%rsp)
movl %ecx, %r15d
movl %edx, %r12d
movl %esi, %ebp
movl %edi, %r13d
movl $0x318, %edi            # imm = 0x318
callq 0x31a0
testq %rax, %rax
je 0x9b51
movq %rax, %rbx
movq 0x40(%rsp), %rax
movq %r14, (%rbx)
movq %rax, 0x8(%rbx)
movl %r13d, 0x10(%rbx)
movl %ebp, 0x14(%rbx)
movl %r12d, 0x18(%rbx)
movl %r15d, 0x1c(%rbx)
movq (%rsp), %rax
movq %rax, 0x20(%rbx)
leaq 0x28(%rbx), %r14
pushq $0x20
popq %rsi
movq %r14, %rdi
callq 0xda74
testl %eax, %eax
je 0x9b65
movq %rbx, %rdi
callq 0x32b0
xorl %ebx, %ebx
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x59(%rip), %r8         # 0x9bc5
pushq $0x20
popq %rcx
movl %r13d, %edi
movq %r14, %rsi
movq %rcx, %rdx
movq %rbx, %r9
callq 0xedc8
movq %rax, 0x310(%rbx)
testq %rax, %rax
je 0x9b49
movq %rbx, %rsi
addq $0x48, %rsi
leaq 0x4a(%rip), %r8         # 0x9be4
pushq $0x20
popq %rcx
movl %r13d, %edi
movq %rcx, %rdx
movq %rbx, %r9
callq 0xea70
movq %rax, 0x308(%rbx)
testq %rax, %rax
jne 0x9b53
movq 0x310(%rbx), %rdi
callq 0xf0b7
jmp 0x9b49
// File: /workspace/github_c_makefile_star2_O2/Tarsnap[P]spiped/liball/../lib/proto/proto_handshake.c
// Function: proto_handshake_cancel
void
proto_handshake_cancel(void * cookie)
{
	struct handshake_cookie * H = cookie;

	/* Cancel any in-progress network operations. */
	if (H->read_cookie != NULL)
		network_read_cancel(H->read_cookie);
	if (H->write_cookie != NULL)
		network_write_cancel(H->write_cookie);

	/* Free the cookie. */
	free(H);
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
movq 0x308(%rdi), %rdi
testq %rdi, %rdi
je 0x9c14
callq 0xed43
movq 0x310(%rbx), %rdi
testq %rdi, %rdi
je 0x9c25
callq 0xf0b7
movq %rbx, %rdi
popq %rbx
jmp 0x32b0
// File: /workspace/github_c_makefile_star2_O2/Tarsnap[P]spiped/liball/../lib/proto/proto_handshake.c
// Function: handshakefail
static int
handshakefail(struct handshake_cookie * H)
{
	int rc;

	/* Cancel any pending network read or write. */
	if (H->read_cookie != NULL)
		network_read_cancel(H->read_cookie);
	if (H->write_cookie != NULL)
		network_write_cancel(H->write_cookie);

	/* Perform the callback. */
	rc = (H->callback)(H->cookie, NULL, NULL);

	/* Free the cookie. */
	free(H);

	/* Return status from callback. */
	return (rc);
}

// Assembly:
pushq %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0x308(%rdi), %rdi
testq %rdi, %rdi
je 0x9c45
callq 0xed43
movq 0x310(%rbx), %rdi
testq %rdi, %rdi
je 0x9c56
callq 0xf0b7
movq 0x8(%rbx), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq *(%rbx)
movl %eax, %ebp
movq %rbx, %rdi
callq 0x32b0
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/Tarsnap[P]spiped/liball/../lib/proto/proto_handshake.c
// Function: dhwrite
static int
dhwrite(struct handshake_cookie * H)
{

	/* Generate a signed diffie-hellman parameter. */
	if (proto_crypt_dh_generate(H->yh_local, H->x, H->dhmac_local,
	    H->nopfs))
		goto err0;

	/* Write our signed diffie-hellman parameter. */
	if ((H->write_cookie = network_write(H->s, H->yh_local, PCRYPT_YH_LEN,
	    PCRYPT_YH_LEN, callback_dh_write, H)) == NULL)
		goto err0;

	/* Success! */
	return (0);

err0:
	/* Failure! */
	return (-1);
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
leaq 0xc8(%rdi), %r14
leaq 0xa8(%rdi), %rsi
leaq 0x68(%rdi), %rdx
movl 0x18(%rdi), %ecx
movq %r14, %rdi
callq 0x972b
testl %eax, %eax
je 0x9d10
pushq $-0x1
popq %rax
jmp 0x9d40
movl 0x10(%rbx), %edi
leaq 0x143(%rip), %r8        # 0x9e5d
movl $0x120, %edx            # imm = 0x120
movl $0x120, %ecx            # imm = 0x120
movq %r14, %rsi
movq %rbx, %r9
callq 0xedc8
movq %rax, %rcx
movq %rax, 0x310(%rbx)
xorl %eax, %eax
testq %rcx, %rcx
je 0x9d0b
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O2/Tarsnap[P]spiped/liball/../lib/proto/proto_handshake.c
// Function: handshakedone
static int
handshakedone(struct handshake_cookie * H)
{
	struct proto_keys * c;
	struct proto_keys * s;
	int rc;

	/* Sanity-check: There should be no callbacks in progress. */
	assert(H->read_cookie == NULL);
	assert(H->write_cookie == NULL);

	/* Perform the final computation. */
	if (proto_crypt_mkkeys(H->K, H->nonce_local, H->nonce_remote,
	    H->yh_remote, H->x, H->nopfs, H->decr, &c, &s))
		goto err0;

	/* Perform the callback. */
	rc = (H->callback)(H->cookie, c, s);

	/* Free the cookie. */
	free(H);

	/* Return status code from callback. */
	return (rc);

err0:
	/* Failure! */
	return (-1);
}

// Assembly:
pushq %rbp
pushq %rbx
subq $0x18, %rsp
cmpq $0x0, 0x308(%rdi)
jne 0x9e1f
movq %rdi, %rbx
cmpq $0x0, 0x310(%rdi)
jne 0x9e3e
movq 0x20(%rbx), %rdi
leaq 0x28(%rbx), %rsi
leaq 0x48(%rbx), %rdx
leaq 0x1e8(%rbx), %rcx
leaq 0xa8(%rbx), %r8
movl 0x14(%rbx), %eax
movl 0x18(%rbx), %r9d
subq $0x8, %rsp
leaq 0x10(%rsp), %r10
leaq 0x18(%rsp), %r11
pushq %r10
pushq %r11
pushq %rax
callq 0x9784
addq $0x20, %rsp
testl %eax, %eax
je 0x9dfc
pushq $-0x1
popq %rbp
jmp 0x9e16
movq 0x8(%rbx), %rdi
movq 0x10(%rsp), %rsi
movq 0x8(%rsp), %rdx
callq *(%rbx)
movl %eax, %ebp
movq %rbx, %rdi
callq 0x32b0
movl %ebp, %eax
addq $0x18, %rsp
popq %rbx
popq %rbp
retq
leaq 0x73b1(%rip), %rdi      # 0x111d7
leaq 0x73c1(%rip), %rsi      # 0x111ee
leaq 0x73d9(%rip), %rcx      # 0x1120d
movl $0x122, %edx            # imm = 0x122
callq 0x3150
leaq 0x73f5(%rip), %rdi      # 0x1123a
leaq 0x73a2(%rip), %rsi      # 0x111ee
leaq 0x73ba(%rip), %rcx      # 0x1120d
movl $0x123, %edx            # imm = 0x123
callq 0x3150
// File: /workspace/github_c_makefile_star2_O2/Tarsnap[P]spiped/liball/../lib/util/graceful_shutdown.c
// Function: graceful_shutdown_initialize
int
graceful_shutdown_initialize(int (* begin_shutdown_parent)(void *),
    void * caller_cookie_parent)
{

	/* Record callback data. */
	begin_shutdown = begin_shutdown_parent;
	caller_cookie = caller_cookie_parent;

	/* Start signal handler and save the original one. */
	if ((sighandler_sigterm_orig = signal(SIGTERM,
	    graceful_shutdown_handler)) == SIG_ERR) {
		warnp("signal");
		goto err0;
	}

	/* Clean up the timer cookie at exit. */
	if (atexit(graceful_shutdown_atexit))
		goto err0;

	/* Periodically check whether a signal was received. */
	if ((timer_cookie = events_timer_register_double(
	    graceful_shutdown, NULL, 1.0)) == NULL) {
		warnp("Failed to register the graceful shutdown timer");
		goto err0;
	}

	/* Success! */
	return (0);

err0:
	/* Failure! */
	return (-1);
}

// Assembly:
pushq %rbp
pushq %rbx
pushq %rax
movq %rdi, 0x1e6c2(%rip)     # 0x28840
movq %rsi, 0x1e6c3(%rip)     # 0x28848
leaq 0xbd(%rip), %rsi        # 0xa249
pushq $0xf
popq %rdi
callq 0x3050
movq %rax, 0x1e6b5(%rip)     # 0x28850
cmpq $-0x1, %rax
je 0xa1b8
leaq 0xac(%rip), %rdi        # 0xa254
callq 0xf970
pushq $-0x1
popq %rbp
testl %eax, %eax
je 0xa1d8
movl %ebp, %ebx
jmp 0xa22d
callq 0x3480
cmpl $0x0, (%rax)
je 0xa21c
movq %rax, %rbx
leaq 0x7086(%rip), %rdi      # 0x11252
xorl %eax, %eax
callq 0x8391
andl $0x0, (%rbx)
jmp 0xa22a
leaq 0x94(%rip), %rdi        # 0xa273
xorl %ebx, %ebx
movsd 0x64f7(%rip), %xmm0     # 0x106e0
xorl %esi, %esi
callq 0x5d4e
movq %rax, 0x1e661(%rip)     # 0x28858
testq %rax, %rax
jne 0xa22d
callq 0x3480
cmpl $0x0, (%rax)
je 0xa236
movq %rax, %rbx
leaq 0x7049(%rip), %rdi      # 0x11259
xorl %eax, %eax
callq 0x8391
andl $0x0, (%rbx)
jmp 0xa1b4
leaq 0x702f(%rip), %rdi      # 0x11252
xorl %eax, %eax
callq 0x8520
pushq $-0x1
popq %rbx
movl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
leaq 0x701c(%rip), %rdi      # 0x11259
xorl %eax, %eax
callq 0x8520
jmp 0xa1b4
// File: /workspace/github_c_makefile_star2_O2/Tarsnap[P]spiped/liball/../lib/util/graceful_shutdown.c
// Function: graceful_shutdown
static int
graceful_shutdown(void * cookie)
{

	(void)cookie; /* UNUSED */

	/* This timer has expired. */
	timer_cookie = NULL;

	/* Use the callback function, or schedule another check in 1 second. */
	if (should_shutdown) {
		if (begin_shutdown(caller_cookie) != 0) {
			warn0("Failed to begin shutdown");
			goto err0;
		}

		/* Restore original SIGTERM handler. */
		if (signal(SIGTERM, sighandler_sigterm_orig) == SIG_ERR)
			warnp("Failed to restore original SIGTERM handler");
	} else {
		if ((timer_cookie = events_timer_register_double(
		    graceful_shutdown, NULL, 1.0)) == NULL) {
			warnp("Failed to register the graceful shutdown timer");
			goto err0;
		}
	}

	/* Success! */
	return (0);

err0:
	/* Failure! */
	return (-1);
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
andq $0x0, 0x1e5d9(%rip)     # 0x28858
cmpl $0x0, 0x1e5da(%rip)     # 0x28860
je 0xa2b7
movq 0x1e5b9(%rip), %rdi     # 0x28848
callq *0x1e5ab(%rip)          # 0x28840
testl %eax, %eax
je 0xa2fb
leaq 0x7059(%rip), %rdi      # 0x112f9
xorl %eax, %eax
callq 0x8520
callq 0x3480
andl $0x0, (%rax)
pushq $-0x1
popq %rbx
jmp 0xa358
leaq -0x4b(%rip), %rdi       # 0xa273
xorl %ebx, %ebx
movsd 0x6418(%rip), %xmm0     # 0x106e0
xorl %esi, %esi
callq 0x5d4e
movq %rax, 0x1e582(%rip)     # 0x28858
testq %rax, %rax
jne 0xa358
callq 0x3480
cmpl $0x0, (%rax)
je 0xa335
movq %rax, %rbx
leaq 0x6f6a(%rip), %rdi      # 0x11259
xorl %eax, %eax
callq 0x8391
andl $0x0, (%rbx)
jmp 0xa2af
movq 0x1e54e(%rip), %rsi     # 0x28850
pushq $0xf
popq %rdi
callq 0x3050
xorl %ebx, %ebx
cmpq $-0x1, %rax
jne 0xa358
callq 0x3480
cmpl $0x0, (%rax)
je 0xa348
movq %rax, %r14
leaq 0x6fec(%rip), %rdi      # 0x11312
xorl %ebx, %ebx
xorl %eax, %eax
callq 0x8391
andl $0x0, (%r14)
jmp 0xa358
leaq 0x6f1d(%rip), %rdi      # 0x11259
xorl %eax, %eax
callq 0x8520
jmp 0xa2af
leaq 0x6fc3(%rip), %rdi      # 0x11312
xorl %ebx, %ebx
xorl %eax, %eax
callq 0x8520
movl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O2/Tarsnap[P]spiped/liball/../lib/util/graceful_shutdown.c
// Function: graceful_shutdown_manual
void
graceful_shutdown_manual(void)
{

	/* Sanity check: we must be initialized. */
	assert(begin_shutdown != NULL);
	assert(caller_cookie != NULL);

	/* Stop the timer. */
	if (timer_cookie != NULL) {
		events_timer_cancel(timer_cookie);
		timer_cookie = NULL;
	}

	/* Shut down. */
	should_shutdown = 1;
	graceful_shutdown(NULL);
}

// Assembly:
pushq %rax
cmpq $0x0, 0x1e4d5(%rip)     # 0x28840
je 0xa3a0
cmpq $0x0, 0x1e4d3(%rip)     # 0x28848
je 0xa3b9
movq 0x1e4da(%rip), %rdi     # 0x28858
testq %rdi, %rdi
je 0xa390
callq 0x5d83
andq $0x0, 0x1e4c8(%rip)     # 0x28858
movl $0x1, 0x1e4c6(%rip)     # 0x28860
popq %rax
jmp 0xa273
leaq 0x6ee1(%rip), %rdi      # 0x11288
leaq 0x6ef1(%rip), %rsi      # 0x1129f
leaq 0x6f0a(%rip), %rcx      # 0x112bf
pushq $0x7d
jmp 0xa3d0
leaq 0x6f23(%rip), %rdi      # 0x112e3
leaq 0x6ed8(%rip), %rsi      # 0x1129f
leaq 0x6ef1(%rip), %rcx      # 0x112bf
pushq $0x7e
popq %rdx
callq 0x3150
nop
// File: /workspace/github_c_makefile_star2_O2/bloomsource[P]dns_update/md5.c
// Function: md5_update
void md5_update( md5_context *ctx, const unsigned char *input, int ilen )
{
    int fill;
    unsigned long left;

    if( ilen <= 0 )
        return;

    left = ctx->total[0] & 0x3F;
    fill = 64 - left;

    ctx->total[0] += ilen;
    ctx->total[0] &= 0xFFFFFFFF;

    if( ctx->total[0] < (unsigned long) ilen )
        ctx->total[1]++;

    if( left && ilen >= fill )
    {
        memcpy( (void *) (ctx->buffer + left),
                (void *) input, fill );
        md5_process( ctx, ctx->buffer );
        input += fill;
        ilen  -= fill;
        left = 0;
    }

    while( ilen >= 64 )
    {
        md5_process( ctx, input );
        input += 64;
        ilen  -= 64;
    }

    if( ilen > 0 )
    {
        memcpy( (void *) (ctx->buffer + left),
                (void *) input, ilen );
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
testl %edx, %edx
jle 0x2854
movq %rsi, %rbx
movq %rdi, %r14
movq (%rdi), %rax
movl %eax, %r12d
andl $0x3f, %r12d
movl %edx, %ecx
addl %edx, %eax
movq %rax, (%rdi)
cmpq %rcx, %rax
jae 0x27d3
incq 0x8(%r14)
testq %r12, %r12
je 0x2813
pushq $0x40
popq %rax
subl %r12d, %eax
movl %edx, %ebp
subl %eax, %ebp
jb 0x2816
leaq 0x30(%r14), %r15
leaq (%r14,%r12), %rdi
addq $0x30, %rdi
movl %eax, %r12d
movq %rbx, %rsi
movq %r12, %rdx
callq 0x21b0
movq %r14, %rdi
movq %r15, %rsi
callq 0x285d
addq %r12, %rbx
xorl %r12d, %r12d
movl %ebp, %edx
jmp 0x2816
xorl %r12d, %r12d
movl %edx, %r15d
cmpl $0x40, %r15d
jl 0x2834
movq %r14, %rdi
movq %rbx, %rsi
callq 0x285d
addq $0x40, %rbx
addq $-0x40, %r15
jmp 0x2819
testl %r15d, %r15d
jle 0x2854
leaq (%r14,%r12), %rdi
addq $0x30, %rdi
movq %rbx, %rsi
movq %r15, %rdx
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x21b0
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/bloomsource[P]dns_update/md5.c
// Function: md5_finish
void md5_finish( md5_context *ctx, unsigned char output[16] )
{
    unsigned long last, padn;
    unsigned long high, low;
    unsigned char msglen[8];

    high = ( ctx->total[0] >> 29 )
         | ( ctx->total[1] <<  3 );
    low  = ( ctx->total[0] <<  3 );

    PUT_ULONG_LE( low,  msglen, 0 );
    PUT_ULONG_LE( high, msglen, 4 );

    last = ctx->total[0] & 0x3F;
    padn = ( last < 56 ) ? ( 56 - last ) : ( 120 - last );

    md5_update( ctx, (unsigned char *) md5_padding, padn );
    md5_update( ctx, msglen, 8 );

    PUT_ULONG_LE( ctx->state[0], output,  0 );
    PUT_ULONG_LE( ctx->state[1], output,  4 );
    PUT_ULONG_LE( ctx->state[2], output,  8 );
    PUT_ULONG_LE( ctx->state[3], output, 12 );
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rsi, %rbx
movq %rdi, %r14
movq (%rdi), %rax
movq 0x8(%rdi), %rcx
movq %rax, %rdx
shrq $0x1d, %rdx
shlq $0x3, %rcx
orq %rdx, %rcx
leal (,%rax,8), %edx
leaq 0x8(%rsp), %r15
movb %dl, (%r15)
movl %eax, %edx
shrl $0x5, %edx
movb %dl, 0x1(%r15)
movl %eax, %edx
shrl $0xd, %edx
movb %dl, 0x2(%r15)
movl %eax, %edx
shrl $0x15, %edx
movb %dl, 0x3(%r15)
movb %cl, 0x4(%r15)
movb %ch, 0xd(%rsp)
movl %ecx, %edx
shrl $0x10, %edx
movb %dl, 0x6(%r15)
shrl $0x18, %ecx
movb %cl, 0x7(%r15)
andl $0x3f, %eax
xorl %edx, %edx
cmpq $0x38, %rax
setae %dl
shll $0x6, %edx
orl $0x38, %edx
subl %eax, %edx
leaq 0x3e15(%rip), %rsi      # 0x7300
callq 0x27a3
pushq $0x8
popq %rdx
movq %r14, %rdi
movq %r15, %rsi
callq 0x27a3
movb 0x10(%r14), %al
movb %al, (%rbx)
movb 0x11(%r14), %al
movb %al, 0x1(%rbx)
movb 0x12(%r14), %al
movb %al, 0x2(%rbx)
movb 0x13(%r14), %al
movb %al, 0x3(%rbx)
movb 0x18(%r14), %al
movb %al, 0x4(%rbx)
movb 0x19(%r14), %al
movb %al, 0x5(%rbx)
movb 0x1a(%r14), %al
movb %al, 0x6(%rbx)
movb 0x1b(%r14), %al
movb %al, 0x7(%rbx)
movb 0x20(%r14), %al
movb %al, 0x8(%rbx)
movb 0x21(%r14), %al
movb %al, 0x9(%rbx)
movb 0x22(%r14), %al
movb %al, 0xa(%rbx)
movb 0x23(%r14), %al
movb %al, 0xb(%rbx)
movb 0x28(%r14), %al
movb %al, 0xc(%rbx)
movb 0x29(%r14), %al
movb %al, 0xd(%rbx)
movb 0x2a(%r14), %al
movb %al, 0xe(%rbx)
movb 0x2b(%r14), %al
movb %al, 0xf(%rbx)
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/bloomsource[P]dns_update/md5.c
// Function: md5
void md5( const unsigned char *input, int ilen, unsigned char output[16] )
{
    md5_context ctx;

    md5_starts( &ctx );
    md5_update( &ctx, input, ilen );
    md5_finish( &ctx, output );

    memset( &ctx, 0, sizeof( md5_context ) );
}

// Assembly:
pushq %r14
pushq %rbx
subq $0xf8, %rsp
movq %rdx, %rbx
movl %esi, %edx
movq %rdi, %rsi
xorps %xmm0, %xmm0
movq %rsp, %r14
movaps %xmm0, (%r14)
movq $0x67452301, 0x10(%r14) # imm = 0x67452301
movl $0x98badcfe, %eax       # imm = 0x98BADCFE
leaq 0x5712ce8b(%rax), %rcx
movq %rcx, 0x18(%r14)
movq %rax, 0x20(%r14)
movq $0x10325476, 0x28(%r14) # imm = 0x10325476
movq %r14, %rdi
callq 0x27a3
movq %r14, %rdi
movq %rbx, %rsi
callq 0x346a
addq $0xf8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O2/bloomsource[P]dns_update/md5.c
// Function: md5_file
int md5_file( const char *path, unsigned char output[16] )
{
    FILE *f;
    size_t n;
    md5_context ctx;
    unsigned char buf[1024];

    if( ( f = fopen( path, "rb" ) ) == NULL )
        return( 1 );

    md5_starts( &ctx );

    while( ( n = fread( buf, 1, sizeof( buf ), f ) ) > 0 )
        md5_update( &ctx, buf, (int) n );

    md5_finish( &ctx, output );

    memset( &ctx, 0, sizeof( md5_context ) );

    if( ferror( f ) != 0 )
    {
        fclose( f );
        return( 2 );
    }

    fclose( f );
    return( 0 );
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x4f8, %rsp            # imm = 0x4F8
movq %rsi, %r14
leaq 0x3d00(%rip), %rsi      # 0x72f0
callq 0x2230
testq %rax, %rax
je 0x3689
movq %rax, %rbx
xorps %xmm0, %xmm0
movq %rsp, %r15
movaps %xmm0, (%r15)
movq $0x67452301, 0x10(%r15) # imm = 0x67452301
movl $0x98badcfe, %eax       # imm = 0x98BADCFE
leaq 0x5712ce8b(%rax), %rcx
movq %rcx, 0x18(%r15)
movq %rax, 0x20(%r15)
movq $0x10325476, 0x28(%r15) # imm = 0x10325476
leaq 0xf0(%rsp), %r12
pushq $0x1
popq %r13
movl $0x400, %edx            # imm = 0x400
movq %r12, %rdi
movq %r13, %rsi
movq %rbx, %rcx
callq 0x2090
testq %rax, %rax
je 0x3662
movq %r15, %rdi
movq %r12, %rsi
movl %eax, %edx
callq 0x27a3
jmp 0x363b
movq %rsp, %rdi
movq %r14, %rsi
callq 0x346a
movq %rbx, %rdi
callq 0x2080
xorl %ebp, %ebp
testl %eax, %eax
setne %bpl
movq %rbx, %rdi
callq 0x20e0
addl %ebp, %ebp
jmp 0x368c
pushq $0x1
popq %rbp
movl %ebp, %eax
addq $0x4f8, %rsp            # imm = 0x4F8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/bloomsource[P]dns_update/md5.c
// Function: md5_hmac_starts
void md5_hmac_starts( md5_context *ctx, const unsigned char *key, int keylen )
{
    int i;
    unsigned char sum[16];

    if( keylen > 64 )
    {
        md5( key, keylen, sum );
        keylen = 16;
        key = sum;
    }

    memset( ctx->ipad, 0x36, 64 );
    memset( ctx->opad, 0x5C, 64 );

    for( i = 0; i < keylen; i++ )
    {
        ctx->ipad[i] = (unsigned char)( ctx->ipad[i] ^ key[i] );
        ctx->opad[i] = (unsigned char)( ctx->opad[i] ^ key[i] );
    }

    md5_starts( ctx );
    md5_update( ctx, ctx->ipad, 64 );

    memset( sum, 0, sizeof( sum ) );
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x18, %rsp
movq %rdi, %rbx
cmpl $0x41, %edx
jl 0x36c5
movq %rsp, %r14
movq %rsi, %rdi
movl %edx, %esi
movq %r14, %rdx
callq 0x3577
pushq $0x10
popq %rdx
movq %r14, %rsi
leaq 0x70(%rbx), %rax
movaps 0x3c00(%rip), %xmm0     # 0x72d0
movups %xmm0, 0xa0(%rbx)
movups %xmm0, 0x90(%rbx)
movups %xmm0, 0x80(%rbx)
movups %xmm0, 0x70(%rbx)
movaps 0x3bf0(%rip), %xmm0     # 0x72e0
movups %xmm0, 0xb0(%rbx)
movups %xmm0, 0xc0(%rbx)
movups %xmm0, 0xd0(%rbx)
movups %xmm0, 0xe0(%rbx)
xorl %ecx, %ecx
testl %edx, %edx
cmovlel %ecx, %edx
cmpq %rcx, %rdx
je 0x3732
movb (%rsi,%rcx), %dil
xorb %dil, 0x70(%rbx,%rcx)
movb (%rsi,%rcx), %dil
xorb %dil, 0xb0(%rbx,%rcx)
incq %rcx
jmp 0x3713
xorps %xmm0, %xmm0
movups %xmm0, (%rbx)
movq $0x67452301, 0x10(%rbx) # imm = 0x67452301
movl $0x98badcfe, %ecx       # imm = 0x98BADCFE
leaq 0x5712ce8b(%rcx), %rdx
movq %rdx, 0x18(%rbx)
movq %rcx, 0x20(%rbx)
movq $0x10325476, 0x28(%rbx) # imm = 0x10325476
pushq $0x40
popq %rdx
movq %rbx, %rdi
movq %rax, %rsi
addq $0x18, %rsp
popq %rbx
popq %r14
jmp 0x27a3
// File: /workspace/github_c_makefile_star2_O2/bloomsource[P]dns_update/md5.c
// Function: md5_hmac_finish
void md5_hmac_finish( md5_context *ctx, unsigned char output[16] )
{
    unsigned char tmpbuf[16];

    md5_finish( ctx, tmpbuf );
    md5_starts( ctx );
    md5_update( ctx, ctx->opad, 64 );
    md5_update( ctx, tmpbuf, 16 );
    md5_finish( ctx, output );

    memset( tmpbuf, 0, sizeof( tmpbuf ) );
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rsi, %rbx
movq %rdi, %r14
movq %rsp, %r15
movq %r15, %rsi
callq 0x346a
xorps %xmm0, %xmm0
movups %xmm0, (%r14)
movq $0x67452301, 0x10(%r14) # imm = 0x67452301
movl $0x98badcfe, %eax       # imm = 0x98BADCFE
leaq 0x5712ce8b(%rax), %rcx
movq %rcx, 0x18(%r14)
movq %rax, 0x20(%r14)
movq $0x10325476, 0x28(%r14) # imm = 0x10325476
leaq 0xb0(%r14), %rsi
pushq $0x40
popq %rdx
movq %r14, %rdi
callq 0x27a3
pushq $0x10
popq %rdx
movq %r14, %rdi
movq %r15, %rsi
callq 0x27a3
movq %r14, %rdi
movq %rbx, %rsi
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
jmp 0x346a
// File: /workspace/github_c_makefile_star2_O2/bloomsource[P]dns_update/cjson.c
// Function: cJSON_PrintPreallocated
cJSON_bool cJSON_PrintPreallocated(cJSON *item, char *buf, const int len, const cJSON_bool fmt)
{
    printbuffer p = { 0, 0, 0, 0, 0, 0, { 0, 0, 0 } };

    if (len < 0)
    {
        return false;
    }

    p.buffer = (unsigned char*)buf;
    p.length = (size_t)len;
    p.offset = 0;
    p.noalloc = true;
    p.format = fmt;
    p.hooks = global_hooks;

    return print_value(item, &p);
}

// Assembly:
subq $0x48, %rsp
andq $0x0, 0x20(%rsp)
testl %edx, %edx
js 0x45c5
leaq 0x8(%rsp), %rax
movq %rsi, (%rax)
movl %edx, %edx
movq %rdx, 0x8(%rax)
andq $0x0, 0x10(%rax)
movl $0x1, 0x20(%rax)
movl %ecx, 0x24(%rax)
movups 0xabcc(%rip), %xmm0     # 0xf178
movups %xmm0, 0x28(%rax)
movq 0xabd1(%rip), %rcx      # 0xf188
movq %rcx, 0x38(%rax)
movq %rax, %rsi
callq 0x40f5
jmp 0x45c7
xorl %eax, %eax
addq $0x48, %rsp
retq
// File: /workspace/github_c_makefile_star2_O2/bloomsource[P]dns_update/cjson.c
// Function: cJSON_AddItemToObjectCS
void cJSON_AddItemToObjectCS(cJSON *object, const char *string, cJSON *item)
{
    if (!item)
    {
        return;
    }
    if (!(item->type & cJSON_StringIsConst) && item->string)
    {
        global_hooks.deallocate(item->string);
    }
    item->string = (char*)string;
    item->type |= cJSON_StringIsConst;
    cJSON_AddItemToArray(object, item);
}

// Assembly:
testq %rdx, %rdx
je 0x4753
pushq %r15
pushq %r14
pushq %rbx
movq %rdx, %rbx
movq %rsi, %r15
movq %rdi, %r14
movl 0x18(%rdx), %eax
btl $0x9, %eax
jb 0x4737
movq 0x38(%rbx), %rdi
testq %rdi, %rdi
je 0x4737
callq *0xaa4c(%rip)           # 0xf180
movl 0x18(%rbx), %eax
movq %r15, 0x38(%rbx)
orl $0x200, %eax            # imm = 0x200
movl %eax, 0x18(%rbx)
movq %r14, %rdi
movq %rbx, %rsi
popq %rbx
popq %r14
popq %r15
jmp 0x46ac
retq
// File: /workspace/github_c_makefile_star2_O2/bloomsource[P]dns_update/cjson.c
// Function: create_reference
static cJSON *create_reference(const cJSON *item, const internal_hooks * const hooks)
{
    cJSON *ref = cJSON_New_Item(hooks);
    if (!ref)
    {
        return NULL;
    }
    memcpy(ref, item, sizeof(cJSON));
    ref->string = NULL;
    ref->type |= cJSON_IsReference;
    ref->next = ref->prev = NULL;
    return ref;
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
pushq $0x40
popq %rdi
callq *0xa9bb(%rip)           # 0xf178
testq %rax, %rax
je 0x47fe
xorps %xmm0, %xmm0
movups %xmm0, 0x30(%rax)
movups %xmm0, 0x20(%rax)
movups %xmm0, 0x10(%rax)
movups %xmm0, (%rax)
movups (%rbx), %xmm1
movups 0x10(%rbx), %xmm2
movups 0x20(%rbx), %xmm3
movups %xmm2, 0x10(%rax)
movups %xmm1, (%rax)
movups %xmm3, 0x20(%rax)
movq 0x30(%rbx), %rcx
movq %rcx, 0x30(%rax)
andq $0x0, 0x38(%rax)
orb $0x1, 0x19(%rax)
movups %xmm0, (%rax)
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O2/bloomsource[P]dns_update/cjson.c
// Function: cJSON_InsertItemInArray
void cJSON_InsertItemInArray(cJSON *array, int which, cJSON *newitem)
{
    cJSON *after_inserted = NULL;

    if (which < 0)
    {
        return;
    }

    after_inserted = get_array_item(array, (size_t)which);
    if (after_inserted == NULL)
    {
        cJSON_AddItemToArray(array, newitem);
        return;
    }

    newitem->next = after_inserted;
    newitem->prev = after_inserted->prev;
    after_inserted->prev = newitem;
    if (after_inserted == array->child)
    {
        array->child = newitem;
    }
    else
    {
        newitem->prev->next = newitem;
    }
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
testl %esi, %esi
js 0x4929
movq %rdx, %rbx
movq %rdi, %r14
movl %esi, %esi
callq 0x45e9
testq %rax, %rax
je 0x4913
movq %rax, (%rbx)
movq 0x8(%rax), %rcx
movq %rcx, 0x8(%rbx)
movq %rbx, 0x8(%rax)
cmpq 0x10(%r14), %rax
je 0x4925
movq 0x8(%rbx), %rax
movq %rbx, (%rax)
jmp 0x4929
movq %r14, %rdi
movq %rbx, %rsi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x46ac
movq %rbx, 0x10(%r14)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O2/bloomsource[P]dns_update/cjson.c
// Function: cJSON_CreateNull
cJSON* cJSON_CreateNull(void)
{
    cJSON *item = cJSON_New_Item(&global_hooks);
    if(item)
    {
        item->type = cJSON_NULL;
    }

    return item;
}

// Assembly:
pushq %rax
pushq $0x40
popq %rdi
callq *0xa770(%rip)           # 0xf178
testq %rax, %rax
je 0x4a26
xorps %xmm0, %xmm0
movups %xmm0, 0x10(%rax)
movups %xmm0, 0x30(%rax)
movups %xmm0, 0x20(%rax)
movups %xmm0, (%rax)
movl $0x4, 0x18(%rax)
popq %rcx
retq
// File: /workspace/github_c_makefile_star2_O2/bloomsource[P]dns_update/cjson.c
// Function: cJSON_CreateTrue
cJSON* cJSON_CreateTrue(void)
{
    cJSON *item = cJSON_New_Item(&global_hooks);
    if(item)
    {
        item->type = cJSON_True;
    }

    return item;
}

// Assembly:
pushq %rax
pushq $0x40
popq %rdi
callq *0xa746(%rip)           # 0xf178
testq %rax, %rax
je 0x4a50
xorps %xmm0, %xmm0
movups %xmm0, 0x10(%rax)
movups %xmm0, 0x30(%rax)
movups %xmm0, 0x20(%rax)
movups %xmm0, (%rax)
movl $0x2, 0x18(%rax)
popq %rcx
retq
// File: /workspace/github_c_makefile_star2_O2/bloomsource[P]dns_update/cjson.c
// Function: cJSON_CreateFalse
cJSON* cJSON_CreateFalse(void)
{
    cJSON *item = cJSON_New_Item(&global_hooks);
    if(item)
    {
        item->type = cJSON_False;
    }

    return item;
}

// Assembly:
pushq %rax
pushq $0x40
popq %rdi
callq *0xa71c(%rip)           # 0xf178
testq %rax, %rax
je 0x4a7a
xorps %xmm0, %xmm0
movups %xmm0, 0x10(%rax)
movups %xmm0, 0x30(%rax)
movups %xmm0, 0x20(%rax)
movups %xmm0, (%rax)
movl $0x1, 0x18(%rax)
popq %rcx
retq
// File: /workspace/github_c_makefile_star2_O2/bloomsource[P]dns_update/cjson.c
// Function: cJSON_CreateNumber
cJSON* cJSON_CreateNumber(double num)
{
    cJSON *item = cJSON_New_Item(&global_hooks);
    if(item)
    {
        item->type = cJSON_Number;
        item->valuedouble = num;

        item->valueint = (int64_t)num;
    }

    return item;
}

// Assembly:
pushq %rax
movsd %xmm0, (%rsp)
pushq $0x40
popq %rdi
callq *0xa6bc(%rip)           # 0xf178
testq %rax, %rax
je 0x4af2
xorpd %xmm0, %xmm0
movupd %xmm0, 0x10(%rax)
movupd %xmm0, 0x30(%rax)
movupd %xmm0, 0x20(%rax)
movupd %xmm0, (%rax)
movl $0x8, 0x18(%rax)
movsd (%rsp), %xmm0
movsd %xmm0, 0x30(%rax)
cvttsd2si %xmm0, %rcx
movq %rcx, 0x28(%rax)
popq %rcx
retq
// File: /workspace/github_c_makefile_star2_O2/bloomsource[P]dns_update/cjson.c
// Function: cJSON_CreateRaw
cJSON* cJSON_CreateRaw(const char *raw)
{
    cJSON *item = cJSON_New_Item(&global_hooks);
    if(item)
    {
        item->type = cJSON_Raw;
        item->valuestring = (char*)cJSON_strdup((const unsigned char*)raw, &global_hooks);
        if(!item->valuestring)
        {
            cJSON_Delete(item);
            return NULL;
        }
    }

    return item;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %r14
pushq $0x40
popq %rdi
callq *0xa61d(%rip)           # 0xf178
testq %rax, %rax
je 0x4b95
movq %rax, %rbx
xorps %xmm0, %xmm0
movups %xmm0, 0x10(%rax)
movups %xmm0, 0x30(%rax)
movups %xmm0, 0x20(%rax)
movups %xmm0, (%rax)
movl $0x80, 0x18(%rax)
movq %r14, %rdi
callq 0x4754
movq %rax, 0x20(%rbx)
testq %rax, %rax
jne 0x4b97
movq %rbx, %rdi
callq 0x3923
xorl %ebx, %ebx
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O2/bloomsource[P]dns_update/cjson.c
// Function: cJSON_CreateArray
cJSON* cJSON_CreateArray(void)
{
    cJSON *item = cJSON_New_Item(&global_hooks);
    if(item)
    {
        item->type=cJSON_Array;
    }

    return item;
}

// Assembly:
pushq %rax
pushq $0x40
popq %rdi
callq *0xa5cc(%rip)           # 0xf178
testq %rax, %rax
je 0x4bca
xorps %xmm0, %xmm0
movups %xmm0, 0x10(%rax)
movups %xmm0, 0x30(%rax)
movups %xmm0, 0x20(%rax)
movups %xmm0, (%rax)
movl $0x20, 0x18(%rax)
popq %rcx
retq
// File: /workspace/github_c_makefile_star2_O2/bloomsource[P]dns_update/cjson.c
// Function: cJSON_CreateObject
cJSON* cJSON_CreateObject(void)
{
    cJSON *item = cJSON_New_Item(&global_hooks);
    if (item)
    {
        item->type = cJSON_Object;
    }

    return item;
}

// Assembly:
pushq %rax
pushq $0x40
popq %rdi
callq *0xa5a2(%rip)           # 0xf178
testq %rax, %rax
je 0x4bf4
xorps %xmm0, %xmm0
movups %xmm0, 0x10(%rax)
movups %xmm0, 0x30(%rax)
movups %xmm0, 0x20(%rax)
movups %xmm0, (%rax)
movl $0x40, 0x18(%rax)
popq %rcx
retq
// File: /workspace/github_c_makefile_star2_O2/bloomsource[P]dns_update/cjson.c
// Function: cJSON_CreateIntArray
cJSON* cJSON_CreateIntArray(const int *numbers, int count)
{
    size_t i = 0;
    cJSON *n = NULL;
    cJSON *p = NULL;
    cJSON *a = NULL;

    if (count < 0)
    {
        return NULL;
    }

    a = cJSON_CreateArray();
    for(i = 0; a && (i < (size_t)count); i++)
    {
        n = cJSON_CreateNumber(numbers[i]);
        if (!n)
        {
            cJSON_Delete(a);
            return NULL;
        }
        if(!i)
        {
            a->child = n;
        }
        else
        {
            suffix_object(p, n);
        }
        p = n;
    }

    return a;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
testl %esi, %esi
js 0x4c58
movl %esi, %ebp
movq %rdi, %r14
callq 0x4ba2
testq %rax, %rax
je 0x4c58
movq %rax, %rbx
movl %ebp, %r15d
xorl %r12d, %r12d
xorl %r13d, %r13d
cmpq %r12, %r15
je 0x4c5a
cvtsi2sdl (%r14,%r12,4), %xmm0
callq 0x4aad
testq %rax, %rax
je 0x4c50
testq %r12, %r12
je 0x4c44
movq %rax, (%r13)
movq %r13, 0x8(%rax)
jmp 0x4c48
movq %rax, 0x10(%rbx)
incq %r12
movq %rax, %r13
jmp 0x4c20
movq %rbx, %rdi
callq 0x3923
xorl %ebx, %ebx
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/bloomsource[P]dns_update/cjson.c
// Function: cJSON_CreateFloatArray
cJSON* cJSON_CreateFloatArray(const float *numbers, int count)
{
    size_t i = 0;
    cJSON *n = NULL;
    cJSON *p = NULL;
    cJSON *a = NULL;

    if (count < 0)
    {
        return NULL;
    }

    a = cJSON_CreateArray();

    for(i = 0; a && (i < (size_t)count); i++)
    {
        n = cJSON_CreateNumber((double)numbers[i]);
        if(!n)
        {
            cJSON_Delete(a);
            return NULL;
        }
        if(!i)
        {
            a->child = n;
        }
        else
        {
            suffix_object(p, n);
        }
        p = n;
    }

    return a;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
testl %esi, %esi
js 0x4cce
movl %esi, %ebp
movq %rdi, %r14
callq 0x4ba2
testq %rax, %rax
je 0x4cce
movq %rax, %rbx
movl %ebp, %r15d
xorl %r12d, %r12d
xorl %r13d, %r13d
cmpq %r12, %r15
je 0x4cd0
cvtss2sd (%r14,%r12,4), %xmm0
callq 0x4aad
testq %rax, %rax
je 0x4cc6
testq %r12, %r12
je 0x4cba
movq %rax, (%r13)
movq %r13, 0x8(%rax)
jmp 0x4cbe
movq %rax, 0x10(%rbx)
incq %r12
movq %rax, %r13
jmp 0x4c96
movq %rbx, %rdi
callq 0x3923
xorl %ebx, %ebx
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/bloomsource[P]dns_update/cjson.c
// Function: cJSON_CreateDoubleArray
cJSON* cJSON_CreateDoubleArray(const double *numbers, int count)
{
    size_t i = 0;
    cJSON *n = NULL;
    cJSON *p = NULL;
    cJSON *a = NULL;

    if (count < 0)
    {
        return NULL;
    }

    a = cJSON_CreateArray();

    for(i = 0;a && (i < (size_t)count); i++)
    {
        n = cJSON_CreateNumber(numbers[i]);
        if(!n)
        {
            cJSON_Delete(a);
            return NULL;
        }
        if(!i)
        {
            a->child = n;
        }
        else
        {
            suffix_object(p, n);
        }
        p = n;
    }

    return a;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
testl %esi, %esi
js 0x4d44
movl %esi, %ebp
movq %rdi, %r14
callq 0x4ba2
testq %rax, %rax
je 0x4d44
movq %rax, %rbx
movl %ebp, %r15d
xorl %r12d, %r12d
xorl %r13d, %r13d
cmpq %r12, %r15
je 0x4d46
movsd (%r14,%r12,8), %xmm0
callq 0x4aad
testq %rax, %rax
je 0x4d3c
testq %r12, %r12
je 0x4d30
movq %rax, (%r13)
movq %r13, 0x8(%rax)
jmp 0x4d34
movq %rax, 0x10(%rbx)
incq %r12
movq %rax, %r13
jmp 0x4d0c
movq %rbx, %rdi
callq 0x3923
xorl %ebx, %ebx
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/bloomsource[P]dns_update/cjson.c
// Function: cJSON_CreateStringArray
cJSON* cJSON_CreateStringArray(const char **strings, int count)
{
    size_t i = 0;
    cJSON *n = NULL;
    cJSON *p = NULL;
    cJSON *a = NULL;

    if (count < 0)
    {
        return NULL;
    }

    a = cJSON_CreateArray();

    for (i = 0; a && (i < (size_t)count); i++)
    {
        n = cJSON_CreateString(strings[i]);
        if(!n)
        {
            cJSON_Delete(a);
            return NULL;
        }
        if(!i)
        {
            a->child = n;
        }
        else
        {
            suffix_object(p,n);
        }
        p = n;
    }

    return a;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
testl %esi, %esi
js 0x4db8
movl %esi, %ebp
movq %rdi, %r14
callq 0x4ba2
testq %rax, %rax
je 0x4db8
movq %rax, %rbx
movl %ebp, %r15d
xorl %r12d, %r12d
xorl %r13d, %r13d
cmpq %r12, %r15
je 0x4dba
movq (%r14,%r12,8), %rdi
callq 0x4af4
testq %rax, %rax
je 0x4db0
testq %r12, %r12
je 0x4da4
movq %rax, (%r13)
movq %r13, 0x8(%rax)
jmp 0x4da8
movq %rax, 0x10(%rbx)
incq %r12
movq %rax, %r13
jmp 0x4d82
movq %rbx, %rdi
callq 0x3923
xorl %ebx, %ebx
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/bloomsource[P]dns_update/util.c
// Function: udp_listen
int udp_listen( char* ip, int port )
{
/* ip ��ʾ�������ĸ�ip �ϣ�����ΪNULL,��ʾ����������ip �ϣ�
������Ϊnull,��������ָ��ip��ַ��: 
�������óɹ����� socket fd, ���򷵻� -1  */

    int fd;
    struct sockaddr_in addr;

    fd = socket( AF_INET, SOCK_DGRAM, 0 );
    if( fd == -1 )
    {
        return -1;
    }

    int reuse=1;
    setsockopt( fd, SOL_SOCKET, SO_REUSEADDR, (char*)&reuse, sizeof(reuse) );
    
    addr.sin_family = AF_INET;
    addr.sin_port   = htons( port );

    if(ip == NULL || ip[0] == '*' )
    {
        addr.sin_addr.s_addr = INADDR_ANY;
        if( bind( fd, (struct sockaddr*)&addr, sizeof(addr) ) == -1 )
        {
            close( fd );
            return -1;
        }
    }
    else /*����ip  */
    {
        addr.sin_addr.s_addr = inet_addr(ip);
        if( bind( fd, (struct sockaddr*)&addr, sizeof(addr) ) == -1 )
        {
            close( fd );
            return -1;
        }
    }

    return fd;

}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
subq $0x20, %rsp
movl %esi, %ebp
movq %rdi, %r14
pushq $0x2
popq %rdi
movl %edi, %esi
xorl %edx, %edx
callq 0x22c0
cmpl $-0x1, %eax
je 0x57c0
movl %eax, %ebx
leaq 0xc(%rsp), %rcx
movl $0x1, (%rcx)
pushq $0x1
popq %rsi
pushq $0x2
popq %rdx
pushq $0x4
popq %r8
movl %eax, %edi
callq 0x20b0
movw $0x2, 0x10(%rsp)
rolw $0x8, %bp
movw %bp, 0x12(%rsp)
testq %r14, %r14
je 0x578f
cmpb $0x2a, (%r14)
jne 0x579a
leaq 0x10(%rsp), %rsi
andl $0x0, 0x4(%rsi)
jmp 0x57aa
movq %r14, %rdi
callq 0x2160
leaq 0x10(%rsp), %rsi
movl %eax, 0x4(%rsi)
pushq $0x10
popq %rdx
movl %ebx, %edi
callq 0x2210
cmpl $-0x1, %eax
jne 0x57c3
movl %ebx, %edi
callq 0x2140
pushq $-0x1
popq %rbx
movl %ebx, %eax
addq $0x20, %rsp
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/bloomsource[P]dns_update/util.c
// Function: udp_send
int udp_send( int fd, char* ip, int port, char* msg, int len )
{
    struct sockaddr_in addr;
    addr.sin_family = AF_INET;
    addr.sin_port   = htons( port );
    addr.sin_addr.s_addr = inet_addr(ip);
    
    return sendto( fd, msg, len, 0, (struct sockaddr*)&addr, sizeof(addr) );
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x18, %rsp
movl %r8d, %ebx
movq %rcx, %r14
movl %edi, %ebp
leaq 0x8(%rsp), %r15
movw $0x2, (%r15)
rolw $0x8, %dx
movw %dx, 0x2(%r15)
movq %rsi, %rdi
callq 0x2160
movl %eax, 0x4(%r15)
movslq %ebx, %rdx
pushq $0x10
popq %r9
movl %ebp, %edi
movq %r14, %rsi
xorl %ecx, %ecx
movq %r15, %r8
callq 0x2130
addq $0x18, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq