// File: /workspace/github_c_makefile_star2_O0/Ihsoh[P]ilang/compiler/frontend/semantics.c
// Function: check_expr_mul_operands
static void _check_expr_mul_operands(
	ParserContext *ctx,
	ParserASTNode *node,
	ParserASTNode *node_oprd1,
	ParserASTNode *node_oprd2,
	const char *operator,
	bool set_type
) {
	assert(ctx);
	assert(node);
	assert(node_oprd1);
	assert(node_oprd2);
	assert(operator);

	if (!_is_number_type_node(ctx, node_oprd1)
			|| !_is_number_type_node(ctx, node_oprd2)) {
		_SYNERR_NODE(
			ctx, node, "binary operator '+' and '-' need number type operand."
		);
	}

	if (set_type) {
		int32_t weight_oprd1_type = _get_primitive_type_weight_by_expr_node(ctx, node_oprd1);
		int32_t weight_oprd2_type = _get_primitive_type_weight_by_expr_node(ctx, node_oprd2);
		if (weight_oprd1_type > weight_oprd2_type) {
			FE_EXPR_AST_NODE_COPY(node, node_oprd1);
		} else {
			FE_EXPR_AST_NODE_COPY(node, node_oprd2);
		}
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x440, %rsp            # imm = 0x440
movb %r9b, %al
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movq %r8, -0x28(%rbp)
andb $0x1, %al
movb %al, -0x29(%rbp)
cmpq $0x0, -0x8(%rbp)
je 0x51a80
jmp 0x51a9f
leaq 0x2aacf(%rip), %rdi     # 0x7c556
leaq 0x2c7bc(%rip), %rsi     # 0x7e24a
movl $0xf40, %edx            # imm = 0xF40
leaq 0x2e2e7(%rip), %rcx     # 0x7fd81
callq 0x30a0
cmpq $0x0, -0x10(%rbp)
je 0x51aa8
jmp 0x51ac7
leaq 0x24524(%rip), %rdi     # 0x75fd3
leaq 0x2c794(%rip), %rsi     # 0x7e24a
movl $0xf41, %edx            # imm = 0xF41
leaq 0x2e2bf(%rip), %rcx     # 0x7fd81
callq 0x30a0
cmpq $0x0, -0x18(%rbp)
je 0x51ad0
jmp 0x51aef
leaq 0x2e15f(%rip), %rdi     # 0x7fc36
leaq 0x2c76c(%rip), %rsi     # 0x7e24a
movl $0xf42, %edx            # imm = 0xF42
leaq 0x2e297(%rip), %rcx     # 0x7fd81
callq 0x30a0
cmpq $0x0, -0x20(%rbp)
je 0x51af8
jmp 0x51b17
leaq 0x2e142(%rip), %rdi     # 0x7fc41
leaq 0x2c744(%rip), %rsi     # 0x7e24a
movl $0xf43, %edx            # imm = 0xF43
leaq 0x2e26f(%rip), %rcx     # 0x7fd81
callq 0x30a0
cmpq $0x0, -0x28(%rbp)
je 0x51b20
jmp 0x51b3f
leaq 0x2e125(%rip), %rdi     # 0x7fc4c
leaq 0x2c71c(%rip), %rsi     # 0x7e24a
movl $0xf44, %edx            # imm = 0xF44
leaq 0x2e247(%rip), %rcx     # 0x7fd81
callq 0x30a0
movq -0x8(%rbp), %rdi
movq -0x18(%rbp), %rsi
callq 0x57d20
testb $0x1, %al
jne 0x51b52
jmp 0x51b63
movq -0x8(%rbp), %rdi
movq -0x20(%rbp), %rsi
callq 0x57d20
testb $0x1, %al
jne 0x51b91
leaq -0x430(%rbp), %rdi
leaq 0x2e287(%rip), %rsi     # 0x7fdf8
movb $0x0, %al
callq 0x3160
movq -0x8(%rbp), %rax
movq 0x58(%rax), %rax
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rsi
leaq -0x430(%rbp), %rdx
callq *%rax
testb $0x1, -0x29(%rbp)
je 0x51c03
movq -0x8(%rbp), %rdi
movq -0x18(%rbp), %rsi
callq 0x528d0
movl %eax, -0x434(%rbp)
movq -0x8(%rbp), %rdi
movq -0x20(%rbp), %rsi
callq 0x528d0
movl %eax, -0x438(%rbp)
movl -0x434(%rbp), %eax
cmpl -0x438(%rbp), %eax
jle 0x51be7
movq -0x10(%rbp), %rdi
addq $0x60, %rdi
movq -0x18(%rbp), %rsi
addq $0x60, %rsi
movl $0x30, %edx
callq 0x3110
jmp 0x51c01
movq -0x10(%rbp), %rdi
addq $0x60, %rdi
movq -0x20(%rbp), %rsi
addq $0x60, %rsi
movl $0x30, %edx
callq 0x3110
jmp 0x51c03
addq $0x440, %rsp            # imm = 0x440
popq %rbp
retq
nopl (%rax)