// File: /workspace/github_c_makefile_star2_O1/Ihsoh[P]ilang/compiler/backend/semantics.c
// Function: expr_band
static void _expr_band(
	ParserContext *ctx,
	ParserASTNode *node
) {
	assert(ctx);
	assert(node);

	#define	_CHECK	\
	{	\
		assert(node->nchilds == 2);	\
	}

	uint32_t node_type = node->type;

	switch (node_type) {
		case BE_NODE_EXPR_BAND: {
			_CHECK
			ParserASTNode *node_oprd1 = node->childs[0];
			ParserASTNode *node_oprd2 = node->childs[1];
			_expr_eq(ctx, node_oprd1);
			_expr_eq(ctx, node_oprd2);

			const char *operator = "&";

			_check_expr_band_operands(
				ctx, node, node_oprd1, node_oprd2, operator, true
			);

			BE_EXPR_AST_NODE_COPY_CONSTANT2(node, node_oprd1, node_oprd2);

			if (BE_EXPR_AST_NODE_GET_CONSTANT(node)) {
				_calc_binary_constexpr(ctx, node_type, node, node_oprd1, node_oprd2);
			}
			break;
		}
		default: {
			_expr_eq(ctx, node);
			break;
		}
	}

	#undef	_CHECK
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x408, %rsp            # imm = 0x408
testq %rsi, %rsi
je 0x30a71
movq %rsi, %rbx
movq %rdi, %r14
cmpl $0xe60, (%rsi)          # imm = 0xE60
jne 0x309cc
cmpl $0x2, 0x44(%rbx)
jne 0x30aaf
movq 0x48(%rbx), %rax
movq (%rax), %r15
movq 0x8(%rax), %r12
movq %r14, %rdi
movq %r15, %rsi
callq 0x30b0c
movq %r14, %rdi
movq %r12, %rsi
callq 0x30b0c
testq %r15, %r15
je 0x30ace
testq %r12, %r12
je 0x30aed
movzbl 0x1(%r15), %eax
shll $0x8, %eax
cmpl $0xe00, %eax            # imm = 0xE00
jne 0x30a90
movb 0x60(%r15), %al
leal -0x1(%rax), %ecx
cmpb $0x8, %cl
ja 0x309e8
movzbl 0x1(%r12), %ecx
shll $0x8, %ecx
cmpl $0xe00, %ecx            # imm = 0xE00
jne 0x30a90
movb 0x60(%r12), %cl
decb %cl
cmpb $0x8, %cl
ja 0x309e8
leaq 0x60(%r12), %r13
movzbl %al, %edi
callq 0x33be4
movl %eax, -0x2c(%rbp)
movzbl (%r13), %edi
callq 0x33be4
leaq 0x60(%rbx), %rcx
cmpl %eax, -0x2c(%rbp)
jbe 0x30a16
leaq 0x60(%r15), %rax
movups (%rax), %xmm0
movups 0x10(%rax), %xmm1
movups 0x20(%rax), %xmm2
jmp 0x30a25
movq %r14, %rdi
movq %rbx, %rsi
addq $0x408, %rsp            # imm = 0x408
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x30b0c
leaq 0x1e604(%rip), %rsi     # 0x4eff3
leaq 0x1e07c(%rip), %rdx     # 0x4ea72
leaq -0x430(%rbp), %r13
movq %r13, %rdi
xorl %eax, %eax
callq 0x3150
movq %r14, %rdi
movq %rbx, %rsi
movq %r13, %rdx
callq *0x58(%r14)
jmp 0x30a30
movups (%r13), %xmm0
movups 0x10(%r13), %xmm1
movups 0x20(%r13), %xmm2
movups %xmm2, 0x20(%rcx)
movups %xmm1, 0x10(%rcx)
movups %xmm0, (%rcx)
cmpb $0x1, 0x70(%r15)
jne 0x30a5b
movb 0x70(%r12), %al
movb %al, 0x70(%rbx)
cmpb $0x1, %al
jne 0x30a5f
movq %r14, %rdi
movl $0xe60, %esi            # imm = 0xE60
movq %rbx, %rdx
movq %r15, %rcx
movq %r12, %r8
callq 0x2f466
jmp 0x30a5f
movb $0x0, 0x70(%rbx)
addq $0x408, %rsp            # imm = 0x408
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x124d3(%rip), %rdi     # 0x42f4b
leaq 0x1d6f1(%rip), %rsi     # 0x4e170
leaq 0x1dfba(%rip), %rcx     # 0x4ea40
movl $0xcd8, %edx            # imm = 0xCD8
callq 0x30a0
leaq 0x1e3ff(%rip), %rdi     # 0x4ee96
leaq 0x1d6d2(%rip), %rsi     # 0x4e170
leaq 0x1edba(%rip), %rcx     # 0x4f85f
movl $0x1bd, %edx            # imm = 0x1BD
callq 0x30a0
leaq 0x1db4f(%rip), %rdi     # 0x4e605
leaq 0x1d6b3(%rip), %rsi     # 0x4e170
leaq 0x1df7c(%rip), %rcx     # 0x4ea40
movl $0xce3, %edx            # imm = 0xCE3
callq 0x30a0
leaq 0x1e508(%rip), %rdi     # 0x4efdd
leaq 0x1d694(%rip), %rsi     # 0x4e170
leaq 0x1e924(%rip), %rcx     # 0x4f407
movl $0xcbb, %edx            # imm = 0xCBB
callq 0x30a0
leaq 0x1e4f4(%rip), %rdi     # 0x4efe8
leaq 0x1d675(%rip), %rsi     # 0x4e170
leaq 0x1e905(%rip), %rcx     # 0x4f407
movl $0xcbc, %edx            # imm = 0xCBC
callq 0x30a0