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

			_check_expr_add_operands(
				ctx, node, node_oprd1, node_oprd2, "+", 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;
		}
		case BE_NODE_EXPR_SUB: {
			_CHECK
			ParserASTNode *node_oprd1 = node->childs[0];
			ParserASTNode *node_oprd2 = node->childs[1];
			_expr_unary(ctx, node_oprd1);
			_expr_unary(ctx, node_oprd2);

			_check_expr_sub_operands(
				ctx, node, node_oprd1, node_oprd2, "-", 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_mul(ctx, node);
			break;
		}
	}

	#undef	_CHECK
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x418, %rsp            # imm = 0x418
testq %rsi, %rsi
je 0x2e0cb
movq %rsi, %rbx
movq %rdi, %r14
movl (%rsi), %r15d
leal -0xeb0(%r15), %eax
cmpl $0x2, %eax
jb 0x2dc97
cmpl $0xeb2, %r15d           # imm = 0xEB2
je 0x2de2e
cmpl $0xea1, %r15d           # imm = 0xEA1
je 0x2ddab
cmpl $0xea0, %r15d           # imm = 0xEA0
jne 0x2df2f
cmpl $0x2, 0x44(%rbx)
jne 0x2e185
movq 0x48(%rbx), %rax
movq (%rax), %r15
movq 0x8(%rax), %r12
movq %r14, %rdi
movq %r15, %rsi
callq 0x2e25e
movq %r14, %rdi
movq %r12, %rsi
callq 0x2e25e
testq %r15, %r15
je 0x2e1c3
testq %r12, %r12
je 0x2e23f
movq %r15, %rdi
callq 0x2ba86
testb %al, %al
je 0x2df95
movq %r12, %rdi
callq 0x2ba25
testb %al, %al
je 0x2df95
movups 0x60(%r15), %xmm0
movups 0x70(%r15), %xmm1
movups 0x80(%r15), %xmm2
movups %xmm2, 0x80(%rbx)
movups %xmm1, 0x70(%rbx)
movups %xmm0, 0x60(%rbx)
jmp 0x2e08a
cmpl $0x2, 0x44(%rbx)
jne 0x2e0ea
movq 0x48(%rbx), %rax
movq (%rax), %r12
movq 0x8(%rax), %r13
movq %r14, %rdi
movq %r12, %rsi
callq 0x2e25e
movq %r14, %rdi
movq %r13, %rsi
callq 0x2e25e
testq %r12, %r12
je 0x2e109
testq %r13, %r13
je 0x2e128
movq %r12, %rdi
callq 0x2f15c
testb %al, %al
je 0x2dcec
movq %r13, %rdi
callq 0x2f15c
testb %al, %al
jne 0x2dd2b
movups 0x1c47f(%rip), %xmm0    # 0x4a172
leaq -0x440(%rbp), %rdx
movaps %xmm0, 0x20(%rdx)
movups 0x1c45d(%rip), %xmm0    # 0x4a162
movaps %xmm0, 0x10(%rdx)
movups 0x1c442(%rip), %xmm0    # 0x4a152
movaps %xmm0, (%rdx)
movabsq $0x2e646e61726570, %rax # imm = 0x2E646E61726570
movq %rax, 0x2e(%rdx)
movq %r14, %rdi
movq %rbx, %rsi
callq *0x58(%r14)
movq %r14, -0x30(%rbp)
leaq 0x60(%r12), %rax
movq %rax, -0x40(%rbp)
movzbl 0x60(%r12), %edi
callq 0x301db
movl %eax, %r14d
movq %rbx, -0x38(%rbp)
leaq 0x60(%r13), %rbx
movzbl 0x60(%r13), %edi
callq 0x301db
cmpl %eax, %r14d
cmovaq -0x40(%rbp), %rbx
movups (%rbx), %xmm0
movups 0x10(%rbx), %xmm1
movups 0x20(%rbx), %xmm2
movq -0x38(%rbp), %rdx
movups %xmm2, 0x80(%rdx)
movups %xmm1, 0x70(%rdx)
movups %xmm0, 0x60(%rdx)
cmpb $0x1, 0x70(%r12)
jne 0x2df26
movb 0x70(%r13), %al
movb %al, 0x70(%rdx)
cmpb $0x1, %al
movq -0x30(%rbp), %rdi
jne 0x2e0b9
movl %r15d, %esi
movq %r12, %rcx
movq %r13, %r8
jmp 0x2e0ae
cmpl $0x2, 0x44(%rbx)
jne 0x2e147
movq 0x48(%rbx), %rax
movq (%rax), %r15
movq 0x8(%rax), %r12
movq %r14, %rdi
movq %r15, %rsi
callq 0x2e25e
movq %r14, %rdi
movq %r12, %rsi
callq 0x2e25e
testq %r15, %r15
je 0x2e1a4
testq %r12, %r12
je 0x2e201
movq %r15, %rdi
callq 0x2ba86
testb %al, %al
je 0x2df4b
movq %r12, %rdi
callq 0x2ba25
testb %al, %al
je 0x2df4b
movups 0x60(%r15), %xmm0
movups 0x70(%r15), %xmm1
movups 0x80(%r15), %xmm2
movups %xmm2, 0x80(%rbx)
movups %xmm1, 0x70(%rbx)
movups %xmm0, 0x60(%rbx)
jmp 0x2e052
cmpl $0x2, 0x44(%rbx)
jne 0x2e166
movq 0x48(%rbx), %rax
movq (%rax), %r15
movq 0x8(%rax), %r12
movq %r14, %rdi
movq %r15, %rsi
callq 0x2e25e
movq %r14, %rdi
movq %r12, %rsi
callq 0x2e25e
testq %r15, %r15
je 0x2e1e2
testq %r12, %r12
je 0x2e220
movq %r14, -0x30(%rbp)
movq %r15, %rdi
callq 0x2ba25
testb %al, %al
je 0x2de87
movq %r12, %rdi
callq 0x2ba25
testb %al, %al
jne 0x2deb3
leaq 0x1c371(%rip), %rsi     # 0x4a1ff
leaq 0x1c244(%rip), %rdx     # 0x4a0d9
leaq -0x440(%rbp), %r14
movq %r14, %rdi
xorl %eax, %eax
callq 0x3150
movq -0x30(%rbp), %rdi
movq %rbx, %rsi
movq %r14, %rdx
callq *0x58(%rdi)
movq %rbx, -0x38(%rbp)
leaq 0x60(%r15), %rbx
movzbl 0x60(%r15), %edi
callq 0x301db
movl %eax, %r14d
leaq 0x60(%r12), %r13
movzbl 0x60(%r12), %edi
callq 0x301db
cmpl %eax, %r14d
cmovaq %rbx, %r13
movq -0x38(%rbp), %rdx
movups (%r13), %xmm0
movups 0x10(%r13), %xmm1
movups 0x20(%r13), %xmm2
movups %xmm2, 0x80(%rdx)
movups %xmm1, 0x70(%rdx)
movups %xmm0, 0x60(%rdx)
cmpb $0x1, 0x70(%r15)
jne 0x2df26
movb 0x70(%r12), %al
movb %al, 0x70(%rdx)
cmpb $0x1, %al
movq -0x30(%rbp), %rdi
jne 0x2e0b9
movl $0xeb2, %esi            # imm = 0xEB2
jmp 0x2e0a8
movb $0x0, 0x70(%rdx)
jmp 0x2e0b9
movq %r14, %rdi
movq %rbx, %rsi
addq $0x418, %rsp            # imm = 0x418
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x2e25e
movq %r15, %rdi
callq 0x2f15c
testb %al, %al
je 0x2dfdb
movq %r12, %rdi
callq 0x2f15c
testb %al, %al
je 0x2dfdb
movzbl 0x60(%r15), %edi
callq 0x301db
movl %eax, %r13d
movzbl 0x60(%r12), %edi
callq 0x301db
leaq 0x60(%rbx), %rcx
cmpl %eax, %r13d
jbe 0x2e037
leaq 0x60(%r15), %rax
jmp 0x2e03c
movq %r15, %rdi
callq 0x2f15c
testb %al, %al
je 0x2e009
movq %r12, %rdi
callq 0x2f15c
testb %al, %al
je 0x2e009
movzbl 0x60(%r15), %edi
callq 0x301db
movl %eax, %r13d
movzbl 0x60(%r12), %edi
callq 0x301db
leaq 0x60(%rbx), %rcx
cmpl %eax, %r13d
jbe 0x2e06f
leaq 0x60(%r15), %rax
jmp 0x2e074
leaq 0x1c011(%rip), %rsi     # 0x49ff3
leaq 0x1bbf3(%rip), %rdx     # 0x49bdc
leaq -0x440(%rbp), %r13
movq %r13, %rdi
xorl %eax, %eax
callq 0x3150
movq %r14, %rdi
movq %rbx, %rsi
movq %r13, %rdx
callq *0x58(%r14)
jmp 0x2e052
leaq 0x1bfe3(%rip), %rsi     # 0x49ff3
leaq 0xe4ad(%rip), %rdx      # 0x3c4c4
leaq -0x440(%rbp), %r13
movq %r13, %rdi
xorl %eax, %eax
callq 0x3150
movq %r14, %rdi
movq %rbx, %rsi
movq %r13, %rdx
callq *0x58(%r14)
jmp 0x2e08a
leaq 0x60(%r12), %rax
movups (%rax), %xmm0
movups 0x10(%rax), %xmm1
movups 0x20(%rax), %xmm2
movups %xmm2, 0x20(%rcx)
movups %xmm1, 0x10(%rcx)
movups %xmm0, (%rcx)
cmpb $0x1, 0x70(%r15)
jne 0x2e0b5
movb 0x70(%r12), %al
movb %al, 0x70(%rbx)
cmpb $0x1, %al
jne 0x2e0b9
movq %r14, %rdi
movl $0xea1, %esi            # imm = 0xEA1
jmp 0x2e0a5
leaq 0x60(%r12), %rax
movups (%rax), %xmm0
movups 0x10(%rax), %xmm1
movups 0x20(%rax), %xmm2
movups %xmm2, 0x20(%rcx)
movups %xmm1, 0x10(%rcx)
movups %xmm0, (%rcx)
cmpb $0x1, 0x70(%r15)
jne 0x2e0b5
movb 0x70(%r12), %al
movb %al, 0x70(%rbx)
cmpb $0x1, %al
jne 0x2e0b9
movq %r14, %rdi
movl $0xea0, %esi            # imm = 0xEA0
movq %rbx, %rdx
movq %r15, %rcx
movq %r12, %r8
callq 0x2beef
jmp 0x2e0b9
movb $0x0, 0x70(%rbx)
addq $0x418, %rsp            # imm = 0x418
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0xfe38(%rip), %rdi      # 0x3df0a
leaq 0x1b097(%rip), %rsi     # 0x49170
leaq 0x1bacb(%rip), %rcx     # 0x49bab
movl $0xbb6, %edx            # imm = 0xBB6
callq 0x30a0
leaq 0x1b514(%rip), %rdi     # 0x49605
leaq 0x1b078(%rip), %rsi     # 0x49170
leaq 0x1bfa9(%rip), %rcx     # 0x4a0a8
movl $0xb32, %edx            # imm = 0xB32
callq 0x30a0
leaq 0x1becd(%rip), %rdi     # 0x49fdd
leaq 0x1b059(%rip), %rsi     # 0x49170
leaq 0x1bfbd(%rip), %rcx     # 0x4a0db
movl $0xae8, %edx            # imm = 0xAE8
callq 0x30a0
leaq 0x1beb9(%rip), %rdi     # 0x49fe8
leaq 0x1b03a(%rip), %rsi     # 0x49170
leaq 0x1bf9e(%rip), %rcx     # 0x4a0db
movl $0xae9, %edx            # imm = 0xAE9
callq 0x30a0
leaq 0x1b4b7(%rip), %rdi     # 0x49605
leaq 0x1b01b(%rip), %rsi     # 0x49170
leaq 0x1ba4f(%rip), %rcx     # 0x49bab
movl $0xbd2, %edx            # imm = 0xBD2
callq 0x30a0
leaq 0x1b498(%rip), %rdi     # 0x49605
leaq 0x1affc(%rip), %rsi     # 0x49170
leaq 0x1bf2d(%rip), %rcx     # 0x4a0a8
movl $0xb4c, %edx            # imm = 0xB4C
callq 0x30a0
leaq 0x1b479(%rip), %rdi     # 0x49605
leaq 0x1afdd(%rip), %rsi     # 0x49170
leaq 0x1ba11(%rip), %rcx     # 0x49bab
movl $0xbc1, %edx            # imm = 0xBC1
callq 0x30a0
leaq 0x1be32(%rip), %rdi     # 0x49fdd
leaq 0x1afbe(%rip), %rsi     # 0x49170
leaq 0x1be78(%rip), %rcx     # 0x4a031
movl $0xb95, %edx            # imm = 0xB95
callq 0x30a0
leaq 0x1be13(%rip), %rdi     # 0x49fdd
leaq 0x1af9f(%rip), %rsi     # 0x49170
leaq 0x1bd8e(%rip), %rcx     # 0x49f66
movl $0xb6f, %edx            # imm = 0xB6F
callq 0x30a0
leaq 0x1bdf4(%rip), %rdi     # 0x49fdd
leaq 0x1af80(%rip), %rsi     # 0x49170
leaq 0x1bf91(%rip), %rcx     # 0x4a188
movl $0xb08, %edx            # imm = 0xB08
callq 0x30a0
leaq 0x1bde0(%rip), %rdi     # 0x49fe8
leaq 0x1af61(%rip), %rsi     # 0x49170
leaq 0x1be1b(%rip), %rcx     # 0x4a031
movl $0xb96, %edx            # imm = 0xB96
callq 0x30a0
leaq 0x1bdc1(%rip), %rdi     # 0x49fe8
leaq 0x1af42(%rip), %rsi     # 0x49170
leaq 0x1bf53(%rip), %rcx     # 0x4a188
movl $0xb09, %edx            # imm = 0xB09
callq 0x30a0
leaq 0x1bda2(%rip), %rdi     # 0x49fe8
leaq 0x1af23(%rip), %rsi     # 0x49170
leaq 0x1bd12(%rip), %rcx     # 0x49f66
movl $0xb70, %edx            # imm = 0xB70
callq 0x30a0