// File: /workspace/github_c_makefile_star2_O0/Ihsoh[P]ilang/compiler/frontend/irgen_llvmir.c
// Function: ir_expr_shift_left
static void _ir_expr_shift_left(
	IRGeneratorLlvmirContext *ctx,
	ResizableString *rstr,
	ResizableString *rstr_result_lhs_ptr,
	_ExprResult *expr_result,
	ParserASTNode *node
) {
	assert(ctx);
	assert(rstr);
	assert(expr_result);
	assert(node);
	assert(node->type == FE_NODE_EXPR_SHIFT_LEFT
			|| node->type == FE_NODE_EXPR_SHIFT_LEFT_ASSIGN);

	ParserSymbol *func_symbol = ctx->func_symbol;
	assert(func_symbol);

	ParserASTNode *node_lhs = node->childs[0];
	ParserASTNode *node_rhs = node->childs[1];

	ParserASTNode *node_lhs_type = FE_EXPR_AST_NODE_GET_TYPE_NODE(node_lhs);
	ParserASTNode *node_rhs_type = FE_EXPR_AST_NODE_GET_TYPE_NODE(node_rhs);

	_ExprResult result_lhs;
	_ExprResult result_rhs;
	_ExprResult result_rhs_casted;

	_expr_result_init(&result_lhs);
	_expr_result_init(&result_rhs);
	_expr_result_init(&result_rhs_casted);

	_ir_expr(ctx, rstr, &result_lhs, node_lhs);
	rstr_append_with_rstr(rstr, &(result_lhs.rstr_for_result_ptr));
	rstr_append_with_rstr(rstr, &(result_lhs.rstr_for_result));

	if (rstr_result_lhs_ptr != NULL) {
		rstr_append_with_rstr(
			rstr_result_lhs_ptr,
			&(result_lhs.rstr_result_ptr)
		);
	}

	_ir_expr(ctx, rstr, &result_rhs, node_rhs);
	rstr_append_with_rstr(rstr, &(result_rhs.rstr_for_result_ptr));
	rstr_append_with_rstr(rstr, &(result_rhs.rstr_for_result));

	_expr_result_cast(
		ctx,
		&result_rhs_casted,
		node_lhs_type,
		&result_rhs,
		node_rhs_type
	);
	rstr_append_with_rstr(rstr, &(result_rhs_casted.rstr_for_result_ptr));
	rstr_append_with_rstr(rstr, &(result_rhs_casted.rstr_for_result));

	ResizableString rstr_tmp_label_val;
	rstr_init(&rstr_tmp_label_val);
	_generate_func_tmp(ctx, func_symbol, &rstr_tmp_label_val);

	rstr_appendf(
		&(expr_result->rstr_for_result),
		"%s = shl %s, %s\n",
		RSTR_CSTR(&rstr_tmp_label_val),
		RSTR_CSTR(&(result_lhs.rstr_result)),
		RSTR_CSTR(&(result_rhs_casted.rstr_result_val))
	);
	_expr_result_set_result(
		expr_result,
		RSTR_CSTR(&(result_lhs.rstr_result_type)),
		RSTR_CSTR(&rstr_tmp_label_val)
	);

	_expr_result_free(&result_lhs);
	_expr_result_free(&result_rhs);
	_expr_result_free(&result_rhs_casted);
	rstr_free(&rstr_tmp_label_val);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x230, %rsp            # imm = 0x230
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movq %r8, -0x28(%rbp)
cmpq $0x0, -0x8(%rbp)
je 0x38588
jmp 0x385a7
leaq 0x43fc7(%rip), %rdi     # 0x7c556
leaq 0x3fb3a(%rip), %rsi     # 0x780d0
movl $0xe33, %edx            # imm = 0xE33
leaq 0x40c41(%rip), %rcx     # 0x791e3
callq 0x30a0
cmpq $0x0, -0x10(%rbp)
je 0x385b0
jmp 0x385cf
leaq 0x3a557(%rip), %rdi     # 0x72b0e
leaq 0x3fb12(%rip), %rsi     # 0x780d0
movl $0xe34, %edx            # imm = 0xE34
leaq 0x40c19(%rip), %rcx     # 0x791e3
callq 0x30a0
cmpq $0x0, -0x20(%rbp)
je 0x385d8
jmp 0x385f7
leaq 0x3c634(%rip), %rdi     # 0x74c13
leaq 0x3faea(%rip), %rsi     # 0x780d0
movl $0xe35, %edx            # imm = 0xE35
leaq 0x40bf1(%rip), %rcx     # 0x791e3
callq 0x30a0
cmpq $0x0, -0x28(%rbp)
je 0x38600
jmp 0x3861f
leaq 0x3d9cc(%rip), %rdi     # 0x75fd3
leaq 0x3fac2(%rip), %rsi     # 0x780d0
movl $0xe36, %edx            # imm = 0xE36
leaq 0x40bc9(%rip), %rcx     # 0x791e3
callq 0x30a0
movq -0x28(%rbp), %rax
cmpl $0xe90, (%rax)          # imm = 0xE90
je 0x38637
movq -0x28(%rbp), %rax
cmpl $0xe19, (%rax)          # imm = 0xE19
jne 0x38639
jmp 0x38658
leaq 0x3d2b5(%rip), %rdi     # 0x758f5
leaq 0x3fa89(%rip), %rsi     # 0x780d0
movl $0xe38, %edx            # imm = 0xE38
leaq 0x40b90(%rip), %rcx     # 0x791e3
callq 0x30a0
movq -0x8(%rbp), %rax
movq 0x40(%rax), %rax
movq %rax, -0x30(%rbp)
cmpq $0x0, -0x30(%rbp)
je 0x3866d
jmp 0x3868c
leaq 0x3daff(%rip), %rdi     # 0x76173
leaq 0x3fa55(%rip), %rsi     # 0x780d0
movl $0xe3b, %edx            # imm = 0xE3B
leaq 0x40b5c(%rip), %rcx     # 0x791e3
callq 0x30a0
movq -0x28(%rbp), %rax
movq 0x48(%rax), %rax
movq (%rax), %rax
movq %rax, -0x38(%rbp)
movq -0x28(%rbp), %rax
movq 0x48(%rax), %rax
movq 0x8(%rax), %rax
movq %rax, -0x40(%rbp)
movq -0x38(%rbp), %rax
movq 0x68(%rax), %rax
movq %rax, -0x48(%rbp)
movq -0x40(%rbp), %rax
movq 0x68(%rax), %rax
movq %rax, -0x50(%rbp)
leaq -0xd0(%rbp), %rdi
callq 0x2a260
leaq -0x150(%rbp), %rdi
callq 0x2a260
leaq -0x1d0(%rbp), %rdi
callq 0x2a260
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rsi
movq -0x38(%rbp), %rcx
leaq -0xd0(%rbp), %rdx
callq 0x2d590
movq -0x10(%rbp), %rdi
leaq -0xd0(%rbp), %rsi
addq $0x10, %rsi
callq 0x9100
movq -0x10(%rbp), %rdi
leaq -0xd0(%rbp), %rsi
callq 0x9100
cmpq $0x0, -0x18(%rbp)
je 0x3873e
movq -0x18(%rbp), %rdi
leaq -0xd0(%rbp), %rsi
addq $0x50, %rsi
callq 0x9100
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rsi
movq -0x40(%rbp), %rcx
leaq -0x150(%rbp), %rdx
callq 0x2d590
movq -0x10(%rbp), %rdi
leaq -0x150(%rbp), %rsi
addq $0x10, %rsi
callq 0x9100
movq -0x10(%rbp), %rdi
leaq -0x150(%rbp), %rsi
callq 0x9100
movq -0x8(%rbp), %rdi
movq -0x48(%rbp), %rdx
movq -0x50(%rbp), %r8
leaq -0x1d0(%rbp), %rsi
leaq -0x150(%rbp), %rcx
callq 0x2a360
movq -0x10(%rbp), %rdi
leaq -0x1d0(%rbp), %rsi
addq $0x10, %rsi
callq 0x9100
movq -0x10(%rbp), %rdi
leaq -0x1d0(%rbp), %rsi
callq 0x9100
leaq -0x1e0(%rbp), %rdi
callq 0x8c90
movq -0x8(%rbp), %rdi
movq -0x30(%rbp), %rsi
leaq -0x1e0(%rbp), %rdx
callq 0x35980
movq -0x20(%rbp), %rax
movq %rax, -0x1e8(%rbp)
cmpq $0x0, -0x1d8(%rbp)
jne 0x38802
leaq 0x3f0bc(%rip), %rax     # 0x778b5
movq %rax, -0x1f0(%rbp)
jmp 0x38810
movq -0x1d8(%rbp), %rax
movq %rax, -0x1f0(%rbp)
movq -0x1f0(%rbp), %rax
movq %rax, -0x1f8(%rbp)
cmpq $0x0, -0xa8(%rbp)
jne 0x38838
leaq 0x3f086(%rip), %rax     # 0x778b5
movq %rax, -0x200(%rbp)
jmp 0x38846
movq -0xa8(%rbp), %rax
movq %rax, -0x200(%rbp)
movq -0x200(%rbp), %rax
movq %rax, -0x208(%rbp)
cmpq $0x0, -0x188(%rbp)
jne 0x3886e
leaq 0x3f050(%rip), %rax     # 0x778b5
movq %rax, -0x210(%rbp)
jmp 0x3887c
movq -0x188(%rbp), %rax
movq %rax, -0x210(%rbp)
movq -0x208(%rbp), %rcx
movq -0x1f8(%rbp), %rdx
movq -0x1e8(%rbp), %rdi
movq -0x210(%rbp), %r8
leaq 0x409bf(%rip), %rsi     # 0x7925e
movb $0x0, %al
callq 0x94d0
movq -0x20(%rbp), %rax
movq %rax, -0x218(%rbp)
cmpq $0x0, -0x98(%rbp)
jne 0x388cb
leaq 0x3eff3(%rip), %rax     # 0x778b5
movq %rax, -0x220(%rbp)
jmp 0x388d9
movq -0x98(%rbp), %rax
movq %rax, -0x220(%rbp)
movq -0x220(%rbp), %rax
movq %rax, -0x228(%rbp)
cmpq $0x0, -0x1d8(%rbp)
jne 0x38901
leaq 0x3efbd(%rip), %rax     # 0x778b5
movq %rax, -0x230(%rbp)
jmp 0x3890f
movq -0x1d8(%rbp), %rax
movq %rax, -0x230(%rbp)
movq -0x228(%rbp), %rsi
movq -0x218(%rbp), %rdi
movq -0x230(%rbp), %rdx
callq 0x358a0
leaq -0xd0(%rbp), %rdi
callq 0x2c6a0
leaq -0x150(%rbp), %rdi
callq 0x2c6a0
leaq -0x1d0(%rbp), %rdi
callq 0x2c6a0
leaq -0x1e0(%rbp), %rdi
callq 0x9310
addq $0x230, %rsp            # imm = 0x230
popq %rbp
retq
nopw %cs:(%rax,%rax)