// File: /workspace/github_c_makefile_star2_O0/Ihsoh[P]ilang/compiler/backend/asmgen_gas32.c
// Function: asm_stat_fpext
static void _asm_stat_fpext(
	ASMGeneratorGas32Context *ctx,
	ParserASTNode *node
) {
	assert(ctx);
	assert(node);
	assert(node->type == BE_NODE_STAT_FPEXT);
	assert(node->nchilds == 2);

	ParserASTNode *node_target = node->childs[0];
	assert(node_target->type == BE_NODE_IDENTIFIER);
	ParserSymbol *symbol_target = _get_var_symbol_by_id_node(ctx, node_target);
	uint8_t type_target = BE_VAR_SYMBOL_GET_TYPE(symbol_target);

	ParserASTNode *node_source = node->childs[1];
	uint8_t type_source = _move_id_or_constexpr_to_xmm_reg(
		ctx,
		_ASM_REG_NAME_XMM0,
		node_source
	);

	_asm_inst_cvtss2sd_x_x(
		ctx,
		ctx->body,
		_ASM_REG_NAME_XMM0,
		_ASM_REG_NAME_XMM0
	);

	ParserSymbol *symbol_target_l = _instantiate_varsym(ctx, symbol_target, 0);

	_asm_inst_movsd_sym_x(
		ctx,
		ctx->body,
		symbol_target_l,
		_ASM_REG_NAME_XMM0
	);

	_free_varsym(ctx, symbol_target_l);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
cmpq $0x0, -0x8(%rbp)
je 0x15ba9
jmp 0x15bc8
leaq 0x6a5b1(%rip), %rdi     # 0x80161
leaq 0x5fd41(%rip), %rsi     # 0x758f8
movl $0x16ed, %edx           # imm = 0x16ED
leaq 0x62979(%rip), %rcx     # 0x7853c
callq 0x30a0
cmpq $0x0, -0x10(%rbp)
je 0x15bd1
jmp 0x15bf0
leaq 0x60984(%rip), %rdi     # 0x7655c
leaq 0x5fd19(%rip), %rsi     # 0x758f8
movl $0x16ee, %edx           # imm = 0x16EE
leaq 0x62951(%rip), %rcx     # 0x7853c
callq 0x30a0
movq -0x10(%rbp), %rax
cmpl $0xbc8, (%rax)          # imm = 0xBC8
jne 0x15bfe
jmp 0x15c1d
leaq 0x62979(%rip), %rdi     # 0x7857e
leaq 0x5fcec(%rip), %rsi     # 0x758f8
movl $0x16ef, %edx           # imm = 0x16EF
leaq 0x62924(%rip), %rcx     # 0x7853c
callq 0x30a0
movq -0x10(%rbp), %rax
cmpl $0x2, 0x44(%rax)
jne 0x15c29
jmp 0x15c48
leaq 0x6d114(%rip), %rdi     # 0x82d44
leaq 0x5fcc1(%rip), %rsi     # 0x758f8
movl $0x16f0, %edx           # imm = 0x16F0
leaq 0x628f9(%rip), %rcx     # 0x7853c
callq 0x30a0
movq -0x10(%rbp), %rax
movq 0x48(%rax), %rax
movq (%rax), %rax
movq %rax, -0x18(%rbp)
movq -0x18(%rbp), %rax
cmpl $0x200, (%rax)          # imm = 0x200
jne 0x15c65
jmp 0x15c84
leaq 0x60751(%rip), %rdi     # 0x763bd
leaq 0x5fc85(%rip), %rsi     # 0x758f8
movl $0x16f3, %edx           # imm = 0x16F3
leaq 0x628bd(%rip), %rcx     # 0x7853c
callq 0x30a0
movq -0x8(%rbp), %rdi
movq -0x18(%rbp), %rsi
callq 0x1f720
movq %rax, -0x20(%rbp)
movq -0x20(%rbp), %rax
movb 0x30(%rax), %al
movb %al, -0x21(%rbp)
movq -0x10(%rbp), %rax
movq 0x48(%rax), %rax
movq 0x8(%rax), %rax
movq %rax, -0x30(%rbp)
movq -0x8(%rbp), %rdi
movq -0x30(%rbp), %rdx
leaq 0x61c48(%rip), %rsi     # 0x77906
callq 0x24300
movb %al, -0x31(%rbp)
movq -0x8(%rbp), %rdi
movq -0x8(%rbp), %rax
movq 0x20(%rax), %rsi
leaq 0x61c2d(%rip), %rcx     # 0x77906
movq %rcx, %rdx
callq 0x24e30
movq -0x8(%rbp), %rdi
movq -0x20(%rbp), %rsi
xorl %edx, %edx
callq 0x1f8e0
movq %rax, -0x40(%rbp)
movq -0x8(%rbp), %rdi
movq -0x8(%rbp), %rax
movq 0x20(%rax), %rsi
movq -0x40(%rbp), %rdx
leaq 0x61bfb(%rip), %rcx     # 0x77906
callq 0x236a0
movq -0x8(%rbp), %rdi
movq -0x40(%rbp), %rsi
callq 0x1fd10
addq $0x40, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)