// File: /workspace/github_c_makefile_star2_O1/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 0x5250
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 0x21639
movq %r15, %rdi
movl $0x20, %esi
callq 0x57d0
movb %al, 0xe0(%r15)
movb $0x1, 0xe1(%r15)
leaq 0x90(%rsp), %rdi
movb $0x30, 0xe0(%r15)
movl 0x28(%rbx), %esi
callq 0x5280
leaq 0x98(%rsp), %rsi
leaq 0x40(%rsp), %rdi
callq 0x52e0
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 0x2169f
movq %rdx, (%rsp)
movq (%rcx), %rdx
movq %rdx, 0x10(%rsp)
jmp 0x216a7
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 0x453f(%rip), %rsi      # 0x25c07
callq 0x5520
leaq 0x70(%rsp), %rbp
movq %rbp, -0x10(%rbp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x216f4
movq %rdx, 0x60(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x70(%rsp)
jmp 0x216fb
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 0x53e0
movq (%r15), %rdi
cmpq %rbp, %rdi
je 0x21739
movq 0x70(%rsp), %rsi
incq %rsi
callq 0x50c0
movq (%rsp), %rdi
cmpq %r13, %rdi
je 0x2174f
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x50c0
leaq 0x50(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x2176a
movq 0x50(%rsp), %rsi
incq %rsi
callq 0x50c0
movq 0x20(%rsp), %rsi
movq %r14, %rdi
callq 0x5320
incl 0x28(%rbx)
movq 0xb857(%rip), %rsi      # 0x2cfd8
leaq 0x80(%rsp), %rdi
callq 0x55a0
leaq 0x100(%rsp), %rdi
callq 0x5590
movq 0x20(%rsp), %rdi
cmpq %r12, %rdi
je 0x217b2
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 0x217e2
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x50c0
jmp 0x217e2
movq %rax, %rbx
leaq 0x50(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x21809
movq 0x50(%rsp), %rsi
incq %rsi
callq 0x50c0
jmp 0x21809
jmp 0x21806
movq %rax, %rbx
jmp 0x2182a
movq %rax, %rbx
movq 0xb7c8(%rip), %rsi      # 0x2cfd8
leaq 0x80(%rsp), %rdi
callq 0x55a0
leaq 0x100(%rsp), %rdi
callq 0x5590
movq 0x20(%rsp), %rdi
cmpq %r12, %rdi
je 0x21841
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x50c0
movq %rbx, %rdi
callq 0x5510
nop