// File: /workspace/github_c_makefile_star2_O2/markdryan[P]subtilis/frontend/builtins_ir.c
// Function: subtilis_builtin_ir_call_hexstr_to_int32
subtilis_exp_t *subtilis_builtin_ir_call_hexstr_to_int32(subtilis_parser_t *p,
							 size_t str_reg,
							 subtilis_error_t *err)
{
	subtilis_ir_section_t *fn;
	const subtilis_type_t *ptype[1];

	ptype[0] = &subtilis_type_integer;

	fn = prv_add_args(p, "_hexstr_to_int32", 1, 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_hexstr_to_int32(p, fn, err);
		if (err->type != SUBTILIS_ERROR_OK)
			return NULL;
	}

	return subtilis_parser_call_1_arg_fn(
	    p, "_hexstr_to_int32", str_reg, SUBTILIS_BUILTINS_MAX,
	    SUBTILIS_IR_REG_TYPE_INTEGER, &subtilis_type_integer, true, err);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x88, %rsp
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
leaq 0x3cbfe(%rip), %r8      # 0x6e8c8
leaq 0x80(%rsp), %rcx
movq %r8, (%rcx)
leaq 0x3d58c(%rip), %rsi     # 0x6f268
pushq $0x1
popq %rdx
movq %rbx, %r9
callq 0x314be
movq %rax, %r12
movl (%rbx), %eax
testl %eax, %eax
je 0x31d2f
cmpl $0x20, %eax
jne 0x32339
movq %rbx, %rdi
callq 0x140a4
leaq 0x3d560(%rip), %rsi     # 0x6f268
leaq 0x3cbb9(%rip), %r9      # 0x6e8c8
pushq $0x9
popq %rcx
movq %r15, %rdi
movq %r14, %rdx
xorl %r8d, %r8d
pushq %rbx
pushq $0x1
callq 0x1de0d
addq $0x98, %rsp
jmp 0x32342
movq 0x48(%r15), %rax
movq %rax, 0x20(%rsp)
movq %r12, 0x48(%r15)
movq 0x98(%r12), %rax
movq %rax, 0x18(%rsp)
movq 0xa8(%r12), %r13
movq %r12, %rdi
callq 0x2b774
movq %rax, %rbp
movq %r12, %rdi
callq 0x2b774
movq %rax, 0x50(%rsp)
movq 0x48(%r15), %rdi
pushq $0x1b
popq %rsi
movq %r13, 0x10(%rsp)
movq %r13, %rdx
xorl %ecx, %ecx
movq %rbx, %r8
callq 0x2a9a4
cmpl $0x0, (%rbx)
jne 0x32330
pushq $0x4
popq %rsi
movq %r15, %rdi
xorl %edx, %edx
movq %rbx, %rcx
callq 0x4acab
cmpl $0x0, (%rbx)
jne 0x32330
movq %rax, %r13
pushq $0x35
popq %rsi
movq %r12, %rdi
movq %rax, %rdx
xorl %ecx, %ecx
movq %rbx, %r8
callq 0x2a819
cmpl $0x0, (%rbx)
jne 0x32330
pushq $0x43
popq %rsi
movq %r12, %rdi
movq %rax, %rdx
movq %rbp, %rcx
movq 0x18(%rsp), %r8
movq %rbx, %r9
callq 0x2a8c1
cmpl $0x0, (%rbx)
jne 0x32330
movq %r12, %rdi
movq %rbp, %rsi
movq %rbx, %rdx
callq 0x2b781
cmpl $0x0, (%rbx)
jne 0x32330
pushq $0x4
popq %rsi
movq %r15, %rdi
xorl %edx, %edx
movq %rbx, %rcx
callq 0x4a690
cmpl $0x0, (%rbx)
jne 0x32330
movq 0x48(%r15), %rdi
xorl %esi, %esi
movq %rax, %rdx
movq %r13, %rcx
movq %rbx, %r8
movq %rax, 0x48(%rsp)
callq 0x2a819
cmpl $0x0, (%rbx)
jne 0x32330
movq %rax, %r13
movq 0x48(%r15), %rdi
callq 0x2b774
movq %rax, %rbp
movq 0x48(%r15), %rdi
callq 0x2b774
subq $0x8, %rsp
leaq 0x80(%rsp), %r11
leaq 0x70(%rsp), %r10
pushq $0x39
popq %rdx
pushq $0x1
popq %rcx
leaq 0x78(%rsp), %r9
movq %r15, %rdi
movq 0x50(%rsp), %rsi
movq %r13, %r8
pushq %rbx
pushq %r11
pushq %r10
movq %rax, 0x20(%rsp)
pushq %rax
movq %rbp, 0x30(%rsp)
pushq %rbp
callq 0x33602
addq $0x30, %rsp
movq %rax, 0x60(%rsp)
cmpl $0x0, (%rbx)
jne 0x32330
movq 0x48(%r15), %rdi
movq 0x70(%rsp), %rdx
pushq $0x27
popq %rsi
pushq $0x20
popq %rcx
movq %rbx, %r8
callq 0x2a819
cmpl $0x0, (%rbx)
jne 0x32330
movq %rax, %r13
movq 0x48(%r15), %rdi
pushq $0x3d
popq %rsi
pushq $0x61
popq %rcx
movq %rax, %rdx
movq %rbx, %r8
callq 0x2a819
cmpl $0x0, (%rbx)
jne 0x32330
movq %rax, %rbp
movq 0x48(%r15), %rdi
pushq $0x35
popq %rsi
pushq $0x66
popq %rcx
movq %r13, %rdx
movq %rbx, %r8
callq 0x2a819
cmpl $0x0, (%rbx)
jne 0x32330
movq 0x48(%r15), %rdi
pushq $0x26
popq %rsi
movq %rbp, %rdx
movq %rax, %rcx
movq %rbx, %r8
callq 0x2a819
cmpl $0x0, (%rbx)
jne 0x32330
movq 0x48(%r15), %rdi
movq 0x78(%rsp), %rdx
pushq $0x28
popq %rsi
movq %rax, %rcx
movq %rbx, %r8
callq 0x2a819
cmpl $0x0, (%rbx)
jne 0x32330
movq 0x48(%r15), %rdi
pushq $0x44
popq %rsi
movq %rax, %rdx
movq 0x8(%rsp), %rcx
movq (%rsp), %r8
movq %rbx, %r9
callq 0x2a8c1
cmpl $0x0, (%rbx)
jne 0x32330
movq 0x48(%r15), %rdi
movq (%rsp), %rsi
movq %rbx, %rdx
callq 0x2b781
cmpl $0x0, (%rbx)
jne 0x32330
movq 0x68(%rsp), %r13
movq 0x48(%r15), %rdi
callq 0x2b774
movq %rax, (%rsp)
movq 0x48(%r15), %rdi
callq 0x2b774
movq %rax, 0x8(%rsp)
movq 0x48(%r15), %rdi
callq 0x2b774
movq %rax, 0x40(%rsp)
movq 0x48(%r15), %rdi
callq 0x2b774
movq %rax, 0x38(%rsp)
movq 0x48(%r15), %rdi
callq 0x2b774
movq %rax, 0x30(%rsp)
movq 0x48(%r15), %rdi
callq 0x2b774
movq %rax, 0x28(%rsp)
movq 0x48(%r15), %rdi
pushq $0x1d
popq %rsi
movq %r13, %rbp
movq %r13, %rdx
movq %rbx, %rcx
callq 0x2a981
movq %rax, 0x58(%rsp)
cmpl $0x0, (%rbx)
jne 0x32330
movq 0x48(%r15), %rdi
pushq $0x1d
popq %rsi
movq 0x60(%rsp), %rdx
movq %rbx, %rcx
callq 0x2a981
cmpl $0x0, (%rbx)
jne 0x32330
movq %rax, %r13
movq 0x48(%r15), %rdi
movq (%rsp), %rsi
movq %rbx, %rdx
callq 0x2b781
cmpl $0x0, (%rbx)
jne 0x32330
movq 0x48(%r15), %rdi
pushq $0xb
popq %rsi
pushq $0x1
popq %r8
movq %r13, %rdx
movq %r13, %rcx
movq %rbx, %r9
callq 0x2a8c1
movq 0x48(%rsp), %rcx
cmpl $0x0, (%rbx)
jne 0x32330
movq 0x48(%r15), %rdi
pushq $0x3f
popq %rsi
movq %r13, %rdx
movq %rbx, %r8
callq 0x2a819
cmpl $0x0, (%rbx)
jne 0x32330
movq 0x48(%r15), %rdi
pushq $0x43
popq %rsi
movq %rax, %rdx
movq 0x8(%rsp), %rcx
movq 0x18(%rsp), %r8
movq %rbx, %r9
callq 0x2a8c1
cmpl $0x0, (%rbx)
jne 0x32330
movq 0x48(%r15), %rdi
movq 0x8(%rsp), %rsi
movq %rbx, %rdx
callq 0x2b781
cmpl $0x0, (%rbx)
jne 0x32330
movq 0x48(%r15), %rdi
pushq $0x11
popq %rsi
movq %r13, %rdx
xorl %ecx, %ecx
movq %rbx, %r8
callq 0x2a819
cmpl $0x0, (%rbx)
jne 0x32330
movq %rax, %r13
movq 0x48(%r15), %rdi
pushq $0x35
popq %rsi
pushq $0x39
popq %rcx
movq %rax, %rdx
movq %rbx, %r8
callq 0x2a819
cmpl $0x0, (%rbx)
jne 0x32330
movq 0x48(%r15), %rdi
pushq $0x43
popq %rsi
movq %rax, %rdx
movq 0x40(%rsp), %rcx
movq 0x38(%rsp), %r8
movq %rbx, %r9
callq 0x2a8c1
cmpl $0x0, (%rbx)
jne 0x32330
movq 0x48(%r15), %rdi
movq 0x40(%rsp), %rsi
movq %rbx, %rdx
callq 0x2b781
cmpl $0x0, (%rbx)
jne 0x32330
movq 0x48(%r15), %rdi
pushq $0x27
popq %rsi
pushq $0x20
popq %rcx
movq %r13, %rdx
movq %rbx, %r8
callq 0x2a819
cmpl $0x0, (%rbx)
jne 0x32330
movq 0x48(%r15), %rdi
pushq $0xb
popq %rsi
pushq $0x57
popq %r8
movq %r13, %rdx
movq %rax, %rcx
movq %rbx, %r9
callq 0x2a8c1
cmpl $0x0, (%rbx)
jne 0x32330
movq 0x48(%r15), %rdi
pushq $0x45
popq %rsi
movq 0x30(%rsp), %rdx
movq %rbx, %rcx
callq 0x2a997
cmpl $0x0, (%rbx)
jne 0x32330
movq 0x48(%r15), %rdi
movq 0x38(%rsp), %rsi
movq %rbx, %rdx
callq 0x2b781
cmpl $0x0, (%rbx)
jne 0x32330
movq 0x48(%r15), %rdi
pushq $0xb
popq %rsi
pushq $0x30
popq %r8
movq %r13, %rdx
movq %r13, %rcx
movq %rbx, %r9
callq 0x2a8c1
cmpl $0x0, (%rbx)
jne 0x32330
movq 0x48(%r15), %rdi
movq 0x30(%rsp), %rsi
movq %rbx, %rdx
callq 0x2b781
cmpl $0x0, (%rbx)
jne 0x32330
movq 0x48(%r15), %rdi
pushq $0x4
popq %rsi
movq %r13, %rdx
movq %rbp, %rcx
movq %rbx, %r8
callq 0x2a819
cmpl $0x0, (%rbx)
jne 0x32330
movq %rax, %r13
movq 0x48(%r15), %rdi
pushq $0x4c
popq %rsi
pushq $0x4
popq %r8
movq %rbp, %rdx
movq %rbp, %rcx
movq %rbx, %r9
callq 0x2a8c1
cmpl $0x0, (%rbx)
jne 0x32330
movq 0x48(%r15), %rdi
xorl %esi, %esi
movq 0x10(%rsp), %rcx
movq %rcx, %rdx
movq %r13, %r8
movq %rbx, %r9
callq 0x2a8c1
cmpl $0x0, (%rbx)
jne 0x32330
movq 0x48(%r15), %rdi
pushq $0x43
popq %rsi
movq 0x10(%rsp), %rdx
movq 0x28(%rsp), %rcx
movq (%rsp), %r8
movq %rbx, %r9
callq 0x2a8c1
cmpl $0x0, (%rbx)
jne 0x32330
movq 0x48(%r15), %rdi
movq 0x28(%rsp), %rsi
movq %rbx, %rdx
callq 0x2b781
cmpl $0x0, (%rbx)
jne 0x32330
movq 0x48(%r15), %rdi
pushq $0x28
popq %rsi
movq 0x10(%rsp), %rdx
movq 0x58(%rsp), %rcx
movq %rbx, %r8
callq 0x2a819
cmpl $0x0, (%rbx)
jne 0x32330
movq 0x48(%r15), %rdi
pushq $0x25
popq %rsi
movl $0x80000000, %ecx       # imm = 0x80000000
movq %rax, %rdx
movq %rbx, %r8
callq 0x2a819
cmpl $0x0, (%rbx)
jne 0x32330
movq 0x48(%r15), %rdi
pushq $0x43
popq %rsi
movq %rax, %rdx
movq 0x50(%rsp), %rcx
movq (%rsp), %r8
movq %rbx, %r9
callq 0x2a8c1
cmpl $0x0, (%rbx)
jne 0x32330
movq %r12, %rdi
movq 0x18(%rsp), %rsi
movq %rbx, %rdx
callq 0x2b781
cmpl $0x0, (%rbx)
jne 0x32330
pushq $0x47
popq %rsi
movq %r12, %rdi
movq 0x10(%rsp), %rdx
movq %rbx, %rcx
callq 0x2a997
movq %r12, %rdi
movq 0x50(%rsp), %rsi
movq %rbx, %rdx
callq 0x2b781
cmpl $0x0, (%rbx)
jne 0x32330
pushq $0x14
popq %rdi
movq %rbx, %rsi
callq 0x2a369
cmpl $0x0, (%rbx)
je 0x3234d
movq 0x20(%rsp), %rax
movq %rax, 0x48(%r15)
xorl %eax, %eax
addq $0x88, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %r15, %rdi
movq %rax, %rsi
movq %rbx, %rdx
callq 0x2a5f4
cmpl $0x0, (%rbx)
movq 0x20(%rsp), %rax
movq %rax, 0x48(%r15)
jne 0x32339
jmp 0x31d01