// File: /workspace/github_c_makefile_star2_O0/mirth-lang[P]mirth/bin/mirth1.c
// Function: big_i63_add
static INT big_i63_add (BIG* a, int64_t b) {
    ASSERT(a); ASSERT(a->size >= 2);
    if (b == 0) return WRAP_BIG(a);
    a = big_reserve(a, a->size+1);

    uint32_t an = NEXT_RADIX(a->radix[a->size-1]);

    uint32_t b0 = LO_RADIX(b);
    uint32_t b1 = HI_RADIX(b);
    uint32_t bn = NEXT_RADIX(b1);

    uint64_t r0 = (uint64_t)(a->radix[0]) + (uint64_t)(b0);
    uint64_t r1 = (uint64_t)(a->radix[1]) + (uint64_t)(b1) + (uint64_t)HI_RADIX(r0);

    a->radix[0] = LO_RADIX(r0);
    a->radix[1] = LO_RADIX(r1);
    uint32_t c = HI_RADIX(r1);
    for (size_t i = 2; i < a->size; i++) {
        uint64_t r = (uint64_t)(a->radix[i]) + (uint64_t)bn + (uint64_t)c;
        a->radix[i] = LO_RADIX(r);
        c = HI_RADIX(r);
    }
    a->radix[a->size++] = an + bn + c;
    return big_normalize(a);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x50, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
cmpq $0x0, -0x10(%rbp)
jne 0x1e7c1
movl $0x2, %edi
leaq 0x335e82(%rip), %rsi    # 0x354625
movl $0x2e, %edx
callq 0x5060
callq 0x5310
callq 0x53b0
movl $0x1, %edi
callq 0x5130
jmp 0x1e7c3
jmp 0x1e7c5
movq -0x10(%rbp), %rax
cmpq $0x2, 0x10(%rax)
jae 0x1e7fa
movl $0x2, %edi
leaq 0x335e78(%rip), %rsi    # 0x354654
movl $0x39, %edx
callq 0x5060
callq 0x5310
callq 0x53b0
movl $0x1, %edi
callq 0x5130
jmp 0x1e7fc
cmpq $0x0, -0x18(%rbp)
jne 0x1e810
movq -0x10(%rbp), %rax
movq %rax, -0x8(%rbp)
jmp 0x1e960
movq -0x10(%rbp), %rdi
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rsi
addq $0x1, %rsi
callq 0x1c970
movq %rax, -0x10(%rbp)
movq -0x10(%rbp), %rax
movq -0x10(%rbp), %rcx
movq 0x10(%rcx), %rcx
subq $0x1, %rcx
movl 0x18(%rax,%rcx,4), %edx
andl $0x80000000, %edx       # imm = 0x80000000
xorl %eax, %eax
movl $0xffffffff, %ecx       # imm = 0xFFFFFFFF
cmpl $0x0, %edx
cmovnel %ecx, %eax
movl %eax, -0x1c(%rbp)
movq -0x18(%rbp), %rax
movl %eax, -0x20(%rbp)
movq -0x18(%rbp), %rax
shrq $0x20, %rax
movl %eax, -0x24(%rbp)
movl -0x24(%rbp), %edx
andl $0x80000000, %edx       # imm = 0x80000000
xorl %eax, %eax
movl $0xffffffff, %ecx       # imm = 0xFFFFFFFF
cmpl $0x0, %edx
cmovnel %ecx, %eax
movl %eax, -0x28(%rbp)
movq -0x10(%rbp), %rax
movl 0x18(%rax), %eax
movl -0x20(%rbp), %ecx
addq %rcx, %rax
movq %rax, -0x30(%rbp)
movq -0x10(%rbp), %rax
movl 0x1c(%rax), %eax
movl -0x24(%rbp), %ecx
addq %rcx, %rax
movq -0x30(%rbp), %rcx
shrq $0x20, %rcx
movl %ecx, %ecx
addq %rcx, %rax
movq %rax, -0x38(%rbp)
movq -0x30(%rbp), %rax
movl %eax, %ecx
movq -0x10(%rbp), %rax
movl %ecx, 0x18(%rax)
movq -0x38(%rbp), %rax
movl %eax, %ecx
movq -0x10(%rbp), %rax
movl %ecx, 0x1c(%rax)
movq -0x38(%rbp), %rax
shrq $0x20, %rax
movl %eax, -0x3c(%rbp)
movq $0x2, -0x48(%rbp)
movq -0x48(%rbp), %rax
movq -0x10(%rbp), %rcx
cmpq 0x10(%rcx), %rax
jae 0x1e92f
movq -0x10(%rbp), %rax
movq -0x48(%rbp), %rcx
movl 0x18(%rax,%rcx,4), %eax
movl -0x28(%rbp), %ecx
addq %rcx, %rax
movl -0x3c(%rbp), %ecx
addq %rcx, %rax
movq %rax, -0x50(%rbp)
movq -0x50(%rbp), %rax
movl %eax, %edx
movq -0x10(%rbp), %rax
movq -0x48(%rbp), %rcx
movl %edx, 0x18(%rax,%rcx,4)
movq -0x50(%rbp), %rax
shrq $0x20, %rax
movl %eax, -0x3c(%rbp)
movq -0x48(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x48(%rbp)
jmp 0x1e8da
movl -0x1c(%rbp), %edx
addl -0x28(%rbp), %edx
addl -0x3c(%rbp), %edx
movq -0x10(%rbp), %rax
movq -0x10(%rbp), %rsi
movq 0x10(%rsi), %rcx
movq %rcx, %rdi
addq $0x1, %rdi
movq %rdi, 0x10(%rsi)
movl %edx, 0x18(%rax,%rcx,4)
movq -0x10(%rbp), %rdi
callq 0x1cad0
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
addq $0x50, %rsp
popq %rbp
retq
nopw (%rax,%rax)