LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O2/janet-lang[P]janet/build/c/shell.c
// Function: check_match
static void check_match(JanetByteView src, const uint8_t *testsym, int32_t testlen) {
    JanetByteView test;
    test.bytes = testsym;
    test.len = testlen;
    if (src.len > test.len || strncmp((const char *) src.bytes, (const char *) test.bytes, src.len)) return;
    JanetByteView mm = test;
    for (int i = 0; i < gbl_match_count; i++) {
        if (compare_bytes(mm, gbl_matches[i]) < 0) {
            JanetByteView temp = mm;
            mm = gbl_matches[i];
            gbl_matches[i] = temp;
        }
    }
    if (gbl_match_count == JANET_MATCH_MAX) return;
    gbl_matches[gbl_match_count++] = mm;
}

// Assembly:
cmpl %ecx, %esi
jg 0x4c6ec
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movl %ecx, %r13d
movq %rdx, %rax
movslq %esi, %rdx
movq %rax, %rsi
movq %rax, %rbx
callq 0x15170
testl %eax, %eax
jne 0x4c6de
movq %fs:0x0, %rax
leaq -0x1008(%rax), %rcx
movq %rbx, %rdi
movq %rcx, 0x10(%rsp)
movslq (%rcx), %rcx
leaq -0x1000(%rax), %rbp
xorl %r12d, %r12d
testl %ecx, %ecx
movl $0x0, %eax
movq %rcx, 0x18(%rsp)
cmovgl %ecx, %eax
shlq $0x4, %rax
movq %rax, 0x20(%rsp)
cmpq %r12, 0x20(%rsp)
je 0x4c6b1
movq (%rbp,%r12), %r15
movl 0x8(%rbp,%r12), %ebx
xorl %r14d, %r14d
cmpl %ebx, %r13d
movl %ebx, %eax
cmovll %r13d, %eax
movslq %eax, %rdx
setl %r14b
movq %r15, %rsi
movl %r13d, 0xc(%rsp)
movq %rdi, %r13
callq 0x15170
xorl %ecx, %ecx
testl %eax, %eax
sets %cl
cmovnel %ecx, %r14d
cmpb $0x1, %r14b
jne 0x4c6a3
movl 0xc(%rbp,%r12), %eax
movq %r13, (%rbp,%r12)
movl 0xc(%rsp), %ecx
movl %ecx, 0x8(%rbp,%r12)
movl 0x8(%rsp), %ecx
movl %ecx, 0xc(%rbp,%r12)
movl %eax, 0x8(%rsp)
movl %ebx, %r13d
movq %r15, %rdi
jmp 0x4c6ab
movq %r13, %rdi
movl 0xc(%rsp), %r13d
addq $0x10, %r12
jmp 0x4c636
movq 0x18(%rsp), %rcx
cmpl $0x100, %ecx            # imm = 0x100
je 0x4c6de
leal 0x1(%rcx), %eax
movq 0x10(%rsp), %rdx
movl %eax, (%rdx)
shlq $0x4, %rcx
movq %rdi, (%rbp,%rcx)
movl %r13d, 0x8(%rbp,%rcx)
movl 0x8(%rsp), %eax
movl %eax, 0xc(%rbp,%rcx)
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/lengjingzju[P]json/grisu2.c
// Function: grisu_round
static inline void grisu_round(char* buffer, int len,
    uint64_t delta, uint64_t rest, uint64_t ten_kappa, uint64_t W_pv)
{
    uint64_t t = rest + ten_kappa;
    while (rest < W_pv && delta >= t && (W_pv - rest > t - W_pv || t < W_pv)) {
        --buffer[len - 1];
        rest += ten_kappa;
        t += ten_kappa;
    }
}

// Assembly:
movslq %esi, %rax
movq %r9, %rsi
subq %rcx, %rsi
movq %r8, %r10
subq %r9, %r10
cmpq %r9, %rcx
jae 0x2b14
leaq (%rcx,%r8), %r11
cmpq %rdx, %r11
ja 0x2b14
cmpq %r9, %r11
jb 0x2b08
addq %r10, %rcx
cmpq %rcx, %rsi
jbe 0x2b14
decb -0x1(%rdi,%rax)
subq %r8, %rsi
movq %r11, %rcx
jmp 0x2aed
retq
// File: /workspace/github_c_makefile_star2_O2/lengjingzju[P]json/grisu2.c
// Function: fill_exponent
static inline int fill_exponent(int K, char *buffer)
{
    int32_t i = 0, k = 0;

    if (K < 0) {
        buffer[i++] = '-';
        K = -K;
    } else {
        buffer[i++] = '+';
    }

    if (K < 10) {
        buffer[i++] = '0' + K;
        buffer[i] = '\0';
        return i;
    }

    if (K >= 100) {
        k = get_100_quotient(K);
        K -= get_100_multiple(k);
        buffer[i++] = '0' + k;
    }

    k = get_10_quotient(K);
    K -= get_10_multiple(k);
    buffer[i++] = '0' + k;
    buffer[i++] = '0' + K;
    buffer[i] = '\0';

    return i;
}

// Assembly:
movl %edi, %ecx
shrl $0x1f, %ecx
addb %cl, %cl
addb $0x2b, %cl
movl %edi, %eax
negl %eax
cmovsl %edi, %eax
movb %cl, (%rsi)
cmpl $0x9, %eax
ja 0x2b3a
orb $0x30, %al
movb %al, 0x1(%rsi)
pushq $0x2
popq %rax
pushq $0x2
popq %rcx
jmp 0x2b91
cmpl $0x64, %eax
jb 0x2b5e
movl %eax, %ecx
shrl $0x2, %ecx
leaq 0x4f75(%rip), %rdx      # 0x7ac0
movzbl (%rcx,%rdx), %ecx
imull $-0x64, %ecx, %edx
addl %edx, %eax
addl $0x30, %ecx
movb %cl, 0x1(%rsi)
pushq $0x2
jmp 0x2b60
pushq $0x1
popq %rcx
movl %eax, %edx
sarl %edx
movslq %edx, %rdx
leaq 0x5051(%rip), %rdi      # 0x7bc0
movzbl (%rdx,%rdi), %edx
imull $0xf6, %edx, %edi
addl %eax, %edi
leal 0x30(%rdx), %eax
movl %ecx, %edx
movb %al, (%rsi,%rdx)
addb $0x30, %dil
addl $0x2, %ecx
movb %dil, 0x1(%rsi,%rdx)
movl %ecx, %eax
movb $0x0, (%rsi,%rcx)
retq
// File: /workspace/github_c_makefile_star2_O2/lengjingzju[P]json/dragonbox.c
// Function: is_integral_end_point
static inline bool is_integral_end_point(uint64_t two_f, int32_t e2, int32_t minus_k)
{
    if (e2 < -2)
        return false;
    if (e2 <= 9)
        return true;
    if (e2 <= 86)
        return multiple_of_pow5(two_f, minus_k);
    return false;
}

// Assembly:
cmpl $-0x2, %esi
jge 0x3254
xorl %eax, %eax
retq
movb $0x1, %al
cmpl $0xa, %esi
jl 0x3253
cmpl $0x56, %esi
ja 0x3251
movslq %edx, %rax
shlq $0x4, %rax
leaq 0x7042(%rip), %rcx      # 0xa2b0
imulq (%rax,%rcx), %rdi
cmpq 0x8(%rax,%rcx), %rdi
setbe %al
retq
// File: /workspace/github_c_makefile_star2_O2/sos22[P]unexec/tests/smoke.c
// Function: main
int main(int argc, char *argv[]) {
    if (argc != 2) errx(1, "need a single argument, the thing to unexec to");
    int r = unexec(argv[1], NULL);
    if (r == 0) printf("restored\n");
    else if (r == 1) printf("unexeced\n");
    else err(1, "unexec");
    return 0; }

// Assembly:
pushq %rbp
movq %rsp, %rbp
cmpl $0x2, %edi
jne 0x11a2
movq 0x8(%rsi), %rdi
xorl %esi, %esi
callq 0x1060
testl %eax, %eax
je 0x1192
cmpl $0x1, %eax
jne 0x11b3
leaq 0xeaa(%rip), %rdi       # 0x203a
jmp 0x1199
leaq 0xeaa(%rip), %rdi       # 0x2043
callq 0x1030
xorl %eax, %eax
popq %rbp
retq
leaq 0xe5b(%rip), %rsi       # 0x2004
pushq $0x1
popq %rdi
xorl %eax, %eax
callq 0x1040
leaq 0xe79(%rip), %rsi       # 0x2033
pushq $0x1
popq %rdi
xorl %eax, %eax
callq 0x1050
// File: /workspace/github_c_makefile_star2_O2/algorithm-archivists[P]GathVL/vis_test.cpp
// Function: main
int main() {
    camera cam(vec{1280, 720});
    scene world = scene({1280, 720}, {0, 0, 0, 1});

    cam.add_encoder<video_encoder>("/tmp/video.mp4", cam.size, 50);

    first_scene(cam, world);

    second_scene(cam, world);

    cam.clear_encoders();

    return 0;
}

// Assembly:
pushq %rbx
subq $0x110, %rsp            # imm = 0x110
leaq 0x50(%rsp), %rdi
movsd 0x14f83(%rip), %xmm0    # 0x1b028
movsd 0x14f63(%rip), %xmm1    # 0x1b010
callq 0x6334
andq $0x0, 0x40(%rsp)
xorps %xmm0, %xmm0
movaps %xmm0, 0x30(%rsp)
movabsq $0x3ff0000000000000, %rax # imm = 0x3FF0000000000000
movq %rax, 0x48(%rsp)
movaps 0x30(%rsp), %xmm0
movaps 0x40(%rsp), %xmm1
movups %xmm1, 0x10(%rsp)
movups %xmm0, (%rsp)
leaq 0xa8(%rsp), %rdi
movsd 0x14f36(%rip), %xmm0    # 0x1b028
movsd 0x14f16(%rip), %xmm1    # 0x1b010
callq 0x7fe0
leaq 0x2c(%rsp), %rcx
movl $0x32, (%rcx)
leaq 0x14fcb(%rip), %rsi     # 0x1b0dc
leaq 0x50(%rsp), %rdi
movq %rdi, %rdx
callq 0x6346
leaq 0x50(%rsp), %rdi
leaq 0xa8(%rsp), %rsi
callq 0x5a1c
leaq 0x50(%rsp), %rdi
leaq 0xa8(%rsp), %rsi
callq 0x5d53
leaq 0x50(%rsp), %rdi
callq 0x7dae
leaq 0xa8(%rsp), %rdi
callq 0x6398
leaq 0x50(%rsp), %rdi
callq 0x63bc
xorl %eax, %eax
addq $0x110, %rsp            # imm = 0x110
popq %rbx
retq
jmp 0x6175
movq %rax, %rbx
jmp 0x6185
movq %rax, %rbx
leaq 0xa8(%rsp), %rdi
callq 0x6398
leaq 0x50(%rsp), %rdi
callq 0x63bc
movq %rbx, %rdi
callq 0x5500
// File: /workspace/github_c_makefile_star2_O2/algorithm-archivists[P]GathVL/src/scene.cpp
// Function: scene::scene(vec, color)
scene::scene(vec scene_size, color bg_color)
    : size(scene_size), bg_clr(bg_color),
      surface(cairo_image_surface_create(CAIRO_FORMAT_ARGB32,
      static_cast<int>(size.x), static_cast<int>(size.y)),
      cairo_surface_destroy),
      context(cairo_create(surface.get()), cairo_destroy) {

    layers.emplace_back();
    cairo_set_line_width(context.get(), 3);
    cairo_set_font_size(context.get(), 50.0);
    cairo_set_line_join(context.get(), CAIRO_LINE_JOIN_BEVEL);
    cairo_set_line_cap(context.get(), CAIRO_LINE_CAP_ROUND);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %r14
movsd %xmm0, (%rdi)
movsd %xmm1, 0x8(%rdi)
movaps 0x30(%rsp), %xmm2
movaps 0x40(%rsp), %xmm3
movups %xmm2, 0x10(%rdi)
movups %xmm3, 0x20(%rdi)
leaq 0x30(%rdi), %rbx
xorps %xmm2, %xmm2
movups %xmm2, 0x30(%rdi)
andq $0x0, 0x40(%rdi)
cvttsd2si %xmm0, %esi
cvttsd2si %xmm1, %edx
xorl %edi, %edi
callq 0x54e0
movq 0x1dfa4(%rip), %rcx     # 0x25fd0
movq %rcx, 0x48(%r14)
movq %rax, 0x50(%r14)
movq %rax, %rdi
callq 0x5720
leaq 0x58(%r14), %r15
movq 0x1dfa1(%rip), %rcx     # 0x25fe8
movq %rcx, 0x58(%r14)
movq %rax, 0x60(%r14)
movq %rbx, %rdi
callq 0x82a8
movq 0x60(%r14), %rdi
movsd 0x1330d(%rip), %xmm0    # 0x1b370
callq 0x54b0
movq 0x60(%r14), %rdi
movsd 0x13304(%rip), %xmm0    # 0x1b378
callq 0x5410
movq 0x60(%r14), %rdi
pushq $0x2
popq %rsi
callq 0x5420
movq 0x60(%r14), %rdi
pushq $0x1
popq %rsi
callq 0x5230
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movq %rax, %r12
jmp 0x80b2
movq %rax, %r12
jmp 0x80be
movq %rax, %r12
movq %r15, %rdi
callq 0x6466
addq $0x48, %r14
movq %r14, %rdi
callq 0x6484
movq %rbx, %rdi
callq 0x64a2
movq %r12, %rdi
callq 0x5500
// File: /workspace/github_c_makefile_star2_O2/algorithm-archivists[P]GathVL/src/scene.cpp
// Function: scene::draw()
void scene::draw() {
    cairo_set_source_rgba(context.get(), bg_clr.r, bg_clr.g, bg_clr.b,
                            bg_clr.a);
    cairo_set_operator(context.get(), CAIRO_OPERATOR_SOURCE);
    cairo_paint(context.get());

    for (const auto& l : layers) {
        l.draw(context.get());
    }
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %rbx
movq 0x60(%rdi), %rdi
movsd 0x10(%rbx), %xmm0
movsd 0x18(%rbx), %xmm1
movsd 0x20(%rbx), %xmm2
movsd 0x28(%rbx), %xmm3
callq 0x5340
movq 0x60(%rbx), %rdi
pushq $0x1
popq %rsi
callq 0x5050
movq 0x60(%rbx), %rdi
callq 0x51a0
movq 0x30(%rbx), %r14
movq 0x38(%rbx), %r15
cmpq %r15, %r14
je 0x8127
movq 0x60(%rbx), %rsi
movq %r14, %rdi
callq 0x7e80
addq $0x18, %r14
jmp 0x8110
popq %rbx
popq %r14
popq %r15
retq
nop
// File: /workspace/github_c_makefile_star2_O2/algorithm-archivists[P]GathVL/src/objects/arc.cpp
// Function: arc::draw(_cairo*) const
void arc::draw(cairo_t *ctx) const {
    cairo_save(ctx);
    cairo_set_source_rgba(ctx, clr.r, clr.g, clr.b, clr.a);

    if (size.x < size.y && (size.x != 0 || size.y != 0)) {
        cairo_scale(ctx, size.x / size.y, 1.0);
        cairo_arc(ctx, location.x, location.y, size.y, angles.x, angles.y);
    } else if (size.x > size.y && (size.x != 0 || size.y != 0)) {
        cairo_scale(ctx, 1.0, size.y / size.x);
        cairo_arc(ctx, location.x, location.y, size.x, angles.x, angles.y);
    } else if (size.x == size.y && size.x != 0) {
        cairo_arc(ctx, location.x, location.y, size.x, angles.x, angles.y);
    }

    cairo_stroke(ctx);
    cairo_restore(ctx);
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
movq %rsi, %rdi
callq 0x54c0
movsd 0x20(%r14), %xmm0
movsd 0x28(%r14), %xmm1
movsd 0x30(%r14), %xmm2
movsd 0x38(%r14), %xmm3
movq %rbx, %rdi
callq 0x5340
movsd 0x50(%r14), %xmm2
movsd 0x58(%r14), %xmm1
ucomisd %xmm2, %xmm1
jbe 0x9000
xorpd %xmm0, %xmm0
ucomisd %xmm0, %xmm2
jne 0x903c
jp 0x903c
ucomisd %xmm0, %xmm1
jne 0x903c
jp 0x903c
ucomisd %xmm1, %xmm2
jbe 0x901a
xorpd %xmm0, %xmm0
ucomisd %xmm0, %xmm2
jne 0x9068
jp 0x9068
ucomisd %xmm0, %xmm1
jne 0x9068
jp 0x9068
xorpd %xmm0, %xmm0
ucomisd %xmm0, %xmm2
jne 0x9026
jnp 0x90a2
ucomisd %xmm1, %xmm2
jne 0x90a2
jp 0x90a2
movsd 0x40(%r14), %xmm0
movsd 0x48(%r14), %xmm1
jmp 0x908e
divsd %xmm1, %xmm2
movsd 0x12350(%rip), %xmm1    # 0x1b398
movq %rbx, %rdi
movapd %xmm2, %xmm0
callq 0x56b0
movsd 0x40(%r14), %xmm0
movsd 0x48(%r14), %xmm1
movsd 0x58(%r14), %xmm2
jmp 0x908e
divsd %xmm2, %xmm1
movsd 0x12324(%rip), %xmm0    # 0x1b398
movq %rbx, %rdi
callq 0x56b0
movsd 0x40(%r14), %xmm0
movsd 0x48(%r14), %xmm1
movsd 0x50(%r14), %xmm2
movsd 0x60(%r14), %xmm3
movsd 0x68(%r14), %xmm4
movq %rbx, %rdi
callq 0x5350
movq %rbx, %rdi
callq 0x54f0
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x5610
nop
// File: /workspace/github_c_makefile_star2_O2/algorithm-archivists[P]GathVL/src/objects/arrow.cpp
// Function: arrow::draw(_cairo*) const
void arrow::draw(cairo_t *ctx) const {
    cairo_save(ctx);
    cairo_set_source_rgba(ctx, clr.r, clr.g, clr.b, clr.a);
    cairo_translate(ctx, location.x, location.y);
    cairo_rotate(ctx, rotation);

    cairo_move_to(ctx, 0, 0);
    cairo_line_to(ctx, length, 0);
    cairo_rotate(ctx, -M_PI / 4);
    cairo_move_to(ctx, 0, 0);
    cairo_line_to(ctx, 0.25 * length, 0);
    cairo_move_to(ctx, 0, 0);
    cairo_rotate(ctx, M_PI / 2);
    cairo_line_to(ctx, 0.25 * length, 0);

    cairo_stroke(ctx);
    cairo_restore(ctx);
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
movq %rsi, %rdi
callq 0x54c0
movsd 0x20(%r14), %xmm0
movsd 0x28(%r14), %xmm1
movsd 0x30(%r14), %xmm2
movsd 0x38(%r14), %xmm3
movq %rbx, %rdi
callq 0x5340
movsd 0x40(%r14), %xmm0
movsd 0x48(%r14), %xmm1
movq %rbx, %rdi
callq 0x5180
movsd 0x58(%r14), %xmm0
movq %rbx, %rdi
callq 0x5490
xorps %xmm0, %xmm0
xorps %xmm1, %xmm1
movq %rbx, %rdi
callq 0x5570
movsd 0x50(%r14), %xmm0
xorps %xmm1, %xmm1
movq %rbx, %rdi
callq 0x5310
movsd 0x1227d(%rip), %xmm0    # 0x1b3c8
movq %rbx, %rdi
callq 0x5490
xorps %xmm0, %xmm0
xorps %xmm1, %xmm1
movq %rbx, %rdi
callq 0x5570
movsd 0x50(%r14), %xmm0
mulsd 0x12261(%rip), %xmm0    # 0x1b3d0
xorps %xmm1, %xmm1
movq %rbx, %rdi
callq 0x5310
xorpd %xmm0, %xmm0
xorps %xmm1, %xmm1
movq %rbx, %rdi
callq 0x5570
movsd 0x12247(%rip), %xmm0    # 0x1b3d8
movq %rbx, %rdi
callq 0x5490
movsd 0x1222f(%rip), %xmm0    # 0x1b3d0
mulsd 0x50(%r14), %xmm0
xorps %xmm1, %xmm1
movq %rbx, %rdi
callq 0x5310
movq %rbx, %rdi
callq 0x54f0
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x5610
nop
// File: /workspace/github_c_makefile_star2_O2/algorithm-archivists[P]GathVL/src/objects/curve.cpp
// Function: curve::draw(_cairo*) const
void curve::draw(cairo_t *ctx) const {
    cairo_save(ctx);
    cairo_set_source_rgba(ctx, clr.r, clr.g, clr.b, clr.a);
    cairo_translate(ctx, origin.x, origin.y);

    if (!points.empty()) {
        cairo_move_to(ctx, points[0].x, -points[0].y);
    }

    for (const auto& point : points) {
        cairo_line_to(ctx, point.x, -point.y);
        cairo_move_to(ctx, point.x, -point.y);
    }

    cairo_stroke(ctx);
    cairo_restore(ctx);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
movq %rsi, %rdi
callq 0x54c0
movsd 0x20(%r14), %xmm0
movsd 0x28(%r14), %xmm1
movsd 0x30(%r14), %xmm2
movsd 0x38(%r14), %xmm3
movq %rbx, %rdi
callq 0x5340
movsd 0x40(%r14), %xmm0
movsd 0x48(%r14), %xmm1
movq %rbx, %rdi
callq 0x5180
movq 0x50(%r14), %r15
cmpq 0x58(%r14), %r15
je 0x9258
movsd (%r15), %xmm0
movsd 0x8(%r15), %xmm1
xorps 0x1211a(%rip), %xmm1    # 0x1b360
movq %rbx, %rdi
callq 0x5570
movq 0x50(%r14), %r12
movq 0x58(%r14), %r15
jmp 0x929c
movq %r15, %r12
jmp 0x929c
movsd (%r12), %xmm0
movsd 0x8(%r12), %xmm1
movaps 0x120ef(%rip), %xmm2    # 0x1b360
xorps %xmm2, %xmm1
movq %rbx, %rdi
callq 0x5310
movsd (%r12), %xmm0
movsd 0x8(%r12), %xmm1
xorps 0x120d0(%rip), %xmm1    # 0x1b360
movq %rbx, %rdi
callq 0x5570
addq $0x10, %r12
cmpq %r15, %r12
jne 0x925d
movq %rbx, %rdi
callq 0x54f0
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0x5610
// File: /workspace/github_c_makefile_star2_O2/algorithm-archivists[P]GathVL/src/objects/ellipse.cpp
// Function: ellipse::draw(_cairo*) const
void ellipse::draw(cairo_t *ctx) const {
    cairo_save(ctx);
    cairo_set_source_rgba(ctx, clr.r, clr.g, clr.b, clr.a);
    cairo_translate(ctx, location.x, location.y);
    cairo_rotate(ctx, rotation);

    if (size.x < size.y && (size.x != 0 || size.y != 0)) {
        cairo_scale(ctx, size.x / size.y, 1.0);
        cairo_arc(ctx, 0.0, 0.0, size.y, angles.x, angles.y);
    } else if (size.x > size.y && (size.x != 0 || size.y != 0)) {
        cairo_scale(ctx, 1.0, size.y / size.x);
        cairo_arc(ctx, 0.0, 0.0, size.x, angles.x, angles.y);
    } else if (size.x == size.y && size.x != 0) {
        cairo_arc(ctx, 0.0, 0.0, size.x, angles.x, angles.y);
    }

    if (fill) {
        cairo_fill(ctx);
    }

    cairo_stroke(ctx);
    cairo_restore(ctx);
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
movq %rsi, %rdi
callq 0x54c0
movsd 0x20(%r14), %xmm0
movsd 0x28(%r14), %xmm1
movsd 0x30(%r14), %xmm2
movsd 0x38(%r14), %xmm3
movq %rbx, %rdi
callq 0x5340
movsd 0x40(%r14), %xmm0
movsd 0x48(%r14), %xmm1
movq %rbx, %rdi
callq 0x5180
movsd 0x70(%r14), %xmm0
movq %rbx, %rdi
callq 0x5490
movsd 0x50(%r14), %xmm2
movsd 0x58(%r14), %xmm1
ucomisd %xmm2, %xmm1
jbe 0x936e
xorpd %xmm0, %xmm0
ucomisd %xmm0, %xmm2
jne 0x939e
jp 0x939e
ucomisd %xmm0, %xmm1
jne 0x939e
jp 0x939e
ucomisd %xmm1, %xmm2
jbe 0x9388
xorpd %xmm0, %xmm0
ucomisd %xmm0, %xmm2
jne 0x93be
jp 0x93be
ucomisd %xmm0, %xmm1
jne 0x93be
jp 0x93be
xorpd %xmm0, %xmm0
ucomisd %xmm0, %xmm2
jne 0x9394
jnp 0x93f4
ucomisd %xmm1, %xmm2
jne 0x93f4
jnp 0x93d8
jmp 0x93f4
divsd %xmm1, %xmm2
movsd 0x11fee(%rip), %xmm1    # 0x1b398
movq %rbx, %rdi
movapd %xmm2, %xmm0
callq 0x56b0
movsd 0x58(%r14), %xmm2
jmp 0x93d8
divsd %xmm2, %xmm1
movsd 0x11fce(%rip), %xmm0    # 0x1b398
movq %rbx, %rdi
callq 0x56b0
movsd 0x50(%r14), %xmm2
movsd 0x60(%r14), %xmm3
movsd 0x68(%r14), %xmm4
xorpd %xmm0, %xmm0
xorpd %xmm1, %xmm1
movq %rbx, %rdi
callq 0x5350
cmpb $0x1, 0x78(%r14)
jne 0x9403
movq %rbx, %rdi
callq 0x5690
movq %rbx, %rdi
callq 0x54f0
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x5610
// File: /workspace/github_c_makefile_star2_O2/algorithm-archivists[P]GathVL/src/objects/../../include/stb_image_resize.h
// Function: stbir_resize_subpixel
STBIRDEF int stbir_resize_subpixel(const void *input_pixels , int input_w , int input_h , int input_stride_in_bytes,
                                         void *output_pixels, int output_w, int output_h, int output_stride_in_bytes,
                                   stbir_datatype datatype,
                                   int num_channels, int alpha_channel, int flags,
                                   stbir_edge edge_mode_horizontal, stbir_edge edge_mode_vertical, 
                                   stbir_filter filter_horizontal,  stbir_filter filter_vertical,
                                   stbir_colorspace space, void *alloc_context,
                                   float x_scale, float y_scale,
                                   float x_offset, float y_offset)
{
    float transform[4];
    transform[0] = x_scale;
    transform[1] = y_scale;
    transform[2] = x_offset;
    transform[3] = y_offset;
    return stbir__resize_arbitrary(alloc_context, input_pixels, input_w, input_h, input_stride_in_bytes,
        output_pixels, output_w, output_h, output_stride_in_bytes,
        0,0,1,1,transform,num_channels,alpha_channel,flags, datatype, filter_horizontal, filter_vertical,
        edge_mode_horizontal, edge_mode_vertical, space);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movl 0x70(%rsp), %ebx
movl 0x78(%rsp), %r15d
movl 0x60(%rsp), %r12d
movl 0x90(%rsp), %r13d
movl 0x98(%rsp), %ebp
movq %rsp, %r14
movss %xmm0, (%r14)
movss %xmm1, 0x4(%r14)
movss %xmm2, 0x8(%r14)
movss %xmm3, 0xc(%r14)
movl 0x80(%rsp), %r11d
movl 0x88(%rsp), %r10d
movl 0xa0(%rsp), %eax
movss 0xef7d(%rip), %xmm2     # 0x1b3fc
xorps %xmm0, %xmm0
xorps %xmm1, %xmm1
movaps %xmm2, %xmm3
pushq %rax
pushq %r10
pushq %r11
pushq %rbp
pushq %r13
pushq %r12
pushq %r15
pushq %rbx
movl 0xa8(%rsp), %eax
pushq %rax
pushq %r14
movl 0xa8(%rsp), %eax
pushq %rax
movl 0xa8(%rsp), %eax
pushq %rax
callq 0xb187
addq $0x78, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/algorithm-archivists[P]GathVL/src/objects/image.cpp
// Function: format_converter(unsigned char*, unsigned char*, int, int)
static inline void format_converter(unsigned char *in, unsigned char *out,
                                    int width, int height) {

    for (int i = 0; i < height; ++i) {
        for (int j = 0; j < width * 4; j += 4) {
            out[j + 2] = in[j];
            out[j + 1] = in[j + 1];
            out[j] = in[j + 2];
            out[j + 3] = in[j + 3];
        }
        out += width * 4;
        in += width * 4;
    }
}

// Assembly:
shll $0x2, %edx
movslq %edx, %rax
xorl %edx, %edx
testl %ecx, %ecx
cmovlel %edx, %ecx
cmpl %ecx, %edx
je 0xc7c3
xorl %r8d, %r8d
cmpq %rax, %r8
jge 0xc7b9
movb (%rdi,%r8), %r9b
movb %r9b, 0x2(%rsi,%r8)
movb 0x1(%rdi,%r8), %r9b
movb %r9b, 0x1(%rsi,%r8)
movb 0x2(%rdi,%r8), %r9b
movb %r9b, (%rsi,%r8)
movb 0x3(%rdi,%r8), %r9b
movb %r9b, 0x3(%rsi,%r8)
addq $0x4, %r8
jmp 0xc788
addq %rax, %rsi
addq %rax, %rdi
incl %edx
jmp 0xc781
retq
// File: /workspace/github_c_makefile_star2_O2/algorithm-archivists[P]GathVL/src/objects/../../include/stb_image_resize.h
// Function: stbir__get_filter_pixel_width(stbir_filter, float)
static int stbir__get_filter_pixel_width(stbir_filter filter, float scale)
{
    STBIR_ASSERT(filter != 0);
    STBIR_ASSERT(filter < STBIR__ARRAY_SIZE(stbir__filter_info_table));

    if (stbir__use_upsampling(scale))
        return (int)ceil(stbir__filter_info_table[filter].support(1/scale) * 2);
    else
        return (int)ceil(stbir__filter_info_table[filter].support(scale) * 2 / scale);
}

// Assembly:
pushq %rax
testl %edi, %edi
je 0x15b4b
cmpl $0x6, %edi
jae 0x15b6a
movaps %xmm0, %xmm1
movl %edi, %eax
shlq $0x4, %rax
ucomiss 0x58f3(%rip), %xmm0     # 0x1b3fc
leaq 0xffd0(%rip), %rcx      # 0x25ae0
movq 0x8(%rax,%rcx), %rax
ja 0x15b2e
movaps %xmm1, %xmm0
movss %xmm1, 0x4(%rsp)
callq *%rax
addss %xmm0, %xmm0
divss 0x4(%rsp), %xmm0
jmp 0x15b40
movss 0x58c6(%rip), %xmm0     # 0x1b3fc
divss %xmm1, %xmm0
callq *%rax
addss %xmm0, %xmm0
callq 0x52b0
cvttss2si %xmm0, %eax
popq %rcx
retq
leaq 0x7399(%rip), %rdi      # 0x1ceeb
leaq 0x72bd(%rip), %rsi      # 0x1ce16
leaq 0x73fa(%rip), %rcx      # 0x1cf5a
movl $0x372, %edx            # imm = 0x372
callq 0x5130
leaq 0x7395(%rip), %rdi      # 0x1cf06
leaq 0x729e(%rip), %rsi      # 0x1ce16
leaq 0x73db(%rip), %rcx      # 0x1cf5a
movl $0x373, %edx            # imm = 0x373
callq 0x5130
// File: /workspace/github_c_makefile_star2_O2/algorithm-archivists[P]GathVL/src/objects/../../include/stb_image_resize.h
// Function: stbir__filter_trapezoid(float, float)
static float stbir__filter_trapezoid(float x, float scale)
{
    float halfscale = scale / 2;
    float t = 0.5f + halfscale;
    STBIR_ASSERT(scale <= 1);

    x = (float)fabs(x);

    if (x >= t)
        return 0;
    else
    {
        float r = 0.5f - halfscale;
        if (x <= r)
            return 1;
        else
            return (t - x) / scale;
    }
}

// Assembly:
movss 0x584f(%rip), %xmm2     # 0x1b3fc
ucomiss %xmm1, %xmm2
jb 0x15c00
movss 0x5846(%rip), %xmm4     # 0x1b400
movaps %xmm1, %xmm5
mulss %xmm4, %xmm5
movaps %xmm5, %xmm3
andps 0x59f5(%rip), %xmm0     # 0x1b5c0
addss %xmm4, %xmm3
xorps %xmm2, %xmm2
ucomiss %xmm3, %xmm0
jae 0x15bfc
subss %xmm5, %xmm4
subss %xmm0, %xmm3
divss %xmm1, %xmm3
cmpnless %xmm4, %xmm0
andps %xmm0, %xmm3
movss 0x5809(%rip), %xmm1     # 0x1b3fc
andnps %xmm1, %xmm0
orps %xmm3, %xmm0
movaps %xmm0, %xmm2
movaps %xmm2, %xmm0
retq
pushq %rax
leaq 0x7389(%rip), %rdi      # 0x1cf91
leaq 0x7207(%rip), %rsi      # 0x1ce16
leaq 0x7386(%rip), %rcx      # 0x1cf9c
movl $0x2f8, %edx            # imm = 0x2F8
callq 0x5130
// File: /workspace/github_c_makefile_star2_O2/algorithm-archivists[P]GathVL/src/objects/../../include/stb_image_resize.h
// Function: stbir__filter_cubic(float, float)
static float stbir__filter_cubic(float x, float s)
{
    STBIR__UNUSED_PARAM(s);

    x = (float)fabs(x);

    if (x < 1.0f)
        return (4 + x*x*(3*x - 6))/6;
    else if (x < 2.0f)
        return (8 + x*(-12 + x*(6 - x)))/6;

    return (0.0f);
}

// Assembly:
movaps %xmm0, %xmm1
movaps 0x5930(%rip), %xmm2     # 0x1b5c0
andps %xmm0, %xmm2
movss 0x5761(%rip), %xmm0     # 0x1b3fc
ucomiss %xmm2, %xmm0
jbe 0x15ccd
mulss %xmm1, %xmm1
movss 0x575c(%rip), %xmm0     # 0x1b408
mulss %xmm2, %xmm0
addss 0x5764(%rip), %xmm0     # 0x1b41c
mulss %xmm1, %xmm0
addss 0x575c(%rip), %xmm0     # 0x1b420
divss 0x5744(%rip), %xmm0     # 0x1b410
retq
xorps %xmm0, %xmm0
movss 0x5734(%rip), %xmm1     # 0x1b40c
ucomiss %xmm2, %xmm1
jbe 0x15d08
movss 0x572b(%rip), %xmm1     # 0x1b410
movaps %xmm1, %xmm0
subss %xmm2, %xmm0
mulss %xmm2, %xmm0
addss 0x571c(%rip), %xmm0     # 0x1b414
mulss %xmm2, %xmm0
addss 0x5714(%rip), %xmm0     # 0x1b418
divss %xmm1, %xmm0
retq
// File: /workspace/github_c_makefile_star2_O2/algorithm-archivists[P]GathVL/src/objects/../../include/stb_image_resize.h
// Function: stbir__filter_mitchell(float, float)
static float stbir__filter_mitchell(float x, float s)
{
    STBIR__UNUSED_PARAM(s);

    x = (float)fabs(x);

    if (x < 1.0f)
        return (16 + x*x*(21 * x - 36))/18;
    else if (x < 2.0f)
        return (32 + x*(-60 + x*(36 - 7*x)))/18;

    return (0.0f);
}

// Assembly:
movaps %xmm0, %xmm1
movaps 0x5831(%rip), %xmm2     # 0x1b5c0
andps %xmm0, %xmm2
movss 0x5662(%rip), %xmm0     # 0x1b3fc
ucomiss %xmm2, %xmm0
jbe 0x15dc5
mulss %xmm1, %xmm1
movss 0x5699(%rip), %xmm0     # 0x1b444
mulss %xmm2, %xmm0
addss 0x5691(%rip), %xmm0     # 0x1b448
mulss %xmm1, %xmm0
addss 0x5689(%rip), %xmm0     # 0x1b44c
jmp 0x15e01
xorps %xmm0, %xmm0
movss 0x563c(%rip), %xmm1     # 0x1b40c
ucomiss %xmm2, %xmm1
jbe 0x15e09
movss 0x5653(%rip), %xmm0     # 0x1b430
mulss %xmm2, %xmm0
addss 0x564b(%rip), %xmm0     # 0x1b434
mulss %xmm2, %xmm0
addss 0x5643(%rip), %xmm0     # 0x1b438
mulss %xmm2, %xmm0
addss 0x563b(%rip), %xmm0     # 0x1b43c
divss 0x5637(%rip), %xmm0     # 0x1b440
retq
// File: /workspace/github_c_makefile_star2_O2/algorithm-archivists[P]GathVL/src/objects/../../include/stb_image_resize.h
// Function: stbir__calculate_sample_range_upsample(int, float, float, float, int*, int*, float*)
static void stbir__calculate_sample_range_upsample(int n, float out_filter_radius, float scale_ratio, float out_shift, int* in_first_pixel, int* in_last_pixel, float* in_center_of_out)
{
    float out_pixel_center = (float)n + 0.5f;
    float out_pixel_influence_lowerbound = out_pixel_center - out_filter_radius;
    float out_pixel_influence_upperbound = out_pixel_center + out_filter_radius;

    float in_pixel_influence_lowerbound = (out_pixel_influence_lowerbound + out_shift) / scale_ratio;
    float in_pixel_influence_upperbound = (out_pixel_influence_upperbound + out_shift) / scale_ratio;

    *in_center_of_out = (out_pixel_center + out_shift) / scale_ratio;
    *in_first_pixel = (int)(floor(in_pixel_influence_lowerbound + 0.5));
    *in_last_pixel = (int)(floor(in_pixel_influence_upperbound - 0.5));
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdx, %rbx
movq %rsi, %r14
cvtsi2ss %edi, %xmm3
addss 0x4d56(%rip), %xmm3     # 0x1b400
movaps %xmm3, %xmm4
subss %xmm0, %xmm4
addss %xmm3, %xmm0
addss %xmm2, %xmm4
divss %xmm1, %xmm4
addss %xmm2, %xmm0
divss %xmm1, %xmm0
movss %xmm0, 0x4(%rsp)
addss %xmm2, %xmm3
divss %xmm1, %xmm3
movss %xmm3, (%rcx)
cvtss2sd %xmm4, %xmm0
addsd 0x5bbd(%rip), %xmm0     # 0x1c2a0
callq 0x50e0
cvttsd2si %xmm0, %eax
movl %eax, (%r14)
cvtss2sd 0x4(%rsp), %xmm0
addsd 0x5bab(%rip), %xmm0     # 0x1c2a8
callq 0x50e0
cvttsd2si %xmm0, %eax
movl %eax, (%rbx)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O2/algorithm-archivists[P]GathVL/src/objects/../../include/stb_image_resize.h
// Function: stbir__calculate_sample_range_downsample(int, float, float, float, int*, int*, float*)
static void stbir__calculate_sample_range_downsample(int n, float in_pixels_radius, float scale_ratio, float out_shift, int* out_first_pixel, int* out_last_pixel, float* out_center_of_in)
{
    float in_pixel_center = (float)n + 0.5f;
    float in_pixel_influence_lowerbound = in_pixel_center - in_pixels_radius;
    float in_pixel_influence_upperbound = in_pixel_center + in_pixels_radius;

    float out_pixel_influence_lowerbound = in_pixel_influence_lowerbound * scale_ratio - out_shift;
    float out_pixel_influence_upperbound = in_pixel_influence_upperbound * scale_ratio - out_shift;

    *out_center_of_in = in_pixel_center * scale_ratio - out_shift;
    *out_first_pixel = (int)(floor(out_pixel_influence_lowerbound + 0.5));
    *out_last_pixel = (int)(floor(out_pixel_influence_upperbound - 0.5));
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdx, %rbx
movq %rsi, %r14
cvtsi2ss %edi, %xmm3
addss 0x4cda(%rip), %xmm3     # 0x1b400
movaps %xmm3, %xmm4
subss %xmm0, %xmm4
addss %xmm3, %xmm0
mulss %xmm1, %xmm4
subss %xmm2, %xmm4
mulss %xmm1, %xmm0
subss %xmm2, %xmm0
movss %xmm0, 0x4(%rsp)
mulss %xmm1, %xmm3
subss %xmm2, %xmm3
movss %xmm3, (%rcx)
cvtss2sd %xmm4, %xmm0
addsd 0x5b41(%rip), %xmm0     # 0x1c2a0
callq 0x50e0
cvttsd2si %xmm0, %eax
movl %eax, (%r14)
cvtss2sd 0x4(%rsp), %xmm0
addsd 0x5b2f(%rip), %xmm0     # 0x1c2a8
callq 0x50e0
cvttsd2si %xmm0, %eax
movl %eax, (%rbx)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O2/algorithm-archivists[P]GathVL/src/objects/../../include/stb_image_resize.h
// Function: stbir__decode_and_resample_upsample(stbir__info*, int)
static void stbir__decode_and_resample_upsample(stbir__info* stbir_info, int n)
{
    // Decode the nth scanline from the source image into the decode buffer.
    stbir__decode_scanline(stbir_info, n);

    // Now resample it into the ring buffer.
    if (stbir__use_width_upsampling(stbir_info))
        stbir__resample_horizontal_upsample(stbir_info, stbir__add_empty_ring_buffer_entry(stbir_info, n));
    else
        stbir__resample_horizontal_downsample(stbir_info, stbir__add_empty_ring_buffer_entry(stbir_info, n));

    // Now it's sitting in the ring buffer ready to be used as source for the vertical sampling.
}

// Assembly:
pushq %rbp
pushq %rbx
pushq %rax
movl %esi, %ebp
movq %rdi, %rbx
callq 0x167d5
movss 0x44(%rbx), %xmm0
movss %xmm0, 0x4(%rsp)
movq %rbx, %rdi
movl %ebp, %esi
callq 0x17544
movss 0x4(%rsp), %xmm0
movq %rbx, %rdi
movq %rax, %rsi
addq $0x8, %rsp
ucomiss 0x4c37(%rip), %xmm0     # 0x1b3fc
ja 0x167ce
popq %rbx
popq %rbp
jmp 0x175c2
popq %rbx
popq %rbp
jmp 0x17102
// File: /workspace/github_c_makefile_star2_O2/algorithm-archivists[P]GathVL/src/objects/../../include/stb_image_resize.h
// Function: stbir__add_empty_ring_buffer_entry(stbir__info*, int)
static float* stbir__add_empty_ring_buffer_entry(stbir__info* stbir_info, int n)
{
    int ring_buffer_index;
    float* ring_buffer;

    stbir_info->ring_buffer_last_scanline = n;

    if (stbir_info->ring_buffer_begin_index < 0)
    {
        ring_buffer_index = stbir_info->ring_buffer_begin_index = 0;
        stbir_info->ring_buffer_first_scanline = n;
    }
    else
    {
        ring_buffer_index = (stbir_info->ring_buffer_begin_index + (stbir_info->ring_buffer_last_scanline - stbir_info->ring_buffer_first_scanline)) % stbir_info->ring_buffer_num_entries;
        STBIR_ASSERT(ring_buffer_index != stbir_info->ring_buffer_begin_index);
    }

    ring_buffer = stbir__get_ring_buffer_entry(stbir_info->ring_buffer, ring_buffer_index, stbir_info->ring_buffer_length_bytes / sizeof(float));
    memset(ring_buffer, 0, stbir_info->ring_buffer_length_bytes);

    return ring_buffer;
}

// Assembly:
movl %esi, 0xd4(%rdi)
movl 0xd8(%rdi), %ecx
testl %ecx, %ecx
js 0x17589
addl %ecx, %esi
subl 0xd0(%rdi), %esi
movl %esi, %eax
cltd
idivl 0xcc(%rdi)
cmpl %ecx, %edx
jne 0x17598
pushq %rax
leaq 0x6259(%rip), %rdi      # 0x1d7ca
leaq 0x589e(%rip), %rsi      # 0x1ce16
leaq 0x6284(%rip), %rcx      # 0x1d803
movl $0x595, %edx            # imm = 0x595
callq 0x5130
andl $0x0, 0xd8(%rdi)
movl %esi, 0xd0(%rdi)
xorl %edx, %edx
movslq 0xc8(%rdi), %rax
movl %eax, %ecx
sarl $0x2, %ecx
imull %edx, %ecx
movslq %ecx, %rcx
shlq $0x2, %rcx
addq 0xe0(%rdi), %rcx
movq %rax, %rdx
movq %rcx, %rdi
xorl %esi, %esi
jmp 0x5270
// File: /workspace/github_c_makefile_star2_O2/algorithm-archivists[P]GathVL/src/objects/../../include/stb_image_resize.h
// Function: stbir__edge_wrap(stbir_edge, int, int)
stbir__inline static int stbir__edge_wrap(stbir_edge edge, int n, int max)
{
    // avoid per-pixel switch
    if (n >= 0 && n < max)
        return n;
    return stbir__edge_wrap_slow(edge, n, max);
}

// Assembly:
movl %edx, %ecx
testl %esi, %esi
setns %al
cmpl %edx, %esi
setl %dl
testb %dl, %al
je 0x17a30
movl %esi, %eax
retq
decl %edi
cmpl $0x3, %edi
ja 0x17a90
xorl %eax, %eax
leaq 0x3d24(%rip), %rdx      # 0x1b764
movslq (%rdx,%rdi,4), %rdi
addq %rdx, %rdi
jmpq *%rdi
testl %esi, %esi
js 0x17a79
leal -0x1(%rcx), %eax
cmpl %ecx, %esi
cmovll %esi, %eax
retq
testl %esi, %esi
js 0x17a7a
cmpl %ecx, %esi
jl 0x17a2d
leal (%rcx,%rcx), %eax
xorl %edx, %edx
cmpl %esi, %eax
notl %esi
leal (%rsi,%rcx,2), %eax
cmovlel %edx, %eax
retq
movl %esi, %eax
cltd
idivl %ecx
movl %edx, %eax
testl %esi, %esi
js 0x17a82
retq
cmpl %ecx, %esi
jge 0x17a8b
negl %esi
jmp 0x17a2d
addl %eax, %ecx
testl %eax, %eax
cmovel %eax, %ecx
jmp 0x17a8d
decl %ecx
movl %ecx, %eax
retq
pushq %rax
leaq 0x5bce(%rip), %rdi      # 0x1d666
leaq 0x5377(%rip), %rsi      # 0x1ce16
leaq 0x5bdb(%rip), %rcx      # 0x1d681
movl $0x3e0, %edx            # imm = 0x3E0
callq 0x5130
// File: /workspace/github_c_makefile_star2_O2/algorithm-archivists[P]GathVL/src/objects/line.cpp
// Function: line::draw(_cairo*) const
void line::draw(cairo_t * ctx) const {
    cairo_save(ctx);
    cairo_set_source_rgba(ctx, clr.r, clr.g, clr.b, clr.a);

    cairo_move_to(ctx, start.x, start.y);
    cairo_line_to(ctx, end.x, end.y);

    cairo_stroke(ctx);
    cairo_restore(ctx);
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
movq %rsi, %rdi
callq 0x54c0
movsd 0x20(%r14), %xmm0
movsd 0x28(%r14), %xmm1
movsd 0x30(%r14), %xmm2
movsd 0x38(%r14), %xmm3
movq %rbx, %rdi
callq 0x5340
movsd 0x40(%r14), %xmm0
movsd 0x48(%r14), %xmm1
movq %rbx, %rdi
callq 0x5570
movsd 0x50(%r14), %xmm0
movsd 0x58(%r14), %xmm1
movq %rbx, %rdi
callq 0x5310
movq %rbx, %rdi
callq 0x54f0
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x5610
nop
// File: /workspace/github_c_makefile_star2_O2/algorithm-archivists[P]GathVL/src/objects/polygon.cpp
// Function: polygon::draw(_cairo*) const
void polygon::draw(cairo_t *ctx) const {
    cairo_save(ctx);
    cairo_set_source_rgba(ctx, clr.r, clr.g, clr.b, clr.a);
    cairo_translate(ctx, center.x, center.y);
    cairo_rotate(ctx, rotation);

    if (!points.empty()) {
        cairo_move_to(ctx, points.back().x - center.x,
                      points.back().y - center.y);
    }

    for (const auto& point : points) {
        cairo_line_to(ctx, point.x - center.x, point.y - center.y);
    }

    cairo_close_path(ctx);
    if (fill) {
        cairo_fill(ctx);
    }

    cairo_stroke(ctx);
    cairo_restore(ctx);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
movq %rsi, %rdi
callq 0x54c0
movsd 0x20(%r14), %xmm0
movsd 0x28(%r14), %xmm1
movsd 0x30(%r14), %xmm2
movsd 0x38(%r14), %xmm3
movq %rbx, %rdi
callq 0x5340
movsd 0x40(%r14), %xmm0
movsd 0x48(%r14), %xmm1
movq %rbx, %rdi
callq 0x5180
movsd 0x68(%r14), %xmm0
movq %rbx, %rdi
callq 0x5490
movq 0x50(%r14), %r15
movq 0x58(%r14), %rax
movq %r15, %r12
cmpq %rax, %r15
je 0x183d9
movsd -0x10(%rax), %xmm0
movsd -0x8(%rax), %xmm1
subsd 0x40(%r14), %xmm0
subsd 0x48(%r14), %xmm1
movq %rbx, %rdi
callq 0x5570
movq 0x50(%r14), %r12
movq 0x58(%r14), %r15
jmp 0x183d9
movsd (%r12), %xmm0
movsd 0x8(%r12), %xmm1
subsd 0x40(%r14), %xmm0
subsd 0x48(%r14), %xmm1
movq %rbx, %rdi
callq 0x5310
addq $0x10, %r12
cmpq %r15, %r12
jne 0x183b4
movq %rbx, %rdi
callq 0x57d0
cmpb $0x0, 0x70(%r14)
je 0x183f5
movq %rbx, %rdi
callq 0x5690
movq %rbx, %rdi
callq 0x54f0
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0x5610
// File: /workspace/github_c_makefile_star2_O2/algorithm-archivists[P]GathVL/src/objects/rectangle.cpp
// Function: rectangle::draw(_cairo*) const
void rectangle::draw(cairo_t *ctx) const {
    cairo_save(ctx);
    cairo_set_source_rgba(ctx, clr.r, clr.g, clr.b, clr.a);
    cairo_translate(ctx, location.x, location.y);
    cairo_rotate(ctx, rotation);

    cairo_rectangle(ctx, 0, 0, size.x, size.y);

    if (fill) {
        cairo_fill(ctx);
    }

    cairo_stroke(ctx);
    cairo_restore(ctx);
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
movq %rsi, %rdi
callq 0x54c0
movsd 0x20(%r14), %xmm0
movsd 0x28(%r14), %xmm1
movsd 0x30(%r14), %xmm2
movsd 0x38(%r14), %xmm3
movq %rbx, %rdi
callq 0x5340
movsd 0x40(%r14), %xmm0
movsd 0x48(%r14), %xmm1
movq %rbx, %rdi
callq 0x5180
movsd 0x60(%r14), %xmm0
movq %rbx, %rdi
callq 0x5490
movsd 0x50(%r14), %xmm2
movsd 0x58(%r14), %xmm3
xorps %xmm0, %xmm0
xorps %xmm1, %xmm1
movq %rbx, %rdi
callq 0x5380
cmpb $0x1, 0x68(%r14)
jne 0x184c5
movq %rbx, %rdi
callq 0x5690
movq %rbx, %rdi
callq 0x54f0
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x5610
// File: /workspace/github_c_makefile_star2_O2/algorithm-archivists[P]GathVL/src/objects/text.cpp
// Function: text::draw(_cairo*) const
void text::draw(cairo_t *ctx) const {
    cairo_save(ctx);
    cairo_set_source_rgba(ctx, clr.r, clr.g, clr.b, clr.a);
    cairo_translate(ctx, location.x, location.y);
    cairo_rotate(ctx, rotation);

    if (!font.empty()) {
        cairo_select_font_face(ctx, font.c_str(), CAIRO_FONT_SLANT_NORMAL,
                               CAIRO_FONT_WEIGHT_NORMAL);
    }

    cairo_set_font_size(ctx, size);

    cairo_move_to(ctx, 0, 0);
    cairo_show_text(ctx, str.c_str());

    cairo_stroke(ctx);
    cairo_restore(ctx);
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
movq %rsi, %rdi
callq 0x54c0
movsd 0x20(%r14), %xmm0
movsd 0x28(%r14), %xmm1
movsd 0x30(%r14), %xmm2
movsd 0x38(%r14), %xmm3
movq %rbx, %rdi
callq 0x5340
movsd 0x40(%r14), %xmm0
movsd 0x48(%r14), %xmm1
movq %rbx, %rdi
callq 0x5180
movsd 0x58(%r14), %xmm0
movq %rbx, %rdi
callq 0x5490
cmpq $0x0, 0x88(%r14)
je 0x194f1
movq 0x80(%r14), %rsi
movq %rbx, %rdi
xorl %edx, %edx
xorl %ecx, %ecx
callq 0x55f0
movsd 0x50(%r14), %xmm0
movq %rbx, %rdi
callq 0x5410
xorps %xmm0, %xmm0
xorps %xmm1, %xmm1
movq %rbx, %rdi
callq 0x5570
movq 0x60(%r14), %rsi
movq %rbx, %rdi
callq 0x5290
movq %rbx, %rdi
callq 0x54f0
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x5610
// File: /workspace/github_c_makefile_star2_O2/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 %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x208, %rsp            # imm = 0x208
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x50(%rsp), %rax
movq %rax, -0x10(%rax)
andq $0x0, -0x8(%rax)
movb $0x0, (%rax)
leaq 0x80(%rsp), %rdi
callq 0x5250
leaq 0x90(%rsp), %rdi
movq (%rdi), %rax
movq -0x18(%rax), %rax
movq $0x5, 0xa0(%rsp,%rax)
pushq $0x30
popq %rsi
callq 0x55a0
movl 0x28(%rbx), %esi
movq %rax, %rdi
callq 0x5280
leaq 0x98(%rsp), %rsi
movq %rsp, %rdi
callq 0x52f0
leaq 0x8(%rbx), %rsi
leaq 0x20(%rsp), %rdi
movq %rsp, %rdx
callq 0x1972a
leaq 0x45ab(%rip), %rdx      # 0x1dba7
leaq 0x60(%rsp), %rdi
leaq 0x20(%rsp), %rsi
callq 0x1970b
leaq 0x40(%rsp), %r15
leaq 0x60(%rsp), %r12
movq %r15, %rdi
movq %r12, %rsi
callq 0x53e0
movq %r12, %rdi
callq 0x5550
leaq 0x20(%rsp), %rdi
callq 0x5550
movq %rsp, %rdi
callq 0x5550
movq (%r15), %rsi
movq %r14, %rdi
callq 0x5330
incl 0x28(%rbx)
leaq 0x80(%rsp), %rdi
callq 0x52d0
leaq 0x40(%rsp), %rdi
callq 0x5550
addq $0x208, %rsp            # imm = 0x208
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movq %rax, %rbx
leaq 0x20(%rsp), %rdi
callq 0x5550
jmp 0x19680
movq %rax, %rbx
movq %rsp, %rdi
callq 0x5550
jmp 0x19694
jmp 0x19691
movq %rax, %rbx
jmp 0x196a1
movq %rax, %rbx
leaq 0x80(%rsp), %rdi
callq 0x52d0
leaq 0x40(%rsp), %rdi
callq 0x5550
movq %rbx, %rdi
callq 0x5500
nop
// File: /workspace/github_c_makefile_star2_O2/algorithm-archivists[P]GathVL/src/encoders/video_encoder.cpp
// Function: video_encoder::encode(_cairo_surface*)
void video_encoder::encode(cairo_surface_t *image) {
    AVCodecContext *c = ostream.codec_ctx;
    AVFrame *frame = nullptr;

    cairo_surface_flush(image);
    uint8_t *data[1] = {(uint8_t*)cairo_image_surface_get_data(image)};
    int stride[1] = {cairo_image_surface_get_stride(image)};
    cairo_surface_mark_dirty(image);

    if (av_frame_make_writable(ostream.frame) < 0) {
        std::exit(1);
    }

    frame = ostream.frame;
    if (c->pix_fmt != AV_PIX_FMT_BGRA) {
        sws_scale(ostream.sws_ctx, data, stride, 0, c->height, frame->data,
                  frame->linesize);
    } else {
        av_image_fill_arrays(frame->data, frame->linesize, data[0], c->pix_fmt,
                             c->width, c->height, stride[0]);
    }

    ostream.frame->pts = ostream.next_pts++;

    write_frame(format_ctx, &ostream, ostream.frame);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x20, %rsp
movq %rsi, %r15
movq %rdi, %rbx
movq 0x38(%rdi), %r12
movq %rsi, %rdi
callq 0x5760
movq %r15, %rdi
callq 0x5360
movq %rax, %r14
movq %rax, 0x18(%rsp)
movq %r15, %rdi
callq 0x5850
movl %eax, %ebp
movl %eax, 0x14(%rsp)
movq %r15, %rdi
callq 0x55b0
movq 0x48(%rbx), %rdi
callq 0x56e0
testl %eax, %eax
js 0x1986b
movq 0x48(%rbx), %rax
cmpl $0x1c, 0x88(%r12)
jne 0x19815
leaq 0x40(%rax), %rsi
movl 0x74(%r12), %r8d
movl 0x78(%r12), %r9d
movl %ebp, (%rsp)
pushq $0x1c
popq %rcx
movq %rax, %rdi
movq %r14, %rdx
callq 0x55e0
jmp 0x1983a
movq 0x50(%rbx), %rdi
movl 0x78(%r12), %r8d
leaq 0x40(%rax), %rcx
movq %rcx, (%rsp)
leaq 0x18(%rsp), %rsi
leaq 0x14(%rsp), %rdx
xorl %ecx, %ecx
movq %rax, %r9
callq 0x5770
leaq 0x30(%rbx), %rsi
movq 0x40(%rbx), %rax
movq 0x48(%rbx), %rdx
leaq 0x1(%rax), %rcx
movq %rcx, 0x40(%rbx)
movq %rax, 0x88(%rdx)
movq 0x28(%rbx), %rdi
callq 0x19873
addq $0x20, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
pushq $0x1
popq %rdi
callq 0x5520
// File: /workspace/github_c_makefile_star2_O2/algorithm-archivists[P]GathVL/src/encoders/video_encoder.cpp
// Function: write_frame(AVFormatContext*, output_stream*, AVFrame*)
static void write_frame(AVFormatContext *format_ctx, output_stream *ostream,
                        AVFrame *frame) {
    AVCodecContext *c = ostream->codec_ctx;
    AVPacket *pkt = nullptr;

    pkt = av_packet_alloc();
    if (!pkt) {
        std::cout << "Could not allocate a packet" << std::endl;
        std::exit(1);
    }

    int ret = avcodec_send_frame(c, frame);
    if (ret < 0) {
        std::cout << "Error encoding video frame." << std::endl;
        std::exit(1);
    }

    while (ret >= 0) {
        ret = avcodec_receive_packet(c, pkt);
        if (ret == AVERROR(EAGAIN) || ret == AVERROR_EOF)
            break;
        else if (ret < 0) {
            std::cout << "Error during encoding." << std::endl;
            std::exit(1);
        }

        av_packet_rescale_ts(pkt, c->time_base, ostream->stream->time_base);
        pkt->stream_index = ostream->stream->index;

        ret = av_interleaved_write_frame(format_ctx, pkt);
        av_packet_unref(pkt);
        if (ret < 0) {
            std::cout << "Error while writing video frame." << std::endl;
            std::exit(1);
        }
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %r13
movq %rsi, %rbx
movq %rdi, %r14
movq 0x8(%rsi), %r15
callq 0x57f0
testq %rax, %rax
je 0x19942
movq %rax, %r12
movq %r15, %rdi
movq %r13, %rsi
callq 0x5800
testl %eax, %eax
js 0x19952
movq %r15, %rdi
movq %r12, %rsi
callq 0x54d0
cmpl $0xdfb9b0bb, %eax       # imm = 0xDFB9B0BB
je 0x19910
cmpl $-0xb, %eax
je 0x19910
testl %eax, %eax
js 0x1991f
movq 0x64(%r15), %rsi
movq (%rbx), %rax
movq 0x18(%rax), %rdx
movq %r12, %rdi
callq 0x5190
movq (%rbx), %rax
movl (%rax), %eax
movl %eax, 0x24(%r12)
movq %r14, %rdi
movq %r12, %rsi
callq 0x5030
movl %eax, %ebp
movq %r12, %rdi
callq 0x5780
testl %ebp, %ebp
jns 0x198af
movq 0xc6b9(%rip), %rdi      # 0x25fc0
leaq 0x43db(%rip), %rsi      # 0x1dce9
jmp 0x1992d
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0xc69a(%rip), %rdi      # 0x25fc0
leaq 0x43a5(%rip), %rsi      # 0x1dcd2
callq 0x5480
movq %rax, %rdi
callq 0x57b0
pushq $0x1
popq %rdi
callq 0x5520
movq 0xc677(%rip), %rdi      # 0x25fc0
leaq 0x434a(%rip), %rsi      # 0x1dc9a
jmp 0x1992d
movq 0xc667(%rip), %rdi      # 0x25fc0
leaq 0x4356(%rip), %rsi      # 0x1dcb6
jmp 0x1992d
// File: /workspace/github_c_makefile_star2_O2/algorithm-archivists[P]GathVL/src/encoders/video_encoder.cpp
// Function: video_encoder::~video_encoder()
video_encoder::~video_encoder() {
    write_frame(format_ctx, &ostream, NULL);

    av_write_trailer(format_ctx);

    avcodec_free_context(&ostream.codec_ctx);
    av_frame_free(&ostream.frame);
    sws_freeContext(ostream.sws_ctx);

    if (!(format_ctx->oformat->flags & AVFMT_NOFILE)) {
        avio_closep(&format_ctx->pb);
    }

    avformat_free_context(format_ctx);
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
leaq 0xbec5(%rip), %rax      # 0x25d08
movq %rax, (%rdi)
movq 0x28(%rdi), %rdi
leaq 0x30(%rbx), %rsi
xorl %edx, %edx
callq 0x19873
movq 0x28(%rbx), %rdi
callq 0x5210
leaq 0x38(%rbx), %rdi
callq 0x5700
leaq 0x48(%rbx), %rdi
callq 0x5370
movq 0x50(%rbx), %rdi
callq 0x57a0
movq 0x28(%rbx), %rdi
movq 0x10(%rdi), %rax
testb $0x1, 0x2c(%rax)
jne 0x19e94
addq $0x20, %rdi
callq 0x5220
movq 0x28(%rbx), %rdi
callq 0x5430
movq %rbx, %rdi
popq %rbx
jmp 0x19762
movq %rax, %rdi
callq 0x645b
// File: /workspace/github_c_makefile_star2_O2/algorithm-archivists[P]GathVL/src/systems/system_unix.cpp
// Function: subprocess(char const*, std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>> const&)
int subprocess(const char *program, const std::vector<std::string>& args) {
    std::vector<char *> argv;

    for (auto& str : args) {
        argv.push_back(&(char&)str.front());
    }
    argv.push_back(NULL);

    pid_t pid = fork();
    int status = 0;

    if (pid == 0) {
        int fd = open("/dev/null", O_WRONLY);
        dup2(fd, 1);
        dup2(fd, 2);
        close(fd);

        execv(program, argv.data());
        std::exit(127);
    } else {
        waitpid(pid, &status, 0);
        if (WIFEXITED(status) && (WEXITSTATUS(status) == 0)) {
            return 0;
        }
    }

    return 1;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rdi, %rbx
xorps %xmm0, %xmm0
leaq 0x10(%rsp), %r14
andq $0x0, 0x10(%r14)
movaps %xmm0, (%r14)
movq (%rsi), %r12
movq 0x8(%rsi), %r13
leaq 0x8(%rsp), %r15
cmpq %r13, %r12
je 0x19f0d
movq (%r12), %rax
movq %rax, 0x8(%rsp)
movq %r14, %rdi
movq %r15, %rsi
callq 0x19ff6
addq $0x20, %r12
jmp 0x19eee
leaq 0x8(%rsp), %rsi
andq $0x0, (%rsi)
leaq 0x10(%rsp), %rdi
callq 0x19ff6
callq 0x5790
andl $0x0, 0x8(%rsp)
testl %eax, %eax
je 0x19f63
leaq 0x8(%rsp), %rsi
movl %eax, %edi
xorl %edx, %edx
callq 0x5740
xorl %ebx, %ebx
testw $0xff7f, 0x8(%rsp)      # imm = 0xFF7F
setne %bl
leaq 0x10(%rsp), %rdi
callq 0x19fc2
movl %ebx, %eax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x3e89(%rip), %rdi      # 0x1ddf3
pushq $0x1
popq %rsi
xorl %eax, %eax
callq 0x5390
movl %eax, %ebp
pushq $0x1
popq %rsi
movl %eax, %edi
callq 0x5460
pushq $0x2
popq %rsi
movl %ebp, %edi
callq 0x5460
movl %ebp, %edi
callq 0x51b0
movq 0x10(%rsp), %rsi
movq %rbx, %rdi
callq 0x5730
pushq $0x7f
popq %rdi
callq 0x5520
jmp 0x19fac
jmp 0x19fac
jmp 0x19fac
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
callq 0x19fc2
movq %rbx, %rdi
callq 0x5500
nop
// File: /workspace/github_c_makefile_star2_O2/tylerneylon[P]APIsWithLua/ch6/eatyguy10.c
// Function: done
void done(const char *msg) {

  // Put the terminal back into a decent state.
  system("stty cooked echo");  // Undo init call to "stty raw".
  system("tput reset");        // Reset colors and clear screen.

  // Print the farewell message if there is one.
  if (msg) printf("%s\n", msg);

  exit(0);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
leaq 0x198bb(%rip), %rdi     # 0x1f052
callq 0x5160
leaq 0x198c0(%rip), %rdi     # 0x1f063
callq 0x5160
testq %rbx, %rbx
je 0x57b5
movq %rbx, %rdi
callq 0x50c0
xorl %edi, %edi
callq 0x5480