// File: /workspace/github_c_makefile_star2_O2/dwbuiten[P]obuparse/obuparse.c
// Function: obp_parse_sequence_header
int obp_parse_sequence_header(uint8_t *buf, size_t buf_size, OBPSequenceHeader *seq_header, OBPError *err)
{
    _OBPBitReader b   = _obp_new_br(buf, buf_size);
    _OBPBitReader *br = &b;

    _obp_br(seq_header->seq_profile, br, 3);
    _obp_br(seq_header->still_picture, br, 1);
    _obp_br(seq_header->reduced_still_picture_header, br, 1);
    if (seq_header->reduced_still_picture_header) {
        seq_header->timing_info_present_flag                     = 0;
        seq_header->decoder_model_info_present_flag              = 0;
        seq_header->initial_display_delay_present_flag           = 0;
        seq_header->operating_points_cnt_minus_1                 = 0;
        seq_header->operating_point_idc[0]                       = 0;
        _obp_br(seq_header->seq_level_idx[0], br, 5);
        seq_header->seq_tier[0]                                  = 0;
        seq_header->decoder_model_present_for_this_op[0]         = 0;
        seq_header->initial_display_delay_present_for_this_op[0] = 0;
    } else {
        _obp_br(seq_header->timing_info_present_flag, br, 1);
        if (seq_header->timing_info_present_flag) {
            /* timing_info() */
            _obp_br(seq_header->timing_info.num_units_in_display_tick, br, 32);
            _obp_br(seq_header->timing_info.time_scale, br, 32);
            _obp_br(seq_header->timing_info.equal_picture_interval, br, 1);
            if (seq_header->timing_info.equal_picture_interval) {
                int ret = _obp_uvlc(br, &seq_header->timing_info.num_ticks_per_picture_minus_1, err);
                if (ret < 0)
                    return -1;
            }
            _obp_br(seq_header->decoder_model_info_present_flag, br, 1);
            if (seq_header->decoder_model_info_present_flag) {
                /* decoder_model_info() */
                _obp_br(seq_header->decoder_model_info.buffer_delay_length_minus_1, br, 5);
                _obp_br(seq_header->decoder_model_info.num_units_in_decoding_tick, br, 32);
                _obp_br(seq_header->decoder_model_info.buffer_removal_time_length_minus_1, br, 5);
                _obp_br(seq_header->decoder_model_info.frame_presentation_time_length_minus_1, br, 5);
            }
        } else {
            seq_header->decoder_model_info_present_flag = 0;
        }
        _obp_br(seq_header->initial_display_delay_present_flag, br, 1);
        _obp_br(seq_header->operating_points_cnt_minus_1, br, 5);
        for (uint8_t i = 0; i <= seq_header->operating_points_cnt_minus_1; i++) {
            _obp_br(seq_header->operating_point_idc[i], br, 12);
            _obp_br(seq_header->seq_level_idx[i], br, 5);
            if (seq_header->seq_level_idx[i] > 7) {
                _obp_br(seq_header->seq_tier[i], br, 1);
            } else {
                seq_header->seq_tier[i] = 0;
            }
            if (seq_header->decoder_model_info_present_flag) {
                _obp_br(seq_header->decoder_model_present_for_this_op[i], br, 1);
                if (seq_header->decoder_model_present_for_this_op[i]) {
                    /* operating_parameters_info() */
                    uint8_t n = seq_header->decoder_model_info.buffer_delay_length_minus_1 + 1;
                    _obp_br(seq_header->operating_parameters_info[i].decoder_buffer_delay, br, n);
                    _obp_br(seq_header->operating_parameters_info[i].encoder_buffer_delay, br, n);
                    _obp_br(seq_header->operating_parameters_info[i].low_delay_mode_flag, br, 1);
                }
            } else {
                seq_header->decoder_model_present_for_this_op[i] = 0;
            }
            if (seq_header->initial_display_delay_present_flag) {
                _obp_br(seq_header->initial_display_delay_present_for_this_op[i], br, 1);
                if (seq_header->initial_display_delay_present_for_this_op[i]) {
                    _obp_br(seq_header->initial_display_delay_minus_1[i], br, 4);
                }
            }
        }
    }
    _obp_br(seq_header->frame_width_bits_minus_1, br, 4);
    _obp_br(seq_header->frame_height_bits_minus_1, br, 4);
    _obp_br(seq_header->max_frame_width_minus_1, br, seq_header->frame_width_bits_minus_1 + 1);
    _obp_br(seq_header->max_frame_height_minus_1, br, seq_header->frame_height_bits_minus_1 + 1);
    if (seq_header->reduced_still_picture_header) {
        seq_header->frame_id_numbers_present_flag = 0;
    } else {
        _obp_br(seq_header->frame_id_numbers_present_flag, br, 1);
    }
    if (seq_header->frame_id_numbers_present_flag) {
        _obp_br(seq_header->delta_frame_id_length_minus_2, br, 4);
        _obp_br(seq_header->additional_frame_id_length_minus_1, br, 3);
    }
    _obp_br(seq_header->use_128x128_superblock, br, 1);
    _obp_br(seq_header->enable_filter_intra, br, 1);
    _obp_br(seq_header->enable_intra_edge_filter, br, 1);
    if (seq_header->reduced_still_picture_header) {
        seq_header->enable_interintra_compound     = 0;
        seq_header->enable_masked_compound         = 0;
        seq_header->enable_warped_motion           = 0;
        seq_header->enable_dual_filter             = 0;
        seq_header->enable_order_hint              = 0;
        seq_header->enable_jnt_comp                = 0;
        seq_header->enable_ref_frame_mvs           = 0;
        seq_header->seq_force_screen_content_tools = 2; /* SELECT_SCREEN_CONTENT_TOOLS */
        seq_header->seq_force_integer_mv           = 2; /* SELECT_INTEGER_MV */
        seq_header->OrderHintBits                  = 0;
    } else {
        _obp_br(seq_header->enable_interintra_compound, br, 1);
        _obp_br(seq_header->enable_masked_compound, br, 1);
        _obp_br(seq_header->enable_warped_motion, br, 1);
        _obp_br(seq_header->enable_dual_filter, br, 1);
        _obp_br(seq_header->enable_order_hint, br, 1);
        if (seq_header->enable_order_hint) {
            _obp_br(seq_header->enable_jnt_comp, br, 1);
            _obp_br(seq_header->enable_ref_frame_mvs, br, 1);
        } else {
            seq_header->enable_jnt_comp = 0;
            seq_header->enable_ref_frame_mvs = 0;
        }
        _obp_br(seq_header->seq_choose_screen_content_tools, br, 1);
        if (seq_header->seq_choose_screen_content_tools) {
            seq_header->seq_force_screen_content_tools = 2; /* SELECT_SCREEN_CONTENT_TOOLS */
        } else {
            _obp_br(seq_header->seq_force_screen_content_tools, br, 1);
        }
        if (seq_header->seq_force_screen_content_tools > 0) {
            _obp_br(seq_header->seq_choose_integer_mv, br, 1);
            if (seq_header->seq_choose_integer_mv) {
                seq_header->seq_force_integer_mv = 2; /* SELECT_INTEGER_MV */
            } else {
                _obp_br(seq_header->seq_force_integer_mv, br, 1);
            }
        } else {
            seq_header->seq_force_integer_mv = 2; /* SELECT_INTEGER_MV */
        }
        if (seq_header->enable_order_hint) {
            _obp_br(seq_header->order_hint_bits_minus_1, br, 3);
            seq_header->OrderHintBits = seq_header->order_hint_bits_minus_1 + 1;
        } else {
            seq_header->OrderHintBits = 0;
        }
    }
    _obp_br(seq_header->enable_superres, br, 1);
    _obp_br(seq_header->enable_cdef, br, 1);
    _obp_br(seq_header->enable_restoration, br, 1);
    /* color_config() */
    _obp_br(seq_header->color_config.high_bitdepth, br, 1);
    if (seq_header->seq_profile == 2 && seq_header->color_config.high_bitdepth) {
        _obp_br(seq_header->color_config.twelve_bit, br, 1);
        seq_header->color_config.BitDepth = seq_header->color_config.twelve_bit ? 12 : 10;
    } else {
        seq_header->color_config.BitDepth = seq_header->color_config.high_bitdepth ? 10 : 8;
    }
    if (seq_header->seq_profile == 1) {
        seq_header->color_config.mono_chrome = 0;
    } else {
        _obp_br(seq_header->color_config.mono_chrome, br, 1);
    }
    seq_header->color_config.NumPlanes = seq_header->color_config.mono_chrome ? 1 : 3;
    _obp_br(seq_header->color_config.color_description_present_flag, br, 1);
    if (seq_header->color_config.color_description_present_flag) {
        _obp_br(seq_header->color_config.color_primaries, br, 8);
        _obp_br(seq_header->color_config.transfer_characteristics, br, 8);
        _obp_br(seq_header->color_config.matrix_coefficients, br, 8);
    } else {
        seq_header->color_config.color_primaries          = OBP_CP_UNSPECIFIED;
        seq_header->color_config.transfer_characteristics = OBP_TC_UNSPECIFIED;
        seq_header->color_config.matrix_coefficients      = OBP_MC_UNSPECIFIED;
    }
    if (seq_header->color_config.mono_chrome) {
        _obp_br(seq_header->color_config.color_range, br, 1);
        seq_header->color_config.subsampling_x          = 1;
        seq_header->color_config.subsampling_y          = 1;
        seq_header->color_config.chroma_sample_position = OBP_CSP_UNKNOWN;
        seq_header->color_config.separate_uv_delta_q    = 0;
        goto color_done;
    } else if (seq_header->color_config.color_primaries == OBP_CP_BT_709 &&
               seq_header->color_config.transfer_characteristics == OBP_TC_SRGB &&
               seq_header->color_config.matrix_coefficients == OBP_MC_IDENTITY) {
        seq_header->color_config.color_range = 1;
        seq_header->color_config.subsampling_x = 0;
        seq_header->color_config.subsampling_y = 0;
    } else {
        _obp_br(seq_header->color_config.color_range, br, 1);
        if (seq_header->seq_profile == 0) {
            seq_header->color_config.subsampling_x = 1;
            seq_header->color_config.subsampling_y = 1;
        } else if (seq_header->seq_profile == 1) {
            seq_header->color_config.subsampling_x = 0;
            seq_header->color_config.subsampling_y = 0;
        } else {
            if (seq_header->color_config.BitDepth == 12) {
                _obp_br(seq_header->color_config.subsampling_x, br, 1);
                if (seq_header->color_config.subsampling_x) {
                    _obp_br(seq_header->color_config.subsampling_y, br, 1);
                } else {
                    seq_header->color_config.subsampling_y = 0;
                }
            } else {
                seq_header->color_config.subsampling_x = 1;
                seq_header->color_config.subsampling_y = 0;
            }
        }
        if (seq_header->color_config.subsampling_x && seq_header->color_config.subsampling_y) {
            _obp_br(seq_header->color_config.chroma_sample_position, br, 2);
        }
    }
    _obp_br(seq_header->color_config.separate_uv_delta_q, br, 1);

color_done:
    _obp_br(seq_header->film_grain_params_present, br, 1);

    return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %rcx, %r14
movq %rdi, (%rsp)
movq %rsi, 0x8(%rsp)
xorps %xmm0, %xmm0
movups %xmm0, 0x10(%rsp)
movb $0x0, 0x20(%rsp)
pushq $-0x1
popq %rbx
testq %rsi, %rsi
je 0x1909
movq %rdx, %r15
movq %rsp, %r12
pushq $0x3
popq %rsi
movq %r12, %rdi
callq 0x24ef
movb %al, (%r15)
movzbl 0x20(%r12), %eax
pushq $0x8
popq %r13
movl %r13d, %ecx
subl %eax, %ecx
sarl $0x3, %ecx
movslq %ecx, %rax
movq 0x8(%r12), %rcx
subq 0x10(%r12), %rcx
cmpq %rax, %rcx
jb 0x1909
movq %rsp, %r12
pushq $0x1
popq %rsi
movq %r12, %rdi
callq 0x24ef
movl %eax, 0x4(%r15)
movzbl 0x20(%r12), %eax
movl %r13d, %ecx
subl %eax, %ecx
sarl $0x3, %ecx
movslq %ecx, %rax
movq 0x8(%r12), %rcx
subq 0x10(%r12), %rcx
cmpq %rax, %rcx
jb 0x1909
movq %rsp, %rdi
pushq $0x1
popq %rsi
callq 0x24ef
movl %eax, 0x8(%r15)
pushq $0xc
popq %rbp
pushq $0xb
popq %r12
testl %eax, %eax
je 0x1768
andl $0x0, 0xc(%r15)
andl $0x0, 0x20(%r15)
andl $0x0, 0x30(%r15)
andw $0x0, 0x34(%r15)
movzbl 0x20(%rsp), %eax
subl %eax, %ebp
sarl $0x3, %ebp
movslq %ebp, %rax
movq 0x8(%rsp), %rcx
subq 0x10(%rsp), %rcx
cmpq %rax, %rcx
jb 0x1909
movq %rsp, %rdi
pushq $0x5
popq %rsi
callq 0x24ef
movb %al, 0x55(%r15)
movb $0x0, 0x75(%r15)
andl $0x0, 0x98(%r15)
andl $0x0, 0x418(%r15)
movzbl 0x20(%rsp), %eax
movl %r12d, %ecx
subl %eax, %ecx
sarl $0x3, %ecx
movslq %ecx, %rax
movq 0x8(%rsp), %rcx
subq 0x10(%rsp), %rcx
cmpq %rax, %rcx
jb 0x1909
movl %r12d, %ebp
movq %rsp, %r12
pushq $0x4
popq %rsi
movq %r12, %rdi
callq 0x24ef
movb %al, 0x4b8(%r15)
movzbl 0x20(%r12), %eax
movl %ebp, %ecx
subl %eax, %ecx
sarl $0x3, %ecx
movslq %ecx, %rax
movq 0x8(%r12), %rcx
subq 0x10(%r12), %rcx
cmpq %rax, %rcx
jb 0x1909
movq %rsp, %r12
pushq $0x4
popq %rsi
movq %r12, %rdi
callq 0x24ef
movb %al, 0x4b9(%r15)
movzbl 0x4b8(%r15), %eax
movzbl 0x20(%r12), %ecx
negl %ecx
addl %eax, %ecx
addl $0x8, %ecx
sarl $0x3, %ecx
movslq %ecx, %rcx
movq 0x8(%r12), %rdx
subq 0x10(%r12), %rdx
cmpq %rcx, %rdx
jb 0x1909
incb %al
movzbl %al, %esi
movq %rsp, %r12
movq %r12, %rdi
callq 0x24ef
movl %eax, 0x4bc(%r15)
movzbl 0x4b9(%r15), %eax
movzbl 0x20(%r12), %ecx
negl %ecx
addl %eax, %ecx
addl $0x8, %ecx
sarl $0x3, %ecx
movslq %ecx, %rcx
movq 0x8(%r12), %rdx
subq 0x10(%r12), %rdx
cmpq %rcx, %rdx
jb 0x1909
incb %al
movzbl %al, %esi
movq %rsp, %rdi
callq 0x24ef
movl %eax, 0x4c0(%r15)
cmpl $0x0, 0x8(%r15)
pushq $0xa
popq %rbp
je 0x1bb6
andl $0x0, 0x4c4(%r15)
movzbl 0x20(%rsp), %eax
movl %r13d, %ecx
subl %eax, %ecx
sarl $0x3, %ecx
movslq %ecx, %rax
movq 0x8(%rsp), %rcx
subq 0x10(%rsp), %rcx
cmpq %rax, %rcx
jb 0x1909
movq %rsp, %r12
pushq $0x1
popq %rsi
movq %r12, %rdi
callq 0x24ef
movl %eax, 0x4cc(%r15)
movzbl 0x20(%r12), %eax
movl %r13d, %ecx
subl %eax, %ecx
sarl $0x3, %ecx
movslq %ecx, %rax
movq 0x8(%r12), %rcx
subq 0x10(%r12), %rcx
cmpq %rax, %rcx
jb 0x1909
movq %rsp, %r12
pushq $0x1
popq %rsi
movq %r12, %rdi
callq 0x24ef
movl %eax, 0x4d0(%r15)
movzbl 0x20(%r12), %eax
movl %r13d, %ecx
subl %eax, %ecx
sarl $0x3, %ecx
movslq %ecx, %rax
movq 0x8(%r12), %rcx
subq 0x10(%r12), %rcx
cmpq %rax, %rcx
jb 0x1909
movq %rsp, %rdi
pushq $0x1
popq %rsi
callq 0x24ef
movl %eax, 0x4d4(%r15)
cmpl $0x0, 0x8(%r15)
pushq $0x2
popq %rax
je 0x1dde
xorps %xmm0, %xmm0
movups %xmm0, 0x4e4(%r15)
movups %xmm0, 0x4d8(%r15)
movl %eax, 0x4f8(%r15)
movl %eax, 0x500(%r15)
xorl %eax, %eax
movb %al, 0x505(%r15)
movzbl 0x20(%rsp), %eax
movl %r13d, %ecx
subl %eax, %ecx
sarl $0x3, %ecx
movslq %ecx, %rax
movq 0x8(%rsp), %rcx
subq 0x10(%rsp), %rcx
cmpq %rax, %rcx
jb 0x1909
movq %rsp, %r12
pushq $0x1
popq %rsi
movq %r12, %rdi
callq 0x24ef
movl %eax, 0x508(%r15)
movzbl 0x20(%r12), %eax
movl %r13d, %ecx
subl %eax, %ecx
sarl $0x3, %ecx
movslq %ecx, %rax
movq 0x8(%r12), %rcx
subq 0x10(%r12), %rcx
cmpq %rax, %rcx
jb 0x1909
movl %ebx, %ebp
movq %rsp, %r12
pushq $0x1
popq %rsi
movq %r12, %rdi
callq 0x24ef
movl %eax, 0x50c(%r15)
movzbl 0x20(%r12), %eax
movl %r13d, %ecx
subl %eax, %ecx
sarl $0x3, %ecx
movslq %ecx, %rax
movq 0x8(%r12), %rcx
subq 0x10(%r12), %rcx
cmpq %rax, %rcx
jb 0x2494
movq %rsp, %r12
pushq $0x1
popq %rsi
movq %r12, %rdi
callq 0x24ef
movl %eax, 0x510(%r15)
movzbl 0x20(%r12), %eax
movl %r13d, %ecx
subl %eax, %ecx
sarl $0x3, %ecx
movslq %ecx, %rax
movq 0x8(%r12), %rcx
subq 0x10(%r12), %rcx
cmpq %rax, %rcx
jb 0x2494
movq %rsp, %rdi
pushq $0x1
popq %rsi
callq 0x24ef
movl %eax, 0x514(%r15)
movb (%r15), %cl
cmpb $0x2, %cl
setne %dl
testl %eax, %eax
sete %sil
orb %dl, %sil
je 0x1f70
testl %eax, %eax
setne %al
addb %al, %al
orb $0x8, %al
movb %al, 0x51c(%r15)
jmp 0x1fb8
movzbl 0x20(%rsp), %eax
movl %r13d, %ecx
subl %eax, %ecx
sarl $0x3, %ecx
movslq %ecx, %rax
movq 0x8(%rsp), %rcx
subq 0x10(%rsp), %rcx
cmpq %rax, %rcx
jb 0x1909
movq %rsp, %rdi
pushq $0x1
popq %rsi
callq 0x24ef
movl %eax, 0xc(%r15)
testl %eax, %eax
je 0x18b4
movzbl 0x20(%rsp), %eax
pushq $0x27
popq %rcx
subl %eax, %ecx
sarl $0x3, %ecx
movslq %ecx, %rax
movq 0x8(%rsp), %rcx
subq 0x10(%rsp), %rcx
cmpq %rax, %rcx
jb 0x1909
movq %rsp, %r12
pushq $0x20
popq %rsi
movq %r12, %rdi
callq 0x24ef
movl %eax, 0x10(%r15)
movzbl 0x20(%r12), %eax
pushq $0x27
popq %rcx
subl %eax, %ecx
sarl $0x3, %ecx
movslq %ecx, %rax
movq 0x8(%r12), %rcx
subq 0x10(%r12), %rcx
cmpq %rax, %rcx
jb 0x1909
movq %rsp, %r12
pushq $0x20
popq %rsi
movq %r12, %rdi
callq 0x24ef
movl %eax, 0x14(%r15)
movzbl 0x20(%r12), %eax
movl %r13d, %ecx
subl %eax, %ecx
sarl $0x3, %ecx
movslq %ecx, %rax
movq 0x8(%r12), %rcx
subq 0x10(%r12), %rcx
cmpq %rax, %rcx
jb 0x1909
movq %rsp, %rdi
pushq $0x1
popq %r12
movl %r12d, %esi
callq 0x24ef
movl %eax, 0x18(%r15)
testl %eax, %eax
je 0x1cce
pushq $0x6
popq %rbx
leal -0x6(%rbx), %eax
cmpl $0x1f, %eax
ja 0x18a1
movzbl 0x20(%rsp), %eax
movl %r13d, %ecx
subl %eax, %ecx
sarl $0x3, %ecx
movslq %ecx, %rax
movq 0x8(%rsp), %rcx
subq 0x10(%rsp), %rcx
cmpq %rax, %rcx
jb 0x1c84
movq %rsp, %rdi
pushq $0x1
popq %rsi
callq 0x24ef
decl %r12d
incl %ebx
testl %eax, %eax
je 0x184f
xorl %edx, %edx
testl %eax, %eax
sete %dl
leal (%rdx,%rbx), %ecx
cmpl $0x27, %ecx
jne 0x1c65
movq (%r14), %rdi
movq 0x8(%r14), %rsi
leaq 0x6c18(%rip), %rdx      # 0x84c7
jmp 0x1c92
andl $0x0, 0x20(%r15)
movzbl 0x20(%rsp), %eax
movl %r13d, %ecx
subl %eax, %ecx
sarl $0x3, %ecx
movslq %ecx, %rax
movq 0x8(%rsp), %rcx
subq 0x10(%rsp), %rcx
cmpq %rax, %rcx
jb 0x1909
movq %rsp, %r12
pushq $0x1
popq %rsi
movq %r12, %rdi
callq 0x24ef
movl %eax, 0x30(%r15)
movzbl 0x20(%r12), %eax
movl %ebp, %ecx
subl %eax, %ecx
sarl $0x3, %ecx
movslq %ecx, %rax
movq 0x8(%r12), %rcx
subq 0x10(%r12), %rcx
cmpq %rax, %rcx
jae 0x192f
movq (%r14), %rdi
movq 0x8(%r14), %rsi
leaq 0x6856(%rip), %rdx      # 0x816d
xorl %eax, %eax
callq 0x1030
movl %ebx, %eax
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rsp, %rdi
pushq $0x5
popq %rsi
callq 0x24ef
movb %al, 0x34(%r15)
leaq 0x118(%r15), %rcx
movq %rcx, 0x38(%rsp)
xorl %ecx, %ecx
pushq $0xb
popq %r12
cmpb %al, %cl
ja 0x146a
movl %ecx, 0x34(%rsp)
movzbl 0x20(%rsp), %eax
pushq $0x13
popq %rcx
subl %eax, %ecx
sarl $0x3, %ecx
movslq %ecx, %rax
movq 0x8(%rsp), %rcx
subq 0x10(%rsp), %rcx
cmpq %rax, %rcx
jb 0x1909
movq %rsp, %rdi
movl %ebp, %esi
callq 0x24ef
movzbl 0x34(%rsp), %edx
movb %al, 0x35(%r15,%rdx)
movzbl 0x20(%rsp), %eax
movl %ebp, %ecx
subl %eax, %ecx
sarl $0x3, %ecx
movslq %ecx, %rax
movq 0x8(%rsp), %rcx
subq 0x10(%rsp), %rcx
cmpq %rax, %rcx
jb 0x1909
movq %rsp, %rdi
pushq $0x5
popq %rsi
movq %rdx, 0x28(%rsp)
callq 0x24ef
movq 0x28(%rsp), %rcx
movb %al, 0x55(%r15,%rcx)
cmpb $0x8, %al
jb 0x1a04
movzbl 0x20(%rsp), %eax
movl %r13d, %ecx
subl %eax, %ecx
sarl $0x3, %ecx
movslq %ecx, %rax
movq 0x8(%rsp), %rcx
subq 0x10(%rsp), %rcx
cmpq %rax, %rcx
jb 0x1909
movq %rsp, %rdi
pushq $0x1
popq %rsi
callq 0x24ef
movq 0x28(%rsp), %rcx
jmp 0x1a06
xorl %eax, %eax
movb %al, 0x75(%r15,%rcx)
cmpl $0x0, 0x20(%r15)
je 0x1b1d
movzbl 0x20(%rsp), %eax
movl %r13d, %ecx
subl %eax, %ecx
sarl $0x3, %ecx
movslq %ecx, %rax
movq 0x8(%rsp), %rcx
subq 0x10(%rsp), %rcx
cmpq %rax, %rcx
jb 0x1909
movq %rsp, %rdi
pushq $0x1
popq %rsi
callq 0x24ef
movq 0x28(%rsp), %rcx
movl %eax, 0x98(%r15,%rcx,4)
testl %eax, %eax
je 0x1b26
movb 0x24(%r15), %al
incb %al
movzbl %al, %r12d
movzbl 0x20(%rsp), %eax
negl %eax
addl %r12d, %eax
addl $0x7, %eax
sarl $0x3, %eax
cltq
movq 0x8(%rsp), %rcx
subq 0x10(%rsp), %rcx
cmpq %rax, %rcx
jb 0x1909
movq %rsp, %rdi
movl %r12d, %esi
callq 0x24ef
imulq $0x18, 0x28(%rsp), %rcx
movq 0x38(%rsp), %rbx
movq %rcx, 0x40(%rsp)
movq %rax, (%rbx,%rcx)
movzbl 0x20(%rsp), %eax
negl %eax
addl %r12d, %eax
addl $0x7, %eax
sarl $0x3, %eax
cltq
movq 0x8(%rsp), %rcx
subq 0x10(%rsp), %rcx
cmpq %rax, %rcx
jb 0x1c84
movq %rsp, %rdi
movl %r12d, %esi
callq 0x24ef
movq 0x40(%rsp), %r12
movq %rax, 0x8(%rbx,%r12)
movzbl 0x20(%rsp), %eax
movl %r13d, %ecx
subl %eax, %ecx
sarl $0x3, %ecx
movslq %ecx, %rax
movq 0x8(%rsp), %rcx
subq 0x10(%rsp), %rcx
cmpq %rax, %rcx
jb 0x1c84
movq %rsp, %rdi
pushq $0x1
popq %rsi
callq 0x24ef
movl %eax, 0x10(%rbx,%r12)
pushq $-0x1
popq %rbx
pushq $0xb
popq %r12
jmp 0x1b26
andl $0x0, 0x98(%r15,%rcx,4)
cmpl $0x0, 0x30(%r15)
je 0x1ba7
movzbl 0x20(%rsp), %eax
movl %r13d, %ecx
subl %eax, %ecx
sarl $0x3, %ecx
movslq %ecx, %rax
movq 0x8(%rsp), %rcx
subq 0x10(%rsp), %rcx
cmpq %rax, %rcx
jb 0x1909
movq %rsp, %rdi
pushq $0x1
popq %rsi
callq 0x24ef
movq 0x28(%rsp), %rdx
movl %eax, 0x418(%r15,%rdx,4)
testl %eax, %eax
je 0x1ba7
movzbl 0x20(%rsp), %eax
movl %r12d, %ecx
subl %eax, %ecx
sarl $0x3, %ecx
movslq %ecx, %rax
movq 0x8(%rsp), %rcx
subq 0x10(%rsp), %rcx
cmpq %rax, %rcx
jb 0x1909
movq %rsp, %rdi
pushq $0x4
popq %rsi
callq 0x24ef
movq 0x28(%rsp), %rcx
movb %al, 0x498(%r15,%rcx)
movl 0x34(%rsp), %ecx
incb %cl
movb 0x34(%r15), %al
jmp 0x1950
movzbl 0x20(%rsp), %eax
movl %r13d, %ecx
subl %eax, %ecx
sarl $0x3, %ecx
movslq %ecx, %rax
movq 0x8(%rsp), %rcx
subq 0x10(%rsp), %rcx
cmpq %rax, %rcx
jb 0x1909
movq %rsp, %rdi
pushq $0x1
popq %rsi
callq 0x24ef
movl %eax, 0x4c4(%r15)
testl %eax, %eax
je 0x157a
movzbl 0x20(%rsp), %eax
pushq $0xb
popq %rcx
subl %eax, %ecx
sarl $0x3, %ecx
movslq %ecx, %rax
movq 0x8(%rsp), %rcx
subq 0x10(%rsp), %rcx
cmpq %rax, %rcx
jb 0x1909
movq %rsp, %r12
pushq $0x4
popq %rsi
movq %r12, %rdi
callq 0x24ef
movb %al, 0x4c8(%r15)
movzbl 0x20(%r12), %eax
movl %ebp, %ecx
subl %eax, %ecx
sarl $0x3, %ecx
movslq %ecx, %rax
movq 0x8(%r12), %rcx
subq 0x10(%r12), %rcx
cmpq %rax, %rcx
jb 0x1909
movq %rsp, %rdi
pushq $0x3
popq %rsi
callq 0x24ef
movb %al, 0x4c9(%r15)
jmp 0x157a
movzbl 0x20(%rsp), %ecx
cmpl $0x1, %eax
adcl $0x0, %ebx
subl %ecx, %ebx
shrl $0x3, %ebx
movq 0x8(%rsp), %rcx
subq 0x10(%rsp), %rcx
cmpq %rbx, %rcx
jae 0x1ca1
movq (%r14), %rdi
movq 0x8(%r14), %rsi
leaq 0x64db(%rip), %rdx      # 0x816d
xorl %eax, %eax
callq 0x1030
pushq $-0x1
popq %rbx
jmp 0x191e
subl %r12d, %edx
xorl %ecx, %ecx
testl %eax, %eax
sete %cl
subl %r12d, %ecx
movzbl %cl, %esi
movq %rsp, %rdi
movq %rdx, %rbx
callq 0x24ef
pushq $-0x1
popq %rdx
movl %ebx, %ecx
shll %cl, %edx
notl %edx
addl %eax, %edx
movl %edx, 0x1c(%r15)
pushq $-0x1
popq %rbx
movzbl 0x20(%rsp), %eax
movl %r13d, %ecx
subl %eax, %ecx
sarl $0x3, %ecx
movslq %ecx, %rax
movq 0x8(%rsp), %rcx
subq 0x10(%rsp), %rcx
cmpq %rax, %rcx
jb 0x1909
movq %rsp, %rdi
pushq $0x1
popq %rsi
callq 0x24ef
movl %eax, 0x20(%r15)
testl %eax, %eax
je 0x18b9
movzbl 0x20(%rsp), %eax
movl %ebp, %ecx
subl %eax, %ecx
sarl $0x3, %ecx
movslq %ecx, %rax
movq 0x8(%rsp), %rcx
subq 0x10(%rsp), %rcx
cmpq %rax, %rcx
jb 0x1909
movq %rsp, %r12
pushq $0x5
popq %rsi
movq %r12, %rdi
callq 0x24ef
movb %al, 0x24(%r15)
movzbl 0x20(%r12), %eax
pushq $0x27
popq %rcx
subl %eax, %ecx
sarl $0x3, %ecx
movslq %ecx, %rax
movq 0x8(%r12), %rcx
subq 0x10(%r12), %rcx
cmpq %rax, %rcx
jb 0x1909
movq %rsp, %r12
pushq $0x20
popq %rsi
movq %r12, %rdi
callq 0x24ef
movl %eax, 0x28(%r15)
movzbl 0x20(%r12), %eax
movl %ebp, %ecx
subl %eax, %ecx
sarl $0x3, %ecx
movslq %ecx, %rax
movq 0x8(%r12), %rcx
subq 0x10(%r12), %rcx
cmpq %rax, %rcx
jb 0x1909
movq %rsp, %r12
pushq $0x5
popq %rsi
movq %r12, %rdi
callq 0x24ef
movb %al, 0x2c(%r15)
movzbl 0x20(%r12), %eax
movl %ebp, %ecx
subl %eax, %ecx
sarl $0x3, %ecx
movslq %ecx, %rax
movq 0x8(%r12), %rcx
subq 0x10(%r12), %rcx
cmpq %rax, %rcx
jb 0x1909
movq %rsp, %rdi
pushq $0x5
popq %rsi
callq 0x24ef
movb %al, 0x2d(%r15)
jmp 0x18b9
movq %rax, 0x28(%rsp)
movzbl 0x20(%rsp), %eax
movl %r13d, %ecx
subl %eax, %ecx
sarl $0x3, %ecx
movslq %ecx, %rax
movq 0x8(%rsp), %rcx
subq 0x10(%rsp), %rcx
cmpq %rax, %rcx
jb 0x1909
movq %rsp, %r12
pushq $0x1
popq %rsi
movq %r12, %rdi
callq 0x24ef
movl %eax, 0x4d8(%r15)
movzbl 0x20(%r12), %eax
movl %r13d, %ecx
subl %eax, %ecx
sarl $0x3, %ecx
movslq %ecx, %rax
movq 0x8(%r12), %rcx
subq 0x10(%r12), %rcx
cmpq %rax, %rcx
jb 0x1909
movq %rsp, %r12
pushq $0x1
popq %rsi
movq %r12, %rdi
callq 0x24ef
movl %eax, 0x4dc(%r15)
movzbl 0x20(%r12), %eax
movl %r13d, %ecx
subl %eax, %ecx
sarl $0x3, %ecx
movslq %ecx, %rax
movq 0x8(%r12), %rcx
subq 0x10(%r12), %rcx
cmpq %rax, %rcx
jb 0x1909
movq %rsp, %r12
pushq $0x1
popq %rsi
movq %r12, %rdi
callq 0x24ef
movl %eax, 0x4e0(%r15)
movzbl 0x20(%r12), %eax
movl %r13d, %ecx
subl %eax, %ecx
sarl $0x3, %ecx
movslq %ecx, %rax
movq 0x8(%r12), %rcx
subq 0x10(%r12), %rcx
cmpq %rax, %rcx
jb 0x1909
movq %rsp, %r12
pushq $0x1
popq %rsi
movq %r12, %rdi
callq 0x24ef
movl %eax, 0x4e4(%r15)
movzbl 0x20(%r12), %eax
movl %r13d, %ecx
subl %eax, %ecx
sarl $0x3, %ecx
movslq %ecx, %rax
movq 0x8(%r12), %rcx
subq 0x10(%r12), %rcx
cmpq %rax, %rcx
jb 0x1909
movq %rsp, %rdi
pushq $0x1
popq %rsi
callq 0x24ef
movl %eax, 0x4e8(%r15)
testl %eax, %eax
je 0x20fa
movzbl 0x20(%rsp), %eax
movl %r13d, %ecx
subl %eax, %ecx
sarl $0x3, %ecx
movslq %ecx, %rax
movq 0x8(%rsp), %rcx
subq 0x10(%rsp), %rcx
cmpq %rax, %rcx
jb 0x1909
movq %rsp, %r12
pushq $0x1
popq %rsi
movq %r12, %rdi
callq 0x24ef
movl %eax, 0x4ec(%r15)
movzbl 0x20(%r12), %eax
movl %r13d, %ecx
subl %eax, %ecx
sarl $0x3, %ecx
movslq %ecx, %rax
movq 0x8(%r12), %rcx
subq 0x10(%r12), %rcx
cmpq %rax, %rcx
jb 0x1909
movq %rsp, %rdi
pushq $0x1
popq %rsi
callq 0x24ef
jmp 0x2104
movzbl 0x20(%rsp), %eax
movl %r13d, %ecx
subl %eax, %ecx
sarl $0x3, %ecx
movslq %ecx, %rax
movq 0x8(%rsp), %rcx
subq 0x10(%rsp), %rcx
cmpq %rax, %rcx
jb 0x2494
movq %rsp, %rdi
pushq $0x1
popq %rsi
callq 0x24ef
movl %eax, 0x518(%r15)
testl %eax, %eax
setne %al
addb %al, %al
addb $0xa, %al
movb %al, 0x51c(%r15)
movb (%r15), %cl
cmpb $0x1, %cl
jne 0x1fc9
andl $0x0, 0x520(%r15)
movb $0x3, %al
jmp 0x2007
movzbl 0x20(%rsp), %eax
movl %r13d, %ecx
subl %eax, %ecx
sarl $0x3, %ecx
movslq %ecx, %rax
movq 0x8(%rsp), %rcx
subq 0x10(%rsp), %rcx
cmpq %rax, %rcx
jb 0x2494
movq %rsp, %rdi
pushq $0x1
popq %rsi
callq 0x24ef
movl %eax, 0x520(%r15)
testl %eax, %eax
sete %al
addb %al, %al
incb %al
movb %al, 0x524(%r15)
movzbl 0x20(%rsp), %eax
movl %r13d, %ecx
subl %eax, %ecx
sarl $0x3, %ecx
movslq %ecx, %rax
movq 0x8(%rsp), %rcx
subq 0x10(%rsp), %rcx
cmpq %rax, %rcx
jb 0x2494
movq %rsp, %rdi
pushq $0x1
popq %rsi
callq 0x24ef
movl %eax, 0x528(%r15)
testl %eax, %eax
je 0x21c8
movzbl 0x20(%rsp), %eax
pushq $0xf
popq %rbx
movl %ebx, %ecx
subl %eax, %ecx
sarl $0x3, %ecx
movslq %ecx, %rax
movq 0x8(%rsp), %rcx
subq 0x10(%rsp), %rcx
cmpq %rax, %rcx
jb 0x2494
movq %rsp, %r12
pushq $0x8
popq %rsi
movq %r12, %rdi
callq 0x24ef
movl %eax, 0x52c(%r15)
movzbl 0x20(%r12), %eax
movl %ebx, %ecx
subl %eax, %ecx
sarl $0x3, %ecx
movslq %ecx, %rax
movq 0x8(%r12), %rcx
subq 0x10(%r12), %rcx
cmpq %rax, %rcx
jb 0x2494
movq %rsp, %r12
pushq $0x8
popq %rsi
movq %r12, %rdi
callq 0x24ef
movl %eax, 0x530(%r15)
movzbl 0x20(%r12), %eax
subl %eax, %ebx
sarl $0x3, %ebx
movslq %ebx, %rax
movq 0x8(%r12), %rcx
subq 0x10(%r12), %rcx
cmpq %rax, %rcx
jb 0x2494
movq %rsp, %rdi
pushq $0x8
popq %rsi
callq 0x24ef
movl %eax, 0x534(%r15)
testl %eax, %eax
setne %al
jmp 0x21e6
andl $0x0, 0x4ec(%r15)
xorl %eax, %eax
movl %eax, 0x4f0(%r15)
movzbl 0x20(%rsp), %eax
movl %r13d, %ecx
subl %eax, %ecx
sarl $0x3, %ecx
movslq %ecx, %rax
movq 0x8(%rsp), %rcx
subq 0x10(%rsp), %rcx
cmpq %rax, %rcx
jb 0x1909
movq %rsp, %rdi
pushq $0x1
popq %rsi
callq 0x24ef
movl %eax, 0x4f4(%r15)
testl %eax, %eax
je 0x22bc
movl $0x2, 0x4f8(%r15)
movzbl 0x20(%rsp), %eax
movl %r13d, %ecx
subl %eax, %ecx
sarl $0x3, %ecx
movslq %ecx, %rax
movq 0x8(%rsp), %rcx
subq 0x10(%rsp), %rcx
cmpq %rax, %rcx
jb 0x1909
movq %rsp, %rdi
pushq $0x1
popq %rsi
callq 0x24ef
movl %eax, 0x4fc(%r15)
testl %eax, %eax
jne 0x22f9
movzbl 0x20(%rsp), %eax
movl %r13d, %ecx
subl %eax, %ecx
sarl $0x3, %ecx
movslq %ecx, %rax
movq 0x8(%rsp), %rcx
subq 0x10(%rsp), %rcx
cmpq %rax, %rcx
jb 0x1909
movq %rsp, %rdi
pushq $0x1
popq %rsi
callq 0x24ef
movq %rax, 0x28(%rsp)
jmp 0x22f9
movabsq $0x200000002, %rax      # imm = 0x200000002
movq %rax, 0x52c(%r15)
movl $0x2, 0x534(%r15)
movb $0x1, %al
cmpl $0x0, 0x520(%r15)
je 0x2245
movzbl 0x20(%rsp), %eax
movl %r13d, %ecx
subl %eax, %ecx
sarl $0x3, %ecx
movslq %ecx, %rax
movq 0x8(%rsp), %rcx
subq 0x10(%rsp), %rcx
cmpq %rax, %rcx
jb 0x2494
movq %rsp, %rdi
pushq $0x1
popq %rsi
callq 0x24ef
movl %eax, 0x538(%r15)
movabsq $0x100000001, %rax      # imm = 0x100000001
movq %rax, 0x53c(%r15)
andl $0x0, 0x544(%r15)
xorl %eax, %eax
jmp 0x2390
cmpl $0x1, 0x52c(%r15)
jne 0x2265
cmpl $0xd, 0x530(%r15)
setne %cl
orb %al, %cl
testb $0x1, %cl
je 0x234c
movzbl 0x20(%rsp), %eax
movl %r13d, %ecx
subl %eax, %ecx
sarl $0x3, %ecx
movslq %ecx, %rax
movq 0x8(%rsp), %rcx
subq 0x10(%rsp), %rcx
cmpq %rax, %rcx
jb 0x2494
movq %rsp, %rdi
pushq $0x1
popq %rsi
callq 0x24ef
movl %eax, 0x538(%r15)
movzbl (%r15), %eax
testl %eax, %eax
je 0x23ed
cmpl $0x1, %eax
jne 0x2432
andl $0x0, 0x53c(%r15)
jmp 0x2357
movzbl 0x20(%rsp), %eax
movl %r13d, %ecx
subl %eax, %ecx
sarl $0x3, %ecx
movslq %ecx, %rax
movq 0x8(%rsp), %rcx
subq 0x10(%rsp), %rcx
cmpq %rax, %rcx
jb 0x1909
movq %rsp, %rdi
pushq $0x1
popq %rsi
callq 0x24ef
movl %eax, 0x4f8(%r15)
testl %eax, %eax
jg 0x2153
movq 0x28(%rsp), %rax
movl %eax, 0x500(%r15)
cmpl $0x0, 0x4e8(%r15)
je 0x1650
movzbl 0x20(%rsp), %eax
subl %eax, %ebp
sarl $0x3, %ebp
movslq %ebp, %rax
movq 0x8(%rsp), %rcx
subq 0x10(%rsp), %rcx
cmpq %rax, %rcx
jb 0x1909
movq %rsp, %rdi
pushq $0x3
popq %rsi
callq 0x24ef
movb %al, 0x504(%r15)
incb %al
jmp 0x1652
movq $0x1, 0x538(%r15)
xorl %eax, %eax
movl $0x540, %ecx            # imm = 0x540
movl %eax, (%r15,%rcx)
movzbl 0x20(%rsp), %eax
movl %r13d, %ecx
subl %eax, %ecx
sarl $0x3, %ecx
movslq %ecx, %rax
movq 0x8(%rsp), %rcx
subq 0x10(%rsp), %rcx
cmpq %rax, %rcx
jb 0x2494
movq %rsp, %rdi
pushq $0x1
popq %rsi
callq 0x24ef
movl %eax, 0x548(%r15)
movzbl 0x20(%rsp), %eax
subl %eax, %r13d
sarl $0x3, %r13d
movslq %r13d, %rbx
movq 0x8(%rsp), %r12
subq 0x10(%rsp), %r12
cmpq %rbx, %r12
jae 0x23cc
movq (%r14), %rdi
movq 0x8(%r14), %rsi
leaq 0x5daa(%rip), %rdx      # 0x816d
xorl %eax, %eax
callq 0x1030
jmp 0x23de
movq %rsp, %rdi
pushq $0x1
popq %rsi
callq 0x24ef
movl %eax, 0x54c(%r15)
cmpq %rbx, %r12
movl $0x0, %ebx
sbbl %ebx, %ebx
jmp 0x191e
movabsq $0x100000001, %rax      # imm = 0x100000001
movq %rax, 0x53c(%r15)
movzbl 0x20(%rsp), %eax
pushq $0x9
popq %rcx
subl %eax, %ecx
sarl $0x3, %ecx
movslq %ecx, %rax
movq 0x8(%rsp), %rcx
subq 0x10(%rsp), %rcx
cmpq %rax, %rcx
jb 0x2494
movq %rsp, %rdi
pushq $0x2
popq %rsi
callq 0x24ef
movl $0x544, %ecx            # imm = 0x544
jmp 0x235e
cmpb $0xc, 0x51c(%r15)
jne 0x24b0
movzbl 0x20(%rsp), %eax
movl %r13d, %ecx
subl %eax, %ecx
sarl $0x3, %ecx
movslq %ecx, %rax
movq 0x8(%rsp), %rcx
subq 0x10(%rsp), %rcx
cmpq %rax, %rcx
jb 0x2494
movq %rsp, %rdi
pushq $0x1
popq %rsi
callq 0x24ef
movl %eax, 0x53c(%r15)
testl %eax, %eax
je 0x2357
movzbl 0x20(%rsp), %eax
movl %r13d, %ecx
subl %eax, %ecx
sarl $0x3, %ecx
movslq %ecx, %rax
movq 0x8(%rsp), %rcx
subq 0x10(%rsp), %rcx
cmpq %rax, %rcx
jae 0x24c0
movq (%r14), %rdi
movq 0x8(%r14), %rsi
leaq 0x5ccb(%rip), %rdx      # 0x816d
xorl %eax, %eax
callq 0x1030
movl %ebp, %ebx
jmp 0x191e
movl $0x1, 0x53c(%r15)
jmp 0x2357
movq %rsp, %rdi
pushq $0x1
popq %rsi
callq 0x24ef
movl %eax, 0x540(%r15)
cmpl $0x0, 0x53c(%r15)
sete %cl
testl %eax, %eax
sete %al
orb %cl, %al
jne 0x2362
jmp 0x23fe