	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_file_check_mem                 ## -- Begin function file_check_mem
	.p2align	4, 0x90
_file_check_mem:                        ## @file_check_mem
	.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, %r14d
	movq	%rdi, %rbx
	movl	(%rdi), %eax
	cmpl	%esi, %eax
	jbe	LBB0_3
## %bb.1:
	movq	8(%rbx), %rax
	jmp	LBB0_2
LBB0_3:
	addl	$20, %eax
	movl	%eax, (%rbx)
	shlq	$3, %rax
	leaq	(%rax,%rax,2), %r15
	movq	8(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.5:
	movq	%r15, %rsi
	callq	_realloc
	jmp	LBB0_6
LBB0_4:
	movq	%r15, %rdi
	callq	_malloc
LBB0_6:
	movq	%rax, 8(%rbx)
	testq	%rax, %rax
	je	LBB0_7
LBB0_2:
	movl	%r14d, %ecx
	leaq	(%rcx,%rcx,2), %rcx
	xorps	%xmm0, %xmm0
	movups	%xmm0, 8(%rax,%rcx,8)
	movq	_COND_NONE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movl	%edx, (%rax,%rcx,8)
	xorl	%eax, %eax
	jmp	LBB0_8
LBB0_7:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_file_oomem
	movl	$-1, %eax
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_COND_NONE,4,2                  ## @COND_NONE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_file_check_mem                 ; -- Begin function file_check_mem
	.p2align	2
_file_check_mem:                        ; @file_check_mem
	.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, x1
	mov	x20, x0
	ldr	w8, [x0]
	cmp	w8, w1
	b.ls	LBB0_2
; %bb.1:
	ldr	x0, [x20, #8]
	b	LBB0_4
LBB0_2:
	add	w8, w8, #20
	str	w8, [x20]
	mov	w9, #24
	umull	x21, w8, w9
	ldr	x0, [x20, #8]
	cbz	x0, LBB0_5
; %bb.3:
	mov	x1, x21
	bl	_realloc
	str	x0, [x20, #8]
	cbz	x0, LBB0_6
LBB0_4:
	mov	w8, #0
	mov	w9, #24
	umaddl	x9, w19, w9, x0
	stp	xzr, xzr, [x9, #8]
Lloh0:
	adrp	x10, _COND_NONE@GOTPAGE
Lloh1:
	ldr	x10, [x10, _COND_NONE@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x10]
	str	w10, [x9]
	b	LBB0_7
LBB0_5:
	mov	x0, x21
	bl	_malloc
	str	x0, [x20, #8]
	cbnz	x0, LBB0_4
LBB0_6:
	mov	x0, x20
	mov	x1, x21
	bl	_file_oomem
	mov	w8, #-1
LBB0_7:
	mov	x0, 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
	.cfi_endproc
                                        ; -- End function
	.comm	_COND_NONE,4,2                  ; @COND_NONE
.subsections_via_symbols
