	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dos_readdir
_dos_readdir:                           ## @dos_readdir
	.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	$1128, %rsp                     ## imm = 0x468
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, -1168(%rbp)               ## 8-byte Spill
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	leaq	-1160(%rbp), %rsi
	leaq	-1120(%rbp), %rcx
	movl	$40, %edx
	callq	_dos_read
	testl	%eax, %eax
	jne	LBB0_25
## %bb.1:
	movl	$0, -1108(%rbp)                 ## 4-byte Folded Spill
	leaq	-1160(%rbp), %r12
	leaq	-1120(%rbp), %r13
	movq	_FA_LABEL@GOTPCREL(%rip), %r14
	xorl	%r15d, %r15d
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_3 Depth 2
	movl	%r15d, %ecx
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=2
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movl	$40, %edx
	movq	%r13, %rcx
	callq	_dos_read
	xorl	%ecx, %ecx
	testl	%eax, %eax
	jne	LBB0_25
LBB0_3:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpq	$40, -1120(%rbp)
	je	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=2
	movq	-1160(%rbp), %rdi
	movl	(%rdi), %eax
	cmpl	$229, %eax
	je	LBB0_9
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=2
	testl	%eax, %eax
	je	LBB0_4
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=2
	movl	-1152(%rbp), %eax
	testl	%eax, (%r14)
	je	LBB0_16
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=2
	movq	_FA_MASK@GOTPCREL(%rip), %rdx
	andl	(%rdx), %eax
	movq	_FA_XDE@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %eax
	jne	LBB0_9
## %bb.10:                              ##   in Loop: Header=BB0_3 Depth=2
	movl	-1128(%rbp), %r15d
	testb	$64, %r15b
	jne	LBB0_11
## %bb.12:                              ##   in Loop: Header=BB0_3 Depth=2
	decl	%ecx
	cmpl	%ecx, %r15d
	jne	LBB0_9
## %bb.13:                              ##   in Loop: Header=BB0_3 Depth=2
	movl	-1108(%rbp), %eax               ## 4-byte Reload
	cmpl	%eax, -1124(%rbp)
	jne	LBB0_9
	jmp	LBB0_14
LBB0_16:                                ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$1, %ecx
	jne	LBB0_20
## %bb.17:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	-1136(%rbp), %esi
	callq	_dos_checksum
	xorl	%r15d, %r15d
	cmpl	-1108(%rbp), %eax               ## 4-byte Folded Reload
	jne	LBB0_19
	jmp	LBB0_21
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	-1124(%rbp), %eax
	movl	%eax, -1108(%rbp)               ## 4-byte Spill
LBB0_14:                                ##   in Loop: Header=BB0_2 Depth=1
	andl	$-65, %r15d
	leal	-21(%r15), %eax
	cmpl	$-20, %eax
	jae	LBB0_18
## %bb.15:                              ##   in Loop: Header=BB0_2 Depth=1
	xorl	%r15d, %r15d
	jmp	LBB0_19
LBB0_18:                                ##   in Loop: Header=BB0_2 Depth=1
	leaq	-1104(%rbp), %rdi
	leaq	-1128(%rbp), %rsi
	callq	_cp_xdnm
LBB0_19:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movl	$40, %edx
	movq	%r13, %rcx
	callq	_dos_read
	testl	%eax, %eax
	je	LBB0_2
	jmp	LBB0_25
LBB0_4:
	movq	_ENOENT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_25:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_27
## %bb.26:
	addq	$1128, %rsp                     ## imm = 0x468
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_20:
	leaq	-1104(%rbp), %rdi
	leaq	-1160(%rbp), %rsi
	callq	_cp_sfn
LBB0_21:
	movq	-1144(%rbp), %rax
	movl	4(%rax), %ecx
	shll	$8, %ecx
	addl	(%rax), %ecx
	movq	-1168(%rbp), %rdx               ## 8-byte Reload
	movl	%ecx, (%rdx)
	movl	$16, 4(%rdx)
	movq	_FA_DIR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	-1152(%rbp), %eax
	jne	LBB0_22
## %bb.23:
	movq	_DT_REG@GOTPCREL(%rip), %rax
	jmp	LBB0_24
LBB0_22:
	movq	_DT_DIR@GOTPCREL(%rip), %rax
LBB0_24:
	movl	(%rax), %eax
	movl	%eax, 12(%rdx)
	movl	8(%rdx), %edi
	leaq	-1104(%rbp), %rsi
	movl	$4, %edx
	callq	_memcpy
	xorl	%eax, %eax
	jmp	LBB0_25
