// File: /workspace/github_c_makefile_star2_O0/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 %rbp
movq %rsp, %rbp
subq $0xd0, %rsp
movl $0x0, -0x4(%rbp)
movl 0x1d37c(%rip), %eax     # 0x390c4
cmpl 0x1d37a(%rip), %eax     # 0x390c8
je 0x1be16
jmp 0x1bd56
movq 0x1b283(%rip), %rax     # 0x36fe0
movq (%rax), %rax
movq %rax, -0x20(%rbp)
callq 0x13930
movq %rax, -0x18(%rbp)
movl 0x1d351(%rip), %edi     # 0x390c4
callq 0x1b390
movq %rax, -0x10(%rbp)
movl 0x1d346(%rip), %edi     # 0x390c8
callq 0x1b390
movq -0x20(%rbp), %rdi
movq -0x18(%rbp), %rdx
movq -0x10(%rbp), %rcx
movq %rax, %r8
leaq 0x13769(%rip), %rsi     # 0x2f506
movb $0x0, %al
callq 0x52c0
leaq 0x1c0bd(%rip), %rax     # 0x37e68
cmpq $0x0, (%rax)
je 0x1bdff
leaq 0x1c0b0(%rip), %rax     # 0x37e68
movq (%rax), %rax
movq %rax, -0x38(%rbp)
callq 0x13930
movq %rax, -0x30(%rbp)
movl 0x1d2f6(%rip), %edi     # 0x390c4
callq 0x1b390
movq %rax, -0x28(%rbp)
movl 0x1d2eb(%rip), %edi     # 0x390c8
callq 0x1b390
movq -0x38(%rbp), %rdi
movq -0x30(%rbp), %rdx
movq -0x28(%rbp), %rcx
movq %rax, %r8
leaq 0x1370e(%rip), %rsi     # 0x2f506
movb $0x0, %al
callq 0x52c0
jmp 0x1be01
movl 0x1d2c1(%rip), %eax     # 0x390c8
movl %eax, 0x1d2b7(%rip)     # 0x390c4
movl -0x4(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x4(%rbp)
movl 0x1d2b0(%rip), %eax     # 0x390cc
cmpl 0x1d2ae(%rip), %eax     # 0x390d0
je 0x1beea
jmp 0x1be2a
movq 0x1b1af(%rip), %rax     # 0x36fe0
movq (%rax), %rax
movq %rax, -0x50(%rbp)
callq 0x13930
movq %rax, -0x48(%rbp)
movl 0x1d285(%rip), %edi     # 0x390cc
callq 0x1b480
movq %rax, -0x40(%rbp)
movl 0x1d27a(%rip), %edi     # 0x390d0
callq 0x1b480
movq -0x50(%rbp), %rdi
movq -0x48(%rbp), %rdx
movq -0x40(%rbp), %rcx
movq %rax, %r8
leaq 0x136ba(%rip), %rsi     # 0x2f52b
movb $0x0, %al
callq 0x52c0
leaq 0x1bfe9(%rip), %rax     # 0x37e68
cmpq $0x0, (%rax)
je 0x1bed3
leaq 0x1bfdc(%rip), %rax     # 0x37e68
movq (%rax), %rax
movq %rax, -0x68(%rbp)
callq 0x13930
movq %rax, -0x60(%rbp)
movl 0x1d22a(%rip), %edi     # 0x390cc
callq 0x1b480
movq %rax, -0x58(%rbp)
movl 0x1d21f(%rip), %edi     # 0x390d0
callq 0x1b480
movq -0x68(%rbp), %rdi
movq -0x60(%rbp), %rdx
movq -0x58(%rbp), %rcx
movq %rax, %r8
leaq 0x1365f(%rip), %rsi     # 0x2f52b
movb $0x0, %al
callq 0x52c0
jmp 0x1bed5
movl 0x1d1f5(%rip), %eax     # 0x390d0
movl %eax, 0x1d1eb(%rip)     # 0x390cc
movl -0x4(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x4(%rbp)
movl 0x1d1e4(%rip), %eax     # 0x390d4
cmpl 0x1d1e2(%rip), %eax     # 0x390d8
je 0x1bfd0
jmp 0x1befe
movq 0x1b0db(%rip), %rax     # 0x36fe0
movq (%rax), %rax
movq %rax, -0x80(%rbp)
callq 0x13930
movq %rax, -0x78(%rbp)
movl 0x1d1b9(%rip), %edi     # 0x390d4
callq 0x1b260
movq %rax, -0x70(%rbp)
movl 0x1d1ae(%rip), %edi     # 0x390d8
callq 0x1b260
movq -0x80(%rbp), %rdi
movq -0x78(%rbp), %rdx
movq -0x70(%rbp), %rcx
movq %rax, %r8
leaq 0x13604(%rip), %rsi     # 0x2f549
movb $0x0, %al
callq 0x52c0
leaq 0x1bf15(%rip), %rax     # 0x37e68
cmpq $0x0, (%rax)
je 0x1bfb9
leaq 0x1bf08(%rip), %rax     # 0x37e68
movq (%rax), %rax
movq %rax, -0x98(%rbp)
callq 0x13930
movq %rax, -0x90(%rbp)
movl 0x1d158(%rip), %edi     # 0x390d4
callq 0x1b260
movq %rax, -0x88(%rbp)
movl 0x1d14a(%rip), %edi     # 0x390d8
callq 0x1b260
movq -0x98(%rbp), %rdi
movq -0x90(%rbp), %rdx
movq -0x88(%rbp), %rcx
movq %rax, %r8
leaq 0x13597(%rip), %rsi     # 0x2f549
movb $0x0, %al
callq 0x52c0
jmp 0x1bfbb
movl 0x1d117(%rip), %eax     # 0x390d8
movl %eax, 0x1d10d(%rip)     # 0x390d4
movl -0x4(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x4(%rbp)
movl 0x1d106(%rip), %eax     # 0x390dc
cmpl 0x1d104(%rip), %eax     # 0x390e0
je 0x1c0c8
jmp 0x1bfe4
movq 0x1aff5(%rip), %rax     # 0x36fe0
movq (%rax), %rax
movq %rax, -0xb0(%rbp)
callq 0x13930
movq %rax, -0xa8(%rbp)
movl 0x1d0d5(%rip), %edi     # 0x390dc
callq 0x1b0e0
movq %rax, -0xa0(%rbp)
movl 0x1d0c7(%rip), %edi     # 0x390e0
callq 0x1b0e0
movq -0xb0(%rbp), %rdi
movq -0xa8(%rbp), %rdx
movq -0xa0(%rbp), %rcx
movq %rax, %r8
leaq 0x1352f(%rip), %rsi     # 0x2f56c
movb $0x0, %al
callq 0x52c0
leaq 0x1be1d(%rip), %rax     # 0x37e68
cmpq $0x0, (%rax)
je 0x1c0b1
leaq 0x1be10(%rip), %rax     # 0x37e68
movq (%rax), %rax
movq %rax, -0xc8(%rbp)
callq 0x13930
movq %rax, -0xc0(%rbp)
movl 0x1d068(%rip), %edi     # 0x390dc
callq 0x1b0e0
movq %rax, -0xb8(%rbp)
movl 0x1d05a(%rip), %edi     # 0x390e0
callq 0x1b0e0
movq -0xc8(%rbp), %rdi
movq -0xc0(%rbp), %rdx
movq -0xb8(%rbp), %rcx
movq %rax, %r8
leaq 0x134c2(%rip), %rsi     # 0x2f56c
movb $0x0, %al
callq 0x52c0
jmp 0x1c0b3
movl 0x1d027(%rip), %eax     # 0x390e0
movl %eax, 0x1d01d(%rip)     # 0x390dc
movl -0x4(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0xd0, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)