	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function regstore_alloc_table
_regstore_alloc_table:                  ## @regstore_alloc_table
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %eax
	movq	%rdi, %r14
	movq	8(%rdi), %rcx
	movl	%esi, %r15d
	movl	(%rcx,%r15,4), %esi
	movl	%eax, %edi
	callq	_get_offset_reg
	movl	%eax, %ebx
	movq	_table_info@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	imull	(%rax,%r15,4), %ebx
	testl	%ebx, %ebx
	je	LBB0_3
## %bb.1:
	xorl	%eax, %eax
	callq	_GetProcessHeap
	movq	_HEAP_ZERO_MEMORY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	movl	%ebx, %edx
	callq	_HeapAlloc
	movq	(%r14), %rcx
	movl	%eax, (%rcx,%r15,4)
	testl	%eax, %eax
	je	LBB0_2
LBB0_3:
	movq	_D3D_OK@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_2:
	movq	_E_OUTOFMEMORY@GOTPCREL(%rip), %rax
LBB0_4:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_table_info,8,3                 ## @table_info
	.comm	_HEAP_ZERO_MEMORY,4,2           ## @HEAP_ZERO_MEMORY
	.comm	_E_OUTOFMEMORY,4,2              ## @E_OUTOFMEMORY
	.comm	_D3D_OK,4,2                     ## @D3D_OK
	.no_dead_strip	_regstore_alloc_table
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function regstore_alloc_table
_regstore_alloc_table:                  ; @regstore_alloc_table
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x8, x1
	mov	x19, x0
	ldr	x9, [x0, #8]
	mov	w21, w1
	lsl	x20, x21, #2
	ldr	w1, [x9, x20]
	mov	x0, x8
	bl	_get_offset_reg
Lloh0:
	adrp	x8, _table_info@GOTPAGE
Lloh1:
	ldr	x8, [x8, _table_info@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	w8, [x8, x20]
	mul	w20, w8, w0
	cbz	w20, LBB0_2
; %bb.1:
	bl	_GetProcessHeap
Lloh3:
	adrp	x8, _HEAP_ZERO_MEMORY@GOTPAGE
Lloh4:
	ldr	x8, [x8, _HEAP_ZERO_MEMORY@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x2, x20
	bl	_HeapAlloc
	ldr	x8, [x19]
	str	w0, [x8, x21, lsl #2]
	cbz	w0, LBB0_3
LBB0_2:
Lloh6:
	adrp	x8, _D3D_OK@GOTPAGE
Lloh7:
	ldr	x8, [x8, _D3D_OK@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:
Lloh8:
	adrp	x8, _E_OUTOFMEMORY@GOTPAGE
Lloh9:
	ldr	x8, [x8, _E_OUTOFMEMORY@GOTPAGEOFF]
LBB0_4:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_table_info,8,3                 ; @table_info
	.comm	_HEAP_ZERO_MEMORY,4,2           ; @HEAP_ZERO_MEMORY
	.comm	_E_OUTOFMEMORY,4,2              ; @E_OUTOFMEMORY
	.comm	_D3D_OK,4,2                     ; @D3D_OK
	.no_dead_strip	_regstore_alloc_table
.subsections_via_symbols
