// File: /workspace/github_c_makefile_star2_O2/yahya-tamur[P]Visualising-Complex-Functions/gifenc.c
// Function: ge_add_frame
void ge_add_frame(ge_GIF *gif, uint16_t delay) {
    uint16_t w, h, x, y;
    uint8_t *tmp;

    if (delay)
        set_delay(gif, delay);
    w = gif->w;
    h = gif->h;
    x = y = 0;
    put_image(gif, w, h, x, y);
    gif->nframes++;
    tmp = gif->back;
    gif->back = gif->frame;
    gif->frame = tmp;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
testl %esi, %esi
movq %rdi, 0x8(%rsp)
je 0x257d
movl %esi, %ebp
movq 0x8(%rsp), %rax
movl 0x8(%rax), %edi
leaq 0x10(%rsp), %rsi
movl $0x404f921, (%rsi)      # imm = 0x404F921
pushq $0x4
popq %rdx
callq 0x2070
movq 0x8(%rsp), %rax
movl 0x8(%rax), %edi
leaq 0x15(%rsp), %rsi
movw %bp, (%rsi)
pushq $0x2
popq %r14
movq %r14, %rdx
callq 0x2070
movq 0x8(%rsp), %rax
movl 0x8(%rax), %edi
leaq 0x1aaf(%rip), %rsi      # 0x401f
movq %r14, %rdx
callq 0x2070
movq 0x8(%rsp), %rdi
movzwl (%rdi), %r12d
movzwl 0x2(%rdi), %ebp
movb 0x4(%rdi), %cl
pushq $0x1
popq %rax
movl %eax, %r14d
shll %cl, %r14d
movq 0x8(%rsp), %rax
movl 0x8(%rax), %edi
leaq 0x1a79(%rip), %rsi      # 0x4019
pushq $0x1
popq %rdx
callq 0x2070
movq 0x8(%rsp), %rax
movl 0x8(%rax), %edi
leaq 0x15(%rsp), %rsi
andw $0x0, (%rsi)
pushq $0x2
popq %r15
movq %r15, %rdx
callq 0x2070
movq 0x8(%rsp), %rax
movl 0x8(%rax), %edi
leaq 0x36(%rsp), %rsi
andw $0x0, (%rsi)
movq %r15, %rdx
callq 0x2070
movq 0x8(%rsp), %rax
movl 0x8(%rax), %edi
leaq 0x34(%rsp), %rsi
movw %r12w, (%rsi)
movq %r15, %rdx
callq 0x2070
movq 0x8(%rsp), %rax
movl 0x8(%rax), %edi
leaq 0x32(%rsp), %rsi
movl %ebp, 0x24(%rsp)
movw %bp, (%rsi)
movq %r15, %rdx
callq 0x2070
movq 0x8(%rsp), %rax
movl 0x8(%rax), %edi
leaq 0x30(%rsp), %rsi
movb $0x0, (%rsi)
movq 0x8(%rsp), %rax
movb 0x4(%rax), %al
movb %al, 0x1(%rsi)
movq %r15, %rdx
callq 0x2070
leaq 0x10(%rsp), %rsi
movl %r14d, %edi
callq 0x2848
movq %rax, %r15
movq 0x8(%rsp), %rax
movl 0x4(%rax), %ebp
incl %ebp
movzwl %r14w, %esi
movq 0x8(%rsp), %rdi
movl %esi, 0x28(%rsp)
movl %ebp, %edx
callq 0x2899
movq 0x8(%rsp), %rdi
movq %r12, %rcx
movq %r14, 0x18(%rsp)
leal -0x1(%r14), %eax
xorl %esi, %esi
movzbl %al, %r8d
movq %r15, %rbx
movq %r12, 0x38(%rsp)
movl %r8d, 0x2c(%rsp)
cmpl 0x24(%rsp), %esi
je 0x2767
xorl %r13d, %r13d
movq %rsi, 0x40(%rsp)
cmpl %r13d, %ecx
je 0x275f
movzwl (%rdi), %edx
imulq %rsi, %rdx
addq 0x18(%rdi), %rdx
movzbl (%r13,%rdx), %r12d
andl %r8d, %r12d
movq 0x8(%r15,%r12,8), %rdx
testq %rdx, %rdx
jne 0x2754
movzwl (%r15), %esi
movq %rdi, %r14
movl %ebp, %edx
callq 0x2899
movl 0x10(%rsp), %eax
cmpl $0xfff, %eax            # imm = 0xFFF
jg 0x2709
pushq $0x1
popq %rdx
movl %ebp, %ecx
shll %cl, %edx
xorl %ecx, %ecx
cmpl %edx, %eax
sete %cl
addl %ecx, %ebp
leal 0x1(%rax), %ecx
movl %ecx, 0x10(%rsp)
movzwl %ax, %edi
movq 0x18(%rsp), %rsi
callq 0x2936
movq %rax, 0x8(%r15,%r12,8)
jmp 0x273d
movq %r14, %rdi
movl 0x28(%rsp), %esi
movl %ebp, %edx
callq 0x2899
movq %rbx, %rdi
movq 0x18(%rsp), %r15
movl %r15d, %esi
callq 0x2956
movl %r15d, %edi
leaq 0x10(%rsp), %rsi
callq 0x2848
movq %rax, %rbx
movl 0x4(%r14), %ebp
incl %ebp
movq %r14, %rdi
movq 0x8(%rbx,%r12,8), %rdx
movq 0x38(%rsp), %rcx
movq 0x40(%rsp), %rsi
movl 0x2c(%rsp), %r8d
incq %r13
movq %rdx, %r15
jmp 0x269a
incq %rsi
jmp 0x2688
movq %rbx, %r14
movzwl (%r15), %esi
movq 0x8(%rsp), %rdi
movl %ebp, %edx
callq 0x2899
movq 0x18(%rsp), %rax
incl %eax
movzwl %ax, %esi
movq 0x8(%rsp), %rdi
movl %ebp, %edx
callq 0x2899
movq 0x8(%rsp), %rbx
movl 0xc(%rbx), %ecx
pushq $0x8
popq %rsi
movl %ecx, %eax
cltd
idivl %esi
movl %eax, %ebp
testb $0x7, %cl
je 0x27b3
movb 0x28(%rbx), %al
movslq %ebp, %rcx
incl %ebp
movb %al, 0x2c(%rbx,%rcx)
movl 0x8(%rbx), %edi
leaq 0x17(%rsp), %rsi
movb %bpl, (%rsi)
pushq $0x1
popq %r15
movq %r15, %rdx
callq 0x2070
movl 0x8(%rbx), %edi
leaq 0x2c(%rbx), %rsi
movslq %ebp, %rdx
callq 0x2070
movl 0x8(%rbx), %edi
leaq 0x183a(%rip), %rsi      # 0x401d
movq %r15, %rdx
callq 0x2070
andl $0x0, 0x28(%rbx)
andl $0x0, 0xc(%rbx)
movq %r14, %rdi
movq 0x18(%rsp), %rsi
callq 0x2956
incl 0x10(%rbx)
movdqu 0x18(%rbx), %xmm0
pshufd $0x4e, %xmm0, %xmm0     # xmm0 = xmm0[2,3,0,1]
movdqu %xmm0, 0x18(%rbx)
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq