// File: /workspace/github_c_makefile_star2_O3/Ihsoh[P]ilang/compiler/backend/semantics.c
// Function: expr_and
static void _expr_and(
	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_AND: {
			_CHECK
			ParserASTNode *node_oprd1 = node->childs[0];
			ParserASTNode *node_oprd2 = node->childs[1];
			_expr_bor(ctx, node_oprd1);
			_expr_bor(ctx, node_oprd2);

			BE_EXPR_AST_NODE_COPY_CONSTANT2(node, node_oprd1, node_oprd2);

			if (_is_primitive_type_node(ctx, node_oprd1) && _is_primitive_type_node(ctx, node_oprd2)) {
				if (ctx->arch == BE_ARCH_32) {
					BE_EXPR_AST_NODE_SET_TYPE(node, BE_TYPE_INT32);
					BE_EXPR_AST_NODE_SET_TYPE_NODE(node, _NODE_TYPE_INT32);

					if (BE_EXPR_AST_NODE_GET_CONSTANT(node)) {
						_calc_binary_constexpr(ctx, node_type, node, node_oprd1, node_oprd2);
					}
				} else if (ctx->arch == BE_ARCH_64) {
					BE_EXPR_AST_NODE_SET_TYPE(node, BE_TYPE_INT64);
					BE_EXPR_AST_NODE_SET_TYPE_NODE(node, _NODE_TYPE_INT64);

					if (BE_EXPR_AST_NODE_GET_CONSTANT(node)) {
						_calc_binary_constexpr(ctx, node_type, node, node_oprd1, node_oprd2);
					}
				} else {
					assert(0);
				}
			} else {
				_SYNERR_NODE(ctx, node, "binary operator '&&' do not support this operand combination.");
			}

			break;
		}
		default: {
			_expr_bor(ctx, node);
			break;
		}
	}

	#undef	_CHECK
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x400, %rsp            # imm = 0x400
testq %rsi, %rsi
je 0x2e90c
movq %rsi, %rbx
movq %rdi, %r14
cmpl $0xe30, (%rsi)          # imm = 0xE30
jne 0x2e833
cmpl $0x2, 0x44(%rbx)
jne 0x2e92b
movq 0x48(%rbx), %rax
movq (%rax), %r12
movq 0x8(%rax), %r15
movq %r14, %rdi
movq %r12, %rsi
callq 0x2f9af
movq %r14, %rdi
movq %r15, %rsi
callq 0x2f9af
cmpb $0x1, 0x70(%r12)
jne 0x2e84d
movb 0x70(%r15), %al
jmp 0x2e84f
movq %r14, %rdi
movq %rbx, %rsi
addq $0x400, %rsp            # imm = 0x400
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x2f9af
xorl %eax, %eax
movb %al, 0x70(%rbx)
movq %r12, %rdi
callq 0x2e560
testb %al, %al
je 0x2e889
movq %r15, %rdi
callq 0x2e560
testb %al, %al
je 0x2e889
movl 0x30(%r14), %eax
cmpl $0x2, %eax
je 0x2e8d5
cmpl $0x1, %eax
jne 0x2e94a
movb $0x4, 0x60(%rbx)
leaq 0x2bb91(%rip), %rax     # 0x5a418
jmp 0x2e8e0
movups 0x1e109(%rip), %xmm0    # 0x4c999
leaq -0x420(%rbp), %rdx
movups %xmm0, 0x2e(%rdx)
movups 0x1e0e9(%rip), %xmm0    # 0x4c98b
movaps %xmm0, 0x20(%rdx)
movups 0x1e0ce(%rip), %xmm0    # 0x4c97b
movaps %xmm0, 0x10(%rdx)
movups 0x1e0b3(%rip), %xmm0    # 0x4c96b
movaps %xmm0, (%rdx)
movq %r14, %rdi
movq %rbx, %rsi
callq *0x58(%r14)
addq $0x400, %rsp            # imm = 0x400
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movb $0x5, 0x60(%rbx)
leaq 0x2bb98(%rip), %rax     # 0x5a478
movq %rax, 0x68(%rbx)
cmpb $0x1, 0x70(%rbx)
jne 0x2e8c5
movq %r14, %rdi
movl $0xe30, %esi            # imm = 0xE30
movq %rbx, %rdx
movq %r12, %rcx
movq %r15, %r8
addq $0x400, %rsp            # imm = 0x400
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x2e969
leaq 0x125f8(%rip), %rdi     # 0x40f0b
leaq 0x1d826(%rip), %rsi     # 0x4c140
leaq 0x1e019(%rip), %rcx     # 0x4c93a
movl $0xda0, %edx            # imm = 0xDA0
callq 0x30a0
leaq 0x1dca3(%rip), %rdi     # 0x4c5d5
leaq 0x1d807(%rip), %rsi     # 0x4c140
leaq 0x1dffa(%rip), %rcx     # 0x4c93a
movl $0xdab, %edx            # imm = 0xDAB
callq 0x30a0
leaq 0xfa18(%rip), %rdi      # 0x3e369
leaq 0x1d7e8(%rip), %rsi     # 0x4c140
leaq 0x1dfdb(%rip), %rcx     # 0x4c93a
movl $0xdc3, %edx            # imm = 0xDC3
callq 0x30a0