// File: /workspace/github_c_makefile_star2_O0/Ihsoh[P]ilang/compiler/backend/asmgen_gas32.c
// Function: asm_stat_ref
static void _asm_stat_ref(
	ASMGeneratorGas32Context *ctx,
	ParserASTNode *node
) {
	assert(ctx);
	assert(node);
	assert(node->type == BE_NODE_STAT_REF);
	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);

	ParserASTNode *node_source = node->childs[1];
	assert(node_source->type == BE_NODE_IDENTIFIER);
	ParserSymbol *symbol_source = _get_var_symbol_by_id_node(ctx, node_source);

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

	_asm_inst_lea_sym_sym(
		ctx,
		ctx->body,
		symbol_target_l,
		symbol_source_l
	);

	_free_varsym(ctx, symbol_target_l);
	_free_varsym(ctx, symbol_source_l);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
cmpq $0x0, -0x8(%rbp)
je 0x13409
jmp 0x13428
leaq 0x6cd51(%rip), %rdi     # 0x80161
leaq 0x624e1(%rip), %rsi     # 0x758f8
movl $0x1276, %edx           # imm = 0x1276
leaq 0x63ffe(%rip), %rcx     # 0x77421
callq 0x30a0
cmpq $0x0, -0x10(%rbp)
je 0x13431
jmp 0x13450
leaq 0x63124(%rip), %rdi     # 0x7655c
leaq 0x624b9(%rip), %rsi     # 0x758f8
movl $0x1277, %edx           # imm = 0x1277
leaq 0x63fd6(%rip), %rcx     # 0x77421
callq 0x30a0
movq -0x10(%rbp), %rax
cmpl $0xbea, (%rax)          # imm = 0xBEA
jne 0x1345e
jmp 0x1347d
leaq 0x63ffc(%rip), %rdi     # 0x77461
leaq 0x6248c(%rip), %rsi     # 0x758f8
movl $0x1278, %edx           # imm = 0x1278
leaq 0x63fa9(%rip), %rcx     # 0x77421
callq 0x30a0
movq -0x10(%rbp), %rax
cmpl $0x2, 0x44(%rax)
jne 0x13489
jmp 0x134a8
leaq 0x6f8b4(%rip), %rdi     # 0x82d44
leaq 0x62461(%rip), %rsi     # 0x758f8
movl $0x1279, %edx           # imm = 0x1279
leaq 0x63f7e(%rip), %rcx     # 0x77421
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 0x134c5
jmp 0x134e4
leaq 0x62ef1(%rip), %rdi     # 0x763bd
leaq 0x62425(%rip), %rsi     # 0x758f8
movl $0x127c, %edx           # imm = 0x127C
leaq 0x63f42(%rip), %rcx     # 0x77421
callq 0x30a0
movq -0x8(%rbp), %rdi
movq -0x18(%rbp), %rsi
callq 0x1f720
movq %rax, -0x20(%rbp)
movq -0x10(%rbp), %rax
movq 0x48(%rax), %rax
movq 0x8(%rax), %rax
movq %rax, -0x28(%rbp)
movq -0x28(%rbp), %rax
cmpl $0x200, (%rax)          # imm = 0x200
jne 0x13513
jmp 0x13532
leaq 0x63f66(%rip), %rdi     # 0x77480
leaq 0x623d7(%rip), %rsi     # 0x758f8
movl $0x1280, %edx           # imm = 0x1280
leaq 0x63ef4(%rip), %rcx     # 0x77421
callq 0x30a0
movq -0x8(%rbp), %rdi
movq -0x28(%rbp), %rsi
callq 0x1f720
movq %rax, -0x30(%rbp)
movq -0x8(%rbp), %rdi
movq -0x20(%rbp), %rsi
xorl %edx, %edx
callq 0x1f8e0
movq %rax, -0x38(%rbp)
movq -0x8(%rbp), %rdi
movq -0x30(%rbp), %rsi
xorl %edx, %edx
callq 0x1f8e0
movq %rax, -0x40(%rbp)
movq -0x8(%rbp), %rdi
movq -0x8(%rbp), %rax
movq 0x20(%rax), %rsi
movq -0x38(%rbp), %rdx
movq -0x40(%rbp), %rcx
callq 0x22be0
movq -0x8(%rbp), %rdi
movq -0x38(%rbp), %rsi
callq 0x1fd10
movq -0x8(%rbp), %rdi
movq -0x40(%rbp), %rsi
callq 0x1fd10
addq $0x40, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)