	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	2                               ## -- Begin function fs_posix_dir
LCPI0_0:
	.long	0x42c80000                      ## float 100
	.long	0x42cc0000                      ## float 102
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_fs_posix_dir:                          ## @fs_posix_dir
	.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
	pushq	%rax
	movl	$4136, %eax                     ## imm = 0x1028
	callq	____chkstk_darwin
	subq	%rax, %rsp
	popq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	xorl	%eax, %eax
	callq	_r_list_new
	testq	%rax, %rax
	je	LBB0_13
## %bb.1:
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_opendir
	testq	%rax, %rax
	je	LBB0_11
## %bb.2:
	movq	%rax, %r15
	movq	%rbx, -4152(%rbp)               ## 8-byte Spill
	movq	%rax, %rdi
	callq	_readdir
	testq	%rax, %rax
	je	LBB0_10
## %bb.3:
	movq	%rax, %r13
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_6 Depth=1
	movl	$1120665600, (%r12)             ## imm = 0x42CC0000
	xorl	%eax, %eax
LBB0_5:                                 ##   in Loop: Header=BB0_6 Depth=1
	movq	%rax, 8(%r12)
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_r_list_append
	movq	%r15, %rdi
	callq	_readdir
	movq	%rax, %r13
	testq	%rax, %rax
	je	LBB0_10
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r13), %rsi
	xorl	%edi, %edi
	callq	_r_fs_file_new
	testq	%rax, %rax
	je	LBB0_12
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	%rax, %r12
	movl	$1120665600, (%rax)             ## imm = 0x42CC0000
	movq	(%r13), %r8
	leaq	-4144(%rbp), %rbx
	movq	%rbx, %rdi
	movl	$4095, %esi                     ## imm = 0xFFF
	leaq	L_.str(%rip), %rdx
	movq	-4152(%rbp), %rcx               ## 8-byte Reload
	callq	_snprintf
	movq	%rbx, %rdi
	leaq	-4168(%rbp), %rsi
	callq	_stat
	testl	%eax, %eax
	jne	LBB0_4
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	-4160(%rbp), %edi
	callq	_S_ISDIR
	xorl	%ecx, %ecx
	testq	%rax, %rax
	sete	%cl
	leaq	LCPI0_0(%rip), %rax
	movss	(%rax,%rcx,4), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	movss	%xmm0, (%r12)
	movq	-4168(%rbp), %rax
	jmp	LBB0_5
LBB0_10:
	movq	%r15, %rdi
	callq	_closedir
	jmp	LBB0_14
LBB0_11:
	movq	%r14, %rdi
	callq	_r_list_free
	jmp	LBB0_13
LBB0_12:
	movq	%r14, %rdi
	callq	_r_list_free
	movq	%r15, %rdi
	callq	_closedir
LBB0_13:
	xorl	%r14d, %r14d
LBB0_14:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_16
## %bb.15:
	movq	%r14, %rax
	addq	$4136, %rsp                     ## imm = 0x1028
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s/%s"

	.comm	_INVALID_HANDLE_VALUE,8,3       ## @INVALID_HANDLE_VALUE
	.comm	_MAX_PATH,4,2                   ## @MAX_PATH
	.no_dead_strip	_fs_posix_dir
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fs_posix_dir
_fs_posix_dir:                          ; @fs_posix_dir
	.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
	mov	w9, #4128
Lloh0:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh1:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	sub	sp, sp, #1, lsl #12             ; =4096
	sub	sp, sp, #32
	mov	x20, x1
Lloh2:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh3:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
	bl	_r_list_new
	mov	x19, x0
	cbz	x0, LBB0_13
; %bb.1:
	mov	x0, x20
	bl	_opendir
	cbz	x0, LBB0_10
; %bb.2:
	mov	x21, x0
	bl	_readdir
	cbz	x0, LBB0_9
; %bb.3:
	mov	x24, x0
	mov	w25, #1120665600
Lloh5:
	adrp	x22, l_.str@PAGE
Lloh6:
	add	x22, x22, l_.str@PAGEOFF
	mov	w26, #1120403456
	b	LBB0_6
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	mov	x8, #0
	str	w25, [x23]
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	str	x8, [x23, #8]
	mov	x0, x19
	mov	x1, x23
	bl	_r_list_append
	mov	x0, x21
	bl	_readdir
	mov	x24, x0
	cbz	x0, LBB0_9
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x1, [x24]
	mov	x0, #0
	bl	_r_fs_file_new
	cbz	x0, LBB0_11
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x23, x0
	str	w25, [x0]
	ldr	x4, [x24]
	add	x0, sp, #24
	mov	w1, #4095
	mov	x2, x22
	mov	x3, x20
	bl	_snprintf
	add	x0, sp, #24
	add	x1, sp, #8
	bl	_stat
	cbnz	w0, LBB0_4
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w0, [sp, #16]
	bl	_S_ISDIR
	cmp	x0, #0
	fmov	s0, w26
	fmov	s1, w25
	fcsel	s0, s1, s0, eq
	str	s0, [x23]
	ldr	x8, [sp, #8]
	b	LBB0_5
LBB0_9:
	mov	x0, x21
	bl	_closedir
	b	LBB0_13
LBB0_10:
	mov	x0, x19
	bl	_r_list_free
	b	LBB0_12
LBB0_11:
	mov	x0, x19
	bl	_r_list_free
	mov	x0, x21
	bl	_closedir
LBB0_12:
	mov	x19, #0
LBB0_13:
	ldur	x8, [x29, #-88]
Lloh7:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh8:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_15
; %bb.14:
	mov	x0, x19
	add	sp, sp, #1, lsl #12             ; =4096
	add	sp, sp, #32
	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_15:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s/%s"

	.comm	_INVALID_HANDLE_VALUE,8,3       ; @INVALID_HANDLE_VALUE
	.comm	_MAX_PATH,4,2                   ; @MAX_PATH
	.no_dead_strip	_fs_posix_dir
.subsections_via_symbols
