// File: /workspace/github_c_makefile_star2_O2/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 $0x98, %rsp
movq %rcx, %r12
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
leaq 0x3e785(%rip), %r13     # 0x6e8c8
leaq 0x80(%rsp), %rcx
movq %r13, (%rcx)
movq %r13, 0x8(%rcx)
leaq 0x3f0e1(%rip), %rsi     # 0x6f23a
pushq $0x2
popq %rdx
movq %r13, %r8
movq %r12, %r9
callq 0x314be
movq %rax, %rbp
movl (%r12), %eax
testl %eax, %eax
je 0x30188
cmpl $0x20, %eax
jne 0x302f5
movq %r12, %rdi
callq 0x140a4
jmp 0x302f9
movq %r14, 0x70(%rsp)
movq %rbx, 0x78(%rsp)
movq 0x48(%r15), %rax
movq %rax, 0x68(%rsp)
movq %r15, 0x20(%rsp)
movq %rbp, 0x48(%r15)
movq 0x98(%rbp), %rax
movq %rax, 0x48(%rsp)
movq %rbp, %rdi
callq 0x2b774
movq %rax, 0x60(%rsp)
movq %rbp, %rdi
callq 0x2b774
movq %rax, 0x18(%rsp)
movq %rbp, %rdi
callq 0x2b774
movq %rax, 0x50(%rsp)
movq %rbp, %rdi
callq 0x2b774
movq %rax, %r14
movq %rbp, %rdi
callq 0x2b774
movq %rax, %r15
movq %rbp, %rdi
callq 0x2b774
movq %rax, %rbx
movq 0xa8(%rbp), %r13
pushq $0x1d
popq %rsi
pushq $0x5
popq %rdx
movq %rbp, %rdi
movq %r12, %rcx
callq 0x2a981
cmpl $0x0, (%r12)
je 0x3022d
xorl %ebx, %ebx
xorl %r14d, %r14d
leaq 0x3e6a5(%rip), %r13     # 0x6e8c8
movq 0x20(%rsp), %r15
jmp 0x302cb
movq %rax, 0x58(%rsp)
movq %r14, 0x28(%rsp)
movq %r15, 0x30(%rsp)
movq %rbx, 0x38(%rsp)
movq %r13, 0x40(%rsp)
xorl %ebx, %ebx
pushq $0x3d
popq %rsi
pushq $0x4
popq %rdx
movq %rbp, %rdi
xorl %ecx, %ecx
movq %r12, %r8
callq 0x2a819
cmpl $0x0, (%r12)
movl $0x0, %r14d
leaq 0x3e65b(%rip), %r13     # 0x6e8c8
movq 0x20(%rsp), %r15
jne 0x302cb
pushq $0x43
popq %rsi
movq %rbp, %rdi
movq %rax, %rdx
movq 0x60(%rsp), %rbx
movq %rbx, %rcx
movq 0x18(%rsp), %r8
movq %r12, %r9
callq 0x2a8c1
cmpl $0x0, (%r12)
jne 0x302c6
movq %rbp, %rdi
movq %rbx, %rsi
movq %r12, %rdx
callq 0x2b781
cmpl $0x0, (%r12)
jne 0x302c6
pushq $0x1b
popq %rsi
pushq $0x2d
popq %rdx
movq %rbp, %rdi
movq %r12, %rcx
callq 0x2a981
cmpl $0x0, (%r12)
je 0x30334
xorl %ebx, %ebx
xorl %r14d, %r14d
movq 0x68(%rsp), %rax
movq %rax, 0x48(%r15)
movq %rbx, %rdi
callq 0x29d88
movq %r14, %rdi
callq 0x29d88
cmpl $0x0, (%r12)
movq 0x78(%rsp), %rbx
movq 0x70(%rsp), %r14
je 0x302f9
xorl %eax, %eax
jmp 0x30322
movq %r12, 0x10(%rsp)
andl $0x0, 0x8(%rsp)
movq %r13, (%rsp)
leaq 0x3ef2c(%rip), %rsi     # 0x6f23a
movq %r15, %rdi
movq %r14, %rdx
movq %rbx, %rcx
xorl %r8d, %r8d
xorl %r9d, %r9d
callq 0x1deea
addq $0x98, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
xorl %ebx, %ebx
pushq $0x16
popq %rsi
pushq $0x5
popq %rcx
movq %rbp, %rdi
movq %rax, %rdx
xorl %r8d, %r8d
movq %r12, %r9
callq 0x2a8c1
cmpl $0x0, (%r12)
movl $0x0, %r14d
jne 0x302cb
pushq $0x9
popq %rsi
pushq $0x5
popq %rcx
pushq $0x1
popq %r8
movq %rbp, %rdi
movq %rcx, %rdx
movq %r12, %r9
callq 0x2a8c1
cmpl $0x0, (%r12)
jne 0x302c6
movq %rbp, %rdi
movq 0x18(%rsp), %rsi
movq %r12, %rdx
callq 0x2b781
cmpl $0x0, (%r12)
jne 0x302c6
pushq $0x1d
popq %rsi
pushq $0x5
popq %rdx
movq %rbp, %rdi
movq %r12, %rcx
callq 0x2a981
cmpl $0x0, (%r12)
jne 0x302c6
movq %rax, %r15
pushq $0xa
popq %rdi
movq %r12, %rsi
callq 0x2a369
movq %rax, %rbx
movq %r12, 0x18(%rsp)
cmpl $0x0, (%r12)
je 0x303da
xorl %r14d, %r14d
jmp 0x30410
pushq $0x4
popq %rdi
movq 0x18(%rsp), %r12
movq %r12, %rsi
callq 0x2a336
movq %rax, %r14
cmpl $0x0, (%r12)
jne 0x30410
movq %rbp, %rdi
movq 0x50(%rsp), %rsi
movq 0x18(%rsp), %r12
movq %r12, %rdx
callq 0x2b781
cmpl $0x0, (%r12)
je 0x30426
leaq 0x3e4b1(%rip), %r13     # 0x6e8c8
movq 0x20(%rsp), %r15
movq 0x18(%rsp), %r12
jmp 0x302cb
movq 0x20(%rsp), %rdi
movq %r14, %rsi
movq %rbx, %rdx
movq 0x18(%rsp), %rbx
movq %rbx, %rcx
callq 0x34f7a
cmpl $0x0, (%rbx)
je 0x30451
xorl %ebx, %ebx
leaq 0x3e47c(%rip), %r13     # 0x6e8c8
movq %rax, %r14
jmp 0x30417
movq 0x20(%rsp), %rdi
movq %rax, %rsi
movq 0x18(%rsp), %rbx
movq %rbx, %rdx
callq 0x35590
movq %rax, %r14
cmpl $0x0, (%rbx)
jne 0x304a3
pushq $0x30
popq %rdi
movq 0x18(%rsp), %rbx
movq %rbx, %rsi
callq 0x2a369
cmpl $0x0, (%rbx)
jne 0x304a3
movq 0x20(%rsp), %rdi
movq %r14, %rsi
movq %rax, %rdx
movq 0x18(%rsp), %rbx
movq %rbx, %rcx
callq 0x34b18
movq %rax, %r14
cmpl $0x0, (%rbx)
je 0x304aa
xorl %ebx, %ebx
jmp 0x30410
movq 0x148(%r14), %rdx
pushq $0x16
popq %rsi
pushq $0x5
popq %rcx
movq %rbp, %rdi
xorl %r8d, %r8d
movq 0x18(%rsp), %rbx
movq %rbx, %r9
callq 0x2a8c1
cmpl $0x0, (%rbx)
je 0x304e2
leaq 0x3e3f2(%rip), %r13     # 0x6e8c8
movq 0x20(%rsp), %r15
xorl %ebx, %ebx
jmp 0x3041c
movq %r14, %rdi
callq 0x29d88
pushq $0x9
popq %rsi
pushq $0x5
popq %rcx
pushq $0x1
popq %r8
movq %rbp, %rdi
movq %rcx, %rdx
movq 0x18(%rsp), %rbx
movq %rbx, %r9
callq 0x2a8c1
cmpl $0x0, (%rbx)
je 0x30513
xorl %ebx, %ebx
jmp 0x303d5
pushq $0xa
popq %rdi
movq 0x18(%rsp), %r14
movq %r14, %rsi
callq 0x2a369
movq %rax, %rbx
cmpl $0x0, (%r14)
jne 0x303d5
pushq $0x4
popq %rdi
movq 0x18(%rsp), %r14
movq %r14, %rsi
callq 0x2a336
cmpl $0x0, (%r14)
jne 0x30445
movq 0x20(%rsp), %rdi
movq %rax, %rsi
movq %rbx, %rdx
movq 0x18(%rsp), %r14
movq %r14, %rcx
callq 0x34efa
movq %rax, %rbx
cmpl $0x0, (%r14)
jne 0x306a7
movq 0x148(%rbx), %rcx
pushq $0x1d
popq %rsi
pushq $0x4
popq %rdx
movq %rbp, %rdi
movq 0x18(%rsp), %r14
movq %r14, %r8
callq 0x2a9a4
cmpl $0x0, (%r14)
jne 0x306a7
pushq $0x43
popq %rsi
pushq $0x4
popq %rdx
movq %rbp, %rdi
movq 0x50(%rsp), %rcx
movq 0x28(%rsp), %r8
movq 0x18(%rsp), %r14
movq %r14, %r9
callq 0x2a8c1
cmpl $0x0, (%r14)
jne 0x306a7
movq %rbp, %rdi
movq 0x28(%rsp), %rsi
movq 0x18(%rsp), %r14
movq %r14, %rdx
callq 0x2b781
cmpl $0x0, (%r14)
jne 0x306a7
pushq $0x2
popq %rsi
pushq $0x5
popq %rcx
movq %rbp, %rdi
movq 0x40(%rsp), %rdx
movq 0x58(%rsp), %r8
movq 0x18(%rsp), %r14
movq %r14, %r9
callq 0x2a8c1
cmpl $0x0, (%r14)
jne 0x306a7
pushq $0xb
popq %rsi
pushq $0x5
popq %rcx
pushq $0x1
popq %r8
movq %rbp, %rdi
movq %rcx, %rdx
movq 0x18(%rsp), %r14
movq %r14, %r9
callq 0x2a8c1
cmpl $0x0, (%r14)
jne 0x306a7
movq %rbp, %rdi
movq 0x38(%rsp), %rsi
movq 0x18(%rsp), %r14
movq %r14, %rdx
callq 0x2b781
cmpl $0x0, (%r14)
jne 0x306a7
pushq $0x3b
popq %rsi
pushq $0x5
popq %rcx
movq %rbp, %rdi
movq %r15, %rdx
movq 0x18(%rsp), %r14
movq %r14, %r8
callq 0x2a819
cmpl $0x0, (%r14)
jne 0x306a7
pushq $0x43
popq %rsi
movq %rbp, %rdi
movq %rax, %rdx
movq 0x30(%rsp), %rcx
movq 0x48(%rsp), %r8
movq 0x18(%rsp), %r14
movq %r14, %r9
callq 0x2a8c1
cmpl $0x0, (%r14)
jne 0x306a7
movq %rbp, %rdi
movq 0x30(%rsp), %rsi
movq 0x18(%rsp), %r14
movq %r14, %rdx
callq 0x2b781
cmpl $0x0, (%r14)
je 0x306b8
leaq 0x3e21a(%rip), %r13     # 0x6e8c8
movq %rbx, %r14
xorl %ebx, %ebx
jmp 0x30417
pushq $0x11
popq %rsi
movq %rbp, %rdi
movq %r15, %rdx
xorl %ecx, %ecx
movq 0x18(%rsp), %r12
movq %r12, %r8
callq 0x2a819
cmpl $0x0, (%r12)
jne 0x3071e
movq %rax, %r14
pushq $0x11
popq %rsi
pushq $0x5
popq %rdx
movq %rbp, %rdi
xorl %ecx, %ecx
movq 0x18(%rsp), %r12
movq %r12, %r8
callq 0x2a819
cmpl $0x0, (%r12)
jne 0x3071e
movq %rax, %r13
pushq $0x16
popq %rsi
pushq $0x5
popq %rcx
movq %rbp, %rdi
movq %r14, %rdx
xorl %r8d, %r8d
movq 0x18(%rsp), %r14
movq %r14, %r9
callq 0x2a8c1
cmpl $0x0, (%r14)
je 0x3072d
leaq 0x3e1a3(%rip), %r13     # 0x6e8c8
movq %rbx, %r14
jmp 0x304d6
pushq $0xb
popq %rsi
pushq $0x5
popq %rcx
pushq $0x1
popq %r8
movq %rbp, %rdi
movq %rcx, %rdx
movq 0x18(%rsp), %r14
movq %r14, %r9
callq 0x2a8c1
cmpl $0x0, (%r14)
jne 0x306a7
pushq $0x16
popq %rsi
movq %rbp, %rdi
movq %r13, %rdx
movq %r15, %rcx
xorl %r8d, %r8d
movq 0x18(%rsp), %r14
movq %r14, %r9
callq 0x2a8c1
cmpl $0x0, (%r14)
jne 0x3071e
pushq $0x9
popq %rsi
pushq $0x1
popq %r8
movq %rbp, %rdi
movq %r15, %rdx
movq %r15, %rcx
movq 0x18(%rsp), %r14
movq %r14, %r9
callq 0x2a8c1
cmpl $0x0, (%r14)
jne 0x306a7
pushq $0x45
popq %rsi
movq %rbp, %rdi
movq 0x38(%rsp), %rdx
movq 0x18(%rsp), %r14
movq %r14, %rcx
callq 0x2a997
cmpl $0x0, (%r14)
jne 0x302f5
movq %rbp, %rdi
movq 0x48(%rsp), %rsi
movq %r14, %rdx
callq 0x2b781
cmpl $0x0, (%r14)
jne 0x306a7
pushq $0x47
popq %rsi
movq %rbp, %rdi
movq 0x40(%rsp), %rdx
movq 0x18(%rsp), %r12
movq %r12, %rcx
callq 0x2a997
leaq 0x3e0d0(%rip), %r13     # 0x6e8c8
movq %rbx, %r14
xorl %ebx, %ebx
jmp 0x30223