// File: /workspace/github_c_makefile_star2_O1/Carton32[P]quectel-CM/mbim-cm.c
// Function: mbim_update_state
static int mbim_update_state(void) {
    int chages = 0;

    if (oldReadyState != ReadyState) {
        mbim_debug("SubscriberReadyState %s -> %s ", MBIMSubscriberReadyStateStr(oldReadyState), MBIMSubscriberReadyStateStr(ReadyState));
        oldReadyState = ReadyState; chages++;
    }
    if (oldRegisterState != RegisterState) {
        mbim_debug("RegisterState %s -> %s ", MBIMRegisterStateStr(oldRegisterState), MBIMRegisterStateStr(RegisterState));
        oldRegisterState = RegisterState; chages++;
    }
    if (oldPacketServiceState != PacketServiceState) {
        mbim_debug("PacketServiceState %s -> %s ", MBIMPacketServiceStateStr(oldPacketServiceState), MBIMPacketServiceStateStr(PacketServiceState));
        oldPacketServiceState = PacketServiceState; chages++;
    }
    if (oldActivationState != ActivationState) {
        mbim_debug("ActivationState %s -> %s ", MBIMActivationStateStr(oldActivationState), MBIMActivationStateStr(ActivationState));
        oldActivationState = ActivationState; chages++;
    }

    return chages;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movl 0x16288(%rip), %eax     # 0x2bef4
cmpl 0x16286(%rip), %eax     # 0x2bef8
je 0x15d72
movq 0x14341(%rip), %rax     # 0x29fc0
movq (%rax), %rbx
callq 0xeb2f
movl $0x4, %ecx
movl 0x16262(%rip), %edx     # 0x2bef4
leaq 0x13ef7(%rip), %r14     # 0x29b90
leaq 0xc24d(%rip), %r8       # 0x21eed
cmpl %edx, -0x4(%rcx,%r14)
je 0x15cb6
addq $0xc, %rcx
cmpq $0x58, %rcx
jne 0x15ca0
movq %r8, %rcx
jmp 0x15cba
movq (%rcx,%r14), %rcx
movl $0x4, %edx
movl 0x16233(%rip), %esi     # 0x2bef8
cmpl %esi, -0x4(%rdx,%r14)
je 0x15cd8
addq $0xc, %rdx
cmpq $0x58, %rdx
jne 0x15cc5
jmp 0x15cdc
movq (%rdx,%r14), %r8
leaq 0xc59a(%rip), %rsi      # 0x2227d
movq %rbx, %rdi
movq %rax, %rdx
xorl %eax, %eax
callq 0x52c0
leaq 0x14fb1(%rip), %rax     # 0x2aca8
movq (%rax), %rbx
testq %rbx, %rbx
je 0x15d66
callq 0xeb2f
movl $0x4, %ecx
movl 0x161e5(%rip), %edx     # 0x2bef4
leaq 0xc1d7(%rip), %r8       # 0x21eed
cmpl %edx, -0x4(%rcx,%r14)
je 0x15d2c
addq $0xc, %rcx
cmpq $0x58, %rcx
jne 0x15d16
movq %r8, %rcx
jmp 0x15d30
movq (%rcx,%r14), %rcx
movl $0x4, %edx
movl 0x161bd(%rip), %esi     # 0x2bef8
cmpl %esi, -0x4(%rdx,%r14)
je 0x15d4e
addq $0xc, %rdx
cmpq $0x58, %rdx
jne 0x15d3b
jmp 0x15d52
movq (%rdx,%r14), %r8
leaq 0xc524(%rip), %rsi      # 0x2227d
movq %rbx, %rdi
movq %rax, %rdx
xorl %eax, %eax
callq 0x52c0
movl 0x1618c(%rip), %eax     # 0x2bef8
movl %eax, 0x16182(%rip)     # 0x2bef4
movl 0x16184(%rip), %eax     # 0x2befc
cmpl 0x16182(%rip), %eax     # 0x2bf00
je 0x15e7e
movq 0x14235(%rip), %rax     # 0x29fc0
movq (%rax), %rbx
callq 0xeb2f
movl $0x4, %ecx
movl 0x1615e(%rip), %edx     # 0x2befc
leaq 0x13e4b(%rip), %r14     # 0x29bf0
leaq 0xc141(%rip), %r8       # 0x21eed
cmpl %edx, -0x4(%rcx,%r14)
je 0x15dc2
addq $0xc, %rcx
cmpq $0x58, %rcx
jne 0x15dac
movq %r8, %rcx
jmp 0x15dc6
movq (%rcx,%r14), %rcx
movl $0x4, %edx
movl 0x1612f(%rip), %esi     # 0x2bf00
cmpl %esi, -0x4(%rdx,%r14)
je 0x15de4
addq $0xc, %rdx
cmpq $0x58, %rdx
jne 0x15dd1
jmp 0x15de8
movq (%rdx,%r14), %r8
leaq 0xc4b3(%rip), %rsi      # 0x222a2
movq %rbx, %rdi
movq %rax, %rdx
xorl %eax, %eax
callq 0x52c0
leaq 0x14ea5(%rip), %rax     # 0x2aca8
movq (%rax), %rbx
testq %rbx, %rbx
je 0x15e72
callq 0xeb2f
movl $0x4, %ecx
movl 0x160e1(%rip), %edx     # 0x2befc
leaq 0xc0cb(%rip), %r8       # 0x21eed
cmpl %edx, -0x4(%rcx,%r14)
je 0x15e38
addq $0xc, %rcx
cmpq $0x58, %rcx
jne 0x15e22
movq %r8, %rcx
jmp 0x15e3c
movq (%rcx,%r14), %rcx
movl $0x4, %edx
movl 0x160b9(%rip), %esi     # 0x2bf00
cmpl %esi, -0x4(%rdx,%r14)
je 0x15e5a
addq $0xc, %rdx
cmpq $0x58, %rdx
jne 0x15e47
jmp 0x15e5e
movq (%rdx,%r14), %r8
leaq 0xc43d(%rip), %rsi      # 0x222a2
movq %rbx, %rdi
movq %rax, %rdx
xorl %eax, %eax
callq 0x52c0
movl 0x16088(%rip), %eax     # 0x2bf00
movl %eax, 0x1607e(%rip)     # 0x2befc
movl 0x16080(%rip), %eax     # 0x2bf04
cmpl 0x1607e(%rip), %eax     # 0x2bf08
je 0x15f8a
movq 0x14129(%rip), %rax     # 0x29fc0
movq (%rax), %rbx
callq 0xeb2f
movl $0x4, %ecx
movl 0x1605a(%rip), %edx     # 0x2bf04
leaq 0x13bcf(%rip), %r14     # 0x29a80
leaq 0xc035(%rip), %r8       # 0x21eed
cmpl %edx, -0x4(%rcx,%r14)
je 0x15ece
addq $0xc, %rcx
cmpq $0x40, %rcx
jne 0x15eb8
movq %r8, %rcx
jmp 0x15ed2
movq (%rcx,%r14), %rcx
movl $0x4, %edx
movl 0x1602b(%rip), %esi     # 0x2bf08
cmpl %esi, -0x4(%rdx,%r14)
je 0x15ef0
addq $0xc, %rdx
cmpq $0x40, %rdx
jne 0x15edd
jmp 0x15ef4
movq (%rdx,%r14), %r8
leaq 0xc3c5(%rip), %rsi      # 0x222c0
movq %rbx, %rdi
movq %rax, %rdx
xorl %eax, %eax
callq 0x52c0
leaq 0x14d99(%rip), %rax     # 0x2aca8
movq (%rax), %rbx
testq %rbx, %rbx
je 0x15f7e
callq 0xeb2f
movl $0x4, %ecx
movl 0x15fdd(%rip), %edx     # 0x2bf04
leaq 0xbfbf(%rip), %r8       # 0x21eed
cmpl %edx, -0x4(%rcx,%r14)
je 0x15f44
addq $0xc, %rcx
cmpq $0x40, %rcx
jne 0x15f2e
movq %r8, %rcx
jmp 0x15f48
movq (%rcx,%r14), %rcx
movl $0x4, %edx
movl 0x15fb5(%rip), %esi     # 0x2bf08
cmpl %esi, -0x4(%rdx,%r14)
je 0x15f66
addq $0xc, %rdx
cmpq $0x40, %rdx
jne 0x15f53
jmp 0x15f6a
movq (%rdx,%r14), %r8
leaq 0xc34f(%rip), %rsi      # 0x222c0
movq %rbx, %rdi
movq %rax, %rdx
xorl %eax, %eax
callq 0x52c0
movl 0x15f84(%rip), %eax     # 0x2bf08
movl %eax, 0x15f7a(%rip)     # 0x2bf04
movl 0x15f7c(%rip), %eax     # 0x2bf0c
cmpl 0x15f7a(%rip), %eax     # 0x2bf10
je 0x16096
movq 0x1401d(%rip), %rax     # 0x29fc0
movq (%rax), %rbx
callq 0xeb2f
movl $0x4, %ecx
movl 0x15f56(%rip), %edx     # 0x2bf0c
leaq 0x13a13(%rip), %r14     # 0x299d0
leaq 0xbf29(%rip), %r8       # 0x21eed
cmpl %edx, -0x4(%rcx,%r14)
je 0x15fda
addq $0xc, %rcx
cmpq $0x40, %rcx
jne 0x15fc4
movq %r8, %rcx
jmp 0x15fde
movq (%rcx,%r14), %rcx
movl $0x4, %edx
movl 0x15f27(%rip), %esi     # 0x2bf10
cmpl %esi, -0x4(%rdx,%r14)
je 0x15ffc
addq $0xc, %rdx
cmpq $0x40, %rdx
jne 0x15fe9
jmp 0x16000
movq (%rdx,%r14), %r8
leaq 0xc2dc(%rip), %rsi      # 0x222e3
movq %rbx, %rdi
movq %rax, %rdx
xorl %eax, %eax
callq 0x52c0
leaq 0x14c8d(%rip), %rax     # 0x2aca8
movq (%rax), %rbx
testq %rbx, %rbx
je 0x1608a
callq 0xeb2f
movl $0x4, %ecx
movl 0x15ed9(%rip), %edx     # 0x2bf0c
leaq 0xbeb3(%rip), %r8       # 0x21eed
cmpl %edx, -0x4(%rcx,%r14)
je 0x16050
addq $0xc, %rcx
cmpq $0x40, %rcx
jne 0x1603a
movq %r8, %rcx
jmp 0x16054
movq (%rcx,%r14), %rcx
movl $0x4, %edx
movl 0x15eb1(%rip), %esi     # 0x2bf10
cmpl %esi, -0x4(%rdx,%r14)
je 0x16072
addq $0xc, %rdx
cmpq $0x40, %rdx
jne 0x1605f
jmp 0x16076
movq (%rdx,%r14), %r8
leaq 0xc266(%rip), %rsi      # 0x222e3
movq %rbx, %rdi
movq %rax, %rdx
xorl %eax, %eax
callq 0x52c0
movl 0x15e80(%rip), %eax     # 0x2bf10
movl %eax, 0x15e76(%rip)     # 0x2bf0c
addq $0x8, %rsp
popq %rbx
popq %r14
retq