// File: /workspace/github_c_makefile_star2_O0/Ihsoh[P]ilang/compiler/backend/asmgen_gas64.c
// Function: asm_stat_va_copy
static void _asm_stat_va_copy(
	ASMGeneratorGas64Context *ctx,
	ParserASTNode *node
) {
	assert(ctx);
	assert(node);
	assert(node->type == BE_NODE_STAT_VA_COPY);
	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);

	_asm_inst_mov_x_x(
		ctx,
		ctx->body,
		BE_TYPE_UINT64,
		_ASM_REG_NAME_RAX,
		RSTR_CSTR(BE_VAR_SYMBOL_GET_CODE_GEN_NAME(symbol_target))
	);

	_asm_inst_mov_x_x(
		ctx,
		ctx->body,
		BE_TYPE_UINT64,
		_ASM_REG_NAME_RBX,
		RSTR_CSTR(BE_VAR_SYMBOL_GET_CODE_GEN_NAME(symbol_source))
	);

	ResizableString rstr_memref_target;
	rstr_init(&rstr_memref_target);
	_asm_inst_memref_base(
		ctx,
		&rstr_memref_target,
		_ASM_REG_NAME_RAX
	);

	ResizableString rstr_memref_source;
	rstr_init(&rstr_memref_source);
	_asm_inst_memref_base(
		ctx,
		&rstr_memref_source,
		_ASM_REG_NAME_RBX
	);

	_asm_inst_mov_x_x(
		ctx,
		ctx->body,
		BE_TYPE_UINT64,
		_ASM_REG_NAME_RCX,
		RSTR_CSTR(&rstr_memref_source)
	);

	_asm_inst_mov_x_x(
		ctx,
		ctx->body,
		BE_TYPE_UINT64,
		RSTR_CSTR(&rstr_memref_target),
		_ASM_REG_NAME_RCX
	);

	rstr_free(&rstr_memref_target);
	rstr_free(&rstr_memref_source);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0xb0, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
