	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function LISTBOX_InitStorage
_LISTBOX_InitStorage:                   ## @LISTBOX_InitStorage
	.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
                                        ## kill: def $esi killed $esi def $rsi
	movq	%rdi, %r14
	movq	_LB_ARRAY_GRANULARITY@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leal	(%rsi,%rcx), %ebx
	decl	%ebx
	movl	%ebx, %eax
	cltd
	idivl	%ecx
	subl	%edx, %ebx
	movq	(%rdi), %r15
	xorl	%eax, %eax
	callq	_GetProcessHeap
	testq	%r15, %r15
	je	LBB0_2
## %bb.1:
	movq	(%r14), %rdx
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_HeapSize
	movl	%eax, %r15d
	xorl	%eax, %eax
	callq	_GetProcessHeap
	movq	(%r14), %rdx
	leal	(%r15,%rbx,4), %ecx
	andl	$-4, %ecx
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_HeapReAlloc
	testq	%rax, %rax
	je	LBB0_4
LBB0_5:
	movq	%rax, (%r14)
	movq	_LB_OKAY@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_2:
	shll	$2, %ebx
	movl	%eax, %edi
	xorl	%esi, %esi
	movl	%ebx, %edx
	callq	_HeapAlloc
	testq	%rax, %rax
	jne	LBB0_5
LBB0_4:
	movq	_LBN_ERRSPACE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_SEND_NOTIFICATION
	movq	_LB_ERRSPACE@GOTPCREL(%rip), %rax
LBB0_6:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LB_ARRAY_GRANULARITY,4,2       ## @LB_ARRAY_GRANULARITY
	.comm	_LBN_ERRSPACE,4,2               ## @LBN_ERRSPACE
	.comm	_LB_ERRSPACE,4,2                ## @LB_ERRSPACE
	.comm	_LB_OKAY,4,2                    ## @LB_OKAY
	.no_dead_strip	_LISTBOX_InitStorage
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function LISTBOX_InitStorage
_LISTBOX_InitStorage:                   ; @LISTBOX_InitStorage
	.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	x19, x0
Lloh0:
	adrp	x8, _LB_ARRAY_GRANULARITY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LB_ARRAY_GRANULARITY@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	add	w9, w1, w8
	sub	w9, w9, #1
	sdiv	w9, w9, w8
	mul	w21, w9, w8
	ldr	x20, [x0]
	bl	_GetProcessHeap
	cbz	x20, LBB0_3
; %bb.1:
	ldr	x2, [x19]
	mov	w1, #0
	bl	_HeapSize
	mov	x20, x0
	bl	_GetProcessHeap
	ldr	x2, [x19]
	add	w8, w20, w21, lsl #2
	and	w3, w8, #0xfffffffc
	mov	w1, #0
	bl	_HeapReAlloc
	cbz	x0, LBB0_4
LBB0_2:
	str	x0, [x19]
Lloh3:
	adrp	x8, _LB_OKAY@GOTPAGE
Lloh4:
	ldr	x8, [x8, _LB_OKAY@GOTPAGEOFF]
	b	LBB0_5
LBB0_3:
	lsl	w2, w21, #2
	mov	w1, #0
	bl	_HeapAlloc
	cbnz	x0, LBB0_2
LBB0_4:
Lloh5:
	adrp	x8, _LBN_ERRSPACE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _LBN_ERRSPACE@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_SEND_NOTIFICATION
Lloh8:
	adrp	x8, _LB_ERRSPACE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _LB_ERRSPACE@GOTPAGEOFF]
LBB0_5:
	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 AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_LB_ARRAY_GRANULARITY,4,2       ; @LB_ARRAY_GRANULARITY
	.comm	_LBN_ERRSPACE,4,2               ; @LBN_ERRSPACE
	.comm	_LB_ERRSPACE,4,2                ; @LB_ERRSPACE
	.comm	_LB_OKAY,4,2                    ; @LB_OKAY
	.no_dead_strip	_LISTBOX_InitStorage
.subsections_via_symbols
