	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_LP_find_file                   ## -- Begin function LP_find_file
	.p2align	4, 0x90
_LP_find_file:                          ## @LP_find_file
	.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
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.1:
	movq	%rsi, %r14
	testq	%rsi, %rsi
	je	LBB0_6
## %bb.2:
	movq	%rdi, %rbx
	movq	_errno@GOTPCREL(%rip), %r15
	movl	$0, (%r15)
	movq	(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_7
## %bb.3:
	movq	24(%rax), %rdi
LBB0_4:
	callq	_readdir
	testq	%rax, %rax
	je	LBB0_12
## %bb.5:
	movq	(%rbx), %rcx
	movq	16(%rcx), %rdi
	movq	(%rax), %rsi
	movl	$7, %edx
	callq	_strncpy
	movq	(%rbx), %rax
	movq	16(%rax), %rax
	movb	$0, 7(%rax)
	movq	(%rbx), %rax
	movq	16(%rax), %rax
	jmp	LBB0_13
LBB0_6:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_errno@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
LBB0_12:
	xorl	%eax, %eax
LBB0_13:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movl	$32, %edi
	callq	_malloc
	movq	%rax, (%rbx)
	testq	%rax, %rax
	je	LBB0_11
## %bb.8:
	movq	%rax, %rdi
	xorl	%esi, %esi
	movl	$32, %edx
	callq	_memset
	movq	%r14, %rdi
	callq	_opendir
	movq	(%rbx), %rcx
	movq	%rax, 24(%rcx)
	movq	(%rbx), %rax
	movq	24(%rax), %rdi
	testq	%rdi, %rdi
	jne	LBB0_4
## %bb.9:
	movl	(%r15), %r14d
	movq	%rax, %rdi
	callq	_free
	movq	$0, (%rbx)
	movl	%r14d, (%r15)
	jmp	LBB0_12
LBB0_11:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r15)
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_errno,4,2                      ## @errno
	.comm	_ENOMEM,4,2                     ## @ENOMEM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_LP_find_file                   ; -- Begin function LP_find_file
	.p2align	2
_LP_find_file:                          ; @LP_find_file
	.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
	cbz	x0, LBB0_6
; %bb.1:
	mov	x20, x1
	cbz	x1, LBB0_6
; %bb.2:
	mov	x19, x0
Lloh0:
	adrp	x21, _errno@GOTPAGE
Lloh1:
	ldr	x21, [x21, _errno@GOTPAGEOFF]
	str	wzr, [x21]
	ldr	x8, [x0]
	cbz	x8, LBB0_8
; %bb.3:
	ldr	x0, [x8, #24]
LBB0_4:
	bl	_readdir
	cbz	x0, LBB0_7
; %bb.5:
	ldr	x8, [x19]
	ldr	x8, [x8, #16]
	ldr	x1, [x0]
	mov	x0, x8
	mov	w2, #7
	bl	_strncpy
	ldr	x8, [x19]
	ldr	x8, [x8, #16]
	strb	wzr, [x8, #7]
	ldr	x8, [x19]
	ldr	x0, [x8, #16]
	b	LBB0_7
LBB0_6:
	mov	x0, #0
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _errno@GOTPAGE
Lloh6:
	ldr	x9, [x9, _errno@GOTPAGEOFF]
Lloh7:
	str	w8, [x9]
LBB0_7:
	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
LBB0_8:
	mov	w0, #32
	bl	_malloc
	str	x0, [x19]
	cbz	x0, LBB0_11
; %bb.9:
	mov	w1, #0
	mov	w2, #32
	bl	_memset
	mov	x0, x20
	bl	_opendir
	ldr	x8, [x19]
	str	x0, [x8, #24]
	ldr	x8, [x19]
	ldr	x0, [x8, #24]
	cbnz	x0, LBB0_4
; %bb.10:
	ldr	w20, [x21]
	mov	x0, x8
	bl	_free
	mov	x0, #0
	str	xzr, [x19]
	str	w20, [x21]
	b	LBB0_7
LBB0_11:
Lloh8:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	str	w8, [x21]
	b	LBB0_7
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotStr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_errno,4,2                      ; @errno
	.comm	_ENOMEM,4,2                     ; @ENOMEM
.subsections_via_symbols
