// File: /workspace/github_c_makefile_star2_O0/Ihsoh[P]ilang/compiler/frontend/semantics.c
// Function: check_expr_mod_operands
static void _check_expr_mod_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_integer_type_node(ctx, node_oprd1)
			|| !_is_integer_type_node(ctx, node_oprd2)) {
		_SYNERR_NODE(
			ctx,
			node,
			"binary operator '%s' need number type operand.",
			operator
		);
	}

	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 0x51c40
jmp 0x51c5f
leaq 0x2a90f(%rip), %rdi     # 0x7c556
leaq 0x2c5fc(%rip), %rsi     # 0x7e24a
movl $0xf60, %edx            # imm = 0xF60
leaq 0x2e1d4(%rip), %rcx     # 0x7fe2e
callq 0x30a0
cmpq $0x0, -0x10(%rbp)
je 0x51c68
jmp 0x51c87
leaq 0x24364(%rip), %rdi     # 0x75fd3
leaq 0x2c5d4(%rip), %rsi     # 0x7e24a
movl $0xf61, %edx            # imm = 0xF61
leaq 0x2e1ac(%rip), %rcx     # 0x7fe2e
callq 0x30a0
cmpq $0x0, -0x18(%rbp)
je 0x51c90
jmp 0x51caf
leaq 0x2df9f(%rip), %rdi     # 0x7fc36
leaq 0x2c5ac(%rip), %rsi     # 0x7e24a
movl $0xf62, %edx            # imm = 0xF62
leaq 0x2e184(%rip), %rcx     # 0x7fe2e
callq 0x30a0
cmpq $0x0, -0x20(%rbp)
je 0x51cb8
jmp 0x51cd7
leaq 0x2df82(%rip), %rdi     # 0x7fc41
leaq 0x2c584(%rip), %rsi     # 0x7e24a
movl $0xf63, %edx            # imm = 0xF63
leaq 0x2e15c(%rip), %rcx     # 0x7fe2e
callq 0x30a0
cmpq $0x0, -0x28(%rbp)
je 0x51ce0
jmp 0x51cff
leaq 0x2df65(%rip), %rdi     # 0x7fc4c
leaq 0x2c55c(%rip), %rsi     # 0x7e24a
movl $0xf64, %edx            # imm = 0xF64
leaq 0x2e134(%rip), %rcx     # 0x7fe2e
callq 0x30a0
movq -0x8(%rbp), %rdi
movq -0x18(%rbp), %rsi
callq 0x526c0
testb $0x1, %al
jne 0x51d12
jmp 0x51d23
movq -0x8(%rbp), %rdi
movq -0x20(%rbp), %rsi
callq 0x526c0
testb $0x1, %al
jne 0x51d55
leaq -0x430(%rbp), %rdi
movq -0x28(%rbp), %rdx
leaq 0x2e170(%rip), %rsi     # 0x7fea5
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 0x51dc7
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 0x51dab
movq -0x10(%rbp), %rdi
addq $0x60, %rdi
movq -0x18(%rbp), %rsi
addq $0x60, %rsi
movl $0x30, %edx
callq 0x3110
jmp 0x51dc5
movq -0x10(%rbp), %rdi
addq $0x60, %rdi
movq -0x20(%rbp), %rsi
addq $0x60, %rsi
movl $0x30, %edx
callq 0x3110
jmp 0x51dc7
addq $0x440, %rsp            # imm = 0x440
popq %rbp
retq