// File: /workspace/github_c_makefile_star2_O1/Ihsoh[P]ilang/compiler/frontend/irgen_c.c
// Function: ir_expr_assign
static bool _ir_expr_assign(
	IRGeneratorCContext *ctx,
	ResizableString *rstr,
	ParserASTNode *node_expr
) {
	assert(ctx);
	assert(rstr);
	assert(node_expr);

	#define	_IR_EXPR_ASSIGN(str_opt)	\
	{	\
		assert(node_expr->nchilds == 2);	\
		rstr_append_with_cstr(rstr, "(");	\
		_ir_expr(ctx, rstr, node_expr->childs[0]);	\
		rstr_append_with_cstr(rstr, (str_opt));	\
		_ir_expr(ctx, rstr, node_expr->childs[1]);	\
		rstr_append_with_cstr(rstr, ")");	\
	}

	switch (node_expr->type) {
		case FE_NODE_EXPR_ASSIGN: {
			_IR_EXPR_ASSIGN(" = ")
			return true;
		}
		case FE_NODE_EXPR_ADD_ASSIGN: {
			_IR_EXPR_ASSIGN(" += ")
			return true;
		}
		case FE_NODE_EXPR_SUB_ASSIGN: {
			_IR_EXPR_ASSIGN(" -= ")
			return true;
		}
		case FE_NODE_EXPR_MUL_ASSIGN: {
			_IR_EXPR_ASSIGN(" *= ")
			return true;
		}
		case FE_NODE_EXPR_DIV_ASSIGN: {
			_IR_EXPR_ASSIGN(" /= ")
			return true;
		}
		case FE_NODE_EXPR_MOD_ASSIGN: {
			_IR_EXPR_ASSIGN(" %= ")
			return true;
		}
		case FE_NODE_EXPR_BAND_ASSIGN: {
			_IR_EXPR_ASSIGN(" &= ")
			return true;
		}
		case FE_NODE_EXPR_BOR_ASSIGN: {
			_IR_EXPR_ASSIGN(" |= ")
			return true;
		}
		case FE_NODE_EXPR_BXOR_ASSIGN: {
			_IR_EXPR_ASSIGN(" ^= ")
			return true;
		}
		case FE_NODE_EXPR_SHIFT_LEFT_ASSIGN: {
			_IR_EXPR_ASSIGN(" <<= ")
			return true;
		}
		case FE_NODE_EXPR_SHIFT_RIGHT_ASSIGN: {
			_IR_EXPR_ASSIGN(" >>= ")
			return true;
		}
		default: {
			return false;
		}
	}

	#undef	_IR_EXPR_ASSIGN
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movl $0xfffff1f0, %eax       # imm = 0xFFFFF1F0
addl (%rdx), %eax
cmpl $0xa, %eax
ja 0x17021
movq %rdx, %r15
movq %rsi, %rbx
movq %rdi, %r14
leaq 0x2d8b7(%rip), %rcx     # 0x44790
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
cmpl $0x2, 0x44(%r15)
jne 0x170c0
leaq 0x2f353(%rip), %r12     # 0x46247
jmp 0x16fc8
cmpl $0x2, 0x44(%r15)
jne 0x17025
leaq 0x2e2e6(%rip), %r12     # 0x451f1
jmp 0x16fc8
cmpl $0x2, 0x44(%r15)
jne 0x17044
leaq 0x2e2e8(%rip), %r12     # 0x4520a
jmp 0x16fc8
cmpl $0x2, 0x44(%r15)
jne 0x17063
leaq 0x2e2ae(%rip), %r12     # 0x451e7
jmp 0x16fc8
cmpl $0x2, 0x44(%r15)
jne 0x17082
leaq 0x2e29c(%rip), %r12     # 0x451ec
jmp 0x16fc8
cmpl $0x2, 0x44(%r15)
jne 0x170a1
leaq 0x2e29c(%rip), %r12     # 0x45200
jmp 0x16fc8
cmpl $0x2, 0x44(%r15)
jne 0x170df
leaq 0x2e26a(%rip), %r12     # 0x451e2
jmp 0x16fc8
cmpl $0x2, 0x44(%r15)
jne 0x170fe
leaq 0x2e26a(%rip), %r12     # 0x451f6
jmp 0x16fc8
cmpl $0x2, 0x44(%r15)
jne 0x1711d
leaq 0x2e25b(%rip), %r12     # 0x451fb
jmp 0x16fc8
cmpl $0x2, 0x44(%r15)
jne 0x1713c
leaq 0x2e25c(%rip), %r12     # 0x45210
jmp 0x16fc8
cmpl $0x2, 0x44(%r15)
jne 0x1715b
leaq 0x2e23d(%rip), %r12     # 0x45205
leaq 0x2e3aa(%rip), %rsi     # 0x45379
movq %rbx, %rdi
callq 0x75cf
movq 0x48(%r15), %rax
movq (%rax), %rdx
movq %r14, %rdi
movq %rbx, %rsi
callq 0x155d5
movq %rbx, %rdi
movq %r12, %rsi
callq 0x75cf
movq 0x48(%r15), %rax
movq 0x8(%rax), %rdx
movq %r14, %rdi
movq %rbx, %rsi
callq 0x155d5
leaq 0x2d92c(%rip), %rsi     # 0x4493a
movq %rbx, %rdi
callq 0x75cf
movb $0x1, %al
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
xorl %eax, %eax
jmp 0x17018
leaq 0x2dc88(%rip), %rdi     # 0x44cb4
leaq 0x2d789(%rip), %rsi     # 0x447bc
leaq 0x2e157(%rip), %rcx     # 0x45191
movl $0x443, %edx            # imm = 0x443
callq 0x30a0
leaq 0x2dc69(%rip), %rdi     # 0x44cb4
leaq 0x2d76a(%rip), %rsi     # 0x447bc
leaq 0x2e138(%rip), %rcx     # 0x45191
movl $0x457, %edx            # imm = 0x457
callq 0x30a0
leaq 0x2dc4a(%rip), %rdi     # 0x44cb4
leaq 0x2d74b(%rip), %rsi     # 0x447bc
leaq 0x2e119(%rip), %rcx     # 0x45191
movl $0x43b, %edx            # imm = 0x43B
callq 0x30a0
leaq 0x2dc2b(%rip), %rdi     # 0x44cb4
leaq 0x2d72c(%rip), %rsi     # 0x447bc
leaq 0x2e0fa(%rip), %rcx     # 0x45191
movl $0x43f, %edx            # imm = 0x43F
callq 0x30a0
leaq 0x2dc0c(%rip), %rdi     # 0x44cb4
leaq 0x2d70d(%rip), %rsi     # 0x447bc
leaq 0x2e0db(%rip), %rcx     # 0x45191
movl $0x44f, %edx            # imm = 0x44F
callq 0x30a0
leaq 0x2dbed(%rip), %rdi     # 0x44cb4
leaq 0x2d6ee(%rip), %rsi     # 0x447bc
leaq 0x2e0bc(%rip), %rcx     # 0x45191
movl $0x433, %edx            # imm = 0x433
callq 0x30a0
leaq 0x2dbce(%rip), %rdi     # 0x44cb4
leaq 0x2d6cf(%rip), %rsi     # 0x447bc
leaq 0x2e09d(%rip), %rcx     # 0x45191
movl $0x437, %edx            # imm = 0x437
callq 0x30a0
leaq 0x2dbaf(%rip), %rdi     # 0x44cb4
leaq 0x2d6b0(%rip), %rsi     # 0x447bc
leaq 0x2e07e(%rip), %rcx     # 0x45191
movl $0x447, %edx            # imm = 0x447
callq 0x30a0
leaq 0x2db90(%rip), %rdi     # 0x44cb4
leaq 0x2d691(%rip), %rsi     # 0x447bc
leaq 0x2e05f(%rip), %rcx     # 0x45191
movl $0x44b, %edx            # imm = 0x44B
callq 0x30a0
leaq 0x2db71(%rip), %rdi     # 0x44cb4
leaq 0x2d672(%rip), %rsi     # 0x447bc
leaq 0x2e040(%rip), %rcx     # 0x45191
movl $0x45b, %edx            # imm = 0x45B
callq 0x30a0
leaq 0x2db52(%rip), %rdi     # 0x44cb4
leaq 0x2d653(%rip), %rsi     # 0x447bc
leaq 0x2e021(%rip), %rcx     # 0x45191
movl $0x453, %edx            # imm = 0x453
callq 0x30a0