// File: /workspace/github_c_makefile_star2_O0/Ihsoh[P]ilang/compiler/backend/semantics.c
// Function: stat_va_copy
static void _stat_va_copy(
	ParserContext *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_type_target = BE_VAR_SYMBOL_GET_TYPE_NODE(symbol_target);
	if (!_is_va_list_pointer(node_type_target)) {
		goto err;
	}

	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);
	ParserASTNode *node_type_source = BE_VAR_SYMBOL_GET_TYPE_NODE(symbol_source);
	if (!_is_va_list_pointer(node_type_source)) {
		goto err;
	}

	return;
err:
	_SYNERR_NODE(
		ctx,
		node,
		"invalid parameter combination."
	);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x440, %rsp            # imm = 0x440
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
cmpq $0x0, -0x8(%rbp)
je 0x5e94c
jmp 0x5e96b
leaq 0x2180e(%rip), %rdi     # 0x80161
leaq 0x23f26(%rip), %rsi     # 0x82880
movl $0x1626, %edx           # imm = 0x1626
leaq 0x26ebb(%rip), %rcx     # 0x85821
callq 0x30a0
cmpq $0x0, -0x10(%rbp)
je 0x5e974
jmp 0x5e993
leaq 0x17be1(%rip), %rdi     # 0x7655c
leaq 0x23efe(%rip), %rsi     # 0x82880
movl $0x1627, %edx           # imm = 0x1627
leaq 0x26e93(%rip), %rcx     # 0x85821
callq 0x30a0
movq -0x10(%rbp), %rax
cmpl $0xb72, (%rax)          # imm = 0xB72
jne 0x5e9a1
jmp 0x5e9c0
leaq 0x1b8f8(%rip), %rdi     # 0x7a2a0
leaq 0x23ed1(%rip), %rsi     # 0x82880
movl $0x1628, %edx           # imm = 0x1628
leaq 0x26e66(%rip), %rcx     # 0x85821
callq 0x30a0
movq -0x10(%rbp), %rax
cmpl $0x2, 0x44(%rax)
jne 0x5e9cc
jmp 0x5e9eb
leaq 0x24371(%rip), %rdi     # 0x82d44
leaq 0x23ea6(%rip), %rsi     # 0x82880
movl $0x1629, %edx           # imm = 0x1629
leaq 0x26e3b(%rip), %rcx     # 0x85821
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 0x5ea08
jmp 0x5ea27
leaq 0x179ae(%rip), %rdi     # 0x763bd
leaq 0x23e6a(%rip), %rsi     # 0x82880
movl $0x162c, %edx           # imm = 0x162C
leaq 0x26dff(%rip), %rcx     # 0x85821
callq 0x30a0
movq -0x8(%rbp), %rdi
movq -0x18(%rbp), %rsi
callq 0x5edc0
movq %rax, -0x20(%rbp)
movq -0x20(%rbp), %rax
movq 0x38(%rax), %rax
movq %rax, -0x28(%rbp)
movq -0x28(%rbp), %rdi
callq 0x602f0
testb $0x1, %al
jne 0x5ea53
jmp 0x5eabe
movq -0x10(%rbp), %rax
movq 0x48(%rax), %rax
movq 0x8(%rax), %rax
movq %rax, -0x30(%rbp)
movq -0x30(%rbp), %rax
cmpl $0x200, (%rax)          # imm = 0x200
jne 0x5ea71
jmp 0x5ea90
leaq 0x18a08(%rip), %rdi     # 0x77480
leaq 0x23e01(%rip), %rsi     # 0x82880
movl $0x1634, %edx           # imm = 0x1634
leaq 0x26d96(%rip), %rcx     # 0x85821
callq 0x30a0
movq -0x8(%rbp), %rdi
movq -0x30(%rbp), %rsi
callq 0x5edc0
movq %rax, -0x38(%rbp)
movq -0x38(%rbp), %rax
movq 0x38(%rax), %rax
movq %rax, -0x40(%rbp)
movq -0x40(%rbp), %rdi
callq 0x602f0
testb $0x1, %al
jne 0x5eabc
jmp 0x5eabe
jmp 0x5eaec
leaq -0x440(%rbp), %rdi
leaq 0x261de(%rip), %rsi     # 0x84caa
movb $0x0, %al
callq 0x3160
movq -0x8(%rbp), %rax
movq 0x58(%rax), %rax
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rsi
leaq -0x440(%rbp), %rdx
callq *%rax
addq $0x440, %rsp            # imm = 0x440
popq %rbp
retq
nopw %cs:(%rax,%rax)