// File: /workspace/github_c_makefile_star2_O0/Carton32[P]quectel-CM/QMIThread.c
// Function: requestEnterSimPin
static int requestEnterSimPin(const char *pPinCode) {
    PQCQMIMSG pRequest;
    PQCQMIMSG pResponse;
    PQMUX_MSG pMUXMsg;
    int err;

    if (s_9x07)
        pRequest = ComposeQMUXMsg(QMUX_TYPE_UIM, QMIUIM_VERIFY_PIN_REQ, UimVerifyPinReqSend, (void *)pPinCode);
    else
        pRequest = ComposeQMUXMsg(QMUX_TYPE_DMS, QMIDMS_UIM_VERIFY_PIN_REQ, DmsUIMVerifyPinReqSend, (void *)pPinCode);
    err = QmiThreadSendQMI(pRequest, &pResponse);
    qmi_rsp_check_and_return();

    free(pResponse);
    return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x60, %rsp
movq %rdi, -0x10(%rbp)
cmpl $0x0, 0x28edd(%rip)     # 0x37300
je 0xe445
movq -0x10(%rbp), %rcx
movl $0xb, %edi
movl $0x26, %esi
leaq 0x3746(%rip), %rdx      # 0x11b80
callq 0x11170
movq %rax, -0x18(%rbp)
jmp 0xe463
movq -0x10(%rbp), %rcx
movl $0x2, %edi
movl $0x28, %esi
leaq 0x37d6(%rip), %rdx      # 0x11c30
callq 0x11170
movq %rax, -0x18(%rbp)
movq -0x18(%rbp), %rdi
leaq -0x20(%rbp), %rsi
movl $0x7530, %edx           # imm = 0x7530
leaq 0x1f708(%rip), %rcx     # 0x2db7f
callq 0xc670
movl %eax, -0x2c(%rbp)
cmpl $0x0, -0x2c(%rbp)
jl 0xe490
cmpq $0x0, -0x20(%rbp)
jne 0xe512
jmp 0xe492
movq 0x28b47(%rip), %rax     # 0x36fe0
movq (%rax), %rax
movq %rax, -0x38(%rbp)
callq 0x13930
movq -0x38(%rbp), %rdi
movq %rax, %rdx
movl -0x2c(%rbp), %r8d
leaq 0x1f4aa(%rip), %rsi     # 0x2d961
leaq 0x1f6c1(%rip), %rcx     # 0x2db7f
movb $0x0, %al
callq 0x52c0
leaq 0x2999c(%rip), %rax     # 0x37e68
cmpq $0x0, (%rax)
je 0xe505
leaq 0x2998f(%rip), %rax     # 0x37e68
movq (%rax), %rax
movq %rax, -0x40(%rbp)
callq 0x13930
movq -0x40(%rbp), %rdi
movq %rax, %rdx
movl -0x2c(%rbp), %r8d
leaq 0x1f46a(%rip), %rsi     # 0x2d961
leaq 0x1f681(%rip), %rcx     # 0x2db7f
movb $0x0, %al
callq 0x52c0
jmp 0xe507
movl -0x2c(%rbp), %eax
movl %eax, -0x4(%rbp)
jmp 0xe624
movq -0x20(%rbp), %rax
addq $0x6, %rax
movq %rax, -0x28(%rbp)
movq -0x28(%rbp), %rax
movzwl 0xa(%rax), %edi
callq 0x13ed0
movzwl %ax, %eax
cmpl $0x0, %eax
jne 0xe54c
movq -0x28(%rbp), %rax
movzwl 0xc(%rax), %edi
callq 0x13ed0
movzwl %ax, %eax
cmpl $0x0, %eax
je 0xe612
movq -0x28(%rbp), %rax
movzwl 0xc(%rax), %edi
callq 0x13ed0
movw %ax, -0x2e(%rbp)
movq 0x28a7c(%rip), %rax     # 0x36fe0
movq (%rax), %rax
movq %rax, -0x50(%rbp)
callq 0x13930
movq %rax, -0x48(%rbp)
movq -0x28(%rbp), %rax
movzwl 0xa(%rax), %edi
callq 0x13ed0
movq -0x50(%rbp), %rdi
movq -0x48(%rbp), %rdx
movzwl %ax, %r8d
movzwl -0x2e(%rbp), %r9d
leaq 0x1f3da(%rip), %rsi     # 0x2d973
leaq 0x1f5df(%rip), %rcx     # 0x2db7f
movb $0x0, %al
callq 0x52c0
leaq 0x298ba(%rip), %rax     # 0x37e68
cmpq $0x0, (%rax)
je 0xe5fe
leaq 0x298ad(%rip), %rax     # 0x37e68
movq (%rax), %rax
movq %rax, -0x60(%rbp)
callq 0x13930
movq %rax, -0x58(%rbp)
movq -0x28(%rbp), %rax
movzwl 0xa(%rax), %edi
callq 0x13ed0
movq -0x60(%rbp), %rdi
movq -0x58(%rbp), %rdx
movzwl %ax, %r8d
movzwl -0x2e(%rbp), %r9d
leaq 0x1f383(%rip), %rsi     # 0x2d973
leaq 0x1f588(%rip), %rcx     # 0x2db7f
movb $0x0, %al
callq 0x52c0
jmp 0xe600
movq -0x20(%rbp), %rdi
callq 0x5040
movzwl -0x2e(%rbp), %eax
movl %eax, -0x4(%rbp)
jmp 0xe624
jmp 0xe614
movq -0x20(%rbp), %rdi
callq 0x5040
movl $0x0, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x60, %rsp
popq %rbp
retq
nopl (%rax)