// File: /workspace/github_c_makefile_star2_O3/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 0x1644b(%rip), %eax     # 0x2bef4
cmpl 0x16449(%rip), %eax     # 0x2bef8
je 0x15baf
movq 0x14504(%rip), %rax     # 0x29fc0
movq (%rax), %rbx
callq 0xea3b
movl $0x4, %ecx
movl 0x16425(%rip), %edx     # 0x2bef4
leaq 0x140ba(%rip), %r14     # 0x29b90
leaq 0xc438(%rip), %r8       # 0x21f15
cmpl %edx, -0x4(%rcx,%r14)
je 0x15af3
addq $0xc, %rcx
cmpq $0x58, %rcx
jne 0x15add
movq %r8, %rcx
jmp 0x15af7
movq (%rcx,%r14), %rcx
movl $0x4, %edx
movl 0x163f6(%rip), %esi     # 0x2bef8
cmpl %esi, -0x4(%rdx,%r14)
je 0x15b15
addq $0xc, %rdx
cmpq $0x58, %rdx
jne 0x15b02
jmp 0x15b19
movq (%rdx,%r14), %r8
leaq 0xc785(%rip), %rsi      # 0x222a5
movq %rbx, %rdi
movq %rax, %rdx
xorl %eax, %eax
callq 0x52c0
leaq 0x15174(%rip), %rax     # 0x2aca8
movq (%rax), %rbx
testq %rbx, %rbx
je 0x15ba3
callq 0xea3b
movl $0x4, %ecx
movl 0x163a8(%rip), %edx     # 0x2bef4
leaq 0xc3c2(%rip), %r8       # 0x21f15
cmpl %edx, -0x4(%rcx,%r14)
je 0x15b69
addq $0xc, %rcx
cmpq $0x58, %rcx
jne 0x15b53
movq %r8, %rcx
jmp 0x15b6d
movq (%rcx,%r14), %rcx
movl $0x4, %edx
movl 0x16380(%rip), %esi     # 0x2bef8
cmpl %esi, -0x4(%rdx,%r14)
je 0x15b8b
addq $0xc, %rdx
cmpq $0x58, %rdx
jne 0x15b78
jmp 0x15b8f
movq (%rdx,%r14), %r8
leaq 0xc70f(%rip), %rsi      # 0x222a5
movq %rbx, %rdi
movq %rax, %rdx
xorl %eax, %eax
callq 0x52c0
movl 0x1634f(%rip), %eax     # 0x2bef8
movl %eax, 0x16345(%rip)     # 0x2bef4
movl 0x16347(%rip), %eax     # 0x2befc
cmpl 0x16345(%rip), %eax     # 0x2bf00
je 0x15cbb
movq 0x143f8(%rip), %rax     # 0x29fc0
movq (%rax), %rbx
callq 0xea3b
movl $0x4, %ecx
movl 0x16321(%rip), %edx     # 0x2befc
leaq 0x1400e(%rip), %r14     # 0x29bf0
leaq 0xc32c(%rip), %r8       # 0x21f15
cmpl %edx, -0x4(%rcx,%r14)
je 0x15bff
addq $0xc, %rcx
cmpq $0x58, %rcx
jne 0x15be9
movq %r8, %rcx
jmp 0x15c03
movq (%rcx,%r14), %rcx
movl $0x4, %edx
movl 0x162f2(%rip), %esi     # 0x2bf00
cmpl %esi, -0x4(%rdx,%r14)
je 0x15c21
addq $0xc, %rdx
cmpq $0x58, %rdx
jne 0x15c0e
jmp 0x15c25
movq (%rdx,%r14), %r8
leaq 0xc69e(%rip), %rsi      # 0x222ca
movq %rbx, %rdi
movq %rax, %rdx
xorl %eax, %eax
callq 0x52c0
leaq 0x15068(%rip), %rax     # 0x2aca8
movq (%rax), %rbx
testq %rbx, %rbx
je 0x15caf
callq 0xea3b
movl $0x4, %ecx
movl 0x162a4(%rip), %edx     # 0x2befc
leaq 0xc2b6(%rip), %r8       # 0x21f15
cmpl %edx, -0x4(%rcx,%r14)
je 0x15c75
addq $0xc, %rcx
cmpq $0x58, %rcx
jne 0x15c5f
movq %r8, %rcx
jmp 0x15c79
movq (%rcx,%r14), %rcx
movl $0x4, %edx
movl 0x1627c(%rip), %esi     # 0x2bf00
cmpl %esi, -0x4(%rdx,%r14)
je 0x15c97
addq $0xc, %rdx
cmpq $0x58, %rdx
jne 0x15c84
jmp 0x15c9b
movq (%rdx,%r14), %r8
leaq 0xc628(%rip), %rsi      # 0x222ca
movq %rbx, %rdi
movq %rax, %rdx
xorl %eax, %eax
callq 0x52c0
movl 0x1624b(%rip), %eax     # 0x2bf00
movl %eax, 0x16241(%rip)     # 0x2befc
movl 0x16243(%rip), %eax     # 0x2bf04
cmpl 0x16241(%rip), %eax     # 0x2bf08
je 0x15dc7
movq 0x142ec(%rip), %rax     # 0x29fc0
movq (%rax), %rbx
callq 0xea3b
movl $0x4, %ecx
movl 0x1621d(%rip), %edx     # 0x2bf04
leaq 0x13d92(%rip), %r14     # 0x29a80
leaq 0xc220(%rip), %r8       # 0x21f15
cmpl %edx, -0x4(%rcx,%r14)
je 0x15d0b
addq $0xc, %rcx
cmpq $0x40, %rcx
jne 0x15cf5
movq %r8, %rcx
jmp 0x15d0f
movq (%rcx,%r14), %rcx
movl $0x4, %edx
movl 0x161ee(%rip), %esi     # 0x2bf08
cmpl %esi, -0x4(%rdx,%r14)
je 0x15d2d
addq $0xc, %rdx
cmpq $0x40, %rdx
jne 0x15d1a
jmp 0x15d31
movq (%rdx,%r14), %r8
leaq 0xc5b0(%rip), %rsi      # 0x222e8
movq %rbx, %rdi
movq %rax, %rdx
xorl %eax, %eax
callq 0x52c0
leaq 0x14f5c(%rip), %rax     # 0x2aca8
movq (%rax), %rbx
testq %rbx, %rbx
je 0x15dbb
callq 0xea3b
movl $0x4, %ecx
movl 0x161a0(%rip), %edx     # 0x2bf04
leaq 0xc1aa(%rip), %r8       # 0x21f15
cmpl %edx, -0x4(%rcx,%r14)
je 0x15d81
addq $0xc, %rcx
cmpq $0x40, %rcx
jne 0x15d6b
movq %r8, %rcx
jmp 0x15d85
movq (%rcx,%r14), %rcx
movl $0x4, %edx
movl 0x16178(%rip), %esi     # 0x2bf08
cmpl %esi, -0x4(%rdx,%r14)
je 0x15da3
addq $0xc, %rdx
cmpq $0x40, %rdx
jne 0x15d90
jmp 0x15da7
movq (%rdx,%r14), %r8
leaq 0xc53a(%rip), %rsi      # 0x222e8
movq %rbx, %rdi
movq %rax, %rdx
xorl %eax, %eax
callq 0x52c0
movl 0x16147(%rip), %eax     # 0x2bf08
movl %eax, 0x1613d(%rip)     # 0x2bf04
movl 0x1613f(%rip), %eax     # 0x2bf0c
cmpl 0x1613d(%rip), %eax     # 0x2bf10
je 0x15ed3
movq 0x141e0(%rip), %rax     # 0x29fc0
movq (%rax), %rbx
callq 0xea3b
movl $0x4, %ecx
movl 0x16119(%rip), %edx     # 0x2bf0c
leaq 0x13bd6(%rip), %r14     # 0x299d0
leaq 0xc114(%rip), %r8       # 0x21f15
cmpl %edx, -0x4(%rcx,%r14)
je 0x15e17
addq $0xc, %rcx
cmpq $0x40, %rcx
jne 0x15e01
movq %r8, %rcx
jmp 0x15e1b
movq (%rcx,%r14), %rcx
movl $0x4, %edx
movl 0x160ea(%rip), %esi     # 0x2bf10
cmpl %esi, -0x4(%rdx,%r14)
je 0x15e39
addq $0xc, %rdx
cmpq $0x40, %rdx
jne 0x15e26
jmp 0x15e3d
movq (%rdx,%r14), %r8
leaq 0xc4c7(%rip), %rsi      # 0x2230b
movq %rbx, %rdi
movq %rax, %rdx
xorl %eax, %eax
callq 0x52c0
leaq 0x14e50(%rip), %rax     # 0x2aca8
movq (%rax), %rbx
testq %rbx, %rbx
je 0x15ec7
callq 0xea3b
movl $0x4, %ecx
movl 0x1609c(%rip), %edx     # 0x2bf0c
leaq 0xc09e(%rip), %r8       # 0x21f15
cmpl %edx, -0x4(%rcx,%r14)
je 0x15e8d
addq $0xc, %rcx
cmpq $0x40, %rcx
jne 0x15e77
movq %r8, %rcx
jmp 0x15e91
movq (%rcx,%r14), %rcx
movl $0x4, %edx
movl 0x16074(%rip), %esi     # 0x2bf10
cmpl %esi, -0x4(%rdx,%r14)
je 0x15eaf
addq $0xc, %rdx
cmpq $0x40, %rdx
jne 0x15e9c
jmp 0x15eb3
movq (%rdx,%r14), %r8
leaq 0xc451(%rip), %rsi      # 0x2230b
movq %rbx, %rdi
movq %rax, %rdx
xorl %eax, %eax
callq 0x52c0
movl 0x16043(%rip), %eax     # 0x2bf10
movl %eax, 0x16039(%rip)     # 0x2bf0c
addq $0x8, %rsp
popq %rbx
popq %r14
retq