// File: /workspace/github_c_makefile_star2_O3/akumrao[P]videoAnalyzer/encoder/set.c
// Function: x264_pps_write(bs_s*, x264_pps_t*)
void x264_pps_write(bs_t *s, x264_pps_t *pps) {LOG_CALL;
    bs_write_ue(s, pps->i_id,"i_id");
    bs_write_ue(s, pps->i_sps_id,"i_sps_id");

    bs_write(s, 1, pps->b_cabac,"b_cabac");
    bs_write(s, 1, pps->b_pic_order,"b_pic_order");
    bs_write_ue(s, pps->i_num_slice_groups - 1,"i_num_slice_groups");

    if (pps->i_num_slice_groups > 1)
    {
        int i;

        bs_write_ue(s, pps->i_slice_group_map_type,"i_slice_group_map_type");
        if (pps->i_slice_group_map_type == 0)
        {
            for (i = 0; i < pps->i_num_slice_groups; i++)
            {
                bs_write_ue(s, pps->i_run_length[i] - 1,"i_run_length");
            }
        }
        else if (pps->i_slice_group_map_type == 2)
        {
            for (i = 0; i < pps->i_num_slice_groups; i++)
            {
                bs_write_ue(s, pps->i_top_left[i],"i_top_left[i]");
                bs_write_ue(s, pps->i_bottom_right[i],"i_bottom_right[i]");
            }
        }
        else if (pps->i_slice_group_map_type >= 3 &&
                pps->i_slice_group_map_type <= 5)
        {
            bs_write(s, 1, pps->b_slice_group_change_direction,"b_slice_group_change_direction");
            bs_write_ue(s, pps->b_slice_group_change_direction - 1,"b_slice_group_change_direction");
        }
        else if (pps->i_slice_group_map_type == 6)
        {
            bs_write_ue(s, pps->i_pic_size_in_map_units - 1,"i_pic_size_in_map_units");
            for (i = 0; i < pps->i_pic_size_in_map_units; i++)
            {
                /* FIXME */
                /* bs_write( s, ceil( log2( pps->i_pic_size_in_map_units +1 ) ), 
                 *              pps->i_slice_group_id[i] ); 
                 */
            }
        }
    }

    bs_write_ue(s, pps->i_num_ref_idx_l0_active - 1,"i_num_ref_idx_l0_active");
    bs_write_ue(s, pps->i_num_ref_idx_l1_active - 1,"i_num_ref_idx_l1_active");
    bs_write(s, 1, pps->b_weighted_pred,"b_weighted_pred");
    bs_write(s, 2, pps->b_weighted_bipred,"b_weighted_bipred");

    bs_write_se(s, pps->i_pic_init_qp - 26,"i_pic_init_qp");
    bs_write_se(s, pps->i_pic_init_qs - 26,"i_pic_init_qs");
    bs_write_se(s, pps->i_chroma_qp_index_offset,"i_chroma_qp_index_offset");

    bs_write(s, 1, pps->b_deblocking_filter_control,"b_deblocking_filter_control");
    bs_write(s, 1, pps->b_constrained_intra_pred,"b_constrained_intra_pred");
    bs_write(s, 1, pps->b_redundant_pic_cnt,"b_redundant_pic_cnt");

    bs_rbsp_trailing(s);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x5f5e(%rip), %rdi      # 0x271b4
leaq 0xd133(%rip), %rsi      # 0x2e390
leaq 0xd32a(%rip), %rdx      # 0x2e58e
xorl %eax, %eax
callq 0x4a56
movl (%r14), %r15d
leaq 0xa009(%rip), %rdi      # 0x2b27e
leaq 0xd1a7(%rip), %rdx      # 0x2e423
movl %r15d, %esi
xorl %eax, %eax
callq 0x4a56
testl %r15d, %r15d
je 0x21327
incl %r15d
movl %r15d, %ecx
shrl $0x10, %ecx
xorl %edx, %edx
cmpl $0x10000, %r15d         # imm = 0x10000
setae %dl
cmovbl %r15d, %ecx
shll $0x4, %edx
leal 0x8(%rdx), %eax
movl %ecx, %esi
shrl $0x8, %esi
cmpl $0x100, %ecx            # imm = 0x100
cmovbl %edx, %eax
cmovbl %ecx, %esi
leaq 0xd3aa(%rip), %rcx      # 0x2e670
addl (%rcx,%rsi,4), %eax
jle 0x2134f
addl %eax, %eax
movq 0x8(%rbx), %rdx
cmpq 0x10(%rbx), %rdx
jae 0x2134f
movb 0x18(%rbx), %cl
decb %cl
movl $0x1, %esi
shll %cl, %esi
leal -0x2(%rax), %ecx
movzbl %cl, %ecx
movb (%rdx), %dil
movl %esi, %r8d
notb %r8b
andb %dil, %r8b
orb %sil, %dil
btl %ecx, %r15d
movzbl %dil, %ecx
movzbl %r8b, %esi
cmovbl %ecx, %esi
movb %sil, (%rdx)
decl 0x18(%rbx)
jne 0x2131e
incq 0x8(%rbx)
movl $0x8, 0x18(%rbx)
decl %eax
cmpl $0x1, %eax
ja 0x212d1
jmp 0x2134f
movq 0x8(%rbx), %rax
cmpq 0x10(%rbx), %rax
jae 0x2134f
movb 0x18(%rbx), %cl
decb %cl
movl $0x1, %edx
shll %cl, %edx
orb %dl, (%rax)
decl 0x18(%rbx)
jne 0x2134f
incq 0x8(%rbx)
movl $0x8, 0x18(%rbx)
movl 0x4(%r14), %r15d
leaq 0x9f24(%rip), %rdi      # 0x2b27e
leaq 0x9323(%rip), %rdx      # 0x2a684
movl %r15d, %esi
xorl %eax, %eax
callq 0x4a56
testl %r15d, %r15d
je 0x2140c
incl %r15d
movl %r15d, %ecx
shrl $0x10, %ecx
xorl %edx, %edx
cmpl $0x10000, %r15d         # imm = 0x10000
setae %dl
cmovbl %r15d, %ecx
shll $0x4, %edx
leal 0x8(%rdx), %eax
movl %ecx, %esi
shrl $0x8, %esi
cmpl $0x100, %ecx            # imm = 0x100
cmovbl %edx, %eax
cmovbl %ecx, %esi
leaq 0xd2c5(%rip), %rcx      # 0x2e670
addl (%rcx,%rsi,4), %eax
jle 0x21434
addl %eax, %eax
movq 0x8(%rbx), %rdx
cmpq 0x10(%rbx), %rdx
jae 0x21434
movb 0x18(%rbx), %cl
decb %cl
movl $0x1, %esi
shll %cl, %esi
leal -0x2(%rax), %ecx
movzbl %cl, %ecx
movb (%rdx), %dil
movl %esi, %r8d
notb %r8b
andb %dil, %r8b
orb %sil, %dil
btl %ecx, %r15d
movzbl %dil, %ecx
movzbl %r8b, %esi
cmovbl %ecx, %esi
movb %sil, (%rdx)
decl 0x18(%rbx)
jne 0x21403
incq 0x8(%rbx)
movl $0x8, 0x18(%rbx)
decl %eax
cmpl $0x1, %eax
ja 0x213b6
jmp 0x21434
movq 0x8(%rbx), %rax
cmpq 0x10(%rbx), %rax
jae 0x21434
movb 0x18(%rbx), %cl
decb %cl
movl $0x1, %edx
shll %cl, %edx
orb %dl, (%rax)
decl 0x18(%rbx)
jne 0x21434
incq 0x8(%rbx)
movl $0x8, 0x18(%rbx)
movl 0x8(%r14), %r15d
leaq 0x9e59(%rip), %rdi      # 0x2b298
leaq 0x9247(%rip), %rcx      # 0x2a68d
movl $0x1, %r12d
movl $0x1, %esi
movl %r15d, %edx
xorl %eax, %eax
callq 0x4a56
movq 0x8(%rbx), %rax
cmpq 0x10(%rbx), %rax
jae 0x21498
movb 0x18(%rbx), %cl
decb %cl
shll %cl, %r12d
movb (%rax), %cl
movl %r12d, %edx
notb %dl
andb %cl, %dl
orb %r12b, %cl
testb $0x1, %r15b
movzbl %cl, %ecx
movzbl %dl, %edx
cmovnel %ecx, %edx
movb %dl, (%rax)
decl 0x18(%rbx)
jne 0x21498
incq 0x8(%rbx)
movl $0x8, 0x18(%rbx)
movl 0xc(%r14), %r15d
leaq 0x9df5(%rip), %rdi      # 0x2b298
leaq 0x91eb(%rip), %rcx      # 0x2a695
movl $0x1, %r12d
movl $0x1, %esi
movl %r15d, %edx
xorl %eax, %eax
callq 0x4a56
movq 0x8(%rbx), %rax
cmpq 0x10(%rbx), %rax
jae 0x214fc
movb 0x18(%rbx), %cl
decb %cl
shll %cl, %r12d
movb (%rax), %cl
movl %r12d, %edx
notb %dl
andb %cl, %dl
orb %r12b, %cl
testb $0x1, %r15b
movzbl %cl, %ecx
movzbl %dl, %edx
cmovnel %ecx, %edx
movb %dl, (%rax)
decl 0x18(%rbx)
jne 0x214fc
incq 0x8(%rbx)
movl $0x8, 0x18(%rbx)
movl 0x10(%r14), %r15d
leaq 0x9d77(%rip), %rdi      # 0x2b27e
leaq 0x9193(%rip), %rdx      # 0x2a6a1
leal -0x1(%r15), %esi
xorl %eax, %eax
callq 0x4a56
movl %r15d, %eax
decl %eax
je 0x215b9
movl %r15d, %ecx
shrl $0x10, %ecx
xorl %edx, %edx
cmpl $0x10000, %r15d         # imm = 0x10000
setae %dl
cmovbl %r15d, %ecx
shll $0x4, %edx
leal 0x8(%rdx), %eax
movl %ecx, %esi
shrl $0x8, %esi
cmpl $0x100, %ecx            # imm = 0x100
cmovbl %edx, %eax
cmovbl %ecx, %esi
leaq 0xd118(%rip), %rcx      # 0x2e670
addl (%rcx,%rsi,4), %eax
jle 0x215e1
addl %eax, %eax
movq 0x8(%rbx), %rdx
cmpq 0x10(%rbx), %rdx
jae 0x215e1
movb 0x18(%rbx), %cl
decb %cl
movl $0x1, %esi
shll %cl, %esi
leal -0x2(%rax), %ecx
movzbl %cl, %ecx
movb (%rdx), %dil
movl %esi, %r8d
notb %r8b
andb %dil, %r8b
orb %sil, %dil
btl %ecx, %r15d
movzbl %dil, %ecx
movzbl %r8b, %esi
cmovbl %ecx, %esi
movb %sil, (%rdx)
decl 0x18(%rbx)
jne 0x215b0
incq 0x8(%rbx)
movl $0x8, 0x18(%rbx)
decl %eax
cmpl $0x1, %eax
ja 0x21563
jmp 0x215e1
movq 0x8(%rbx), %rax
cmpq 0x10(%rbx), %rax
jae 0x215e1
movb 0x18(%rbx), %cl
decb %cl
movl $0x1, %edx
shll %cl, %edx
orb %dl, (%rax)
decl 0x18(%rbx)
jne 0x215e1
incq 0x8(%rbx)
movl $0x8, 0x18(%rbx)
cmpl $0x2, 0x10(%r14)
jl 0x21c11
movl 0x14(%r14), %r15d
leaq 0x9c87(%rip), %rdi      # 0x2b27e
leaq 0x90c8(%rip), %rdx      # 0x2a6c6
movl %r15d, %esi
xorl %eax, %eax
callq 0x4a56
testl %r15d, %r15d
je 0x216a9
incl %r15d
movl %r15d, %ecx
shrl $0x10, %ecx
xorl %edx, %edx
cmpl $0x10000, %r15d         # imm = 0x10000
setae %dl
cmovbl %r15d, %ecx
shll $0x4, %edx
leal 0x8(%rdx), %eax
movl %ecx, %esi
shrl $0x8, %esi
cmpl $0x100, %ecx            # imm = 0x100
cmovbl %edx, %eax
cmovbl %ecx, %esi
leaq 0xd028(%rip), %rcx      # 0x2e670
addl (%rcx,%rsi,4), %eax
jle 0x216d1
addl %eax, %eax
movq 0x8(%rbx), %rdx
cmpq 0x10(%rbx), %rdx
jae 0x216d1
movb 0x18(%rbx), %cl
decb %cl
movl $0x1, %esi
shll %cl, %esi
leal -0x2(%rax), %ecx
movzbl %cl, %ecx
movb (%rdx), %dil
movl %esi, %r8d
notb %r8b
andb %dil, %r8b
orb %sil, %dil
btl %ecx, %r15d
movzbl %dil, %ecx
movzbl %r8b, %esi
cmovbl %ecx, %esi
movb %sil, (%rdx)
decl 0x18(%rbx)
jne 0x216a0
incq 0x8(%rbx)
movl $0x8, 0x18(%rbx)
decl %eax
cmpl $0x1, %eax
ja 0x21653
jmp 0x216d1
movq 0x8(%rbx), %rax
cmpq 0x10(%rbx), %rax
jae 0x216d1
movb 0x18(%rbx), %cl
decb %cl
movl $0x1, %edx
shll %cl, %edx
orb %dl, (%rax)
decl 0x18(%rbx)
jne 0x216d1
incq 0x8(%rbx)
movl $0x8, 0x18(%rbx)
movl 0x14(%r14), %eax
testl %eax, %eax
je 0x218da
cmpl $0x2, %eax
jne 0x219e6
cmpl $0x0, 0x10(%r14)
jle 0x21c11
leaq 0x9b86(%rip), %r15      # 0x2b27e
xorl %r13d, %r13d
movl 0x418(%r14,%r13,4), %r12d
movq %r15, %rdi
movl %r12d, %esi
leaq 0xce8d(%rip), %rdx      # 0x2e59d
xorl %eax, %eax
callq 0x4a56
testl %r12d, %r12d
je 0x217b8
incl %r12d
movl %r12d, %ecx
shrl $0x10, %ecx
xorl %edx, %edx
cmpl $0x10000, %r12d         # imm = 0x10000
cmovbl %r12d, %ecx
setae %dl
shll $0x4, %edx
leal 0x8(%rdx), %eax
movl %ecx, %esi
shrl $0x8, %esi
cmpl $0x100, %ecx            # imm = 0x100
cmovbl %edx, %eax
cmovbl %ecx, %esi
leaq 0xcf19(%rip), %rcx      # 0x2e670
addl (%rcx,%rsi,4), %eax
jle 0x217e0
addl %eax, %eax
movq 0x8(%rbx), %rdx
cmpq 0x10(%rbx), %rdx
jae 0x217e0
movb 0x18(%rbx), %cl
decb %cl
movl $0x1, %esi
shll %cl, %esi
leal -0x2(%rax), %ecx
movzbl %cl, %ecx
movb (%rdx), %dil
movl %esi, %r8d
notb %r8b
andb %dil, %r8b
orb %sil, %dil
btl %ecx, %r12d
movzbl %dil, %ecx
movzbl %r8b, %esi
cmovbl %ecx, %esi
movb %sil, (%rdx)
decl 0x18(%rbx)
jne 0x217af
incq 0x8(%rbx)
movl $0x8, 0x18(%rbx)
decl %eax
cmpl $0x1, %eax
ja 0x21762
jmp 0x217e0
movq 0x8(%rbx), %rax
cmpq 0x10(%rbx), %rax
jae 0x217e0
movb 0x18(%rbx), %cl
decb %cl
movl $0x1, %edx
shll %cl, %edx
orb %dl, (%rax)
decl 0x18(%rbx)
jne 0x217e0
incq 0x8(%rbx)
movl $0x8, 0x18(%rbx)
movl 0x818(%r14,%r13,4), %r12d
movq %r15, %rdi
movl %r12d, %esi
leaq 0xcdb6(%rip), %rdx      # 0x2e5ab
xorl %eax, %eax
callq 0x4a56
testl %r12d, %r12d
je 0x2189d
incl %r12d
movl %r12d, %ecx
shrl $0x10, %ecx
xorl %edx, %edx
cmpl $0x10000, %r12d         # imm = 0x10000
cmovbl %r12d, %ecx
setae %dl
shll $0x4, %edx
leal 0x8(%rdx), %eax
movl %ecx, %esi
shrl $0x8, %esi
cmpl $0x100, %ecx            # imm = 0x100
cmovbl %edx, %eax
cmovbl %ecx, %esi
leaq 0xce34(%rip), %rcx      # 0x2e670
addl (%rcx,%rsi,4), %eax
jle 0x218c5
addl %eax, %eax
movq 0x8(%rbx), %rdx
cmpq 0x10(%rbx), %rdx
jae 0x218c5
movb 0x18(%rbx), %cl
decb %cl
movl $0x1, %esi
shll %cl, %esi
leal -0x2(%rax), %ecx
movzbl %cl, %ecx
movb (%rdx), %dil
movl %esi, %r8d
notb %r8b
andb %dil, %r8b
orb %sil, %dil
btl %ecx, %r12d
movzbl %dil, %ecx
movzbl %r8b, %esi
cmovbl %ecx, %esi
movb %sil, (%rdx)
decl 0x18(%rbx)
jne 0x21894
incq 0x8(%rbx)
movl $0x8, 0x18(%rbx)
decl %eax
cmpl $0x1, %eax
ja 0x21847
jmp 0x218c5
movq 0x8(%rbx), %rax
cmpq 0x10(%rbx), %rax
jae 0x218c5
movb 0x18(%rbx), %cl
decb %cl
movl $0x1, %edx
shll %cl, %edx
orb %dl, (%rax)
decl 0x18(%rbx)
jne 0x218c5
incq 0x8(%rbx)
movl $0x8, 0x18(%rbx)
incq %r13
movslq 0x10(%r14), %rax
cmpq %rax, %r13
jl 0x216fb
jmp 0x21c11
cmpl $0x0, 0x10(%r14)
jle 0x21c11
leaq 0x8df1(%rip), %r12      # 0x2a6dd
xorl %r13d, %r13d
movl 0x18(%r14,%r13,4), %r15d
leal -0x1(%r15), %esi
leaq 0x997f(%rip), %rdi      # 0x2b27e
movq %r12, %rdx
xorl %eax, %eax
callq 0x4a56
movl %r15d, %eax
decl %eax
je 0x219a9
movl %r15d, %ecx
shrl $0x10, %ecx
xorl %edx, %edx
cmpl $0x10000, %r15d         # imm = 0x10000
cmovbl %r15d, %ecx
setae %dl
shll $0x4, %edx
leal 0x8(%rdx), %eax
movl %ecx, %esi
shrl $0x8, %esi
cmpl $0x100, %ecx            # imm = 0x100
cmovbl %edx, %eax
cmovbl %ecx, %esi
leaq 0xcd28(%rip), %rcx      # 0x2e670
addl (%rcx,%rsi,4), %eax
jle 0x219d1
addl %eax, %eax
movq 0x8(%rbx), %rdx
cmpq 0x10(%rbx), %rdx
jae 0x219d1
movb 0x18(%rbx), %cl
decb %cl
movl $0x1, %esi
shll %cl, %esi
leal -0x2(%rax), %ecx
movzbl %cl, %ecx
movb (%rdx), %dil
movl %esi, %r8d
notb %r8b
andb %dil, %r8b
orb %sil, %dil
btl %ecx, %r15d
movzbl %dil, %ecx
movzbl %r8b, %esi
cmovbl %ecx, %esi
movb %sil, (%rdx)
decl 0x18(%rbx)
jne 0x219a0
incq 0x8(%rbx)
movl $0x8, 0x18(%rbx)
decl %eax
cmpl $0x1, %eax
ja 0x21953
jmp 0x219d1
movq 0x8(%rbx), %rax
cmpq 0x10(%rbx), %rax
jae 0x219d1
movb 0x18(%rbx), %cl
decb %cl
movl $0x1, %edx
shll %cl, %edx
orb %dl, (%rax)
decl 0x18(%rbx)
jne 0x219d1
incq 0x8(%rbx)
movl $0x8, 0x18(%rbx)
incq %r13
movslq 0x10(%r14), %rax
cmpq %rax, %r13
jl 0x218ef
jmp 0x21c11
leal -0x3(%rax), %ecx
cmpl $0x2, %ecx
ja 0x21b20
movl 0xc18(%r14), %r15d
leaq 0x9898(%rip), %rdi      # 0x2b298
leaq 0x8cfd(%rip), %rcx      # 0x2a704
movl $0x1, %r12d
movl $0x1, %esi
movl %r15d, %edx
xorl %eax, %eax
callq 0x4a56
movq 0x8(%rbx), %rax
cmpq 0x10(%rbx), %rax
jae 0x21a59
movb 0x18(%rbx), %cl
decb %cl
shll %cl, %r12d
movb (%rax), %cl
movl %r12d, %edx
notb %dl
andb %cl, %dl
orb %r12b, %cl
testb $0x1, %r15b
movzbl %cl, %ecx
movzbl %dl, %edx
cmovnel %ecx, %edx
movb %dl, (%rax)
decl 0x18(%rbx)
jne 0x21a59
incq 0x8(%rbx)
movl $0x8, 0x18(%rbx)
movl 0xc18(%r14), %r15d
leaq 0x9817(%rip), %rdi      # 0x2b27e
leaq 0x8c96(%rip), %rdx      # 0x2a704
leal -0x1(%r15), %esi
xorl %eax, %eax
callq 0x4a56
movl %r15d, %eax
decl %eax
je 0x21be9
movl %r15d, %ecx
shrl $0x10, %ecx
xorl %edx, %edx
cmpl $0x10000, %r15d         # imm = 0x10000
setae %dl
cmovbl %r15d, %ecx
shll $0x4, %edx
leal 0x8(%rdx), %eax
movl %ecx, %esi
shrl $0x8, %esi
cmpl $0x100, %ecx            # imm = 0x100
cmovbl %edx, %eax
cmovbl %ecx, %esi
leaq 0xcbb8(%rip), %rcx      # 0x2e670
addl (%rcx,%rsi,4), %eax
jle 0x21c11
addl %eax, %eax
movq 0x8(%rbx), %rdx
cmpq 0x10(%rbx), %rdx
jae 0x21c11
movb 0x18(%rbx), %cl
decb %cl
movl $0x1, %esi
shll %cl, %esi
leal -0x2(%rax), %ecx
movzbl %cl, %ecx
movb (%rdx), %dil
movl %esi, %r8d
notb %r8b
andb %dil, %r8b
orb %sil, %dil
btl %ecx, %r15d
movzbl %dil, %ecx
movzbl %r8b, %esi
cmovbl %ecx, %esi
movb %sil, (%rdx)
decl 0x18(%rbx)
jne 0x21b14
incq 0x8(%rbx)
movl $0x8, 0x18(%rbx)
decl %eax
cmpl $0x1, %eax
ja 0x21ac3
jmp 0x21c11
cmpl $0x6, %eax
jne 0x21c11
movl 0xc20(%r14), %r15d
leaq 0x9747(%rip), %rdi      # 0x2b27e
leaq 0x8bff(%rip), %rdx      # 0x2a73d
leal -0x1(%r15), %esi
xorl %eax, %eax
callq 0x4a56
movl %r15d, %eax
decl %eax
je 0x21be9
movl %r15d, %ecx
shrl $0x10, %ecx
xorl %edx, %edx
cmpl $0x10000, %r15d         # imm = 0x10000
setae %dl
cmovbl %r15d, %ecx
shll $0x4, %edx
leal 0x8(%rdx), %eax
movl %ecx, %esi
shrl $0x8, %esi
cmpl $0x100, %ecx            # imm = 0x100
cmovbl %edx, %eax
cmovbl %ecx, %esi
leaq 0xcae8(%rip), %rcx      # 0x2e670
addl (%rcx,%rsi,4), %eax
jle 0x21c11
addl %eax, %eax
movq 0x8(%rbx), %rdx
cmpq 0x10(%rbx), %rdx
jae 0x21c11
movb 0x18(%rbx), %cl
decb %cl
movl $0x1, %esi
shll %cl, %esi
leal -0x2(%rax), %ecx
movzbl %cl, %ecx
movb (%rdx), %dil
movl %esi, %r8d
notb %r8b
andb %dil, %r8b
orb %sil, %dil
btl %ecx, %r15d
movzbl %dil, %ecx
movzbl %r8b, %esi
cmovbl %ecx, %esi
movb %sil, (%rdx)
decl 0x18(%rbx)
jne 0x21be0
incq 0x8(%rbx)
movl $0x8, 0x18(%rbx)
decl %eax
cmpl $0x1, %eax
ja 0x21b93
jmp 0x21c11
movq 0x8(%rbx), %rax
cmpq 0x10(%rbx), %rax
jae 0x21c11
movb 0x18(%rbx), %cl
decb %cl
movl $0x1, %edx
shll %cl, %edx
orb %dl, (%rax)
decl 0x18(%rbx)
jne 0x21c11
incq 0x8(%rbx)
movl $0x8, 0x18(%rbx)
movl 0x1024(%r14), %r15d
leaq 0x965f(%rip), %rdi      # 0x2b27e
leaq 0x7d40(%rip), %rdx      # 0x29966
leal -0x1(%r15), %esi
xorl %eax, %eax
callq 0x4a56
movl %r15d, %eax
decl %eax
je 0x21cd1
movl %r15d, %ecx
shrl $0x10, %ecx
xorl %edx, %edx
cmpl $0x10000, %r15d         # imm = 0x10000
setae %dl
cmovbl %r15d, %ecx
shll $0x4, %edx
leal 0x8(%rdx), %eax
movl %ecx, %esi
shrl $0x8, %esi
cmpl $0x100, %ecx            # imm = 0x100
cmovbl %edx, %eax
cmovbl %ecx, %esi
leaq 0xca00(%rip), %rcx      # 0x2e670
addl (%rcx,%rsi,4), %eax
jle 0x21cf9
addl %eax, %eax
movq 0x8(%rbx), %rdx
cmpq 0x10(%rbx), %rdx
jae 0x21cf9
movb 0x18(%rbx), %cl
decb %cl
movl $0x1, %esi
shll %cl, %esi
leal -0x2(%rax), %ecx
movzbl %cl, %ecx
movb (%rdx), %dil
movl %esi, %r8d
notb %r8b
andb %dil, %r8b
orb %sil, %dil
btl %ecx, %r15d
movzbl %dil, %ecx
movzbl %r8b, %esi
cmovbl %ecx, %esi
movb %sil, (%rdx)
decl 0x18(%rbx)
jne 0x21cc8
incq 0x8(%rbx)
movl $0x8, 0x18(%rbx)
decl %eax
cmpl $0x1, %eax
ja 0x21c7b
jmp 0x21cf9
movq 0x8(%rbx), %rax
cmpq 0x10(%rbx), %rax
jae 0x21cf9
movb 0x18(%rbx), %cl
decb %cl
movl $0x1, %edx
shll %cl, %edx
orb %dl, (%rax)
decl 0x18(%rbx)
jne 0x21cf9
incq 0x8(%rbx)
movl $0x8, 0x18(%rbx)
movl 0x1028(%r14), %r15d
leaq 0x9577(%rip), %rdi      # 0x2b27e
leaq 0x7c70(%rip), %rdx      # 0x2997e
leal -0x1(%r15), %esi
xorl %eax, %eax
callq 0x4a56
movl %r15d, %eax
decl %eax
je 0x21db9
movl %r15d, %ecx
shrl $0x10, %ecx
xorl %edx, %edx
cmpl $0x10000, %r15d         # imm = 0x10000
setae %dl
cmovbl %r15d, %ecx
shll $0x4, %edx
leal 0x8(%rdx), %eax
movl %ecx, %esi
shrl $0x8, %esi
cmpl $0x100, %ecx            # imm = 0x100
cmovbl %edx, %eax
cmovbl %ecx, %esi
leaq 0xc918(%rip), %rcx      # 0x2e670
addl (%rcx,%rsi,4), %eax
jle 0x21de1
addl %eax, %eax
movq 0x8(%rbx), %rdx
cmpq 0x10(%rbx), %rdx
jae 0x21de1
movb 0x18(%rbx), %cl
decb %cl
movl $0x1, %esi
shll %cl, %esi
leal -0x2(%rax), %ecx
movzbl %cl, %ecx
movb (%rdx), %dil
movl %esi, %r8d
notb %r8b
andb %dil, %r8b
orb %sil, %dil
btl %ecx, %r15d
movzbl %dil, %ecx
movzbl %r8b, %esi
cmovbl %ecx, %esi
movb %sil, (%rdx)
decl 0x18(%rbx)
jne 0x21db0
incq 0x8(%rbx)
movl $0x8, 0x18(%rbx)
decl %eax
cmpl $0x1, %eax
ja 0x21d63
jmp 0x21de1
movq 0x8(%rbx), %rax
cmpq 0x10(%rbx), %rax
jae 0x21de1
movb 0x18(%rbx), %cl
decb %cl
movl $0x1, %edx
shll %cl, %edx
orb %dl, (%rax)
decl 0x18(%rbx)
jne 0x21de1
incq 0x8(%rbx)
movl $0x8, 0x18(%rbx)
movl 0x102c(%r14), %r15d
leaq 0x94a9(%rip), %rdi      # 0x2b298
leaq 0x895f(%rip), %rcx      # 0x2a755
movl $0x1, %r12d
movl $0x1, %esi
movl %r15d, %edx
xorl %eax, %eax
callq 0x4a56
movq 0x8(%rbx), %rax
cmpq 0x10(%rbx), %rax
jae 0x21e48
movb 0x18(%rbx), %cl
decb %cl
shll %cl, %r12d
movb (%rax), %cl
movl %r12d, %edx
notb %dl
andb %cl, %dl
orb %r12b, %cl
testb $0x1, %r15b
movzbl %cl, %ecx
movzbl %dl, %edx
cmovnel %ecx, %edx
movb %dl, (%rax)
decl 0x18(%rbx)
jne 0x21e48
incq 0x8(%rbx)
movl $0x8, 0x18(%rbx)
movl 0x1030(%r14), %r15d
leaq 0x9442(%rip), %rdi      # 0x2b298
leaq 0x8908(%rip), %rcx      # 0x2a765
movl $0x2, %esi
movl %r15d, %edx
xorl %eax, %eax
callq 0x4a56
movl $0x3, %eax
movq 0x8(%rbx), %rdx
cmpq 0x10(%rbx), %rdx
jae 0x21ec5
movb 0x18(%rbx), %cl
decb %cl
movl $0x1, %esi
shll %cl, %esi
leal -0x2(%rax), %ecx
movzbl %cl, %ecx
movb (%rdx), %dil
movl %esi, %r8d
notb %r8b
andb %dil, %r8b
orb %sil, %dil
btl %ecx, %r15d
movzbl %dil, %ecx
movzbl %r8b, %esi
cmovbl %ecx, %esi
movb %sil, (%rdx)
decl 0x18(%rbx)
jne 0x21ebe
incq 0x8(%rbx)
movl $0x8, 0x18(%rbx)
decl %eax
cmpl $0x1, %eax
ja 0x21e71
movl 0x1034(%r14), %esi
addl $-0x1a, %esi
leaq 0x88a1(%rip), %rdx      # 0x2a777
movq %rbx, %rdi
callq 0x210bd
movl 0x1038(%r14), %esi
addl $-0x1a, %esi
leaq 0x8896(%rip), %rdx      # 0x2a785
movq %rbx, %rdi
callq 0x210bd
movl 0x103c(%r14), %esi
leaq 0x888e(%rip), %rdx      # 0x2a793
movq %rbx, %rdi
callq 0x210bd
movl 0x1040(%r14), %r15d
leaq 0x937d(%rip), %rdi      # 0x2b298
leaq 0x888a(%rip), %rcx      # 0x2a7ac
movl $0x1, %r12d
movl $0x1, %esi
movl %r15d, %edx
xorl %eax, %eax
callq 0x4a56
movq 0x8(%rbx), %rax
cmpq 0x10(%rbx), %rax
jae 0x21f74
movb 0x18(%rbx), %cl
decb %cl
shll %cl, %r12d
movb (%rax), %cl
movl %r12d, %edx
notb %dl
andb %cl, %dl
orb %r12b, %cl
testb $0x1, %r15b
movzbl %cl, %ecx
movzbl %dl, %edx
cmovnel %ecx, %edx
movb %dl, (%rax)
decl 0x18(%rbx)
jne 0x21f74
incq 0x8(%rbx)
movl $0x8, 0x18(%rbx)
movl 0x1044(%r14), %r15d
leaq 0x9316(%rip), %rdi      # 0x2b298
leaq 0x883f(%rip), %rcx      # 0x2a7c8
movl $0x1, %r12d
movl $0x1, %esi
movl %r15d, %edx
xorl %eax, %eax
callq 0x4a56
movq 0x8(%rbx), %rax
cmpq 0x10(%rbx), %rax
jae 0x21fdb
movb 0x18(%rbx), %cl
decb %cl
shll %cl, %r12d
movb (%rax), %cl
movl %r12d, %edx
notb %dl
andb %cl, %dl
orb %r12b, %cl
testb $0x1, %r15b
movzbl %cl, %ecx
movzbl %dl, %edx
cmovnel %ecx, %edx
movb %dl, (%rax)
decl 0x18(%rbx)
jne 0x21fdb
incq 0x8(%rbx)
movl $0x8, 0x18(%rbx)
movl 0x1048(%r14), %r14d
leaq 0x92af(%rip), %rdi      # 0x2b298
leaq 0x87f1(%rip), %rcx      # 0x2a7e1
movl $0x1, %r15d
movl $0x1, %esi
movl %r14d, %edx
xorl %eax, %eax
callq 0x4a56
movq 0x8(%rbx), %rax
cmpq 0x10(%rbx), %rax
jae 0x22042
movb 0x18(%rbx), %cl
decb %cl
shll %cl, %r15d
movb (%rax), %cl
movl %r15d, %edx
notb %dl
andb %cl, %dl
orb %r15b, %cl
testb $0x1, %r14b
movzbl %cl, %ecx
movzbl %dl, %edx
cmovnel %ecx, %edx
movb %dl, (%rax)
decl 0x18(%rbx)
jne 0x22042
incq 0x8(%rbx)
movl $0x8, 0x18(%rbx)
leaq 0x516b(%rip), %rdi      # 0x271b4
leaq 0x8e8c(%rip), %rsi      # 0x2aedc
leaq 0x9257(%rip), %rdx      # 0x2b2ae
xorl %eax, %eax
callq 0x4a56
movq 0x8(%rbx), %rax
movl 0x18(%rbx), %ecx
cmpq 0x10(%rbx), %rax
jae 0x22080
decb %cl
movl $0x1, %edx
shll %cl, %edx
orb %dl, (%rax)
movl 0x18(%rbx), %ecx
decl %ecx
movl %ecx, 0x18(%rbx)
je 0x220ce
cmpl $0x8, %ecx
sete %al
testl %ecx, %ecx
setle %dl
orb %al, %dl
jne 0x220d9
leal 0x1(%rcx), %eax
movq 0x8(%rbx), %rdx
cmpq 0x10(%rbx), %rdx
jae 0x220d9
decb %cl
movl $0x1, %esi
shll %cl, %esi
notb %sil
andb %sil, (%rdx)
movl 0x18(%rbx), %ecx
decl %ecx
movl %ecx, 0x18(%rbx)
jne 0x220c5
incq 0x8(%rbx)
movl $0x8, 0x18(%rbx)
movl $0x8, %ecx
decl %eax
cmpl $0x1, %eax
ja 0x22092
jmp 0x220d9
incq 0x8(%rbx)
movl $0x8, 0x18(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq