// File: /workspace/github_c_makefile_star2_O2/markdryan[P]subtilis/frontend/builtins_ir.c
// Function: subtilis_builtins_ir_fp_to_str
void subtilis_builtins_ir_fp_to_str(subtilis_parser_t *p,
				    subtilis_ir_section_t *current,
				    subtilis_error_t *err)
{
	subtilis_exp_t *sizee;
	subtilis_ir_operand_t op0;
	subtilis_ir_operand_t op1;
	subtilis_ir_operand_t op2;
	subtilis_ir_operand_t op1i;
	subtilis_ir_operand_t digit;
	subtilis_ir_operand_t number;
	subtilis_ir_operand_t cond;
	subtilis_ir_operand_t counter;
	subtilis_ir_operand_t loop_label;
	subtilis_ir_operand_t end_loop_label;
	subtilis_ir_operand_t first_not_zero_label;
	subtilis_ir_operand_t second_not_zero_label;
	subtilis_ir_operand_t digit_zero_label;
	subtilis_ir_operand_t digit_not_zero_label;
	subtilis_ir_operand_t end_label;
	subtilis_ir_section_t *old_current;
	subtilis_ir_operand_t fp_left;
	subtilis_symbol_table_t *old_st;
	subtilis_ir_operand_t arg_val;
	subtilis_ir_operand_t arg_buf;
	subtilis_ir_operand_t last_non_zero;
	subtilis_ir_operand_t buf_start;
	size_t size_reg;

	/*
	 * This is a bit nasty.  The expression functions take a parser
	 * and not a section.  As we don't want to add to the current section
	 * here we need to temporarily replace the current section.  We should
	 * probably update the expression functions to take an explicit section.
	 *
	 * Note this function has an additional problem as it calls
	 * subtilis_type_if_print which reserves stack space for a local buffer,
	 * so we also need to swap out the symbol table.
	 *
	 * There really needs to be some generic set up and tear down code for
	 * defining builtins like this.
	 */

	/*
	 * TODO.  This doesn't really work properly for big or small numbers.
	 */

	old_current = p->current;
	p->current = current;
	old_st = p->local_st;
	p->local_st = subtilis_symbol_table_new(err);
	if (err->type != SUBTILIS_ERROR_OK)
		goto cleanup;

	/*
	 * arg_buf is expected to be >= 22 bytes.
	 */

	arg_buf.reg = SUBTILIS_IR_REG_TEMP_START;
	arg_val.reg = 0;

	loop_label.label = subtilis_ir_section_new_label(current);
	end_label.label = current->end_label;
	end_loop_label.label = subtilis_ir_section_new_label(current);
	first_not_zero_label.label = subtilis_ir_section_new_label(current);
	second_not_zero_label.label = subtilis_ir_section_new_label(current);
	digit_not_zero_label.label = subtilis_ir_section_new_label(current);
	digit_zero_label.label = subtilis_ir_section_new_label(current);

	buf_start.reg = subtilis_ir_section_add_instr2(
	    current, SUBTILIS_OP_INSTR_MOV, arg_buf, err);
	if (err->type != SUBTILIS_ERROR_OK)
		goto cleanup;

	op1i.reg = subtilis_ir_section_add_instr2(
	    current, SUBTILIS_OP_INSTR_MOV_FP_I32, arg_val, err);
	if (err->type != SUBTILIS_ERROR_OK)
		goto cleanup;

	if (p->backend.caps & SUBTILIS_BACKEND_HAVE_I32_TO_DEC) {
		size_reg = subtilis_ir_section_add_instr(
		    p->current, SUBTILIS_OP_INSTR_I32TODEC, op1i, arg_buf, err);
		if (err->type != SUBTILIS_ERROR_OK)
			goto cleanup;
	} else {
		sizee = subtilis_builtin_ir_call_dec_to_str(p, op1i.reg,
							    arg_buf.reg, err);
		if (err->type != SUBTILIS_ERROR_OK)
			goto cleanup;
		size_reg = sizee->exp.ir_op.reg;
		subtilis_exp_delete(sizee);
	}

	op2.reg = size_reg;
	op1.reg = subtilis_ir_section_add_instr(
	    current, SUBTILIS_OP_INSTR_ADD_I32, arg_buf, op2, err);
	if (err->type != SUBTILIS_ERROR_OK)
		goto cleanup;

	subtilis_ir_section_add_instr_no_reg2(current, SUBTILIS_OP_INSTR_MOV,
					      arg_buf, op1, err);
	if (err->type != SUBTILIS_ERROR_OK)
		goto cleanup;

	last_non_zero.reg = subtilis_ir_section_add_instr2(
	    current, SUBTILIS_OP_INSTR_MOV, arg_buf, err);
	if (err->type != SUBTILIS_ERROR_OK)
		goto cleanup;

	op1.reg = subtilis_ir_section_add_instr2(
	    current, SUBTILIS_OP_INSTR_ABSR, arg_val, err);
	if (err->type != SUBTILIS_ERROR_OK)
		goto cleanup;

	op1i.reg = subtilis_ir_section_add_instr2(
	    current, SUBTILIS_OP_INSTR_MOV_FP_I32, op1, err);
	if (err->type != SUBTILIS_ERROR_OK)
		goto cleanup;

	op2.reg = subtilis_ir_section_add_instr2(
	    current, SUBTILIS_OP_INSTR_MOV_I32_FP, op1i, err);
	if (err->type != SUBTILIS_ERROR_OK)
		goto cleanup;

	number.reg = subtilis_ir_section_add_instr(
	    current, SUBTILIS_OP_INSTR_SUB_REAL, op1, op2, err);
	if (err->type != SUBTILIS_ERROR_OK)
		goto cleanup;

	op2.real = 0.0;
	cond.reg = subtilis_ir_section_add_instr(
	    current, SUBTILIS_OP_INSTR_NEQI_REAL, number, op2, err);
	if (err->type != SUBTILIS_ERROR_OK)
		goto cleanup;

	subtilis_ir_section_add_instr_reg(current, SUBTILIS_OP_INSTR_JMPC, cond,
					  first_not_zero_label, end_loop_label,
					  err);
	if (err->type != SUBTILIS_ERROR_OK)
		goto cleanup;

	subtilis_ir_section_add_label(current, first_not_zero_label.label, err);
	if (err->type != SUBTILIS_ERROR_OK)
		goto cleanup;

	op2.integer = '.';
	op1i.reg = subtilis_ir_section_add_instr2(
	    current, SUBTILIS_OP_INSTR_MOVI_I32, op2, err);
	if (err->type != SUBTILIS_ERROR_OK)
		goto cleanup;

	op2.integer = 0;
	subtilis_ir_section_add_instr_reg(current, SUBTILIS_OP_INSTR_STOREO_I8,
					  op1i, arg_buf, op2, err);
	if (err->type != SUBTILIS_ERROR_OK)
		goto cleanup;

	op1.integer = 1;
	subtilis_ir_section_add_instr_reg(current, SUBTILIS_OP_INSTR_ADDI_I32,
					  arg_buf, arg_buf, op1, err);
	if (err->type != SUBTILIS_ERROR_OK)
		goto cleanup;

	op2.integer = 10;
	counter.reg = subtilis_ir_section_add_instr2(
	    current, SUBTILIS_OP_INSTR_MOVI_I32, op2, err);
	if (err->type != SUBTILIS_ERROR_OK)
		goto cleanup;

	subtilis_ir_section_add_label(current, loop_label.label, err);
	if (err->type != SUBTILIS_ERROR_OK)
		goto cleanup;

	op2.real = 10.0;
	op1.reg = subtilis_ir_section_add_instr(
	    current, SUBTILIS_OP_INSTR_MULI_REAL, number, op2, err);
	if (err->type != SUBTILIS_ERROR_OK)
		goto cleanup;

	digit.reg = subtilis_ir_section_add_instr2(
	    current, SUBTILIS_OP_INSTR_MOV_FP_I32, op1, err);
	if (err->type != SUBTILIS_ERROR_OK)
		goto cleanup;

	op2.reg = subtilis_ir_section_add_instr2(
	    current, SUBTILIS_OP_INSTR_MOV_I32_FP, digit, err);
	if (err->type != SUBTILIS_ERROR_OK)
		goto cleanup;

	fp_left.reg = subtilis_ir_section_add_instr(
	    current, SUBTILIS_OP_INSTR_SUB_REAL, op1, op2, err);
	if (err->type != SUBTILIS_ERROR_OK)
		goto cleanup;

	/* TODO:
	 * We can't use the subtraction operation to write directly into the
	 * destinationr register as the register allocator cannot currently
	 * handle the case when the destination register  is the same as one
	 * of the operands.  In the long run the move gets removed by the
	 * peephole optimizer, but we shouldn't need to add it in the first
	 * place.  This needs to be fixed.
	 */

	subtilis_ir_section_add_instr_no_reg2(current, SUBTILIS_OP_INSTR_MOVFP,
					      number, fp_left, err);
	if (err->type != SUBTILIS_ERROR_OK)
		goto cleanup;

	op2.integer = '0';
	op1i.reg = subtilis_ir_section_add_instr(
	    current, SUBTILIS_OP_INSTR_ADDI_I32, digit, op2, err);
	if (err->type != SUBTILIS_ERROR_OK)
		goto cleanup;

	op2.integer = 0;
	subtilis_ir_section_add_instr_reg(current, SUBTILIS_OP_INSTR_STOREO_I8,
					  op1i, arg_buf, op2, err);
	if (err->type != SUBTILIS_ERROR_OK)
		goto cleanup;

	op1.integer = 1;
	op0.reg = subtilis_ir_section_add_instr(
	    current, SUBTILIS_OP_INSTR_ADDI_I32, arg_buf, op1, err);
	if (err->type != SUBTILIS_ERROR_OK)
		goto cleanup;

	subtilis_ir_section_add_instr_reg(current, SUBTILIS_OP_INSTR_JMPC,
					  digit, digit_not_zero_label,
					  digit_zero_label, err);
	if (err->type != SUBTILIS_ERROR_OK)
		goto cleanup;

	subtilis_ir_section_add_label(current, digit_not_zero_label.label, err);
	if (err->type != SUBTILIS_ERROR_OK)
		goto cleanup;

	subtilis_ir_section_add_instr_no_reg2(current, SUBTILIS_OP_INSTR_MOV,
					      last_non_zero, op0, err);
	if (err->type != SUBTILIS_ERROR_OK)
		goto cleanup;

	subtilis_ir_section_add_label(current, digit_zero_label.label, err);
	if (err->type != SUBTILIS_ERROR_OK)
		goto cleanup;

	subtilis_ir_section_add_instr_no_reg2(current, SUBTILIS_OP_INSTR_MOV,
					      arg_buf, op0, err);
	if (err->type != SUBTILIS_ERROR_OK)
		goto cleanup;

	op2.real = 0.0;
	cond.reg = subtilis_ir_section_add_instr(
	    current, SUBTILIS_OP_INSTR_NEQI_REAL, fp_left, op2, err);
	if (err->type != SUBTILIS_ERROR_OK)
		goto cleanup;

	subtilis_ir_section_add_instr_reg(current, SUBTILIS_OP_INSTR_JMPC, cond,
					  second_not_zero_label, end_loop_label,
					  err);
	if (err->type != SUBTILIS_ERROR_OK)
		goto cleanup;

	subtilis_ir_section_add_label(current, second_not_zero_label.label,
				      err);
	if (err->type != SUBTILIS_ERROR_OK)
		goto cleanup;

	op2.integer = 1;
	op1i.reg = subtilis_ir_section_add_instr(
	    current, SUBTILIS_OP_INSTR_SUBI_I32, counter, op2, err);
	if (err->type != SUBTILIS_ERROR_OK)
		goto cleanup;

	subtilis_ir_section_add_instr_no_reg2(current, SUBTILIS_OP_INSTR_MOV,
					      counter, op1i, err);
	if (err->type != SUBTILIS_ERROR_OK)
		goto cleanup;

	op2.integer = 0;
	cond.reg = subtilis_ir_section_add_instr(
	    current, SUBTILIS_OP_INSTR_EQI_I32, counter, op2, err);
	if (err->type != SUBTILIS_ERROR_OK)
		goto cleanup;

	subtilis_ir_section_add_instr_reg(current, SUBTILIS_OP_INSTR_JMPC_NF,
					  cond, end_loop_label, loop_label,
					  err);
	if (err->type != SUBTILIS_ERROR_OK)
		goto cleanup;

	subtilis_ir_section_add_label(current, end_loop_label.label, err);
	if (err->type != SUBTILIS_ERROR_OK)
		goto cleanup;

	op0.reg = current->ret_reg;
	subtilis_ir_section_add_instr_reg(current, SUBTILIS_OP_INSTR_SUB_I32,
					  op0, last_non_zero, buf_start, err);
	if (err->type != SUBTILIS_ERROR_OK)
		goto cleanup;

	subtilis_ir_section_add_label(current, end_label.label, err);
	if (err->type != SUBTILIS_ERROR_OK)
		goto cleanup;

	subtilis_ir_section_add_instr_no_reg(current, SUBTILIS_OP_INSTR_RET_I32,
					     op0, err);
	if (err->type != SUBTILIS_ERROR_OK)
		goto cleanup;

	current->locals = p->local_st->max_allocated;

cleanup:

	subtilis_symbol_table_delete(p->local_st);
	p->local_st = old_st;

	p->current = old_current;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x78, %rsp
movq %rdx, %r15
movq %rsi, %r14
movq %rdi, %rbx
movq 0x48(%rdi), %r12
movq 0x68(%rdi), %rbp
movq %rsi, 0x48(%rdi)
movq %rdx, %rdi
callq 0x2ca24
movq %rax, 0x68(%rbx)
cmpl $0x0, (%r15)
jne 0x2fb93
movq %r14, %rdi
callq 0x2b774
movq %rax, 0x60(%rsp)
movq 0x98(%r14), %rax
movq %rax, 0x70(%rsp)
movq %r14, %rdi
callq 0x2b774
movq %rax, 0x20(%rsp)
movq %r14, %rdi
callq 0x2b774
movq %rax, %r13
movq %r14, %rdi
callq 0x2b774
movq %rax, 0x58(%rsp)
movq %r14, %rdi
callq 0x2b774
movq %rax, 0x48(%rsp)
movq %r14, %rdi
callq 0x2b774
movq %rax, 0x50(%rsp)
pushq $0x1d
popq %rsi
pushq $0x4
popq %rdx
movq %r14, %rdi
movq %r15, %rcx
callq 0x2a981
movq %rax, 0x68(%rsp)
cmpl $0x0, (%r15)
jne 0x2fb93
pushq $0x52
popq %rsi
movq %r14, %rdi
xorl %edx, %edx
movq %r15, %rcx
callq 0x2a981
cmpl $0x0, (%r15)
je 0x2fbb3
movq 0x68(%rbx), %rdi
callq 0x2cac8
movq %rbp, 0x68(%rbx)
movq %r12, 0x48(%rbx)
addq $0x78, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
testb $0x4, 0x8(%rbx)
jne 0x2fbeb
pushq $0x4
popq %rdx
movq %rbx, %rdi
movq %rax, %rsi
movq %r15, %rcx
callq 0x3011f
cmpl $0x0, (%r15)
jne 0x2fb93
movq 0x148(%rax), %rcx
movq %rcx, 0x18(%rsp)
movq %rax, %rdi
callq 0x29d88
movq 0x18(%rsp), %rax
jmp 0x2fc08
movq 0x48(%rbx), %rdi
pushq $0x4
popq %rcx
movl $0x84, %esi
movq %rax, %rdx
movq %r15, %r8
callq 0x2a819
cmpl $0x0, (%r15)
jne 0x2fb93
pushq $0x4
popq %rdx
movq %r14, %rdi
xorl %esi, %esi
movq %rax, %rcx
movq %r15, %r8
callq 0x2a819
cmpl $0x0, (%r15)
jne 0x2fb93
pushq $0x1d
popq %rsi
pushq $0x4
popq %rdx
movq %r14, %rdi
movq %rax, %rcx
movq %r15, %r8
callq 0x2a9a4
cmpl $0x0, (%r15)
jne 0x2fb93
pushq $0x1d
popq %rsi
pushq $0x4
popq %rdx
movq %r14, %rdi
movq %r15, %rcx
callq 0x2a981
movq %rax, 0x18(%rsp)
cmpl $0x0, (%r15)
jne 0x2fb93
pushq $0x69
popq %rsi
movq %r14, %rdi
xorl %edx, %edx
movq %r15, %rcx
callq 0x2a981
cmpl $0x0, (%r15)
jne 0x2fb93
pushq $0x52
popq %rsi
movq %r14, %rdi
movq %rax, %rdx
movq %r15, %rcx
movq %rax, 0x8(%rsp)
callq 0x2a981
cmpl $0x0, (%r15)
jne 0x2fb93
pushq $0x51
popq %rsi
movq %r14, %rdi
movq %rax, %rdx
movq %r15, %rcx
callq 0x2a981
movq 0x8(%rsp), %rdx
cmpl $0x0, (%r15)
jne 0x2fb93
pushq $0x3
popq %rsi
movq %r14, %rdi
movq %rax, %rcx
movq %r15, %r8
callq 0x2a819
movq %rax, 0x38(%rsp)
cmpl $0x0, (%r15)
jne 0x2fb93
pushq $0x32
popq %rsi
movq %r14, %rdi
movq 0x38(%rsp), %rdx
xorl %ecx, %ecx
movq %r15, %r8
callq 0x2a819
cmpl $0x0, (%r15)
jne 0x2fb93
pushq $0x43
popq %rsi
movq %r14, %rdi
movq %rax, %rdx
movq %r13, %rcx
movq 0x20(%rsp), %r8
movq %r15, %r9
callq 0x2a8c1
cmpl $0x0, (%r15)
jne 0x2fb93
movq %r14, %rdi
movq %r13, %rsi
movq %r15, %rdx
callq 0x2b781
cmpl $0x0, (%r15)
jne 0x2fb93
pushq $0x1b
popq %rsi
pushq $0x2e
popq %rdx
movq %r14, %rdi
movq %r15, %rcx
callq 0x2a981
cmpl $0x0, (%r15)
jne 0x2fb93
pushq $0x16
popq %rsi
pushq $0x4
popq %rcx
movq %r14, %rdi
movq %rax, %rdx
xorl %r8d, %r8d
movq %r15, %r9
callq 0x2a8c1
movq 0x8(%rsp), %r8
cmpl $0x0, (%r15)
jne 0x2fb93
movabsq $-0x100000000, %r13     # imm = 0xFFFFFFFF00000000
andq %r13, %r8
orq $0x1, %r8
pushq $0x9
popq %rsi
pushq $0x4
popq %rcx
movq %r14, %rdi
movq %rcx, %rdx
movq %r15, %r9
callq 0x2a8c1
cmpl $0x0, (%r15)
jne 0x2fb93
pushq $0x1b
popq %rsi
pushq $0xa
popq %rdx
movq %r14, %rdi
movq %r15, %rcx
callq 0x2a981
movq %rax, 0x8(%rsp)
cmpl $0x0, (%r15)
jne 0x2fb93
movq %r14, %rdi
movq 0x60(%rsp), %rsi
movq %r15, %rdx
callq 0x2b781
cmpl $0x0, (%r15)
jne 0x2fb93
pushq $0xe
popq %rsi
movabsq $0x4024000000000000, %rcx # imm = 0x4024000000000000
movq %r14, %rdi
movq 0x38(%rsp), %rdx
movq %r15, %r8
callq 0x2a819
movq %rax, 0x30(%rsp)
cmpl $0x0, (%r15)
jne 0x2fb93
pushq $0x52
popq %rsi
movq %r14, %rdi
movq 0x30(%rsp), %rdx
movq %r15, %rcx
callq 0x2a981
movq %rax, 0x28(%rsp)
cmpl $0x0, (%r15)
jne 0x2fb93
pushq $0x51
popq %rsi
movq %r14, %rdi
movq 0x28(%rsp), %rdx
movq %r15, %rcx
callq 0x2a981
movq %rax, 0x10(%rsp)
cmpl $0x0, (%r15)
jne 0x2fb93
pushq $0x3
popq %rsi
movq %r14, %rdi
movq 0x30(%rsp), %rdx
movq 0x10(%rsp), %rcx
movq %r15, %r8
callq 0x2a819
movq %rax, 0x40(%rsp)
cmpl $0x0, (%r15)
jne 0x2fb93
pushq $0x1e
popq %rsi
movq %r14, %rdi
movq 0x38(%rsp), %rdx
movq 0x40(%rsp), %rcx
movq %r15, %r8
callq 0x2a9a4
cmpl $0x0, (%r15)
jne 0x2fb93
movq 0x10(%rsp), %rcx
andq %r13, %rcx
movq %rcx, 0x10(%rsp)
orq $0x30, %rcx
pushq $0x9
popq %rsi
movq %r14, %rdi
movq 0x28(%rsp), %rdx
movq %r15, %r8
callq 0x2a819
cmpl $0x0, (%r15)
jne 0x2fb93
pushq $0x16
popq %rsi
pushq $0x4
popq %rcx
movq %r14, %rdi
movq %rax, %rdx
movq 0x10(%rsp), %r8
movq %r15, %r9
callq 0x2a8c1
cmpl $0x0, (%r15)
jne 0x2fb93
movq 0x30(%rsp), %rcx
andq %r13, %rcx
orq $0x1, %rcx
pushq $0x9
popq %rsi
pushq $0x4
popq %rdx
movq %r14, %rdi
movq %r15, %r8
callq 0x2a819
cmpl $0x0, (%r15)
jne 0x2fb93
movq %rax, %r13
pushq $0x43
popq %rsi
movq %r14, %rdi
movq 0x28(%rsp), %rdx
movq 0x48(%rsp), %rcx
movq 0x50(%rsp), %r8
movq %r15, %r9
callq 0x2a8c1
cmpl $0x0, (%r15)
jne 0x2fb93
movq %r14, %rdi
movq 0x48(%rsp), %rsi
movq %r15, %rdx
callq 0x2b781
cmpl $0x0, (%r15)
jne 0x2fb93
pushq $0x1d
popq %rsi
movq %r14, %rdi
movq 0x18(%rsp), %rdx
movq %r13, %rcx
movq %r15, %r8
callq 0x2a9a4
cmpl $0x0, (%r15)
jne 0x2fb93
movq %r14, %rdi
movq 0x50(%rsp), %rsi
movq %r15, %rdx
callq 0x2b781
cmpl $0x0, (%r15)
jne 0x2fb93
pushq $0x1d
popq %rsi
pushq $0x4
popq %rdx
movq %r14, %rdi
movq %r13, %rcx
movq %r15, %r8
callq 0x2a9a4
cmpl $0x0, (%r15)
jne 0x2fb93
pushq $0x32
popq %rsi
movq %r14, %rdi
movq 0x40(%rsp), %rdx
xorl %ecx, %ecx
movq %r15, %r8
callq 0x2a819
cmpl $0x0, (%r15)
jne 0x2fb93
pushq $0x43
popq %rsi
movq %r14, %rdi
movq %rax, %rdx
movq 0x58(%rsp), %rcx
movq 0x20(%rsp), %r8
movq %r15, %r9
callq 0x2a8c1
cmpl $0x0, (%r15)
jne 0x2fb93
movq %r14, %rdi
movq 0x58(%rsp), %rsi
movq %r15, %rdx
callq 0x2b781
cmpl $0x0, (%r15)
jne 0x2fb93
pushq $0xb
popq %rsi
pushq $0x1
popq %rcx
movq %r14, %rdi
movq 0x8(%rsp), %rdx
movq %r15, %r8
callq 0x2a819
cmpl $0x0, (%r15)
jne 0x2fb93
pushq $0x1d
popq %rsi
movq %r14, %rdi
movq 0x8(%rsp), %rdx
movq %rax, %rcx
movq %r15, %r8
callq 0x2a9a4
cmpl $0x0, (%r15)
jne 0x2fb93
pushq $0x2d
popq %rsi
movq %r14, %rdi
movq 0x8(%rsp), %rdx
xorl %ecx, %ecx
movq %r15, %r8
callq 0x2a819
cmpl $0x0, (%r15)
jne 0x2fb93
pushq $0x44
popq %rsi
movq %r14, %rdi
movq %rax, %rdx
movq 0x20(%rsp), %rcx
movq 0x60(%rsp), %r8
movq %r15, %r9
callq 0x2a8c1
cmpl $0x0, (%r15)
jne 0x2fb93
movq %r14, %rdi
movq 0x20(%rsp), %rsi
movq %r15, %rdx
callq 0x2b781
cmpl $0x0, (%r15)
jne 0x2fb93
movq 0xa8(%r14), %r13
pushq $0x2
popq %rsi
movq %r14, %rdi
movq %r13, %rdx
movq 0x18(%rsp), %rcx
movq 0x68(%rsp), %r8
movq %r15, %r9
callq 0x2a8c1
cmpl $0x0, (%r15)
jne 0x2fb93
movq %r14, %rdi
movq 0x70(%rsp), %rsi
movq %r15, %rdx
callq 0x2b781
cmpl $0x0, (%r15)
jne 0x2fb93
pushq $0x47
popq %rsi
movq %r14, %rdi
movq %r13, %rdx
movq %r15, %rcx
callq 0x2a997
cmpl $0x0, (%r15)
jne 0x2fb93
movq 0x68(%rbx), %rax
movq 0x310(%rax), %rax
movq %rax, 0x10(%r14)
jmp 0x2fb93