// File: /workspace/github_c_makefile_star2_O3/Carton32[P]quectel-CM/mbim-cm.c
// Function: mbim_init
static int mbim_init(PROFILE_T *profile) {
    int retval;
    int t = 0;

    if (profile->proxy[0] && !strcmp(profile->proxy, LIBMBIM_PROXY)) {
        retval = mbim_proxy_configure(profile->qmichannel);
        if (retval) goto exit;
    }

    while (t++ < 10) {
        retval = mbim_open_device(4096);
        if (retval != ETIMEDOUT)
            break;
    }
    if (retval) goto exit;
    retval = mbim_device_caps_query(profile);
    if (retval) goto exit;
    mbim_update_state();
    retval = mbim_device_services_query();
    if (retval) goto exit;
    mbim_update_state();
    retval = mbim_set_radio_state(MBIMRadioOn);
    if (retval) goto exit;
    mbim_update_state();

    if (qmi_over_mbim_support) {
        if (!socketpair( AF_LOCAL, SOCK_STREAM, 0, qmi_over_mbim_sk)) {
            qmidev_send = qmi_over_mbim_qmidev_send;
#ifdef CONFIG_CELLINFO //by now, only this function need QMI OVER MBIM
            qmi_over_mbim_nas = qmi_over_mbim_get_client_id(QMUX_TYPE_NAS);
#endif
        }
    }

    return 0;

exit:
    return retval;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x58, %rsp
movq %rdi, %r14
cmpb $0x0, 0x28(%rdi)
je 0x115d3
leaq 0x28(%r14), %rdi
leaq 0xcf5f(%rip), %rsi      # 0x1e525
callq 0x52a0
testl %eax, %eax
je 0x11904
movq %r14, 0x48(%rsp)
movl $0xa, %ebp
leaq 0x10c49(%rip), %r14     # 0x2222d
leaq 0x10c4d(%rip), %r15     # 0x22238
movq $0x0, 0x20(%rsp)
movq 0x189c5(%rip), %rax     # 0x29fc0
movq (%rax), %rbx
callq 0xea3b
movq %rbx, %rdi
movq %r14, %rsi
movq %rax, %rdx
movq %r15, %rcx
xorl %eax, %eax
callq 0x52c0
leaq 0x1968b(%rip), %rax     # 0x2aca8
movq (%rax), %rbx
testq %rbx, %rbx
je 0x1163d
callq 0xea3b
movq %rbx, %rdi
movq %r14, %rsi
movq %rax, %rdx
movq %r15, %rcx
xorl %eax, %eax
callq 0x52c0
movl $0x10, %edi
callq 0x5360
movq %rax, %r14
testq %rax, %rax
je 0x11677
movabsq $0x1000000001, %rax     # imm = 0x1000000001
movq %rax, (%r14)
movl 0x18ca6(%rip), %eax     # 0x2a308
leal 0x1(%rax), %ecx
movl %ecx, 0x18c9d(%rip)     # 0x2a308
movl %eax, 0x8(%r14)
movl $0x1000, 0xc(%r14)      # imm = 0x1000
movq %r14, %rdi
leaq 0x20(%rsp), %rsi
movl $0xbb8, %edx            # imm = 0xBB8
callq 0x10c38
movq 0x20(%rsp), %r13
testq %r13, %r13
leaq 0xfced(%rip), %r15      # 0x21385
je 0x116f0
movl (%r13), %ecx
movl $0x7fffffff, %edx       # imm = 0x7FFFFFFF
addl %edx, %ecx
xorl %r12d, %r12d
cmpl $0x3, %ecx
ja 0x116bf
movl %ecx, %edx
leaq 0x1117a(%rip), %rcx     # 0x22830
movq (%rcx,%rdx,8), %rcx
movl (%r13,%rcx), %r12d
testl %eax, %eax
sete %dl
movl %eax, %ecx
orl %r12d, %ecx
jne 0x11704
movl 0xc(%r13), %ebx
testq %r14, %r14
leaq 0x10b5f(%rip), %r15     # 0x22238
je 0x116e3
movq %r14, %rdi
callq 0x5040
movq %r13, %rdi
callq 0x5040
jmp 0x117c9
movl %eax, %ebx
testl %eax, %eax
sete 0x18(%rsp)
movl $0x22b8, %r13d          # imm = 0x22B8
xorl %r12d, %r12d
jmp 0x1172d
movb %dl, 0x18(%rsp)
movl %eax, %ebx
xorl %esi, %esi
cmpl $0x0, 0x1a61d(%rip)     # 0x2bd30
sete %sil
movq %r13, %rdi
callq 0x10dbe
movl $0x22b8, %r13d          # imm = 0x22B8
testl %r12d, %r12d
je 0x1172d
movl %r12d, %r13d
testq %r14, %r14
je 0x1173a
movq %r14, %rdi
callq 0x5040
movq 0x20(%rsp), %rdi
testq %rdi, %rdi
je 0x11752
callq 0x5040
movq $0x0, 0x20(%rsp)
movq 0x18867(%rip), %rax     # 0x29fc0
movq (%rax), %r14
callq 0xea3b
movl %r12d, (%rsp)
movq %r14, %rdi
movq %r15, %rsi
movq %rax, %rdx
leaq 0x10ac3(%rip), %r15     # 0x22238
movq %r15, %rcx
movl $0x69f, %r8d            # imm = 0x69F
movl %ebx, %r9d
xorl %eax, %eax
callq 0x52c0
leaq 0x19519(%rip), %rax     # 0x2aca8
movq (%rax), %r14
testq %r14, %r14
je 0x117c0
callq 0xea3b
movl %r12d, (%rsp)
movq %r14, %rdi
leaq 0xfbdb(%rip), %rsi      # 0x21385
movq %rax, %rdx
movq %r15, %rcx
movl $0x69f, %r8d            # imm = 0x69F
movl %ebx, %r9d
xorl %eax, %eax
callq 0x52c0
cmpb $0x0, 0x18(%rsp)
cmovnel %r13d, %ebx
cmpl $0x6e, %ebx
leaq 0x10a5a(%rip), %r14     # 0x2222d
jne 0x117e7
decl %ebp
jne 0x115eb
movl $0x6e, %ebx
jmp 0x12270
testl %ebx, %ebx
jne 0x12270
movq $0x0, 0x10(%rsp)
movq 0x187c1(%rip), %rax     # 0x29fc0
movq (%rax), %rbx
callq 0xea3b
leaq 0x10a1f(%rip), %rsi     # 0x2222d
leaq 0x10a34(%rip), %rcx     # 0x22249
movq %rbx, %rdi
movq %rax, %rdx
xorl %eax, %eax
callq 0x52c0
leaq 0x1947f(%rip), %rax     # 0x2aca8
movq (%rax), %rbx
testq %rbx, %rbx
je 0x11851
callq 0xea3b
leaq 0x109f0(%rip), %rsi     # 0x2222d
leaq 0x10a05(%rip), %rcx     # 0x22249
movq %rbx, %rdi
movq %rax, %rdx
xorl %eax, %eax
callq 0x52c0
xorl %r13d, %r13d
movl $0x1, %edi
xorl %esi, %esi
xorl %edx, %edx
xorl %ecx, %ecx
callq 0x10a7b
movq %rax, %r15
leaq 0x10(%rsp), %r14
movq %rax, %rdi
movq %r14, %rsi
movl $0x7530, %edx           # imm = 0x7530
callq 0x10c38
movq (%r14), %r12
testq %r12, %r12
je 0x1191f
movl $0x7fffffff, %ecx       # imm = 0x7FFFFFFF
addl (%r12), %ecx
cmpl $0x3, %ecx
ja 0x118a7
movl %ecx, %edx
leaq 0x10f91(%rip), %rcx     # 0x22830
movq (%rcx,%rdx,8), %rcx
movl (%r12,%rcx), %r13d
testl %eax, %eax
sete %bpl
movl %eax, %ecx
orl %r13d, %ecx
jne 0x11932
cmpl $0x0, 0x2c(%r12)
je 0x11bd2
leaq 0x30(%r12), %r13
movl 0x58(%r12), %eax
testq %rax, %rax
movq 0x48(%rsp), %r14
je 0x11a72
movl 0x5c(%r12), %edx
testl %edx, %edx
je 0x11a72
movl %edx, %esi
shrl %esi
cmpl $0x1f, %esi
movl $0x1f, %ecx
cmovbl %esi, %ecx
cmpl $0x1, %edx
jne 0x11a02
xorl %ecx, %ecx
jmp 0x11a18
leaq 0x8a(%r14), %rdi
callq 0x10850
movl %eax, %ebx
testl %eax, %eax
jne 0x12270
jmp 0x115d3
movl %eax, %ebx
testl %eax, %eax
sete %bpl
movl $0x22b8, %r12d          # imm = 0x22B8
xorl %r13d, %r13d
jmp 0x11956
movl %eax, %ebx
xorl %esi, %esi
cmpl $0x0, 0x1a3f3(%rip)     # 0x2bd30
sete %sil
movq %r12, %rdi
callq 0x10dbe
testl %r13d, %r13d
movl $0x22b8, %r12d          # imm = 0x22B8
cmovnel %r13d, %r12d
testq %r15, %r15
je 0x11963
movq %r15, %rdi
callq 0x5040
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x1197b
callq 0x5040
movq $0x0, 0x10(%rsp)
movq 0x1863e(%rip), %rax     # 0x29fc0
movq (%rax), %r14
callq 0xea3b
movl %r13d, (%rsp)
leaq 0xf9f0(%rip), %rsi      # 0x21385
leaq 0x108ad(%rip), %rcx     # 0x22249
movq %r14, %rdi
movq %rax, %rdx
movl $0x721, %r8d            # imm = 0x721
movl %ebx, %r9d
xorl %eax, %eax
callq 0x52c0
leaq 0x192ef(%rip), %rax     # 0x2aca8
movq (%rax), %r14
testq %r14, %r14
je 0x119ee
callq 0xea3b
movl %r13d, (%rsp)
leaq 0xf9b4(%rip), %rsi      # 0x21385
leaq 0x10871(%rip), %rcx     # 0x22249
movq %r14, %rdi
movq %rax, %rdx
movl $0x721, %r8d            # imm = 0x721
movl %ebx, %r9d
xorl %eax, %eax
callq 0x52c0
testb %bpl, %bpl
cmovnel %r12d, %ebx
testl %ebx, %ebx
jne 0x12270
jmp 0x11bee
addq %r13, %rax
xorl %edx, %edx
movb (%rax,%rdx,2), %sil
movb %sil, 0x20(%rsp,%rdx)
incq %rdx
cmpq %rdx, %rcx
jne 0x11a07
movb $0x0, 0x20(%rsp,%rcx)
movq 0x1859c(%rip), %rax     # 0x29fc0
movq (%rax), %rbx
callq 0xea3b
leaq 0x1082d(%rip), %rsi     # 0x22260
leaq 0x20(%rsp), %rcx
movq %rbx, %rdi
movq %rax, %rdx
xorl %eax, %eax
callq 0x52c0
leaq 0x1925c(%rip), %rax     # 0x2aca8
movq (%rax), %rbx
testq %rbx, %rbx
je 0x11a72
callq 0xea3b
leaq 0x10800(%rip), %rsi     # 0x22260
leaq 0x20(%rsp), %rcx
movq %rbx, %rdi
movq %rax, %rdx
xorl %eax, %eax
callq 0x52c0
movl 0x60(%r12), %eax
testq %rax, %rax
je 0x11b2f
movl 0x64(%r12), %edx
testl %edx, %edx
je 0x11b2f
movl %edx, %esi
shrl %esi
cmpl $0x1f, %esi
movl $0x1f, %ecx
cmovbl %esi, %ecx
cmpl $0x1, %edx
jne 0x11aa5
xorl %ecx, %ecx
jmp 0x11abb
addq %r13, %rax
xorl %edx, %edx
movb (%rax,%rdx,2), %sil
movb %sil, 0x20(%rsp,%rdx)
incq %rdx
cmpq %rdx, %rcx
jne 0x11aaa
movb $0x0, 0x20(%rsp,%rcx)
addq $0x216, %r14            # imm = 0x216
leaq 0x20(%rsp), %rbx
movl $0x40, %edx
movq %r14, %rdi
movq %rbx, %rsi
callq 0x5080
movq 0x184dd(%rip), %rax     # 0x29fc0
movq (%rax), %r14
callq 0xea3b
leaq 0x10785(%rip), %rsi     # 0x22277
movq %r14, %rdi
movq %rax, %rdx
movq %rbx, %rcx
xorl %eax, %eax
callq 0x52c0
leaq 0x1919f(%rip), %rax     # 0x2aca8
movq (%rax), %rbx
testq %rbx, %rbx
je 0x11b2f
callq 0xea3b
leaq 0x1075a(%rip), %rsi     # 0x22277
leaq 0x20(%rsp), %rcx
movq %rbx, %rdi
movq %rax, %rdx
xorl %eax, %eax
callq 0x52c0
movl 0x68(%r12), %ecx
testq %rcx, %rcx
je 0x11bd2
movl 0x6c(%r12), %edx
testl %edx, %edx
je 0x11bd2
movl %edx, %esi
shrl %esi
cmpl $0x1f, %esi
movl $0x1f, %eax
cmovbl %esi, %eax
cmpl $0x1, %edx
jne 0x11b62
xorl %eax, %eax
jmp 0x11b78
addq %rcx, %r13
xorl %ecx, %ecx
movb (%r13,%rcx,2), %dl
movb %dl, 0x20(%rsp,%rcx)
incq %rcx
cmpq %rcx, %rax
jne 0x11b67
movb $0x0, 0x20(%rsp,%rax)
movq 0x1843c(%rip), %rax     # 0x29fc0
movq (%rax), %rbx
callq 0xea3b
leaq 0x106fb(%rip), %rsi     # 0x2228e
leaq 0x20(%rsp), %rcx
movq %rbx, %rdi
movq %rax, %rdx
xorl %eax, %eax
callq 0x52c0
leaq 0x190fc(%rip), %rax     # 0x2aca8
movq (%rax), %rbx
testq %rbx, %rbx
je 0x11bd2
callq 0xea3b
leaq 0x106ce(%rip), %rsi     # 0x2228e
leaq 0x20(%rsp), %rcx
movq %rbx, %rdi
movq %rax, %rdx
xorl %eax, %eax
callq 0x52c0
testq %r15, %r15
je 0x11bdf
movq %r15, %rdi
callq 0x5040
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x11bee
callq 0x5040
callq 0x15a9f
movq $0x0, 0x10(%rsp)
movq 0x183bd(%rip), %rax     # 0x29fc0
movq (%rax), %rbx
callq 0xea3b
leaq 0x1061b(%rip), %rsi     # 0x2222d
leaq 0x10712(%rip), %rcx     # 0x2232b
movq %rbx, %rdi
movq %rax, %rdx
xorl %eax, %eax
callq 0x52c0
leaq 0x1907b(%rip), %rax     # 0x2aca8
movq (%rax), %rbx
testq %rbx, %rbx
je 0x11c55
callq 0xea3b
leaq 0x105ec(%rip), %rsi     # 0x2222d
leaq 0x106e3(%rip), %rcx     # 0x2232b
movq %rbx, %rdi
movq %rax, %rdx
xorl %eax, %eax
callq 0x52c0
xorl %r12d, %r12d
movl $0x10, %edi
xorl %esi, %esi
xorl %edx, %edx
xorl %ecx, %ecx
callq 0x10a7b
movq %rax, %r14
leaq 0x10(%rsp), %r15
movq %rax, %rdi
movq %r15, %rsi
movl $0x7530, %edx           # imm = 0x7530
callq 0x10c38
movq (%r15), %rdi
testq %rdi, %rdi
je 0x11e5b
movl $0x7fffffff, %ecx       # imm = 0x7FFFFFFF
addl (%rdi), %ecx
cmpl $0x3, %ecx
ja 0x11ca9
movl %ecx, %edx
leaq 0x10b8f(%rip), %rcx     # 0x22830
movq (%rcx,%rdx,8), %rcx
movl (%rdi,%rcx), %r12d
testl %eax, %eax
sete %bpl
movl %eax, %ecx
orl %r12d, %ecx
jne 0x11e6e
movb $0x1, %bl
cmpl $0x0, 0x2c(%rdi)
je 0x11d80
cmpl $0x0, 0x30(%rdi)
je 0x11d80
movq %r14, 0x48(%rsp)
leaq 0x30(%rdi), %rdx
xorl %r14d, %r14d
movl $0x1, %ebx
xorl %r12d, %r12d
movq %rdi, 0x18(%rsp)
movl 0x38(%rdi,%r14,8), %ebp
movq %rdx, %r13
addq %rdx, %rbp
movq %rbp, %rdi
callq 0x15992
leaq 0xf7c7(%rip), %rdi      # 0x214ca
leaq 0x1a0b6(%rip), %r15     # 0x2bdc0
movq %r15, %rsi
callq 0x5050
testl %eax, %eax
je 0x11d3a
movq %rbp, %rdi
callq 0x15992
leaq 0xff83(%rip), %rdi      # 0x21ca8
movq %r15, %rsi
callq 0x5050
testl %eax, %eax
jne 0x11d5f
movb $0x1, 0x1a1b8(%rip)     # 0x2bef0
jmp 0x11d5f
movl 0x18(%rbp), %eax
testq %rax, %rax
je 0x11d5f
xorl %ecx, %ecx
movq 0x18(%rsp), %rdi
movq %r13, %rdx
cmpl $0xf, 0x1c(%rbp,%rcx,4)
cmovel %ebx, %r12d
incq %rcx
cmpq %rcx, %rax
jne 0x11d4c
jmp 0x11d67
movq 0x18(%rsp), %rdi
movq %r13, %rdx
incq %r14
movl (%rdx), %eax
cmpq %rax, %r14
jb 0x11ce9
testl %r12d, %r12d
sete %bl
movq 0x48(%rsp), %r14
testq %r14, %r14
je 0x11d8d
movq %r14, %rdi
callq 0x5040
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x11da5
callq 0x5040
movq $0x0, 0x10(%rsp)
testb %bl, %bl
jne 0x11fe6
movq $0x0, 0x20(%rsp)
leaq 0x54(%rsp), %rdx
movl $0x2000100, (%rdx)      # imm = 0x2000100
xorl %ebp, %ebp
movl $0xf, %edi
xorl %esi, %esi
movl $0x4, %ecx
callq 0x10a7b
movq %rax, %r14
testq %rax, %rax
je 0x11df4
leaq 0xf6e7(%rip), %rdi      # 0x214ca
callq 0x10b31
movups 0x19f45(%rip), %xmm0    # 0x2bd34
movups %xmm0, 0x14(%r14)
leaq 0x20(%rsp), %r15
movq %r14, %rdi
movq %r15, %rsi
movl $0x7530, %edx           # imm = 0x7530
callq 0x10c38
movl %eax, %ebx
movq (%r15), %r15
testq %r15, %r15
je 0x11f50
movl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
addl (%r15), %eax
xorl %ebp, %ebp
cmpl $0x3, %eax
ja 0x11e37
movl %eax, %eax
leaq 0x10a01(%rip), %rcx     # 0x22830
movq (%rcx,%rax,8), %rax
movl (%r15,%rax), %ebp
movl %ebx, %eax
orl %ebp, %eax
jne 0x11f3b
testq %r14, %r14
je 0x11e4e
movq %r14, %rdi
callq 0x5040
movq %r15, %rdi
callq 0x5040
jmp 0x11fe6
movl %eax, %ebx
testl %eax, %eax
sete %bpl
movl $0x22b8, %r15d          # imm = 0x22B8
xorl %r12d, %r12d
jmp 0x11e8f
movl %eax, %ebx
xorl %esi, %esi
cmpl $0x0, 0x19eb7(%rip)     # 0x2bd30
sete %sil
callq 0x10dbe
testl %r12d, %r12d
movl $0x22b8, %r15d          # imm = 0x22B8
cmovnel %r12d, %r15d
testq %r14, %r14
je 0x11e9c
movq %r14, %rdi
callq 0x5040
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x11eb4
callq 0x5040
movq $0x0, 0x10(%rsp)
movq 0x18105(%rip), %rax     # 0x29fc0
movq (%rax), %r14
callq 0xea3b
movl %r12d, (%rsp)
leaq 0xf4b7(%rip), %rsi      # 0x21385
leaq 0x10456(%rip), %rcx     # 0x2232b
movq %r14, %rdi
movq %rax, %rdx
movl $0x6f6, %r8d            # imm = 0x6F6
movl %ebx, %r9d
xorl %eax, %eax
callq 0x52c0
leaq 0x18db6(%rip), %rax     # 0x2aca8
movq (%rax), %r14
testq %r14, %r14
je 0x11f27
callq 0xea3b
movl %r12d, (%rsp)
leaq 0xf47b(%rip), %rsi      # 0x21385
leaq 0x1041a(%rip), %rcx     # 0x2232b
movq %r14, %rdi
movq %rax, %rdx
movl $0x6f6, %r8d            # imm = 0x6F6
movl %ebx, %r9d
xorl %eax, %eax
callq 0x52c0
testb %bpl, %bpl
cmovnel %r15d, %ebx
testl %ebx, %ebx
jne 0x12270
jmp 0x11fe6
xorl %esi, %esi
cmpl $0x0, 0x19dec(%rip)     # 0x2bd30
sete %sil
movq %r15, %rdi
callq 0x10dbe
testq %r14, %r14
je 0x11f5d
movq %r14, %rdi
callq 0x5040
movq 0x20(%rsp), %rdi
testq %rdi, %rdi
je 0x11f75
callq 0x5040
movq $0x0, 0x20(%rsp)
movq 0x18044(%rip), %rax     # 0x29fc0
movq (%rax), %r14
callq 0xea3b
movl %ebp, (%rsp)
leaq 0xf3f7(%rip), %rsi      # 0x21385
leaq 0x103b1(%rip), %rcx     # 0x22346
movq %r14, %rdi
movq %rax, %rdx
movl $0x6e1, %r8d            # imm = 0x6E1
movl %ebx, %r9d
xorl %eax, %eax
callq 0x52c0
leaq 0x18cf6(%rip), %rax     # 0x2aca8
movq (%rax), %r14
testq %r14, %r14
je 0x11fe6
callq 0xea3b
movl %ebp, (%rsp)
leaq 0xf3bc(%rip), %rsi      # 0x21385
leaq 0x10376(%rip), %rcx     # 0x22346
movq %r14, %rdi
movq %rax, %rdx
movl $0x6e1, %r8d            # imm = 0x6E1
movl %ebx, %r9d
xorl %eax, %eax
callq 0x52c0
callq 0x15a9f
movq $0x0, 0x20(%rsp)
movl $0x1, 0x10(%rsp)
movq 0x17fbd(%rip), %rax     # 0x29fc0
movq (%rax), %rbx
callq 0xea3b
leaq 0x1034a(%rip), %rsi     # 0x2235c
leaq 0x10352(%rip), %rcx     # 0x2236b
movq %rbx, %rdi
movq %rax, %rdx
movl $0x1, %r8d
xorl %eax, %eax
callq 0x52c0
leaq 0x18c75(%rip), %rax     # 0x2aca8
movq (%rax), %rbx
testq %rbx, %rbx
je 0x12061
callq 0xea3b
leaq 0x10315(%rip), %rsi     # 0x2235c
leaq 0x1031d(%rip), %rcx     # 0x2236b
movq %rbx, %rdi
movq %rax, %rdx
movl $0x1, %r8d
xorl %eax, %eax
callq 0x52c0
leaq 0x10(%rsp), %rdx
movl $0x3, %edi
movl $0x1, %esi
movl $0x4, %ecx
callq 0x10a7b
movq %rax, %r14
leaq 0x20(%rsp), %r15
movq %rax, %rdi
movq %r15, %rsi
movl $0x7530, %edx           # imm = 0x7530
callq 0x10c38
movq (%r15), %r15
testq %r15, %r15
je 0x12157
movl $0x7fffffff, %ecx       # imm = 0x7FFFFFFF
addl (%r15), %ecx
xorl %r12d, %r12d
cmpl $0x3, %ecx
ja 0x120bf
movl %ecx, %edx
leaq 0x10779(%rip), %rcx     # 0x22830
movq (%rcx,%rdx,8), %rcx
movl (%r15,%rcx), %r12d
testl %eax, %eax
sete %bpl
movl %eax, %ecx
orl %r12d, %ecx
jne 0x1216a
cmpl $0x0, 0x2c(%r15)
je 0x12132
movq 0x17ee2(%rip), %rax     # 0x29fc0
movq (%rax), %rbx
callq 0xea3b
movl 0x30(%r15), %ecx
movl 0x34(%r15), %r8d
leaq 0x1028b(%rip), %rsi     # 0x22380
movq %rbx, %rdi
movq %rax, %rdx
xorl %eax, %eax
callq 0x52c0
leaq 0x18b9f(%rip), %rax     # 0x2aca8
movq (%rax), %rbx
testq %rbx, %rbx
je 0x12132
callq 0xea3b
movl 0x30(%r15), %ecx
movl 0x34(%r15), %r8d
leaq 0x1025b(%rip), %rsi     # 0x22380
movq %rbx, %rdi
movq %rax, %rdx
xorl %eax, %eax
callq 0x52c0
testq %r14, %r14
je 0x1213f
movq %r14, %rdi
callq 0x5040
movq 0x20(%rsp), %rdi
testq %rdi, %rdi
je 0x12231
callq 0x5040
jmp 0x12231
movl %eax, %ebx
testl %eax, %eax
sete %bpl
movl $0x22b8, %r15d          # imm = 0x22B8
xorl %r12d, %r12d
jmp 0x1218e
movl %eax, %ebx
xorl %esi, %esi
cmpl $0x0, 0x19bbb(%rip)     # 0x2bd30
sete %sil
movq %r15, %rdi
callq 0x10dbe
testl %r12d, %r12d
movl $0x22b8, %r15d          # imm = 0x22B8
cmovnel %r12d, %r15d
testq %r14, %r14
je 0x1219b
movq %r14, %rdi
callq 0x5040
movq 0x20(%rsp), %rdi
testq %rdi, %rdi
je 0x121b3
callq 0x5040
movq $0x0, 0x20(%rsp)
movq 0x17e06(%rip), %rax     # 0x29fc0
movq (%rax), %r14
callq 0xea3b
movl %r12d, (%rsp)
leaq 0xf1b8(%rip), %rsi      # 0x21385
leaq 0x10197(%rip), %rcx     # 0x2236b
movq %r14, %rdi
movq %rax, %rdx
movl $0x756, %r8d            # imm = 0x756
movl %ebx, %r9d
xorl %eax, %eax
callq 0x52c0
leaq 0x18ab7(%rip), %rax     # 0x2aca8
movq (%rax), %r14
testq %r14, %r14
je 0x12226
callq 0xea3b
movl %r12d, (%rsp)
leaq 0xf17c(%rip), %rsi      # 0x21385
leaq 0x1015b(%rip), %rcx     # 0x2236b
movq %r14, %rdi
movq %rax, %rdx
movl $0x756, %r8d            # imm = 0x756
movl %ebx, %r9d
xorl %eax, %eax
callq 0x52c0
testb %bpl, %bpl
cmovnel %r15d, %ebx
testl %ebx, %ebx
jne 0x12270
callq 0x15a9f
xorl %ebx, %ebx
cmpb $0x1, 0x19cb1(%rip)     # 0x2bef0
jne 0x12270
leaq 0x180b8(%rip), %rcx     # 0x2a300
movl $0x1, %edi
movl $0x1, %esi
xorl %edx, %edx
callq 0x5300
testl %eax, %eax
jne 0x1226e
leaq 0x2767(%rip), %rax      # 0x149cb
leaq 0x189bd(%rip), %rcx     # 0x2ac28
movq %rax, (%rcx)
xorl %ebx, %ebx
movl %ebx, %eax
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq