// File: /workspace/github_c_makefile_star2_O1/markdryan[P]subtilis/frontend/builtins_ir.c
// Function: subtilis_builtin_ir_call_dec_to_str
subtilis_exp_t *subtilis_builtin_ir_call_dec_to_str(subtilis_parser_t *p,
						    size_t val_reg,
						    size_t buf_reg,
						    subtilis_error_t *err)
{
	subtilis_ir_section_t *fn;

	const subtilis_type_t *ptype[2];

	ptype[0] = &subtilis_type_integer;
	ptype[1] = &subtilis_type_integer;

	fn = prv_add_args(p, "_dec_to_str", 2, ptype, &subtilis_type_integer,
			  err);
	if (err->type != SUBTILIS_ERROR_OK) {
		if (err->type != SUBTILIS_ERROR_ALREADY_DEFINED)
			return NULL;
		subtilis_error_init(err);
	} else {
		prv_builtins_ir_dec_to_str(p, fn, err);
		if (err->type != SUBTILIS_ERROR_OK)
			return NULL;
	}

	return subtilis_parser_call_2_arg_fn(
	    p, "_dec_to_str", val_reg, buf_reg, SUBTILIS_IR_REG_TYPE_INTEGER,
	    SUBTILIS_IR_REG_TYPE_INTEGER, &subtilis_type_integer, false, err);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x88, %rsp
movq %rcx, %rbx
movq %rdx, %r15
movq %rsi, %r12
movq %rdi, %r13
leaq 0x42a17(%rip), %r14     # 0x748f8
leaq 0x70(%rsp), %rcx
movq %r14, (%rcx)
movq %r14, 0x8(%rcx)
subq $0x8, %rsp
leaq 0x43372(%rip), %rsi     # 0x7526a
movl $0x2, %edx
movq %r14, %r8
xorl %r9d, %r9d
pushq %rbx
callq 0x34307
addq $0x10, %rsp
movq %rax, %rbp
movl (%rbx), %eax
testl %eax, %eax
je 0x31f2c
cmpl $0x20, %eax
jne 0x3209e
movq %rbx, %rdi
callq 0x14404
jmp 0x320a9
movq %r12, 0x60(%rsp)
movq %r15, 0x68(%rsp)
movq 0x48(%r13), %rax
movq %rax, 0x58(%rsp)
movq %r13, 0x10(%rsp)
movq %rbp, 0x48(%r13)
movq 0x98(%rbp), %rax
movq %rax, 0x38(%rsp)
movq %rbp, %rdi
callq 0x2d00a
movq %rax, 0x50(%rsp)
movq %rbp, %rdi
callq 0x2d00a
movq %rax, 0x8(%rsp)
movq %rbp, %rdi
callq 0x2d00a
movq %rax, 0x40(%rsp)
movq %rbp, %rdi
callq 0x2d00a
movq %rax, %r12
movq %rbp, %rdi
callq 0x2d00a
movq %rax, %r13
movq %rbp, %rdi
callq 0x2d00a
movq %rax, %r15
movq 0xa8(%rbp), %r14
movl $0x5, %edx
movq %rbp, %rdi
movl $0x1d, %esi
movq %rbx, %rcx
callq 0x2c189
cmpl $0x0, (%rbx)
je 0x31fd4
xorl %r15d, %r15d
xorl %r12d, %r12d
leaq 0x4292e(%rip), %r14     # 0x748f8
movq 0x10(%rsp), %r13
jmp 0x32076
movq %rax, 0x48(%rsp)
movq %r12, 0x18(%rsp)
movq %r13, 0x20(%rsp)
movq %r15, 0x28(%rsp)
movq %r14, 0x30(%rsp)
xorl %r15d, %r15d
movl $0x4, %edx
movq %rbp, %rdi
movl $0x3d, %esi
xorl %ecx, %ecx
movq %rbx, %r8
callq 0x2c00f
cmpl $0x0, (%rbx)
movl $0x0, %r12d
leaq 0x428e1(%rip), %r14     # 0x748f8
movq 0x10(%rsp), %r13
jne 0x32076
movq %rbp, %rdi
movl $0x43, %esi
movq %rax, %rdx
movq 0x50(%rsp), %r15
movq %r15, %rcx
movq 0x8(%rsp), %r8
movq %rbx, %r9
callq 0x2c0c2
cmpl $0x0, (%rbx)
jne 0x32070
movq %rbp, %rdi
movq %r15, %rsi
movq %rbx, %rdx
callq 0x2d017
cmpl $0x0, (%rbx)
jne 0x32070
movl $0x2d, %edx
movq %rbp, %rdi
movl $0x1b, %esi
movq %rbx, %rcx
callq 0x2c189
cmpl $0x0, (%rbx)
je 0x320df
xorl %r15d, %r15d
xorl %r12d, %r12d
movq 0x58(%rsp), %rax
movq %rax, 0x48(%r13)
movq %r15, %rdi
callq 0x2b4c3
movq %r12, %rdi
callq 0x2b4c3
cmpl $0x0, (%rbx)
movq 0x68(%rsp), %r15
movq 0x60(%rsp), %r12
je 0x320a9
xorl %eax, %eax
addq $0x88, %rsp
jmp 0x320d4
subq $0x8, %rsp
leaq 0x431b6(%rip), %rsi     # 0x7526a
movq %r13, %rdi
movq %r12, %rdx
movq %r15, %rcx
xorl %r8d, %r8d
xorl %r9d, %r9d
pushq %rbx
pushq $0x0
pushq %r14
callq 0x1ea95
addq $0xa8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
xorl %r15d, %r15d
movl $0x5, %ecx
movq %rbp, %rdi
movl $0x16, %esi
movq %rax, %rdx
xorl %r8d, %r8d
movq %rbx, %r9
callq 0x2c0c2
cmpl $0x0, (%rbx)
movl $0x0, %r12d
jne 0x32076
movl $0x5, %edx
movl $0x5, %ecx
movl $0x1, %r8d
movq %rbp, %rdi
movl $0x9, %esi
movq %rbx, %r9
callq 0x2c0c2
cmpl $0x0, (%rbx)
jne 0x32070
movq %rbp, %rdi
movq 0x8(%rsp), %rsi
movq %rbx, %rdx
callq 0x2d017
cmpl $0x0, (%rbx)
jne 0x32070
movl $0x5, %edx
movq %rbp, %rdi
movl $0x1d, %esi
movq %rbx, %rcx
callq 0x2c189
cmpl $0x0, (%rbx)
jne 0x32070
movq %rax, %r13
movl $0xa, %edi
movq %rbx, %rsi
callq 0x2bb29
movq %rax, %r15
movq %rbx, 0x8(%rsp)
cmpl $0x0, (%rbx)
je 0x3218e
xorl %r12d, %r12d
jmp 0x321c2
movl $0x4, %edi
movq 0x8(%rsp), %rbx
movq %rbx, %rsi
callq 0x2ba99
movq %rax, %r12
cmpl $0x0, (%rbx)
jne 0x321c2
movq %rbp, %rdi
movq 0x40(%rsp), %rsi
movq 0x8(%rsp), %rbx
movq %rbx, %rdx
callq 0x2d017
cmpl $0x0, (%rbx)
je 0x321d8
leaq 0x4272f(%rip), %r14     # 0x748f8
movq 0x10(%rsp), %r13
movq 0x8(%rsp), %rbx
jmp 0x32076
movq 0x10(%rsp), %rdi
movq %r12, %rsi
movq %r15, %rdx
movq 0x8(%rsp), %rbx
movq %rbx, %rcx
callq 0x36fed
cmpl $0x0, (%rbx)
je 0x32204
xorl %r15d, %r15d
leaq 0x426f9(%rip), %r14     # 0x748f8
movq %rax, %r12
jmp 0x321c9
movq 0x10(%rsp), %rdi
movq %rax, %rsi
movq 0x8(%rsp), %rbx
movq %rbx, %rdx
callq 0x375a9
movq %rax, %r12
cmpl $0x0, (%rbx)
jne 0x32258
movl $0x30, %edi
movq 0x8(%rsp), %rbx
movq %rbx, %rsi
callq 0x2bb29
cmpl $0x0, (%rbx)
jne 0x32258
movq 0x10(%rsp), %rdi
movq %r12, %rsi
movq %rax, %rdx
movq 0x8(%rsp), %rbx
movq %rbx, %rcx
callq 0x36c85
movq %rax, %r12
cmpl $0x0, (%rbx)
je 0x32260
xorl %r15d, %r15d
jmp 0x321c2
movq 0x148(%r12), %rdx
movl $0x5, %ecx
movq %rbp, %rdi
movl $0x16, %esi
xorl %r8d, %r8d
movq 0x8(%rsp), %rbx
movq %rbx, %r9
callq 0x2c0c2
cmpl $0x0, (%rbx)
je 0x3229e
leaq 0x42667(%rip), %r14     # 0x748f8
movq 0x10(%rsp), %r13
xorl %r15d, %r15d
jmp 0x321ce
movq %r12, %rdi
callq 0x2b4c3
movl $0x5, %edx
movl $0x5, %ecx
movl $0x1, %r8d
movq %rbp, %rdi
movl $0x9, %esi
movq 0x8(%rsp), %rbx
movq %rbx, %r9
callq 0x2c0c2
cmpl $0x0, (%rbx)
je 0x322d8
xorl %r15d, %r15d
jmp 0x32189
movl $0xa, %edi
movq 0x8(%rsp), %rbx
movq %rbx, %rsi
callq 0x2bb29
movq %rax, %r15
cmpl $0x0, (%rbx)
jne 0x32189
movl $0x4, %edi
movq 0x8(%rsp), %rbx
movq %rbx, %rsi
callq 0x2ba99
cmpl $0x0, (%rbx)
jne 0x321f8
movq 0x10(%rsp), %rdi
movq %rax, %rsi
movq %r15, %rdx
movq 0x8(%rsp), %rbx
movq %rbx, %rcx
callq 0x36f6d
movq %rax, %r15
cmpl $0x0, (%rbx)
jne 0x3247e
movq 0x148(%r15), %rcx
movl $0x4, %edx
movq %rbp, %rdi
movl $0x1d, %esi
movq 0x8(%rsp), %rbx
movq %rbx, %r8
callq 0x2c1ac
cmpl $0x0, (%rbx)
jne 0x3247e
movl $0x4, %edx
movq %rbp, %rdi
movl $0x43, %esi
movq 0x40(%rsp), %rcx
movq 0x18(%rsp), %r8
movq 0x8(%rsp), %rbx
movq %rbx, %r9
callq 0x2c0c2
cmpl $0x0, (%rbx)
jne 0x3247e
movq %rbp, %rdi
movq 0x18(%rsp), %rsi
movq 0x8(%rsp), %rbx
movq %rbx, %rdx
callq 0x2d017
cmpl $0x0, (%rbx)
jne 0x3247e
movl $0x5, %ecx
movq %rbp, %rdi
movl $0x2, %esi
movq 0x30(%rsp), %rdx
movq 0x48(%rsp), %r8
movq 0x8(%rsp), %rbx
movq %rbx, %r9
callq 0x2c0c2
cmpl $0x0, (%rbx)
jne 0x3247e
movl $0x5, %edx
movl $0x5, %ecx
movl $0x1, %r8d
movq %rbp, %rdi
movl $0xb, %esi
movq 0x8(%rsp), %rbx
movq %rbx, %r9
callq 0x2c0c2
cmpl $0x0, (%rbx)
jne 0x3247e
movq %rbp, %rdi
movq 0x28(%rsp), %rsi
movq 0x8(%rsp), %rbx
movq %rbx, %rdx
callq 0x2d017
cmpl $0x0, (%rbx)
jne 0x3247e
movl $0x5, %ecx
movq %rbp, %rdi
movl $0x3b, %esi
movq %r13, %rdx
movq 0x8(%rsp), %rbx
movq %rbx, %r8
callq 0x2c00f
cmpl $0x0, (%rbx)
jne 0x3247e
movq %rbp, %rdi
movl $0x43, %esi
movq %rax, %rdx
movq 0x20(%rsp), %rcx
movq 0x38(%rsp), %r8
movq 0x8(%rsp), %rbx
movq %rbx, %r9
callq 0x2c0c2
cmpl $0x0, (%rbx)
jne 0x3247e
movq %rbp, %rdi
movq 0x20(%rsp), %rsi
movq 0x8(%rsp), %rbx
movq %rbx, %rdx
callq 0x2d017
cmpl $0x0, (%rbx)
je 0x32490
leaq 0x42473(%rip), %r14     # 0x748f8
movq %r15, %r12
xorl %r15d, %r15d
jmp 0x321c9
movq %rbp, %rdi
movl $0x11, %esi
movq %r13, %rdx
xorl %ecx, %ecx
movq 0x8(%rsp), %rbx
movq %rbx, %r8
callq 0x2c00f
cmpl $0x0, (%rbx)
jne 0x324fb
movq %rax, %r12
movl $0x5, %edx
movq %rbp, %rdi
movl $0x11, %esi
xorl %ecx, %ecx
movq 0x8(%rsp), %rbx
movq %rbx, %r8
callq 0x2c00f
cmpl $0x0, (%rbx)
jne 0x324fb
movq %rax, %r14
movl $0x5, %ecx
movq %rbp, %rdi
movl $0x16, %esi
movq %r12, %rdx
xorl %r8d, %r8d
movq 0x8(%rsp), %rbx
movq %rbx, %r9
callq 0x2c0c2
cmpl $0x0, (%rbx)
je 0x3250a
leaq 0x423f6(%rip), %r14     # 0x748f8
movq %r15, %r12
jmp 0x32291
movl $0x5, %edx
movl $0x5, %ecx
movl $0x1, %r8d
movq %rbp, %rdi
movl $0xb, %esi
movq 0x8(%rsp), %rbx
movq %rbx, %r9
callq 0x2c0c2
cmpl $0x0, (%rbx)
jne 0x3247e
movq %rbp, %rdi
movl $0x16, %esi
movq %r14, %rdx
movq %r13, %rcx
xorl %r8d, %r8d
movq 0x8(%rsp), %rbx
movq %rbx, %r9
callq 0x2c0c2
cmpl $0x0, (%rbx)
jne 0x324fb
movl $0x1, %r8d
movq %rbp, %rdi
movl $0x9, %esi
movq %r13, %rdx
movq %r13, %rcx
movq 0x8(%rsp), %rbx
movq %rbx, %r9
callq 0x2c0c2
cmpl $0x0, (%rbx)
jne 0x3247e
movq %rbp, %rdi
movl $0x45, %esi
movq 0x28(%rsp), %rdx
movq 0x8(%rsp), %rbx
movq %rbx, %rcx
callq 0x2c19f
cmpl $0x0, (%rbx)
leaq 0x4234f(%rip), %r14     # 0x748f8
movq 0x10(%rsp), %r13
jne 0x3208f
movq %rbp, %rdi
movq 0x38(%rsp), %rsi
movq %rbx, %rdx
callq 0x2d017
cmpl $0x0, (%rbx)
jne 0x3247e
movq %rbp, %rdi
movl $0x47, %esi
movq 0x30(%rsp), %rdx
movq 0x8(%rsp), %rbx
movq %rbx, %rcx
callq 0x2c19f
leaq 0x4230a(%rip), %r14     # 0x748f8
movq %r15, %r12
xorl %r15d, %r15d
jmp 0x31fca