cmpq $0x0, -0x8(%rbp)
je 0x3212c
jmp 0x3214b
leaq 0x4e02e(%rip), %rdi     # 0x80161
leaq 0x489ca(%rip), %rsi     # 0x7ab04
movl $0x1bbc, %edx           # imm = 0x1BBC
leaq 0x4bc87(%rip), %rcx     # 0x7ddcd
callq 0x30a0
cmpq $0x0, -0x10(%rbp)
je 0x32154
jmp 0x32173
leaq 0x44401(%rip), %rdi     # 0x7655c
leaq 0x489a2(%rip), %rsi     # 0x7ab04
movl $0x1bbd, %edx           # imm = 0x1BBD
leaq 0x4bc5f(%rip), %rcx     # 0x7ddcd
callq 0x30a0
movq -0x10(%rbp), %rax
cmpl $0xb72, (%rax)          # imm = 0xB72
jne 0x32181
jmp 0x321a0
leaq 0x48118(%rip), %rdi     # 0x7a2a0
leaq 0x48975(%rip), %rsi     # 0x7ab04
movl $0x1bbe, %edx           # imm = 0x1BBE
leaq 0x4bc32(%rip), %rcx     # 0x7ddcd
callq 0x30a0
movq -0x10(%rbp), %rax
cmpl $0x2, 0x44(%rax)
jne 0x321ac
jmp 0x321cb
leaq 0x50b91(%rip), %rdi     # 0x82d44
leaq 0x4894a(%rip), %rsi     # 0x7ab04
movl $0x1bbf, %edx           # imm = 0x1BBF
leaq 0x4bc07(%rip), %rcx     # 0x7ddcd
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 0x321e8
jmp 0x32207
leaq 0x441ce(%rip), %rdi     # 0x763bd
leaq 0x4890e(%rip), %rsi     # 0x7ab04
movl $0x1bc2, %edx           # imm = 0x1BC2
leaq 0x4bbcb(%rip), %rcx     # 0x7ddcd
callq 0x30a0
movq -0x8(%rbp), %rdi
movq -0x18(%rbp), %rsi
callq 0x32820
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 0x32236
jmp 0x32255
leaq 0x45243(%rip), %rdi     # 0x77480
leaq 0x488c0(%rip), %rsi     # 0x7ab04
movl $0x1bc6, %edx           # imm = 0x1BC6
leaq 0x4bb7d(%rip), %rcx     # 0x7ddcd
callq 0x30a0
movq -0x8(%rbp), %rdi
movq -0x28(%rbp), %rsi
callq 0x32820
movq %rax, -0x30(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x60(%rbp)
movq -0x8(%rbp), %rax
movq 0x20(%rax), %rax
movq %rax, -0x58(%rbp)
movq -0x20(%rbp), %rax
cmpq $0x0, 0x58(%rax)
jne 0x32292
leaq 0x43cb3(%rip), %rax     # 0x75f3f
movq %rax, -0x68(%rbp)
jmp 0x3229e
movq -0x20(%rbp), %rax
movq 0x58(%rax), %rax
movq %rax, -0x68(%rbp)
movq -0x58(%rbp), %rsi
movq -0x60(%rbp), %rdi
movq -0x68(%rbp), %r8
movl $0x9, %edx
leaq 0x48e04(%rip), %rcx     # 0x7b0ba
callq 0x33720
movq -0x8(%rbp), %rax
movq %rax, -0x78(%rbp)
movq -0x8(%rbp), %rax
movq 0x20(%rax), %rax
movq %rax, -0x70(%rbp)
movq -0x30(%rbp), %rax
cmpq $0x0, 0x58(%rax)
jne 0x322e7
leaq 0x43c5e(%rip), %rax     # 0x75f3f
movq %rax, -0x80(%rbp)
jmp 0x322f3
movq -0x30(%rbp), %rax
movq 0x58(%rax), %rax
movq %rax, -0x80(%rbp)
movq -0x70(%rbp), %rsi
movq -0x78(%rbp), %rdi
movq -0x80(%rbp), %r8
movl $0x9, %edx
leaq 0x493f4(%rip), %rcx     # 0x7b6ff
callq 0x33720
leaq -0x40(%rbp), %rdi
callq 0x8c90
movq -0x8(%rbp), %rdi
leaq -0x40(%rbp), %rsi
leaq 0x48d92(%rip), %rdx     # 0x7b0ba
callq 0x35240
leaq -0x50(%rbp), %rdi
callq 0x8c90
movq -0x8(%rbp), %rdi
leaq -0x50(%rbp), %rsi
leaq 0x493ba(%rip), %rdx     # 0x7b6ff
callq 0x35240
movq -0x8(%rbp), %rax
movq %rax, -0x90(%rbp)
movq -0x8(%rbp), %rax
movq 0x20(%rax), %rax
movq %rax, -0x88(%rbp)
cmpq $0x0, -0x48(%rbp)
jne 0x3237b
leaq 0x43bcd(%rip), %rax     # 0x75f3f
movq %rax, -0x98(%rbp)
jmp 0x32386
movq -0x48(%rbp), %rax
movq %rax, -0x98(%rbp)
movq -0x88(%rbp), %rsi
movq -0x90(%rbp), %rdi
movq -0x98(%rbp), %r8
movl $0x9, %edx
leaq 0x4935d(%rip), %rcx     # 0x7b704
callq 0x33720
movq -0x8(%rbp), %rax
movq %rax, -0xa8(%rbp)
movq -0x8(%rbp), %rax
movq 0x20(%rax), %rax
movq %rax, -0xa0(%rbp)
cmpq $0x0, -0x38(%rbp)
jne 0x323dd
leaq 0x43b6b(%rip), %rax     # 0x75f3f
movq %rax, -0xb0(%rbp)
jmp 0x323e8
movq -0x38(%rbp), %rax
movq %rax, -0xb0(%rbp)
movq -0xa0(%rbp), %rsi
movq -0xa8(%rbp), %rdi
movq -0xb0(%rbp), %rcx
movl $0x9, %edx
leaq 0x492fb(%rip), %r8      # 0x7b704
callq 0x33720
leaq -0x40(%rbp), %rdi
callq 0x9310
leaq -0x50(%rbp), %rdi
callq 0x9310
addq $0xb0, %rsp
popq %rbp
retq
nopl (%rax)