// File: /workspace/github_c_makefile_star2_O3/Ihsoh[P]ilang/compiler/frontend/semantics.c
// Function: expr_unary_postfix
static void _expr_unary_postfix(
	ParserContext *ctx,
	ParserASTNode *node
) {
	assert(ctx);
	assert(node);

	uint32_t node_type = node->type;

	switch (node_type) {
		case FE_NODE_EXPR_INC_RIGHT:
		case FE_NODE_EXPR_DEC_RIGHT: {
			assert(node->nchilds == 1);

			ParserASTNode *node_oprd = node->childs[0];
			_expr_member_arridx_fncall(ctx, node_oprd);

			if (!_expr_is_lvalue(ctx, node_oprd)) {
				switch (node_type) {
					case FE_NODE_EXPR_INC_RIGHT: {
						_SYNERR_NODE(ctx, node, "unary operator postfix '++' need number left value operand.");
						break;
					}
					case FE_NODE_EXPR_DEC_RIGHT: {
						_SYNERR_NODE(ctx, node, "unary operator postfix '--' need number left value operand.");
						break;
					}
					default: {
						assert(0);
					}
				}
			}

			if (!_is_number_type_node(ctx, node_oprd)) {
				switch (node_type) {
					case FE_NODE_EXPR_INC_RIGHT: {
						_SYNERR_NODE(ctx, node, "unary operator postfix '++' need number left value operand.");
						break;
					}
					case FE_NODE_EXPR_DEC_RIGHT: {
						_SYNERR_NODE(ctx, node, "unary operator postfix '--' need number left value operand.");
						break;
					}
					default: {
						assert(0);
					}
				}
			}

			FE_EXPR_AST_NODE_COPY(node, node_oprd);

			FE_EXPR_AST_NODE_SET_CONSTANT(node, false);
			break;
		}
		default: {
			_expr_member_arridx_fncall(ctx, node);
			break;
		}
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x400, %rsp            # imm = 0x400
testq %rsi, %rsi
je 0x30392
movq %rsi, %rbx
movq %rdi, %r14
movl (%rsi), %r12d
leal -0xecb(%r12), %eax
cmpl $0x1, %eax
ja 0x30239
cmpl $0x1, 0x44(%rbx)
jne 0x303b1
movq 0x48(%rbx), %rax
movq (%rax), %r15
movq %r14, %rdi
movq %r15, %rsi
callq 0x31421
movq %r15, %rdi
callq 0x2c597
testl %eax, %eax
je 0x30253
movq %r15, %rdi
callq 0x30769
testb %al, %al
jne 0x3035d
cmpl $0xecb, %r12d           # imm = 0xECB
je 0x302a8
jmp 0x30321
movq %r14, %rdi
movq %rbx, %rsi
addq $0x400, %rsp            # imm = 0x400
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x31421
cmpl $0xecb, %r12d           # imm = 0xECB
jne 0x302d9
movups 0x1b427(%rip), %xmm0    # 0x4b68a
leaq -0x420(%rbp), %rdx
movups %xmm0, 0x2c(%rdx)
movups 0x1b409(%rip), %xmm0    # 0x4b67e
movaps %xmm0, 0x20(%rdx)
movups 0x1b3ee(%rip), %xmm0    # 0x4b66e
movaps %xmm0, 0x10(%rdx)
movups 0x1b3d3(%rip), %xmm0    # 0x4b65e
movaps %xmm0, (%rdx)
movq %r14, %rdi
movq %rbx, %rsi
callq *0x58(%r14)
movq %r15, %rdi
callq 0x30769
testb %al, %al
jne 0x3035d
movups 0x1b3db(%rip), %xmm0    # 0x4b68a
leaq -0x420(%rbp), %rdx
movups %xmm0, 0x2c(%rdx)
movups 0x1b3bd(%rip), %xmm0    # 0x4b67e
movaps %xmm0, 0x20(%rdx)
movups 0x1b3a2(%rip), %xmm0    # 0x4b66e
movaps %xmm0, 0x10(%rdx)
movups 0x1b387(%rip), %xmm0    # 0x4b65e
jmp 0x30350
movups 0x1b3e6(%rip), %xmm0    # 0x4b6c6
leaq -0x420(%rbp), %rdx
movups %xmm0, 0x2c(%rdx)
movups 0x1b3c8(%rip), %xmm0    # 0x4b6ba
movaps %xmm0, 0x20(%rdx)
movups 0x1b3ad(%rip), %xmm0    # 0x4b6aa
movaps %xmm0, 0x10(%rdx)
movups 0x1b392(%rip), %xmm0    # 0x4b69a
movaps %xmm0, (%rdx)
movq %r14, %rdi
movq %rbx, %rsi
callq *0x58(%r14)
movq %r15, %rdi
callq 0x30769
testb %al, %al
jne 0x3035d
movups 0x1b39e(%rip), %xmm0    # 0x4b6c6
leaq -0x420(%rbp), %rdx
movups %xmm0, 0x2c(%rdx)
movups 0x1b380(%rip), %xmm0    # 0x4b6ba
movaps %xmm0, 0x20(%rdx)
movups 0x1b365(%rip), %xmm0    # 0x4b6aa
movaps %xmm0, 0x10(%rdx)
movups 0x1b34a(%rip), %xmm0    # 0x4b69a
movaps %xmm0, (%rdx)
movq %r14, %rdi
movq %rbx, %rsi
callq *0x58(%r14)
movups 0x60(%r15), %xmm0
movups 0x70(%r15), %xmm1
movups 0x80(%r15), %xmm2
movups %xmm1, 0x70(%rbx)
movups %xmm2, 0x80(%rbx)
movups %xmm0, 0x60(%rbx)
movb $0x0, 0x70(%rbx)
addq $0x400, %rsp            # imm = 0x400
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
leaq 0x12a49(%rip), %rdi     # 0x42de2
leaq 0x1a55a(%rip), %rsi     # 0x4a8fa
leaq 0x1b27c(%rip), %rcx     # 0x4b623
movl $0xdaf, %edx            # imm = 0xDAF
callq 0x30a0
leaq 0x1b3d8(%rip), %rdi     # 0x4b790
leaq 0x1a53b(%rip), %rsi     # 0x4a8fa
leaq 0x1b25d(%rip), %rcx     # 0x4b623
movl $0xdb6, %edx            # imm = 0xDB6
callq 0x30a0