// File: /workspace/github_c_makefile_star2_O1/lucvoo[P]sparse-dev/linearize.c
// Function: linearize_statement
static pseudo_t linearize_statement(struct entrypoint *ep, struct statement *stmt)
{
	struct basic_block *bb;

	if (!stmt)
		return VOID;

	bb = ep->active;
	if (bb && !bb->insns)
		bb->pos = stmt->pos;
	current_pos = stmt->pos;

	switch (stmt->type) {
	case STMT_NONE:
		break;

	case STMT_DECLARATION:
		return linearize_declaration(ep, stmt);

	case STMT_CONTEXT:
		return linearize_context(ep, stmt);

	case STMT_RANGE:
		return linearize_range(ep, stmt);

	case STMT_EXPRESSION:
		return linearize_expression(ep, stmt->expression);

	case STMT_ASM:
		return linearize_asm_statement(ep, stmt);

	case STMT_RETURN:
		return linearize_return(ep, stmt);

	case STMT_CASE: {
		add_label(ep, stmt->case_label);
		linearize_statement(ep, stmt->case_statement);
		break;
	}

	case STMT_LABEL: {
		struct symbol *label = stmt->label_identifier;

		if (label->used) {
			add_label(ep, label);
		}
		return linearize_statement(ep, stmt->label_statement);
	}

	case STMT_GOTO: {
		struct symbol *sym;
		struct expression *expr;
		struct instruction *goto_ins;
		struct basic_block *active;
		pseudo_t pseudo;

		active = ep->active;
		if (!bb_reachable(active))
			break;

		if (stmt->goto_label) {
			add_goto(ep, get_bound_block(ep, stmt->goto_label));
			break;
		}

		expr = stmt->goto_expression;
		if (!expr)
			break;

		/* This can happen as part of simplification */
		if (expr->type == EXPR_LABEL) {
			add_goto(ep, get_bound_block(ep, expr->label_symbol));
			break;
		}

		pseudo = linearize_expression(ep, expr);
		goto_ins = alloc_instruction(OP_COMPUTEDGOTO, 0);
		use_pseudo(goto_ins, pseudo, &goto_ins->src);
		add_one_insn(ep, goto_ins);

		FOR_EACH_PTR(stmt->target_list, sym) {
			struct basic_block *bb_computed = get_bound_block(ep, sym);
			struct multijmp *jmp = alloc_multijmp(bb_computed, 1, 0);
			add_multijmp(&goto_ins->multijmp_list, jmp);
			add_bb(&bb_computed->parents, ep->active);
			add_bb(&active->children, bb_computed);
		} END_FOR_EACH_PTR(sym);

		finish_block(ep);
		break;
	}

	case STMT_COMPOUND:
		if (stmt->inline_fn)
			return linearize_inlined_call(ep, stmt);
		return linearize_compound_statement(ep, stmt);

	/*
	 * This could take 'likely/unlikely' into account, and
	 * switch the arms around appropriately..
	 */
	case STMT_IF: {
		struct basic_block *bb_true, *bb_false, *endif;
 		struct expression *cond = stmt->if_conditional;

		bb_true = alloc_basic_block(ep, stmt->pos);
		bb_false = endif = alloc_basic_block(ep, stmt->pos);

		// If the condition is invalid, the following
		// statement(s) are not evaluated.
		if (!cond || !valid_type(cond->ctype))
			return VOID;
 		linearize_cond_branch(ep, cond, bb_true, bb_false);

		set_activeblock(ep, bb_true);
 		linearize_statement(ep, stmt->if_true);
 
 		if (stmt->if_false) {
			endif = alloc_basic_block(ep, stmt->pos);
			add_goto(ep, endif);
			set_activeblock(ep, bb_false);
 			linearize_statement(ep, stmt->if_false);
		}
		set_activeblock(ep, endif);
		break;
	}

	case STMT_SWITCH:
		return linearize_switch(ep, stmt);

	case STMT_ITERATOR:
		return linearize_iterator(ep, stmt);

	default:
		break;
	}
	return VOID;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x58, %rsp
movq %rsi, %r15
movq %rdi, %rbx
xorl %r13d, %r13d
leaq 0x51f76(%rip), %rax     # 0x669d0
movq %rax, 0x20(%rsp)
leaq 0x2d056(%rip), %r12     # 0x41abc
testq %r15, %r15
je 0x1535f
movq 0x20(%rbx), %rax
testq %rax, %rax
je 0x14a86
cmpq $0x0, 0x28(%rax)
jne 0x14a86
movq 0x4(%r15), %rcx
movq %rcx, (%rax)
movq 0x4(%r15), %r14
movq %r14, 0x532d7(%rip)     # 0x67d68
movl (%r15), %eax
cmpl $0x9, %eax
jne 0x14ab1
movq 0x10(%r15), %rsi
testb $0x2, 0x2(%rsi)
je 0x14aab
movq %rbx, %rdi
callq 0x16eff
movq 0x20(%r15), %r15
jmp 0x14a66
decl %eax
cmpl $0xc, %eax
ja 0x1535f
movslq (%r12,%rax,4), %rax
addq %r12, %rax
movq %r15, 0x10(%rsp)
jmpq *%rax
movq 0x28(%r15), %rsi
movq %rbx, %rdi
callq 0x16eff
movq 0x20(%r15), %r15
testb $0x1, %r13b
leaq 0x51eeb(%rip), %rax     # 0x669d0
cmoveq %rax, %rbp
movb $0x1, %r13b
jmp 0x14a66
movl %r13d, 0xc(%rsp)
xorl %edi, %edi
callq 0x302dd
movq %rax, %r12
movl $0x80, %eax
andl (%r12), %eax
orl $0x50, %eax
movl %eax, (%r12)
movq 0x53251(%rip), %rax     # 0x67d68
movq %rax, 0x10(%r12)
movq 0x10(%r15), %rsi
movq %rbx, %rdi
callq 0x1447d
movq %rax, 0x30(%r12)
testq %rax, %rax
je 0x14b73
movq %rax, %r13
movl 0x4(%rax), %eax
cmpl $0x6, %eax
ja 0x14b47
movl $0x43, %ecx
btl %eax, %ecx
jb 0x14b73
leaq 0x30(%r12), %r14
leaq 0x4c65d(%rip), %rdi     # 0x611b0
movl $0x10, %esi
callq 0x2fd3c
movq %r14, 0x8(%rax)
movq %r12, (%rax)
addq $0x8, %r13
movq %r13, %rdi
movq %rax, %rsi
callq 0x2285b
movq 0x18(%r15), %rsi
movq %rbx, %rdi
callq 0x1447d
movq %rax, 0x38(%r12)
testq %rax, %rax
je 0x14bca
movq %rax, %r13
movl 0x4(%rax), %eax
cmpl $0x6, %eax
ja 0x14b9e
movl $0x43, %ecx
btl %eax, %ecx
jb 0x14bca
leaq 0x38(%r12), %r14
leaq 0x4c606(%rip), %rdi     # 0x611b0
movl $0x10, %esi
callq 0x2fd3c
movq %r14, 0x8(%rax)
movq %r12, (%rax)
addq $0x8, %r13
movq %r13, %rdi
movq %rax, %rsi
callq 0x2285b
movq 0x20(%r15), %rsi
movq %rbx, %rdi
callq 0x1447d
movq %rax, 0x40(%r12)
testq %rax, %rax
je 0x14c23
movq %rax, %r15
movl 0x4(%rax), %eax
cmpl $0x6, %eax
ja 0x14bf5
movl $0x43, %ecx
btl %eax, %ecx
jb 0x14c23
movq %r12, %r14
addq $0x40, %r14
leaq 0x4c5ad(%rip), %rdi     # 0x611b0
movl $0x10, %esi
callq 0x2fd3c
movq %r14, 0x8(%rax)
movq %r12, (%rax)
addq $0x8, %r15
movq %r15, %rdi
movq %rax, %rsi
callq 0x2285b
movq 0x20(%rbx), %rdi
testq %rdi, %rdi
movl 0xc(%rsp), %r13d
jne 0x14e70
jmp 0x1535f
movl %r13d, 0xc(%rsp)
movq %rbp, 0x18(%rsp)
movq 0x20(%r15), %r13
movq 0x28(%r15), %r12
movq 0x30(%r15), %rcx
movq %rcx, 0x30(%rsp)
movq 0x38(%r15), %rcx
movq %rcx, 0x38(%rsp)
movq 0x40(%r15), %rcx
movq %rcx, 0x40(%rsp)
movq 0x48(%r15), %rax
movq %rax, 0x28(%rsp)
testq %r13, %r13
je 0x14cb6
movq %r13, %r14
movzwl (%r14), %eax
testb %al, %al
jle 0x14cad
xorl %ebp, %ebp
movq 0x18(%r14,%rbp,8), %rsi
movzwl %ax, %eax
cmpl $0x100, %eax            # imm = 0x100
jb 0x14c96
testq %rsi, %rsi
je 0x14c9e
movq %rbx, %rdi
callq 0x14815
incq %rbp
movl (%r14), %eax
movsbq %al, %rcx
cmpq %rcx, %rbp
jl 0x14c82
movq 0x10(%r14), %r14
cmpq %r13, %r14
jne 0x14c78
movq 0x10(%rsp), %rbp
movq 0x20(%rbp), %rdi
leaq 0x8(%rbx), %rsi
callq 0x22bbe
movq %rbx, %rdi
movq %r12, %rsi
callq 0x14a3c
movq 0x4(%rbp), %r14
xorl %edi, %edi
callq 0x30217
movq %rax, %r12
movq %r14, (%rax)
movq %rbx, 0x10(%rax)
movl 0x53082(%rip), %eax     # 0x67d70
leal 0x1(%rax), %ecx
movl %ecx, 0x53079(%rip)     # 0x67d70
movl %eax, 0x38(%r12)
movq 0x4(%rbp), %r14
xorl %edi, %edi
callq 0x30217
movq %rax, %r13
movq %r14, (%rax)
movq %rbx, 0x10(%rax)
movl 0x53059(%rip), %eax     # 0x67d70
leal 0x1(%rax), %ecx
movl %ecx, 0x53050(%rip)     # 0x67d70
movl %eax, 0x38(%r13)
movq 0x4(%rbp), %r14
xorl %edi, %edi
callq 0x30217
movq %rax, %rbp
movq %r14, (%rax)
movq %rbx, 0x10(%rax)
movl 0x53031(%rip), %eax     # 0x67d70
leal 0x1(%rax), %ecx
movl %ecx, 0x53028(%rip)     # 0x67d70
movl %eax, 0x38(%rbp)
movq %r12, %r15
cmpq $0x0, 0x28(%rsp)
jne 0x14d8d
movq 0x10(%rsp), %rax
movq 0x4(%rax), %r14
xorl %edi, %edi
callq 0x30217
movq %rax, %rsi
movq %r14, (%rax)
movq %rbx, 0x10(%rax)
movl 0x52ffa(%rip), %eax     # 0x67d70
leal 0x1(%rax), %ecx
movl %ecx, 0x52ff1(%rip)     # 0x67d70
movl %eax, 0x38(%rsi)
movq %rbx, %rdi
movq %rsi, %r15
callq 0x1401d
movq 0x30(%rsp), %rsi
testq %rsi, %rsi
je 0x14da5
movq %rbx, %rdi
movq %r12, %rdx
movq %rbp, %rcx
callq 0x1703a
movq 0x10(%rsp), %r14
movq 0x4(%r14), %rdx
movq 0x18(%r14), %rdi
movq %r13, %rsi
callq 0x174e4
movq 0x4(%r14), %rdx
movq 0x10(%r14), %rdi
movq %rbp, %rsi
callq 0x174e4
movq %rbx, %rdi
movq %r12, %rsi
callq 0x1401d
movq %rbx, %rdi
movq 0x38(%rsp), %rsi
callq 0x14a3c
movq %rbx, %rdi
movq %r13, %rsi
callq 0x143fb
movq %rbx, %rdi
movq %r13, %rsi
callq 0x1401d
movq %rbx, %rdi
movq 0x40(%rsp), %rsi
callq 0x14a3c
movq 0x28(%rsp), %rsi
movq %rbx, %rdi
testq %rsi, %rsi
je 0x15330
movq %r15, %rdx
movq %rbp, %rcx
callq 0x1703a
jmp 0x15338
xorl %edi, %edi
callq 0x302dd
movq %rax, %r12
movl $0x80, %eax
andl (%r12), %eax
orl $0x4f, %eax
movl %eax, (%r12)
movq 0x52f21(%rip), %rax     # 0x67d68
movq %rax, 0x10(%r12)
movq 0x10(%r15), %rdi
callq 0xf23d
movl %eax, 0x30(%r12)
movq 0x18(%r15), %rax
movq %rax, 0x38(%r12)
movq 0x20(%rbx), %rdi
testq %rdi, %rdi
je 0x1535f
movq %rdi, 0x8(%r12)
addq $0x28, %rdi
movq %r12, %rsi
jmp 0x152f1
movl %r13d, 0xc(%rsp)
movq %r15, %r12
movq %rbp, %r15
movq 0x10(%r12), %rbp
xorl %edi, %edi
callq 0x30217
movq %rax, %r13
movq %r14, (%rax)
movq %rbx, 0x10(%rax)
movl 0x52ec8(%rip), %eax     # 0x67d70
leal 0x1(%rax), %ecx
movl %ecx, 0x52ebf(%rip)     # 0x67d70
movl %eax, 0x38(%r13)
movq 0x4(%r12), %r14
xorl %edi, %edi
callq 0x30217
movq %rax, %r12
movq %r14, (%rax)
movq %rbx, 0x10(%rax)
movl 0x52e9f(%rip), %eax     # 0x67d70
leal 0x1(%rax), %ecx
movl %ecx, 0x52e96(%rip)     # 0x67d70
movl %eax, 0x38(%r12)
testq %rbp, %rbp
je 0x14f00
movq 0x10(%rbp), %rax
testq %rax, %rax
sete %cl
cmpq 0x4c05b(%rip), %rax     # 0x60f50
sete %al
orb %cl, %al
je 0x1537b
movq %r15, %rbp
movl 0xc(%rsp), %r13d
jmp 0x1535f
movl %r13d, %r14d
movq 0x10(%r15), %r13
movq 0x18(%r15), %r12
movq %rbx, %rdi
movq %r12, %rsi
callq 0x16f7e
movq %rax, %r15
movq %rbx, %rdi
movq %r13, %rsi
callq 0x1447d
cmpq $0x0, 0x20(%rbx)
je 0x14f61
cmpb $0x3, (%r12)
movq %r12, %rcx
jne 0x14f47
movq 0x60(%r12), %rcx
cmpq 0x4bfea(%rip), %rcx     # 0x60f38
je 0x14f61
movq %rbx, %rdi
movq %r15, %rsi
movq %r12, %rdx
movq %rax, %rcx
callq 0x1729e
movq %rbx, %rdi
movq %r15, %rsi
callq 0x143fb
movl %r14d, %r13d
jmp 0x1535f
movq 0x10(%r15), %rdi
leaq 0x8(%rbx), %rsi
callq 0x22bbe
movq 0x10(%r15), %r14
testq %r14, %r14
je 0x1535f
movq %r14, %r15
movzwl (%r15), %eax
testb %al, %al
jle 0x14fc7
xorl %r12d, %r12d
movq 0x18(%r15,%r12,8), %rsi
movzwl %ax, %eax
cmpl $0x100, %eax            # imm = 0x100
jb 0x14fb0
testq %rsi, %rsi
je 0x14fb8
movq %rbx, %rdi
callq 0x14815
incq %r12
movl (%r15), %eax
movsbq %al, %rcx
cmpq %rcx, %r12
jl 0x14f9c
movq 0x10(%r15), %r15
cmpq %r14, %r15
jne 0x14f91
jmp 0x1535f
xorl %edi, %edi
callq 0x30217
movq %r14, (%rax)
movq %rbx, 0x10(%rax)
movl 0x52d87(%rip), %edx     # 0x67d70
leal 0x1(%rdx), %ecx
movl %ecx, 0x52d7e(%rip)     # 0x67d70
movl %edx, 0x38(%rax)
movq 0x10(%r15), %r12
testq %r12, %r12
je 0x1535f
cmpq $0x0, 0x10(%r12)
je 0x1535f
movq %rax, 0x50(%rsp)
movl %r13d, 0xc(%rsp)
movq %rbx, %rdi
movq %r12, %rsi
callq 0x1447d
movq %rax, %r13
movq 0x20(%rbx), %rax
movq %rax, 0x28(%rsp)
testq %rax, %rax
jne 0x15068
movq 0x4(%r15), %r14
xorl %edi, %edi
callq 0x30217
movq %rax, %rsi
movq %r14, (%rax)
movq %rbx, 0x10(%rax)
movl 0x52d21(%rip), %eax     # 0x67d70
leal 0x1(%rax), %ecx
movl %ecx, 0x52d18(%rip)     # 0x67d70
movl %eax, 0x38(%rsi)
movq %rbx, %rdi
movq %rsi, 0x28(%rsp)
callq 0x1401d
movq 0x10(%r12), %rsi
movl $0x5, %edi
callq 0x13602
movq %rax, %r14
leaq 0x30(%rax), %rdx
movq %rax, %rdi
movq %r13, %rsi
callq 0x13651
movq 0x20(%rbx), %rdi
testq %rdi, %rdi
je 0x150a2
movq %rdi, 0x8(%r14)
addq $0x28, %rdi
movq %r14, %rsi
callq 0x2285b
cmpq $0x0, 0x20(%rbx)
je 0x150b1
movq $0x0, 0x20(%rbx)
movq %rbp, 0x18(%rsp)
movq 0x28(%r15), %rax
movq 0x98(%rax), %rcx
testq %rcx, %rcx
movq %r14, 0x48(%rsp)
je 0x15433
leaq 0x38(%r14), %rax
movq %rax, 0x40(%rsp)
movq 0x28(%rsp), %rax
addq $0x20, %rax
movq %rax, 0x38(%rsp)
movq $0x0, 0x20(%rsp)
movq %rcx, %rbp
movq %rcx, 0x30(%rsp)
movzwl (%rbp), %eax
testb %al, %al
jle 0x151c4
xorl %r13d, %r13d
movq 0x18(%rbp,%r13,8), %rsi
movzwl %ax, %eax
cmpl $0x100, %eax            # imm = 0x100
jb 0x1511e
testq %rsi, %rsi
je 0x151b1
movq 0x90(%rsi), %r14
movq %rbx, %rdi
callq 0x16f7e
movq %rax, %r12
movq 0x10(%r14), %rcx
testq %rcx, %rcx
je 0x151ac
cmpb $0x1, (%rcx)
jne 0x151b1
movq 0x18(%r14), %rax
movq 0x20(%rcx), %r15
movq %r15, %r14
testq %rax, %rax
je 0x1515a
cmpb $0x1, (%rax)
movq %r15, %r14
jne 0x1515a
movq 0x20(%rax), %r14
xorl %edi, %edi
callq 0x30340
movq %r12, (%rax)
cmpq %r14, %r15
movq %r14, %rcx
cmovlq %r15, %rcx
cmovgq %r15, %r14
movq %rcx, 0x8(%rax)
movq %r14, 0x10(%rax)
movq 0x40(%rsp), %rdi
movq %rax, %rsi
callq 0x2285b
movq %r12, %rdi
addq $0x18, %rdi
movq 0x28(%rsp), %rsi
callq 0x2285b
movq 0x38(%rsp), %rdi
movq %r12, %rsi
callq 0x2285b
movq 0x10(%rsp), %r15
jmp 0x151b1
movq %r12, 0x20(%rsp)
incq %r13
movl (%rbp), %eax
movsbq %al, %rcx
cmpq %rcx, %r13
jl 0x15106
movq 0x10(%rbp), %rbp
movq 0x30(%rsp), %rcx
cmpq %rcx, %rbp
jne 0x150f7
jmp 0x1543c
movq 0x10(%r15), %rsi
movq %rbx, %rdi
callq 0x1447d
jmp 0x1535a
cmpq $0x0, 0x20(%r15)
je 0x1534f
movl %r13d, 0xc(%rsp)
movq %r15, %r14
movq %rbp, 0x18(%rsp)
xorl %edi, %edi
callq 0x302dd
movl $0x80, %ecx
andl (%rax), %ecx
orl $0x4b, %ecx
movl %ecx, (%rax)
movq 0x52b4a(%rip), %rcx     # 0x67d68
movq %rax, %r15
movq %rcx, 0x10(%rax)
movq 0x28(%r14), %r14
testq %r14, %r14
je 0x15298
movq 0x10(%r14), %rdi
leaq 0x8(%rbx), %rsi
callq 0x22bbe
movq 0x10(%r14), %r13
testq %r13, %r13
je 0x15298
movq %r15, %r14
addq $0x38, %r14
movq %r13, %rbp
movzwl (%rbp), %eax
testb %al, %al
jle 0x1528f
xorl %r12d, %r12d
movq 0x18(%rbp,%r12,8), %rsi
movzwl %ax, %eax
cmpl $0x100, %eax            # imm = 0x100
jb 0x1526d
testq %rsi, %rsi
je 0x15280
movq %rbx, %rdi
callq 0x14815
movq %r14, %rdi
movq %rax, %rsi
callq 0x2285b
incq %r12
movl (%rbp), %eax
movsbq %al, %rcx
cmpq %rcx, %r12
jl 0x15259
movq 0x10(%rbp), %rbp
cmpq %r13, %rbp
jne 0x1524e
movq %rbx, %rdi
movq 0x10(%rsp), %r14
movq %r14, %rsi
callq 0x1434d
movq %rax, 0x20(%rsp)
movq %rax, 0x20(%r15)
movq 0x20(%r14), %rsi
movq %rbx, %rdi
callq 0x16810
movq %rax, 0x30(%r15)
movq 0x20(%rbx), %rax
cmpq $0x0, 0x28(%rax)
jne 0x152d3
movq 0x4(%r14), %rcx
movq %rcx, (%rax)
movq 0x20(%rbx), %rdi
testq %rdi, %rdi
movq 0x18(%rsp), %rbp
movl 0xc(%rsp), %r13d
je 0x1535f
movq %rdi, 0x8(%r15)
addq $0x28, %rdi
movq %r15, %rsi
callq 0x2285b
jmp 0x1535f
movq %rbx, %rdi
movq %r15, %rsi
callq 0x1407d
jmp 0x1535f
movq 0x20(%rbx), %r12
testq %r12, %r12
je 0x1535f
movq 0x10(%r15), %rsi
testq %rsi, %rsi
je 0x15414
movq %rbx, %rdi
callq 0x16f7e
movq %rbx, %rdi
movq %rax, %rsi
callq 0x143fb
jmp 0x1535f
movq %r15, %rsi
callq 0x143fb
movl 0xc(%rsp), %r13d
movq %rbx, %rdi
movq %rbp, %rsi
callq 0x1401d
movq 0x18(%rsp), %rbp
jmp 0x1535f
movq %rbx, %rdi
movq %r15, %rsi
callq 0x16fc7
movq %rax, 0x20(%rsp)
testb $0x1, %r13b
movq 0x20(%rsp), %rax
cmovneq %rbp, %rax
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rbx, %rdi
movq %rbp, %rsi
movq %r13, %rdx
movq %r12, %rcx
callq 0x1703a
movq %rbx, %rdi
movq %r13, %rsi
callq 0x1401d
movq 0x10(%rsp), %rbp
movq 0x18(%rbp), %rsi
movq %rbx, %rdi
callq 0x14a3c
cmpq $0x0, 0x20(%rbp)
je 0x153fc
movq 0x4(%rbp), %r14
xorl %edi, %edi
callq 0x30217
movq %rax, %r13
movq %r14, (%rax)
movq %rbx, 0x10(%rax)
movl 0x529a6(%rip), %eax     # 0x67d70
leal 0x1(%rax), %ecx
movl %ecx, 0x5299d(%rip)     # 0x67d70
movl %eax, 0x38(%r13)
movq %rbx, %rdi
movq %r13, %rsi
callq 0x143fb
movq %rbx, %rdi
movq %r12, %rsi
callq 0x1401d
movq 0x20(%rbp), %rsi
movq %rbx, %rdi
callq 0x14a3c
movq %r13, %r12
movq %r15, %rbp
movl 0xc(%rsp), %r13d
movq %rbx, %rdi
movq %r12, %rsi
callq 0x1401d
jmp 0x1535f
movq 0x18(%r15), %rsi
testq %rsi, %rsi
je 0x1535f
cmpb $0x17, (%rsi)
jne 0x154e8
movq 0x20(%rsi), %rsi
jmp 0x1531b
movq $0x0, 0x20(%rsp)
movq 0x4(%r15), %rdx
movq 0x20(%r15), %rdi
movq 0x50(%rsp), %r14
movq %r14, %rsi
callq 0x174e4
movq 0x18(%r15), %rsi
movq %rbx, %rdi
callq 0x14a3c
movq %rbx, %rdi
movq %r14, %rsi
callq 0x1401d
movq 0x20(%rsp), %rax
testq %rax, %rax
cmovneq %rax, %r14
xorl %edi, %edi
callq 0x30340
movq %r14, (%rax)
movq $0x1, 0x8(%rax)
movq $0x0, 0x10(%rax)
movq 0x48(%rsp), %r15
addq $0x38, %r15
movq %r15, %rdi
movq %rax, %rsi
callq 0x2285b
leaq 0x18(%r14), %rdi
movq 0x28(%rsp), %rbx
movq %rbx, %rsi
callq 0x2285b
addq $0x20, %rbx
movq %rbx, %rdi
movq %r14, %rsi
callq 0x2285b
leaq 0x205d(%rip), %rsi      # 0x17526
movq %r15, %rdi
callq 0x2a384
leaq 0x514f8(%rip), %rax     # 0x669d0
testb $0x1, 0xc(%rsp)
cmovneq 0x18(%rsp), %rax
jmp 0x1536c
movl %r13d, 0xc(%rsp)
movq %rbp, 0x18(%rsp)
movq %rbx, %rdi
callq 0x1447d
movq %rax, %rbp
xorl %edi, %edi
callq 0x302dd
movq %rax, %r13
movl $0x80, %eax
andl (%r13), %eax
orl $0x7, %eax
movl %eax, (%r13)
movq 0x5284a(%rip), %rax     # 0x67d68
movq %rax, 0x10(%r13)
leaq 0x30(%r13), %rdx
movq %r13, %rdi
movq %rbp, %rsi
callq 0x13651
movq 0x20(%rbx), %rdi
testq %rdi, %rdi
je 0x1554a
movq %rdi, 0x8(%r13)
addq $0x28, %rdi
movq %r13, %rsi
callq 0x2285b
movq 0x20(%r15), %rax
movq %rax, 0x10(%rsp)
testq %rax, %rax
je 0x155ee
addq $0x38, %r13
addq $0x20, %r12
movq 0x10(%rsp), %rbp
movzwl (%rbp), %eax
testb %al, %al
jle 0x155df
xorl %r14d, %r14d
movq 0x18(%rbp,%r14,8), %rsi
movzwl %ax, %eax
cmpl $0x100, %eax            # imm = 0x100
jb 0x15588
testq %rsi, %rsi
je 0x155d0
movq %rbx, %rdi
callq 0x16f7e
movq %rax, %r15
xorl %edi, %edi
callq 0x30340
movq %r15, (%rax)
movq $0x1, 0x8(%rax)
movq $0x0, 0x10(%rax)
movq %r13, %rdi
movq %rax, %rsi
callq 0x2285b
leaq 0x18(%r15), %rdi
movq 0x20(%rbx), %rsi
callq 0x2285b
movq %r12, %rdi
movq %r15, %rsi
callq 0x2285b
incq %r14
movl (%rbp), %eax
movsbq %al, %rcx
cmpq %rcx, %r14
jl 0x15574
movq 0x10(%rbp), %rbp
cmpq 0x10(%rsp), %rbp
jne 0x15569
cmpq $0x0, 0x20(%rbx)
je 0x155fd
movq $0x0, 0x20(%rbx)
movq 0x18(%rsp), %rbp
jmp 0x14f03