LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O3/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 0x54b0
movsd 0x20(%r14), %xmm0
movsd 0x28(%r14), %xmm1
movsd 0x30(%r14), %xmm2
movsd 0x38(%r14), %xmm3
movq %rbx, %rdi
callq 0x5320
movsd 0x40(%r14), %xmm0
movsd 0x48(%r14), %xmm1
movq %rbx, %rdi
callq 0x5180
movsd 0x70(%r14), %xmm0
movq %rbx, %rdi
callq 0x5480
movsd 0x50(%r14), %xmm2
movsd 0x58(%r14), %xmm1
ucomisd %xmm2, %xmm1
jbe 0x9192
xorpd %xmm0, %xmm0
ucomisd %xmm0, %xmm2
jne 0x91c2
jp 0x91c2
ucomisd %xmm0, %xmm1
jne 0x91c2
jp 0x91c2
ucomisd %xmm1, %xmm2
jbe 0x91ac
xorpd %xmm0, %xmm0
ucomisd %xmm0, %xmm2
jne 0x91e2
jp 0x91e2
ucomisd %xmm0, %xmm1
jne 0x91e2
jp 0x91e2
xorpd %xmm0, %xmm0
ucomisd %xmm0, %xmm2
jne 0x91b8
jnp 0x9218
ucomisd %xmm1, %xmm2
jne 0x9218
jnp 0x91fc
jmp 0x9218
divsd %xmm1, %xmm2
movsd 0x1a1ca(%rip), %xmm1    # 0x23398
movq %rbx, %rdi
movapd %xmm2, %xmm0
callq 0x5690
movsd 0x58(%r14), %xmm2
jmp 0x91fc
divsd %xmm2, %xmm1
movsd 0x1a1aa(%rip), %xmm0    # 0x23398
movq %rbx, %rdi
callq 0x5690
movsd 0x50(%r14), %xmm2
movsd 0x60(%r14), %xmm3
movsd 0x68(%r14), %xmm4
xorpd %xmm0, %xmm0
xorpd %xmm1, %xmm1
movq %rbx, %rdi
callq 0x5330
cmpb $0x1, 0x78(%r14)
jne 0x9227
movq %rbx, %rdi
callq 0x5670
movq %rbx, %rdi
callq 0x54f0
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x5600
// File: /workspace/github_c_makefile_star2_O3/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 0x16a41(%rip), %xmm2    # 0x233fc
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 0xb3f0
addq $0x78, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/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 0x1d3c9
cmpl $0x6, %edi
jae 0x1d3e8
movaps %xmm0, %xmm1
movl %edi, %eax
shlq $0x4, %rax
ucomiss 0x6075(%rip), %xmm0     # 0x233fc
leaq 0xf742(%rip), %rcx      # 0x2cad0
movq 0x8(%rax,%rcx), %rax
ja 0x1d3ac
movaps %xmm1, %xmm0
movss %xmm1, 0x4(%rsp)
callq *%rax
addss %xmm0, %xmm0
divss 0x4(%rsp), %xmm0
jmp 0x1d3be
movss 0x6048(%rip), %xmm0     # 0x233fc
divss %xmm1, %xmm0
callq *%rax
addss %xmm0, %xmm0
callq 0x52a0
cvttss2si %xmm0, %eax
popq %rcx
retq
leaq 0x7c83(%rip), %rdi      # 0x25053
leaq 0x7ba7(%rip), %rsi      # 0x24f7e
leaq 0x7ce4(%rip), %rcx      # 0x250c2
movl $0x372, %edx            # imm = 0x372
callq 0x5130
leaq 0x7c7f(%rip), %rdi      # 0x2506e
leaq 0x7b88(%rip), %rsi      # 0x24f7e
leaq 0x7cc5(%rip), %rcx      # 0x250c2
movl $0x373, %edx            # imm = 0x373
callq 0x5130
// File: /workspace/github_c_makefile_star2_O3/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 0x5fe9(%rip), %xmm2     # 0x233fc
ucomiss %xmm1, %xmm2
jb 0x1d466
movss 0x5fe0(%rip), %xmm4     # 0x23400
movaps %xmm1, %xmm5
mulss %xmm4, %xmm5
movaps %xmm5, %xmm3
andps 0x625f(%rip), %xmm0     # 0x23690
addss %xmm4, %xmm3
xorps %xmm2, %xmm2
ucomiss %xmm3, %xmm0
jae 0x1d462
subss %xmm5, %xmm4
subss %xmm0, %xmm3
divss %xmm1, %xmm3
cmpnless %xmm4, %xmm0
andps %xmm0, %xmm3
movss 0x5fa3(%rip), %xmm1     # 0x233fc
andnps %xmm1, %xmm0
orps %xmm3, %xmm0
movaps %xmm0, %xmm2
movaps %xmm2, %xmm0
retq
pushq %rax
leaq 0x7c8b(%rip), %rdi      # 0x250f9
leaq 0x7b09(%rip), %rsi      # 0x24f7e
leaq 0x7c88(%rip), %rcx      # 0x25104
movl $0x2f8, %edx            # imm = 0x2F8
callq 0x5130
// File: /workspace/github_c_makefile_star2_O3/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 0x619a(%rip), %xmm2     # 0x23690
andps %xmm0, %xmm2
movss 0x5efb(%rip), %xmm0     # 0x233fc
ucomiss %xmm2, %xmm0
jbe 0x1d533
mulss %xmm1, %xmm1
movss 0x5ef6(%rip), %xmm0     # 0x23408
mulss %xmm2, %xmm0
addss 0x5efe(%rip), %xmm0     # 0x2341c
mulss %xmm1, %xmm0
addss 0x5ef6(%rip), %xmm0     # 0x23420
divss 0x5ede(%rip), %xmm0     # 0x23410
retq
xorps %xmm0, %xmm0
movss 0x5ece(%rip), %xmm1     # 0x2340c
ucomiss %xmm2, %xmm1
jbe 0x1d56e
movss 0x5ec5(%rip), %xmm1     # 0x23410
movaps %xmm1, %xmm0
subss %xmm2, %xmm0
mulss %xmm2, %xmm0
addss 0x5eb6(%rip), %xmm0     # 0x23414
mulss %xmm2, %xmm0
addss 0x5eae(%rip), %xmm0     # 0x23418
divss %xmm1, %xmm0
retq
// File: /workspace/github_c_makefile_star2_O3/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 0x609b(%rip), %xmm2     # 0x23690
andps %xmm0, %xmm2
movss 0x5dfc(%rip), %xmm0     # 0x233fc
ucomiss %xmm2, %xmm0
jbe 0x1d62b
mulss %xmm1, %xmm1
movss 0x5e33(%rip), %xmm0     # 0x23444
mulss %xmm2, %xmm0
addss 0x5e2b(%rip), %xmm0     # 0x23448
mulss %xmm1, %xmm0
addss 0x5e23(%rip), %xmm0     # 0x2344c
jmp 0x1d667
xorps %xmm0, %xmm0
movss 0x5dd6(%rip), %xmm1     # 0x2340c
ucomiss %xmm2, %xmm1
jbe 0x1d66f
movss 0x5ded(%rip), %xmm0     # 0x23430
mulss %xmm2, %xmm0
addss 0x5de5(%rip), %xmm0     # 0x23434
mulss %xmm2, %xmm0
addss 0x5ddd(%rip), %xmm0     # 0x23438
mulss %xmm2, %xmm0
addss 0x5dd5(%rip), %xmm0     # 0x2343c
divss 0x5dd1(%rip), %xmm0     # 0x23440
retq
// File: /workspace/github_c_makefile_star2_O3/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 0x1e11c
movss 0x44(%rbx), %xmm0
movss %xmm0, 0x4(%rsp)
movq %rbx, %rdi
movl %ebp, %esi
callq 0x1f4f7
movss 0x4(%rsp), %xmm0
movq %rbx, %rdi
movq %rax, %rsi
addq $0x8, %rsp
ucomiss 0x52f0(%rip), %xmm0     # 0x233fc
ja 0x1e115
popq %rbx
popq %rbp
jmp 0x1f578
popq %rbx
popq %rbp
jmp 0x1f0d1
// File: /workspace/github_c_makefile_star2_O3/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 0x1f53c
addl %ecx, %esi
subl 0xd0(%rdi), %esi
movl %esi, %eax
cltd
idivl 0xcc(%rdi)
cmpl %ecx, %edx
jne 0x1f54e
pushq %rax
leaq 0x640e(%rip), %rdi      # 0x25932
leaq 0x5a53(%rip), %rsi      # 0x24f7e
leaq 0x6439(%rip), %rcx      # 0x2596b
movl $0x595, %edx            # imm = 0x595
callq 0x5130
movl $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 0x5260
// File: /workspace/github_c_makefile_star2_O3/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 0x54b0
movsd 0x20(%r14), %xmm0
movsd 0x28(%r14), %xmm1
movsd 0x30(%r14), %xmm2
movsd 0x38(%r14), %xmm3
movq %rbx, %rdi
callq 0x5320
movsd 0x40(%r14), %xmm0
movsd 0x48(%r14), %xmm1
movq %rbx, %rdi
callq 0x5560
movsd 0x50(%r14), %xmm0
movsd 0x58(%r14), %xmm1
movq %rbx, %rdi
callq 0x52f0
movq %rbx, %rdi
callq 0x54f0
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x5600
nop
// File: /workspace/github_c_makefile_star2_O3/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 0x54b0
movsd 0x20(%r14), %xmm0
movsd 0x28(%r14), %xmm1
movsd 0x30(%r14), %xmm2
movsd 0x38(%r14), %xmm3
movq %rbx, %rdi
callq 0x5320
movsd 0x40(%r14), %xmm0
movsd 0x48(%r14), %xmm1
movq %rbx, %rdi
callq 0x5180
movsd 0x68(%r14), %xmm0
movq %rbx, %rdi
callq 0x5480
movq 0x58(%r14), %rax
cmpq %rax, 0x50(%r14)
je 0x203ee
movsd -0x10(%rax), %xmm0
movsd -0x8(%rax), %xmm1
subsd 0x40(%r14), %xmm0
subsd 0x48(%r14), %xmm1
movq %rbx, %rdi
callq 0x5560
movq 0x50(%r14), %r15
movq 0x58(%r14), %r12
cmpq %r12, %r15
je 0x203ee
movsd (%r15), %xmm0
movsd 0x8(%r15), %xmm1
subsd 0x40(%r14), %xmm0
subsd 0x48(%r14), %xmm1
movq %rbx, %rdi
callq 0x52f0
addq $0x10, %r15
jmp 0x203c4
movq %rbx, %rdi
callq 0x57c0
cmpb $0x0, 0x70(%r14)
je 0x20405
movq %rbx, %rdi
callq 0x5670
movq %rbx, %rdi
callq 0x54f0
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0x5600
// File: /workspace/github_c_makefile_star2_O3/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 0x54b0
movsd 0x20(%r14), %xmm0
movsd 0x28(%r14), %xmm1
movsd 0x30(%r14), %xmm2
movsd 0x38(%r14), %xmm3
movq %rbx, %rdi
callq 0x5320
movsd 0x40(%r14), %xmm0
movsd 0x48(%r14), %xmm1
movq %rbx, %rdi
callq 0x5180
movsd 0x60(%r14), %xmm0
movq %rbx, %rdi
callq 0x5480
movsd 0x50(%r14), %xmm2
movsd 0x58(%r14), %xmm3
xorps %xmm0, %xmm0
xorps %xmm1, %xmm1
movq %rbx, %rdi
callq 0x5360
cmpb $0x1, 0x68(%r14)
jne 0x2051d
movq %rbx, %rdi
callq 0x5670
movq %rbx, %rdi
callq 0x54f0
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x5600
// File: /workspace/github_c_makefile_star2_O3/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 0x54b0
movsd 0x20(%r14), %xmm0
movsd 0x28(%r14), %xmm1
movsd 0x30(%r14), %xmm2
movsd 0x38(%r14), %xmm3
movq %rbx, %rdi
callq 0x5320
movsd 0x40(%r14), %xmm0
movsd 0x48(%r14), %xmm1
movq %rbx, %rdi
callq 0x5180
movsd 0x58(%r14), %xmm0
movq %rbx, %rdi
callq 0x5480
cmpq $0x0, 0x88(%r14)
je 0x21a15
movq 0x80(%r14), %rsi
movq %rbx, %rdi
xorl %edx, %edx
xorl %ecx, %ecx
callq 0x55e0
movsd 0x50(%r14), %xmm0
movq %rbx, %rdi
callq 0x5400
xorps %xmm0, %xmm0
xorps %xmm1, %xmm1
movq %rbx, %rdi
callq 0x5560
movq 0x60(%r14), %rsi
movq %rbx, %rdi
callq 0x5280
movq %rbx, %rdi
callq 0x54f0
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x5600
// File: /workspace/github_c_makefile_star2_O3/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 0x5740
movq %r15, %rdi
callq 0x5340
movq %rax, %r14
movq %rax, 0x18(%rsp)
movq %r15, %rdi
callq 0x5850
movl %eax, %ebp
movl %eax, 0x14(%rsp)
movq %r15, %rdi
callq 0x55a0
movq 0x48(%rbx), %rdi
callq 0x56c0
testl %eax, %eax
js 0x21f85
movq 0x48(%rbx), %rax
cmpl $0x1c, 0x88(%r12)
jne 0x21f2f
leaq 0x40(%rax), %rsi
movl 0x74(%r12), %r8d
movl 0x78(%r12), %r9d
movl %ebp, (%rsp)
movq %rax, %rdi
movq %r14, %rdx
movl $0x1c, %ecx
callq 0x55d0
jmp 0x21f54
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 0x5750
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 0x21f8f
addq $0x20, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movl $0x1, %edi
callq 0x5520
// File: /workspace/github_c_makefile_star2_O3/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 0x22060
movq %rax, %r12
movq %r15, %rdi
movq %r13, %rsi
callq 0x5800
testl %eax, %eax
js 0x22070
movq %r15, %rdi
movq %r12, %rsi
callq 0x54c0
cmpl $0xdfb9b0bb, %eax       # imm = 0xDFB9B0BB
je 0x2202c
cmpl $-0xb, %eax
je 0x2202c
testl %eax, %eax
js 0x2203b
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 0x5770
testl %ebp, %ebp
jns 0x21fcb
movq 0xaf95(%rip), %rdi      # 0x2cfb8
leaq 0x3e5f(%rip), %rsi      # 0x25e89
jmp 0x22049
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0xaf76(%rip), %rdi      # 0x2cfb8
leaq 0x3e29(%rip), %rsi      # 0x25e72
callq 0x5470
movq %rax, %rdi
callq 0x57a0
movl $0x1, %edi
callq 0x5520
movq 0xaf51(%rip), %rdi      # 0x2cfb8
leaq 0x3dcc(%rip), %rsi      # 0x25e3a
jmp 0x22049
movq 0xaf41(%rip), %rdi      # 0x2cfb8
leaq 0x3dd8(%rip), %rsi      # 0x25e56
jmp 0x22049
// File: /workspace/github_c_makefile_star2_O3/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 0xa65f(%rip), %rax      # 0x2ccf8
movq %rax, (%rdi)
movq 0x28(%rdi), %rdi
leaq 0x30(%rbx), %rsi
xorl %edx, %edx
callq 0x21f8f
movq 0x28(%rbx), %rdi
callq 0x5210
leaq 0x38(%rbx), %rdi
callq 0x56e0
leaq 0x48(%rbx), %rdi
callq 0x5350
movq 0x50(%rbx), %rdi
callq 0x5790
movq 0x28(%rbx), %rdi
movq 0x10(%rdi), %rax
testb $0x1, 0x2c(%rax)
jne 0x226ea
addq $0x20, %rdi
callq 0x5220
movq 0x28(%rbx), %rdi
callq 0x5420
leaq 0xa5da(%rip), %rax      # 0x2ccd0
movq %rax, (%rbx)
movq 0x8(%rbx), %rdi
addq $0x18, %rbx
cmpq %rbx, %rdi
je 0x22712
movq (%rbx), %rsi
incq %rsi
popq %rbx
jmp 0x50c0
popq %rbx
retq
movq %rax, %rdi
callq 0x6859
// File: /workspace/github_c_makefile_star2_O3/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
movaps %xmm0, 0x10(%rsp)
movq $0x0, 0x20(%rsp)
movq (%rsi), %r12
movq 0x8(%rsi), %r13
cmpq %r13, %r12
je 0x22789
leaq 0x10(%rsp), %r14
leaq 0x8(%rsp), %r15
movq (%r12), %rax
movq %rax, 0x8(%rsp)
movq %r14, %rdi
movq %r15, %rsi
callq 0x22866
addq $0x20, %r12
cmpq %r13, %r12
jne 0x2276c
leaq 0x8(%rsp), %rsi
movq $0x0, (%rsi)
leaq 0x10(%rsp), %rdi
callq 0x22866
callq 0x5780
movl $0x0, 0x8(%rsp)
testl %eax, %eax
je 0x227f3
leaq 0x8(%rsp), %rsi
movl %eax, %edi
xorl %edx, %edx
callq 0x5720
movl 0x8(%rsp), %ebx
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x227d9
movq 0x20(%rsp), %rsi
subq %rdi, %rsi
callq 0x50c0
xorl %eax, %eax
testl $0xff7f, %ebx           # imm = 0xFF7F
setne %al
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x3799(%rip), %rdi      # 0x25f93
movl $0x1, %esi
xorl %eax, %eax
callq 0x5370
movl %eax, %ebp
movl %eax, %edi
movl $0x1, %esi
callq 0x5450
movl %ebp, %edi
movl $0x2, %esi
callq 0x5450
movl %ebp, %edi
callq 0x51b0
movq 0x10(%rsp), %rsi
movq %rbx, %rdi
callq 0x5710
movl $0x7f, %edi
callq 0x5520
jmp 0x22844
jmp 0x22844
jmp 0x22844
movq %rax, %rbx
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x2285e
movq 0x20(%rsp), %rsi
subq %rdi, %rsi
callq 0x50c0
movq %rbx, %rdi
callq 0x5500
// File: /workspace/github_c_makefile_star2_O3/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 0x1c705(%rip), %rdi     # 0x2204a
callq 0x5160
leaq 0x1c70a(%rip), %rdi     # 0x2205b
callq 0x5160
testq %rbx, %rbx
je 0x5963
movq %rbx, %rdi
callq 0x50c0
xorl %edi, %edi
callq 0x5490
// File: /workspace/github_c_makefile_star2_O3/samtools[P]htslib/test/fieldarith.c
// Function: check
void check(const bam1_t *aln, const char *testname, const char *tag, int value)
{
    int32_t refvalue;
    uint8_t *aux = bam_aux_get(aln, tag);
    if (!aux) return;
    ntests++;
    refvalue = bam_aux2i(aux);
    if (value != refvalue) {
        fprintf(stderr, "%s FAIL for %s: computed %d != %d expected\n",
                testname, bam_get_qname(aln), value, refvalue);
        nfailures++;
    }
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movl %ecx, %ebx
movq %rsi, %r14
movq %rdi, %r15
movq %rdx, %rsi
callq 0x1f2d1
testq %rax, %rax
je 0x5df8
incl 0xa9718(%rip)           # 0xaf504
movq %rax, %rdi
callq 0x21cdf
cmpl %ebx, %eax
jne 0x5dfe
popq %rbx
popq %r14
popq %r15
retq
movq 0xa91db(%rip), %rcx     # 0xaefe0
movq (%rcx), %rdi
movq 0x38(%r15), %rcx
leaq 0x881f1(%rip), %rsi     # 0x8e004
movq %r14, %rdx
movl %ebx, %r8d
movl %eax, %r9d
xorl %eax, %eax
callq 0x46f0
incl 0xa96df(%rip)           # 0xaf508
jmp 0x5df8
// File: /workspace/github_c_makefile_star2_O3/samtools[P]htslib/test/fieldarith.c
// Function: main
int main(int argc, char **argv)
{
    sam_hdr_t *header;
    bam1_t *aln = bam_init1();
    int i;

    for (i = 1; i < argc; i++) {
        samFile *in = sam_open(argv[i], "r");
        if (in == NULL) { perror(argv[1]); return 1; }

        header = sam_hdr_read(in);
        while (sam_read1(in, header, aln) >= 0) {
            check(aln, "cigar2qlen", "XQ",
                  bam_cigar2qlen(aln->core.n_cigar, bam_get_cigar(aln)));
            check(aln, "cigar2rlen", "XR",
                  bam_cigar2rlen(aln->core.n_cigar, bam_get_cigar(aln)));
            check(aln, "endpos", "XE", bam_endpos(aln));
        }

        sam_hdr_destroy(header);
        sam_close(in);
    }

    bam_destroy1(aln);

    return (nfailures > 0);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rsi, (%rsp)
movl %edi, %ebx
callq 0x15e75
movq %rax, %r14
cmpl $0x2, %ebx
jl 0x5f50
movl %ebx, %eax
movq %rax, 0x8(%rsp)
movl $0x1, %ebp
leaq 0x881d8(%rip), %rbx     # 0x8e03b
leaq 0x881d4(%rip), %r12     # 0x8e03e
movq (%rsp), %rax
movq (%rax,%rbp,8), %rdi
leaq 0x8b044(%rip), %rsi     # 0x90ebd
callq 0x90b0
testq %rax, %rax
je 0x5f73
movq %rax, %r13
movq %rbp, 0x10(%rsp)
movq %rax, %rdi
callq 0x18c41
movq %rax, %rbp
movq %r13, %rdi
movq %rax, %rsi
movq %r14, %rdx
callq 0x1cc0f
testl %eax, %eax
leaq 0x881a2(%rip), %r15     # 0x8e053
js 0x5f2d
movl 0x14(%r14), %edi
movzwl 0x12(%r14), %esi
addq 0x38(%r14), %rsi
callq 0x164b4
movq %r14, %rdi
leaq 0x88161(%rip), %rsi     # 0x8e030
movq %rbx, %rdx
movl %eax, %ecx
callq 0x5dcc
movl 0x14(%r14), %edi
movzwl 0x12(%r14), %esi
addq 0x38(%r14), %rsi
callq 0x164eb
movq %r14, %rdi
movq %r12, %rsi
leaq 0x88151(%rip), %rdx     # 0x8e049
movl %eax, %ecx
callq 0x5dcc
movq %r14, %rdi
callq 0x16524
movq %r14, %rdi
leaq 0x8813b(%rip), %rsi     # 0x8e04c
movq %r15, %rdx
movl %eax, %ecx
callq 0x5dcc
movq %r13, %rdi
movq %rbp, %rsi
movq %r14, %rdx
callq 0x1cc0f
testl %eax, %eax
jns 0x5eb3
movq %rbp, %rdi
callq 0x15522
movq %r13, %rdi
callq 0xa312
movq 0x10(%rsp), %rbp
incq %rbp
cmpq 0x8(%rsp), %rbp
jne 0x5e6a
movq %r14, %rdi
callq 0x15f4b
xorl %eax, %eax
cmpl $0x0, 0xa95a7(%rip)     # 0xaf508
setg %al
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq (%rsp), %rax
movq 0x8(%rax), %rdi
callq 0x43c0
movl $0x1, %eax
jmp 0x5f64
nop
// File: /workspace/github_c_makefile_star2_O3/cirocosta[P]stress/src/tcp-client.c
// Function: send_chunks
void
send_chunks(int sock_fd)
{
	char buf[MAXLINE];
	char chunk[MAXLINE] = { 0 };

	memset(chunk, 65, MAXLINE);

	while (run) {
		_STRESS_MUST(stress_write_n(sock_fd, chunk, MAXLINE) >= 0,
		             "couldn't write contents to socket");
		_STRESS_MUST(stress_read_n(sock_fd, buf, MAXLINE) >= 0,
		             "unexpected error while reading");
	}
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x2000, %rsp           # imm = 0x2000
movl %edi, %ebx
movq %rsp, %r14
movl $0x1000, %edx           # imm = 0x1000
movq %r14, %rdi
movl $0x41, %esi
callq 0x10b0
leaq 0x1000(%rsp), %r15
cmpl $0x0, 0x2678(%rip)      # 0x40d8
je 0x1a8f
movl $0x1000, %edx           # imm = 0x1000
movl %ebx, %edi
movq %r14, %rsi
callq 0x1982
testq %rax, %rax
js 0x1a9c
movl $0x1000, %edx           # imm = 0x1000
movl %ebx, %edi
movq %r15, %rsi
callq 0x19d8
testq %rax, %rax
jns 0x1a59
callq 0x1482
addq $0x2000, %rsp           # imm = 0x2000
popq %rbx
popq %r14
popq %r15
retq
callq 0x13cc
// File: /workspace/github_c_makefile_star2_O3/cirocosta[P]stress/src/tcp-client.c
// Function: main
int
main(int argc, char** argv)
{
	stress_args_t args = { .b = 0 };

	int sock_fd;
	struct sockaddr_in server_addr;

	signal(SIGINT, terminate);
	setbuf(stdout, NULL);
	stress_parse_args(argc, argv, &args);

	_STRESS_MUST(args.n, "a port (n) must be specified");
	_STRESS_MUST(strlen(args.f), "an ip (f) must be specified");

	sock_fd = socket(AF_INET, SOCK_STREAM, 0);
	memset(&server_addr, sizeof(server_addr), 0);
	server_addr.sin_family = AF_INET;
	server_addr.sin_port = htons(args.n);

	inet_pton(AF_INET, args.f, &server_addr.sin_addr);
	connect(sock_fd, (struct sockaddr*)&server_addr, sizeof(server_addr));

	send_chunks(sock_fd);

	return 0;
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
subq $0x2020, %rsp           # imm = 0x2020
movq %rsi, %rbx
movl %edi, %ebp
leaq 0x18(%rsp), %r14
movl $0x2008, %edx           # imm = 0x2008
movq %r14, %rdi
xorl %esi, %esi
callq 0x10b0
leaq -0x36(%rip), %rsi       # 0x1aa1
movl $0x2, %edi
callq 0x10e0
movq 0x24e0(%rip), %rax      # 0x3fc8
movq (%rax), %rdi
xorl %esi, %esi
callq 0x1090
movl %ebp, %edi
movq %rbx, %rsi
movq %r14, %rdx
callq 0x17f9
cmpl $0x0, (%r14)
je 0x1b6e
cmpb $0x0, 0x1d(%rsp)
je 0x1b73
leaq 0x1d(%rsp), %rbx
movl $0x2, %edi
movl $0x1, %esi
xorl %edx, %edx
callq 0x1180
movl %eax, %ebp
leaq 0xc(%rsp), %rdx
movw $0x2, -0x4(%rdx)
movzwl -0x5(%rbx), %eax
rolw $0x8, %ax
movw %ax, -0x2(%rdx)
movl $0x2, %edi
movq %rbx, %rsi
callq 0x1100
leaq 0x8(%rsp), %rsi
movl %ebp, %edi
movl $0x10, %edx
callq 0x1140
movl %ebp, %edi
callq 0x1a2e
xorl %eax, %eax
addq $0x2020, %rsp           # imm = 0x2020
popq %rbx
popq %r14
popq %rbp
retq
callq 0x15ee
callq 0x1538
// File: /workspace/github_c_makefile_star2_O3/bloomsource[P]dns_update/dns.c
// Function: dns_write_domain
int dns_write_domain( char* data, int size, char* domain, int* write_len )
{
    char* pdata;
    char* pdomain, *p;
    unsigned char *blen;
    int seclen;
    int left;
    
    left = size;
    if( strlen( domain ) > MAX_DOMAIN )
    {
        write_log( "[WRN] write domain failed, domain name too large." );
        return -1;
    }
    
    pdata = data;
    pdomain = domain;
    
    while( 1 )
    {
        if( pdomain[0] == 0 )
            break;
        
        p = strchr( pdomain, '.' );
        if( p )
        {
            seclen = p - pdomain;
            if( left <= seclen + 1 )
            {
                write_log( "[WRN] write domain failed, space not enough." );
                return 1;
            }
            
            blen = (unsigned char*)pdata;
            *blen = seclen;
            memcpy( pdata+1, pdomain, seclen );
            left -= ( seclen + 1 );
            pdata += ( seclen + 1 );
            pdomain = p+1;
        }
        else
        {
            seclen = strlen( pdomain );
            if( left < seclen + 2 )
            {
                write_log( "[WRN] write domain failed, space not enough." );
                return 1;
            }
            
            blen = (unsigned char*)pdata;
            *blen = seclen;
            memcpy( pdata+1, pdomain, seclen );
            blen = (unsigned char*)pdata + 1 + seclen;
            *blen = 0;
            left -= ( seclen + 2 );
            pdata += ( seclen + 2 );
            break;
        }
    }
    
    *write_len = size - left;
    
    return 0;
    
    
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rcx, %rbx
movq %rdx, %r15
movl %esi, %ebp
movq %rdi, %r14
movq %rdx, %rdi
callq 0x2100
cmpq $0xff, %rax
jbe 0x2ff5
leaq 0x6354(%rip), %rdi      # 0x9338
xorl %eax, %eax
callq 0x32b8
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
jmp 0x309c
movq %rbx, (%rsp)
cmpb $0x0, (%r15)
movl %ebp, %r13d
je 0x3091
movl %ebp, %r13d
movq %r15, %rdi
movl $0x2e, %esi
callq 0x2110
testq %rax, %rax
je 0x3051
movq %rax, %r12
subq %r15, %rax
leal 0x1(%rax), %ebx
subl %ebx, %r13d
jle 0x3061
movb %al, (%r14)
leaq 0x1(%r14), %rdi
movslq %eax, %rdx
movq %r15, %rsi
callq 0x21e0
movslq %ebx, %rax
addq %rax, %r14
movq %r12, %r15
incq %r15
cmpb $0x0, 0x1(%r12)
jne 0x3009
jmp 0x3091
movq %r15, %rdi
callq 0x2100
leal 0x2(%rax), %ecx
subl %ecx, %r13d
jge 0x3076
leaq 0x6302(%rip), %rdi      # 0x936a
xorl %eax, %eax
callq 0x32b8
movl $0x1, %eax
jmp 0x309c
movb %al, (%r14)
leaq 0x1(%r14), %rdi
movslq %eax, %r12
movq %r15, %rsi
movq %r12, %rdx
callq 0x21e0
movb $0x0, 0x1(%r14,%r12)
subl %r13d, %ebp
movq (%rsp), %rax
movl %ebp, (%rax)
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/bloomsource[P]dns_update/dns.c
// Function: check_domain_char
int check_domain_char( char* domain, int len )
{
    int i;
    
    for( i = 0; i < len; i++ )
    {
        if( isalnum( domain[i] ) )
            continue;
        
        switch( domain[i] )
        {
            case '_':
            case '-':
                break;
            
               default:
                return -1;
        }
    }
    
    return 0;
    
}

// Assembly:
testl %esi, %esi
jle 0x30e8
pushq %rbp
pushq %rbx
pushq %rax
movl %esi, %ebp
movq %rdi, %rbx
callq 0x2300
movq (%rax), %rax
movl %ebp, %ecx
xorl %edx, %edx
movsbq (%rbx,%rdx), %rsi
testb $0x8, (%rax,%rsi,2)
jne 0x30dc
movzbl %sil, %esi
cmpl $0x5f, %esi
je 0x30dc
cmpl $0x2d, %esi
jne 0x30eb
incq %rdx
cmpq %rdx, %rcx
jne 0x30c3
xorl %eax, %eax
jmp 0x30f0
xorl %eax, %eax
retq
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
nop
// File: /workspace/github_c_makefile_star2_O3/bloomsource[P]dns_update/rbtree.c
// Function: binary_node_insert
int binary_node_insert( rbtree* tree, rbnode* node, rbnode* newnode )
{
    int cmp;
    
    cmp = tree->node_cmp( newnode, node );
    if( cmp == 0 )
        return RBTREE_ERR_EXIST;
    
    if( cmp < 0 )
    {
        if( node->left == NULL )
        {
            node->left = newnode;
            newnode->color = RED;
            newnode->left  = NULL;
            newnode->right = NULL;
            newnode->parent = node;
            tree->count++;
            return 0;
        }
        else
            return binary_node_insert( tree, node->left, newnode );
    }
    else
    {
        if( node->right == NULL )
        {
            node->right = newnode;
            newnode->color = RED;
            newnode->left = NULL;
            newnode->right = NULL;
            newnode->parent = node;
            tree->count++;
            return 0;
        }
        else
            return binary_node_insert( tree, node->right, newnode );
    }
    
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rdx, %rbx
movq %rsi, %r15
movq %rdi, %r14
movq %rdx, %rdi
callq *0x10(%r14)
movl $0x1, %ebp
testl %eax, %eax
je 0x7156
testl %eax, %eax
js 0x7117
movq 0x10(%r15), %r12
testq %r12, %r12
jne 0x7120
jmp 0x712f
movq 0x8(%r15), %r12
testq %r12, %r12
je 0x7136
movq %rbx, %rdi
movq %r12, %rsi
callq *0x10(%r14)
movq %r12, %r15
jmp 0x7104
movl $0x10, %eax
jmp 0x713b
movl $0x8, %eax
movq %rbx, (%r15,%rax)
movl $0x1, (%rbx)
xorps %xmm0, %xmm0
movups %xmm0, 0x8(%rbx)
movq %r15, 0x18(%rbx)
incl 0x8(%r14)
xorl %ebp, %ebp
movl %ebp, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/bloomsource[P]dns_update/rbtree.c
// Function: rbtree_insert
int  rbtree_insert( rbtree* tree, rbnode* node )
{
    int rc;
    
    if( tree->root == NULL )
    {
        node->color = BLACK;
        node->left  = NULL;
        node->right = NULL;
        node->parent = NULL;
        tree->root = node;
        tree->count ++;
        return 0;
    }
    
    rc = binary_node_insert( tree, tree->root, node );
    if( rc )
        return rc;
    
    insert_case1( tree, node );
    
    return 0;
    
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rsi, %r15
movq %rdi, %r14
movq (%rdi), %rsi
testq %rsi, %rsi
je 0x7280
movq %r14, %rdi
movq %r15, %rdx
callq 0x70e7
movl $0x1, %ebx
testl %eax, %eax
jne 0x72a0
movq 0x18(%r15), %rsi
testq %rsi, %rsi
je 0x72a8
xorl %ebx, %ebx
cmpl $0x2, (%rsi)
je 0x72a0
movq 0x18(%rsi), %rax
xorl %edi, %edi
cmpq %rsi, 0x8(%rax)
setne %dl
sete %dil
leaq 0x10(%rax), %rcx
movq 0x8(%rax,%rdi,8), %r8
testq %r8, %r8
je 0x7257
cmpl $0x1, (%r8)
jne 0x7257
movl $0x2, %edi
movq %rax, %r15
movl %edi, (%rsi)
movl %edi, (%r8)
movl $0x1, (%rax)
movq 0x18(%rax), %rsi
testq %rsi, %rsi
je 0x72fe
cmpl $0x2, (%rsi)
je 0x72a0
movq 0x18(%rsi), %rax
xorl %r8d, %r8d
cmpq %rsi, 0x8(%rax)
setne %dl
sete %r8b
leaq 0x10(%rax), %rcx
movq 0x8(%rax,%r8,8), %r8
testq %r8, %r8
je 0x7257
cmpl $0x1, (%r8)
je 0x7211
testb %dl, %dl
jne 0x72b1
cmpq %r15, 0x10(%rsi)
jne 0x72b1
movq %r14, %rdi
callq 0x7acc
movl $0x8, %eax
movq (%r15,%rax), %r15
movq 0x18(%r15), %rsi
movq 0x8(%rsi), %rdx
movq 0x18(%rsi), %rax
jmp 0x72ba
movl $0x2, (%r15)
xorps %xmm0, %xmm0
movups %xmm0, 0x8(%r15)
movq $0x0, 0x18(%r15)
movq %r15, (%r14)
incl 0x8(%r14)
xorl %ebx, %ebx
movl %ebx, %eax
popq %rbx
popq %r14
popq %r15
retq
movl $0x2, (%r15)
jmp 0x729e
movq 0x8(%rsi), %rdx
cmpq %r15, %rdx
je 0x72cd
movl $0x2, (%rsi)
movl $0x1, (%rax)
cmpq %r15, %rdx
jne 0x72e4
jmp 0x72de
cmpq (%rcx), %rsi
je 0x7307
movl $0x2, (%rsi)
movl $0x1, (%rax)
cmpq 0x8(%rax), %rsi
je 0x72f1
movq %r14, %rdi
movq %rax, %rsi
callq 0x7acc
jmp 0x72a0
movq %r14, %rdi
movq %rax, %rsi
callq 0x7b0e
jmp 0x72a0
movl $0x2, (%r15)
jmp 0x72a0
movq %r14, %rdi
callq 0x7b0e
movl $0x10, %eax
jmp 0x726e
// File: /workspace/github_c_makefile_star2_O3/bloomsource[P]dns_update/rbtree.c
// Function: print_node
static void print_node( rbtree* tree, rbnode* node, rbtree_proc_node print )
{
    print( node );
    if( node->left )
        print_node( tree, node->left, print );
    
    if( node->right )
        print_node( tree, node->right, print );

    
    
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
movq %r14, %rdi
callq *%rbx
movq 0x8(%r14), %rdi
testq %rdi, %rdi
je 0x7363
movq %rbx, %rsi
callq 0x7343
movq 0x10(%r14), %r14
testq %r14, %r14
jne 0x734d
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O3/bloomsource[P]dns_update/rbtree.c
// Function: rbtree_verify
int  rbtree_verify( rbtree* tree )
{
    int rc;
    
    if( !tree->root )
        return 0;
    
    if( tree->root->color != BLACK )
    {
        printf( "root node is not black!\n" );
        return 1;
    }
    
    rc = rbtree_verify_rednode( tree->root );
    if( rc )
        return 1;
    
    rc = verify_node( tree->root );
    if( rc )
        return rc;
    return 0;
    
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
movq (%rdi), %rdi
testq %rdi, %rdi
je 0x739e
cmpl $0x2, (%rdi)
jne 0x73a2
callq 0x73b5
movl %eax, %ecx
movl $0x1, %eax
testl %ecx, %ecx
jne 0x73b3
movq (%rbx), %rdi
popq %rbx
jmp 0x7424
xorl %eax, %eax
jmp 0x73b3
leaq 0x25ce(%rip), %rdi      # 0x9977
callq 0x2070
movl $0x1, %eax
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O3/bloomsource[P]dns_update/rbtree.c
// Function: rbtree_verify_rednode
int rbtree_verify_rednode( rbnode* n )
{
    int rc;
    
    if( n->color == RED )
    {
        if(( n->left ) && n->left->color != BLACK  )
        {
            printf( "red node %p child is red!\n", n );
            return 1;
        }
            
        if(( n->right ) && n->right->color != BLACK  )
        {
            printf( "red node %p child is red!\n", n );
            return 1;
        }
    }
    
    
    if( n->left )
    {
        rc = rbtree_verify_rednode( n->left );
        if( rc ) 
            return rc;
    }
     
    if( n->right )
    {
        rc = rbtree_verify_rednode( n->right );
        if( rc )
            return rc;
    }
    
    return 0;
    
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
cmpl $0x1, (%rdi)
movq 0x8(%rdi), %rdi
jne 0x73da
testq %rdi, %rdi
je 0x73cc
cmpl $0x2, (%rdi)
jne 0x740c
movq 0x10(%rbx), %rax
testq %rax, %rax
je 0x73da
cmpl $0x2, (%rax)
jne 0x740c
testq %rdi, %rdi
je 0x73ef
callq 0x73b5
movl %eax, %ecx
movl $0x1, %eax
testl %ecx, %ecx
jne 0x7422
movq 0x10(%rbx), %rdi
testq %rdi, %rdi
je 0x7408
callq 0x73b5
movl %eax, %ecx
movl $0x1, %eax
testl %ecx, %ecx
jne 0x7422
xorl %eax, %eax
jmp 0x7422
leaq 0x253b(%rip), %rdi      # 0x994e
movq %rbx, %rsi
xorl %eax, %eax
callq 0x2120
movl $0x1, %eax
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O3/bloomsource[P]dns_update/rbtree.c
// Function: verify_node
int verify_node( rbnode* n )
{
    int cnt;
    int find = 0;
    int rc;
    
    cnt = rbtree_path_black_count( n );
    rc = node_black_walk( n, find, cnt );
    if( rc )
        return 1;

    if( n->left )
    {
        rc = verify_node( n->left );
        if( rc )
            return rc;
    }
    
    if( n->right )
    {
        rc = verify_node( n->right );
        if( rc )
            return rc;
            
    }
    
        
    
    return 0;
}

// Assembly:
pushq %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
xorl %edx, %edx
testq %rdi, %rdi
je 0x7447
movq %rbx, %rax
xorl %ecx, %ecx
cmpl $0x2, (%rax)
sete %cl
addl %ecx, %edx
movq 0x8(%rax), %rax
testq %rax, %rax
jne 0x7434
movq %rbx, %rdi
xorl %esi, %esi
callq 0x7b50
movl $0x1, %ebp
testl %eax, %eax
je 0x7463
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
movq 0x8(%rbx), %rdi
testq %rdi, %rdi
je 0x7475
callq 0x7424
testl %eax, %eax
jne 0x745a
movq 0x10(%rbx), %rdi
testq %rdi, %rdi
je 0x7487
callq 0x7424
testl %eax, %eax
jne 0x745a
xorl %ebp, %ebp
jmp 0x745a
// File: /workspace/github_c_makefile_star2_O3/bloomsource[P]dns_update/rbtree.c
// Function: rbtree_delete
rbnode* rbtree_delete( rbtree* tree, void* val )
{
    rbnode* node;
    rbnode* min;
    
    if( tree->root == NULL )
        return NULL;
    
    node = rbtree_find( tree, val );
    if( node == NULL )
        return NULL;
    
    
    if( node->left && node->right )
    {
        min = find_subtree_min( node->right );
        tree->node_swap( node, min );
        node = min;
    }
    
    delete_one_child( tree, node );
    tree->count --;
    
    return node;
    
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
cmpq $0x0, (%rdi)
je 0x7724
movq %rdi, %rbx
callq 0x7161
testq %rax, %rax
je 0x7724
cmpq $0x0, 0x8(%rax)
je 0x7729
movq 0x10(%rax), %rcx
testq %rcx, %rcx
je 0x7729
movq %rcx, %r14
movq 0x8(%rcx), %rcx
testq %rcx, %rcx
jne 0x770d
movq %rax, %rdi
movq %r14, %rsi
callq *0x20(%rbx)
jmp 0x772c
xorl %r14d, %r14d
jmp 0x773a
movq %rax, %r14
movq %rbx, %rdi
movq %r14, %rsi
callq 0x748b
decl 0x8(%rbx)
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O3/bloomsource[P]dns_update/rbtree.c
// Function: node_walk
void node_walk( rbnode* node, int order, rbtree_proc_node cb )
{
    if( !node )
        return;

    switch( order )
    {
        case RBTREE_WALK_PRE_ORDER:
            cb( node );
            node_walk( node->left, order, cb );
            node_walk( node->right, order, cb );
            break;
        
        case RBTREE_WALK_IN_ORDER:
            node_walk( node->left, order, cb );
            cb( node );
            node_walk( node->right, order, cb );
            break;
        
        case RBTREE_WALK_POST_ORDER:
            node_walk( node->left, order, cb );
            node_walk( node->right, order, cb );
            cb( node );
            break;
    }
    
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
testq %rdi, %rdi
je 0x77f1
movq %rdx, %r15
movl %esi, %ebp
movq %rdi, %rbx
movq %rdi, %r14
cmpl $0x1, %ebp
je 0x7796
cmpl $0x2, %ebp
jne 0x77b8
movq 0x8(%r14), %rdi
movl $0x2, %esi
movq %r15, %rdx
callq 0x7758
movq %r14, %rdi
callq *%r15
jmp 0x77ad
movq %r14, %rdi
callq *%r15
movq 0x8(%r14), %rdi
movl $0x1, %esi
movq %r15, %rdx
callq 0x7758
movq 0x10(%r14), %r14
testq %r14, %r14
jne 0x7773
jmp 0x77f1
cmpl $0x3, %ebp
jne 0x77f1
movq 0x8(%rbx), %rdi
movl $0x3, %esi
movq %r15, %rdx
callq 0x7758
movq 0x10(%rbx), %rdi
movl $0x3, %esi
movq %r15, %rdx
callq 0x7758
movq %rbx, %rdi
movq %r15, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmpq *%rax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/bloomsource[P]dns_update/rbtree.c
// Function: rbtree_free
void rbtree_free( rbtree* tree, rbtree_proc_node cb )
{
    if( !tree->root )
        return;

    node_free( tree->root, cb );
    tree->root = NULL;
    tree->count = 0;
    
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
movq (%rdi), %rdi
testq %rdi, %rdi
je 0x781b
callq 0x781d
movq $0x0, (%rbx)
movl $0x0, 0x8(%rbx)
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O3/bloomsource[P]dns_update/rbtree.c
// Function: node_free
void node_free( rbnode* node, rbtree_proc_node cb )
{
    if( node->left )
        node_free( node->left, cb );
    
    if( node->right )
        node_free( node->right, cb );
    
    cb( node );
    
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0x8(%rdi), %rdi
testq %rdi, %rdi
je 0x7838
movq %rsi, %r14
callq 0x781d
movq %r14, %rsi
movq 0x10(%rbx), %rdi
testq %rdi, %rdi
je 0x784c
movq %rsi, %r14
callq 0x781d
movq %r14, %rsi
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
jmpq *%rsi