// File: /workspace/github_c_makefile_star2_O0/Ihsoh[P]ilang/compiler/frontend/semantics.c
// Function: check_expr_band_operands
static void _check_expr_band_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)) {
		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);
			}
		}
	} else {
		_SYNERR_NODE(
			ctx,
			node,
			"binary operator '%s' do not support this operand combination.",
			operator
		);
	}
}

// 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 0x51e00
jmp 0x51e1f
leaq 0x2a74f(%rip), %rdi     # 0x7c556
leaq 0x2c43c(%rip), %rsi     # 0x7e24a
movl $0x113a, %edx           # imm = 0x113A
leaq 0x2e0ba(%rip), %rcx     # 0x7fed4
callq 0x30a0
cmpq $0x0, -0x10(%rbp)
je 0x51e28
jmp 0x51e47
leaq 0x241a4(%rip), %rdi     # 0x75fd3
leaq 0x2c414(%rip), %rsi     # 0x7e24a
movl $0x113b, %edx           # imm = 0x113B
leaq 0x2e092(%rip), %rcx     # 0x7fed4
callq 0x30a0
cmpq $0x0, -0x18(%rbp)
je 0x51e50
jmp 0x51e6f
leaq 0x2dddf(%rip), %rdi     # 0x7fc36
leaq 0x2c3ec(%rip), %rsi     # 0x7e24a
movl $0x113c, %edx           # imm = 0x113C
leaq 0x2e06a(%rip), %rcx     # 0x7fed4
callq 0x30a0
cmpq $0x0, -0x20(%rbp)
je 0x51e78
jmp 0x51e97
leaq 0x2ddc2(%rip), %rdi     # 0x7fc41
leaq 0x2c3c4(%rip), %rsi     # 0x7e24a
movl $0x113d, %edx           # imm = 0x113D
leaq 0x2e042(%rip), %rcx     # 0x7fed4
callq 0x30a0
cmpq $0x0, -0x28(%rbp)
je 0x51ea0
jmp 0x51ebf
leaq 0x2dda5(%rip), %rdi     # 0x7fc4c
leaq 0x2c39c(%rip), %rsi     # 0x7e24a
movl $0x113e, %edx           # imm = 0x113E
leaq 0x2e01a(%rip), %rcx     # 0x7fed4
callq 0x30a0
movq -0x8(%rbp), %rdi
movq -0x18(%rbp), %rsi
callq 0x526c0
testb $0x1, %al
jne 0x51ed2
jmp 0x51f4d
movq -0x8(%rbp), %rdi
movq -0x20(%rbp), %rsi
callq 0x526c0
testb $0x1, %al
jne 0x51ee5
jmp 0x51f4d
testb $0x1, -0x29(%rbp)
je 0x51f4b
movq -0x8(%rbp), %rdi
movq -0x18(%rbp), %rsi
callq 0x528d0
movl %eax, -0x30(%rbp)
movq -0x8(%rbp), %rdi
movq -0x20(%rbp), %rsi
callq 0x528d0
movl %eax, -0x34(%rbp)
movl -0x30(%rbp), %eax
cmpl -0x34(%rbp), %eax
jle 0x51f2f
movq -0x10(%rbp), %rdi
addq $0x60, %rdi
movq -0x18(%rbp), %rsi
addq $0x60, %rsi
movl $0x30, %edx
callq 0x3110
jmp 0x51f49
movq -0x10(%rbp), %rdi
addq $0x60, %rdi
movq -0x20(%rbp), %rsi
addq $0x60, %rsi
movl $0x30, %edx
callq 0x3110
jmp 0x51f4b
jmp 0x51f7f
leaq -0x440(%rbp), %rdi
movq -0x28(%rbp), %rdx
leaq 0x2dcf6(%rip), %rsi     # 0x7fc55
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
nopl (%rax,%rax)