LBB0_27:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOENT,4,2                     ## @ENOENT
	.comm	_FA_LABEL,4,2                   ## @FA_LABEL
	.comm	_FA_MASK,4,2                    ## @FA_MASK
	.comm	_FA_XDE,4,2                     ## @FA_XDE
	.comm	_FA_DIR,4,2                     ## @FA_DIR
	.comm	_DT_DIR,4,2                     ## @DT_DIR
	.comm	_DT_REG,4,2                     ## @DT_REG
	.no_dead_strip	_dos_readdir
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dos_readdir
_dos_readdir:                           ; @dos_readdir
	.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, #1104
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
	add	x21, sp, #8
	add	x1, sp, #8
	mov	x3, sp
	mov	w2, #40
	bl	_dos_read
	cbnz	w0, LBB0_19
; %bb.1:
	mov	w22, #0
	mov	w26, #0
	add	x21, x21, #32
Lloh3:
	adrp	x23, _FA_LABEL@GOTPAGE
Lloh4:
	ldr	x23, [x23, _FA_LABEL@GOTPAGEOFF]
Lloh5:
	adrp	x24, _FA_MASK@GOTPAGE
Lloh6:
	ldr	x24, [x24, _FA_MASK@GOTPAGEOFF]
Lloh7:
	adrp	x25, _FA_XDE@GOTPAGE
Lloh8:
	ldr	x25, [x25, _FA_XDE@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x1, sp, #8
	mov	x3, sp
	mov	x0, x20
	mov	w2, #40
	bl	_dos_read
	mov	w26, #0
	cbnz	w0, LBB0_19
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [sp]
	cmp	x8, #40
	b.eq	LBB0_18
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x0, [sp, #8]
	ldr	w8, [x0]
	cmp	w8, #229
	b.eq	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	cbz	w8, LBB0_18
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [sp, #16]
	ldr	w9, [x23]
	tst	w9, w8
	b.eq	LBB0_11
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w9, [x24]
	and	w8, w9, w8
	ldr	w9, [x25]
	cmp	w8, w9
	b.ne	LBB0_2
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [sp, #40]
	tbnz	w8, #6, LBB0_13
; %bb.9:                                ;   in Loop: Header=BB0_3 Depth=1
	sub	w9, w26, #1
	cmp	w8, w9
	b.ne	LBB0_2
; %bb.10:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	w9, [sp, #44]
	cmp	w9, w22
	b.ne	LBB0_2
	b	LBB0_14
LBB0_11:                                ;   in Loop: Header=BB0_3 Depth=1
	cmp	w26, #1
	b.ne	LBB0_21
; %bb.12:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	w1, [sp, #32]
	bl	_dos_checksum
	cmp	w0, w22
	b.ne	LBB0_15
	b	LBB0_22
LBB0_13:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w22, [sp, #44]
LBB0_14:                                ;   in Loop: Header=BB0_3 Depth=1
	and	w26, w8, #0xffffffbf
	sub	w8, w26, #21
	cmn	w8, #20
	b.hs	LBB0_16
LBB0_15:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	w26, #0
	b	LBB0_17
LBB0_16:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x0, sp, #52
	mov	x1, x21
	bl	_cp_xdnm
LBB0_17:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x1, sp, #8
	mov	x3, sp
	mov	x0, x20
	mov	w2, #40
	bl	_dos_read
	cbz	w0, LBB0_3
	b	LBB0_19
LBB0_18:
Lloh9:
	adrp	x8, _ENOENT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
LBB0_19:
	ldur	x8, [x29, #-88]
Lloh12:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh13:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_23
; %bb.20:
	add	sp, sp, #1104
	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_21:
	add	x0, sp, #52
	add	x1, sp, #8
	bl	_cp_sfn
LBB0_22:
	ldr	x8, [sp, #24]
	ldp	w8, w9, [x8]
	add	w8, w8, w9, lsl #8
	mov	w9, #16
	stp	w8, w9, [x19]
	ldr	w8, [sp, #16]
Lloh15:
	adrp	x9, _FA_DIR@GOTPAGE
Lloh16:
	ldr	x9, [x9, _FA_DIR@GOTPAGEOFF]
Lloh17:
	adrp	x10, _DT_DIR@GOTPAGE
Lloh18:
	ldr	x10, [x10, _DT_DIR@GOTPAGEOFF]
Lloh19:
	adrp	x11, _DT_REG@GOTPAGE
Lloh20:
	ldr	x11, [x11, _DT_REG@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
	tst	w9, w8
	csel	x8, x11, x10, eq
	ldr	w8, [x8]
	str	w8, [x19, #12]
	ldr	w0, [x19, #8]
	add	x1, sp, #52
	mov	w2, #4
	bl	_memcpy
	mov	w0, #0
	b	LBB0_19
LBB0_23:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOENT,4,2                     ; @ENOENT
	.comm	_FA_LABEL,4,2                   ; @FA_LABEL
	.comm	_FA_MASK,4,2                    ; @FA_MASK
	.comm	_FA_XDE,4,2                     ; @FA_XDE
	.comm	_FA_DIR,4,2                     ; @FA_DIR
	.comm	_DT_DIR,4,2                     ; @DT_DIR
	.comm	_DT_REG,4,2                     ; @DT_REG
	.no_dead_strip	_dos_readdir
.subsections_via_symbols
