// File: /workspace/github_c_makefile_star2_O3/algorithm-archivists[P]GathVL/src/encoders/png_encoder.cpp
// Function: png_encoder::encode(_cairo_surface*)
void png_encoder::encode(cairo_surface_t *image) {
    std::string png_url;
    std::stringstream ss;
    ss << std::setw(5) << std::setfill('0') << count;
    png_url = url + ss.str() + ".png";
    cairo_surface_write_to_png(image, png_url.c_str());
    count++;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x208, %rsp            # imm = 0x208
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x30(%rsp), %r12
movq %r12, -0x10(%r12)
movq $0x0, -0x8(%r12)
movb $0x0, (%r12)
leaq 0x80(%rsp), %rdi
callq 0x5240
movq 0x90(%rsp), %rax
movq -0x18(%rax), %rcx
movq $0x5, 0xa0(%rsp,%rcx)
movq -0x18(%rax), %rax
leaq (%rsp,%rax), %r15
addq $0x90, %r15
cmpb $0x0, 0xe1(%r15)
jne 0x21b9a
movq %r15, %rdi
movl $0x20, %esi
callq 0x57d0
movb $0x1, 0xe1(%r15)
leaq 0x90(%rsp), %rdi
movb $0x30, 0xe0(%r15)
movl 0x28(%rbx), %esi
callq 0x5270
leaq 0x98(%rsp), %rsi
leaq 0x40(%rsp), %rdi
callq 0x52d0
movq 0x8(%rbx), %rcx
movq 0x10(%rbx), %r8
leaq 0x40(%rsp), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x5120
leaq 0x10(%rsp), %r13
movq %r13, -0x10(%r13)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x21c00
movq %rdx, (%rsp)
movq (%rcx), %rdx
movq %rdx, 0x10(%rsp)
jmp 0x21c08
movups (%rcx), %xmm0
movups %xmm0, (%r13)
movq 0x8(%rax), %rdx
movq %rsp, %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x411e(%rip), %rsi      # 0x25d47
callq 0x5510
leaq 0x70(%rsp), %rbp
movq %rbp, -0x10(%rbp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x21c55
movq %rdx, 0x60(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x70(%rsp)
jmp 0x21c5c
movups (%rcx), %xmm0
movups %xmm0, (%rbp)
movq 0x8(%rax), %rdx
leaq 0x60(%rsp), %r15
movq %rdx, 0x8(%r15)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x20(%rsp), %rdi
movq %r15, %rsi
callq 0x53d0
movq (%r15), %rdi
cmpq %rbp, %rdi
je 0x21c9a
movq 0x70(%rsp), %rsi
incq %rsi
callq 0x50c0
movq (%rsp), %rdi
cmpq %r13, %rdi
je 0x21cb0
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x50c0
leaq 0x50(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x21ccb
movq 0x50(%rsp), %rsi
incq %rsi
callq 0x50c0
movq 0x20(%rsp), %rsi
movq %r14, %rdi
callq 0x5310
incl 0x28(%rbx)
movq 0xb2f6(%rip), %rsi      # 0x2cfd8
leaq 0x80(%rsp), %rdi
callq 0x5590
leaq 0x100(%rsp), %rdi
callq 0x5580
movq 0x20(%rsp), %rdi
cmpq %r12, %rdi
je 0x21d13
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x50c0
addq $0x208, %rsp            # imm = 0x208
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq (%rsp), %rdi
cmpq %r13, %rdi
je 0x21d43
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x50c0
jmp 0x21d43
movq %rax, %rbx
leaq 0x50(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x21d6a
movq 0x50(%rsp), %rsi
incq %rsi
callq 0x50c0
jmp 0x21d6a
jmp 0x21d67
movq %rax, %rbx
jmp 0x21d8b
movq %rax, %rbx
movq 0xb267(%rip), %rsi      # 0x2cfd8
leaq 0x80(%rsp), %rdi
callq 0x5590
leaq 0x100(%rsp), %rdi
callq 0x5580
movq 0x20(%rsp), %rdi
cmpq %r12, %rdi
je 0x21da2
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x50c0
movq %rbx, %rdi
callq 0x5500