	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_apr_dir_read                   ## -- Begin function apr_dir_read
	.p2align	4, 0x90
_apr_dir_read:                          ## @apr_dir_read
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r13
	movl	%esi, %r15d
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_errno@GOTPCREL(%rip), %rbx
	movq	$0, (%rbx)
	movl	16(%rdx), %edi
	callq	_readdir
	movq	%rax, (%r13)
	testq	%rax, %rax
	je	LBB0_10
## %bb.1:
	movq	$0, 32(%r14)
LBB0_2:
	movq	_APR_FINFO_NAME@GOTPCREL(%rip), %rbx
	movl	(%rbx), %r12d
	notl	%r12d
	andl	%r15d, %r12d
	je	LBB0_14
## %bb.3:
	movq	%rsp, -56(%rbp)                 ## 8-byte Spill
	movq	_APR_PATH_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r15
	movl	12(%r13), %esi
	movq	%r15, %rdi
	movl	%ebx, %edx
	callq	_apr_cpystrn
	cmpq	%r15, %rax
	jbe	LBB0_7
## %bb.4:
	cmpb	$47, -1(%rax)
	je	LBB0_7
## %bb.5:
	movq	_APR_PATH_MAX@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	movq	%r15, %rdx
	addq	%rcx, %rdx
	cmpq	%rdx, %rax
	jae	LBB0_7
## %bb.6:
	movb	$47, (%rax)
	incq	%rax
LBB0_7:
	movq	(%r13), %rcx
	movl	4(%rcx), %esi
	movl	%r15d, %edx
	subl	%eax, %edx
	addl	%ebx, %edx
	movq	%rax, %rdi
	callq	_apr_cpystrn
	movq	_APR_FINFO_LINK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	orl	%r12d, %edx
	movl	8(%r13), %ecx
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_apr_stat
	movq	$0, 32(%r14)
	movq	-56(%rbp), %rsp                 ## 8-byte Reload
	movq	_APR_SUCCESS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	movq	_APR_FINFO_NAME@GOTPCREL(%rip), %rbx
	je	LBB0_9
## %bb.8:
	movq	_APR_INCOMPLETE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_9
LBB0_14:
	movl	8(%r13), %edi
	movl	%edi, 24(%r14)
	movl	$0, (%r14)
	jmp	LBB0_15
LBB0_10:
	movq	(%rbx), %rax
	movq	_APR_SUCCESS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_12
## %bb.11:
	movq	_APR_ENOENT@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
LBB0_12:
	movq	$0, 32(%r14)
	testq	%rax, %rax
	je	LBB0_2
## %bb.13:
	movl	$0, (%r14)
	jmp	LBB0_19
LBB0_9:
	movl	(%r14), %eax
	notl	%eax
	andl	%eax, %r12d
	movl	8(%r13), %edi
LBB0_15:
	movq	(%r13), %rax
	movl	4(%rax), %esi
	callq	_apr_pstrdup
	movl	%eax, 8(%r14)
	movl	(%rbx), %eax
	orl	%eax, (%r14)
	testl	%r12d, %r12d
	je	LBB0_17
## %bb.16:
	movq	_APR_INCOMPLETE@GOTPCREL(%rip), %rax
	jmp	LBB0_18
LBB0_17:
	movq	_APR_SUCCESS@GOTPCREL(%rip), %rax
LBB0_18:
	movq	(%rax), %rax
LBB0_19:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_21
## %bb.20:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_21:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_errno,8,3                      ## @errno
	.comm	_APR_SUCCESS,8,3                ## @APR_SUCCESS
	.comm	_APR_ENOENT,8,3                 ## @APR_ENOENT
	.comm	_APR_FINFO_NAME,4,2             ## @APR_FINFO_NAME
	.comm	_APR_PATH_MAX,4,2               ## @APR_PATH_MAX
	.comm	_APR_FINFO_LINK,4,2             ## @APR_FINFO_LINK
	.comm	_APR_INCOMPLETE,8,3             ## @APR_INCOMPLETE
	.comm	_APR_FINFO_INODE,4,2            ## @APR_FINFO_INODE
	.comm	_APR_FINFO_TYPE,4,2             ## @APR_FINFO_TYPE
	.comm	_APR_UNKFILE,8,3                ## @APR_UNKFILE
	.comm	_EINVAL,8,3                     ## @EINVAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_apr_dir_read                   ; -- Begin function apr_dir_read
	.p2align	2
_apr_dir_read:                          ; @apr_dir_read
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #16
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x22, _errno@GOTPAGE
Lloh4:
	ldr	x22, [x22, _errno@GOTPAGEOFF]
	str	xzr, [x22]
	ldr	w0, [x2, #16]
	bl	_readdir
	str	x0, [x20]
Lloh5:
	adrp	x23, _APR_SUCCESS@GOTPAGE
Lloh6:
	ldr	x23, [x23, _APR_SUCCESS@GOTPAGEOFF]
	cbz	x0, LBB0_11
; %bb.1:
	str	xzr, [x19, #32]
LBB0_2:
Lloh7:
	adrp	x26, _APR_FINFO_NAME@GOTPAGE
Lloh8:
	ldr	x26, [x26, _APR_FINFO_NAME@GOTPAGEOFF]
	ldr	w8, [x26]
Lloh9:
	adrp	x24, _APR_INCOMPLETE@GOTPAGE
Lloh10:
	ldr	x24, [x24, _APR_INCOMPLETE@GOTPAGEOFF]
	bics	w25, w21, w8
	b.eq	LBB0_8
; %bb.3:
	mov	x27, sp
Lloh11:
	adrp	x28, _APR_PATH_MAX@GOTPAGE
Lloh12:
	ldr	x28, [x28, _APR_PATH_MAX@GOTPAGEOFF]
	ldr	w22, [x28]
	mov	x9, x22
Lloh13:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh14:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x22, #15
	and	x9, x9, #0x1fffffff0
	sub	x21, x8, x9
	mov	sp, x21
	ldr	w1, [x20, #12]
	mov	x0, x21
	mov	x2, x22
	bl	_apr_cpystrn
	cmp	x0, x21
	b.ls	LBB0_6
; %bb.4:
	ldurb	w8, [x0, #-1]
	ldrsw	x9, [x28]
	add	x9, x21, x9
	cmp	w8, #47
	ccmp	x0, x9, #2, ne
	b.hs	LBB0_6
; %bb.5:
	mov	w8, #47
	strb	w8, [x0], #1
LBB0_6:
	ldr	x8, [x20]
	ldr	w1, [x8, #4]
	sub	w8, w21, w0
	add	w2, w22, w8
	bl	_apr_cpystrn
Lloh15:
	adrp	x8, _APR_FINFO_LINK@GOTPAGE
Lloh16:
	ldr	x8, [x8, _APR_FINFO_LINK@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	orr	w2, w8, w25
	ldr	w3, [x20, #8]
	mov	x0, x19
	mov	x1, x21
	bl	_apr_stat
	str	xzr, [x19, #32]
	mov	sp, x27
	ldr	x8, [x23]
	ldr	x9, [x24]
	cmp	x0, x8
	ccmp	x0, x9, #4, ne
	b.ne	LBB0_8
; %bb.7:
	ldr	w8, [x19]
	bic	w25, w25, w8
	ldr	w0, [x20, #8]
	b	LBB0_9
LBB0_8:
	ldr	w0, [x20, #8]
	str	w0, [x19, #24]
	str	wzr, [x19]
LBB0_9:
	ldr	x8, [x20]
	ldr	w1, [x8, #4]
	bl	_apr_pstrdup
	str	w0, [x19, #8]
	ldr	w8, [x26]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
	cbz	w25, LBB0_13
; %bb.10:
	ldr	x0, [x24]
	b	LBB0_14
LBB0_11:
	ldr	x8, [x22]
	ldr	x9, [x23]
Lloh18:
	adrp	x10, _APR_ENOENT@GOTPAGE
Lloh19:
	ldr	x10, [x10, _APR_ENOENT@GOTPAGEOFF]
Lloh20:
	ldr	x10, [x10]
	cmp	x8, x9
	csel	x0, x10, x8, eq
	str	xzr, [x19, #32]
	cbz	x0, LBB0_2
; %bb.12:
	str	wzr, [x19]
	b	LBB0_14
LBB0_13:
	ldr	x0, [x23]
LBB0_14:
	ldur	x8, [x29, #-88]
Lloh21:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh22:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_16
; %bb.15:
	sub	sp, x29, #80
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_16:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_errno,8,3                      ; @errno
	.comm	_APR_SUCCESS,8,3                ; @APR_SUCCESS
	.comm	_APR_ENOENT,8,3                 ; @APR_ENOENT
	.comm	_APR_FINFO_NAME,4,2             ; @APR_FINFO_NAME
	.comm	_APR_PATH_MAX,4,2               ; @APR_PATH_MAX
	.comm	_APR_FINFO_LINK,4,2             ; @APR_FINFO_LINK
	.comm	_APR_INCOMPLETE,8,3             ; @APR_INCOMPLETE
	.comm	_APR_FINFO_INODE,4,2            ; @APR_FINFO_INODE
	.comm	_APR_FINFO_TYPE,4,2             ; @APR_FINFO_TYPE
	.comm	_APR_UNKFILE,8,3                ; @APR_UNKFILE
	.comm	_EINVAL,8,3                     ; @EINVAL
.subsections_via_symbols
