	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dir_iterator_advance           ## -- Begin function dir_iterator_advance
	.p2align	4, 0x90
_dir_iterator_advance:                  ## @dir_iterator_advance
	.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
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movl	12(%rdi), %edi
	callq	_S_ISDIR
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movq	%r12, %rdi
	callq	_push_level
	testq	%rax, %rax
	je	LBB0_5
## %bb.2:
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_ENOENT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_4
## %bb.3:
	movq	_DIR_ITERATOR_PEDANTIC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r12)
	jne	LBB0_15
LBB0_4:
	cmpl	$0, 4(%r12)
	je	LBB0_15
LBB0_5:
	leaq	8(%r12), %r14
	movq	_errno@GOTPCREL(%rip), %r13
	jmp	LBB0_6
LBB0_9:                                 ##   in Loop: Header=BB0_6 Depth=1
	movq	%r12, %rdi
	callq	_pop_level
	testq	%rax, %rax
	je	LBB0_10
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%r12), %rbx
	movslq	4(%r12), %r15
	movl	-4(%rbx,%r15,8), %esi
	movq	%r14, %rdi
	callq	_strbuf_setlen
	movq	$0, (%r13)
	movl	-8(%rbx,%r15,8), %edi
	callq	_readdir
	testq	%rax, %rax
	je	LBB0_7
## %bb.11:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	%rax, %rbx
	movl	(%rax), %edi
	callq	_is_dot_or_dotdot
	testq	%rax, %rax
	jne	LBB0_6
## %bb.12:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_prepare_next_entry_data
	testq	%rax, %rax
	je	LBB0_17
## %bb.13:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	(%r13), %rax
	movq	_ENOENT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_6
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_6 Depth=1
	cmpq	$0, (%r13)
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	8(%r12), %esi
	leaq	L_.str(%rip), %rdi
	callq	_warning_errno
LBB0_14:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	_DIR_ITERATOR_PEDANTIC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r12)
	je	LBB0_6
LBB0_15:
	movq	%r12, %rdi
	callq	_dir_iterator_abort
	movq	_ITER_ERROR@GOTPCREL(%rip), %rax
	jmp	LBB0_16
LBB0_17:
	movq	_ITER_OK@GOTPCREL(%rip), %rax
LBB0_16:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movq	%r12, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dir_iterator_abort             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_errno,8,3                      ## @errno
	.comm	_ENOENT,8,3                     ## @ENOENT
	.comm	_DIR_ITERATOR_PEDANTIC,4,2      ## @DIR_ITERATOR_PEDANTIC
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"error reading directory '%s'"

	.comm	_ITER_OK,4,2                    ## @ITER_OK
	.comm	_ITER_ERROR,4,2                 ## @ITER_ERROR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dir_iterator_advance           ; -- Begin function dir_iterator_advance
	.p2align	2
_dir_iterator_advance:                  ; @dir_iterator_advance
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x0
	ldr	w0, [x0, #12]
	bl	_S_ISDIR
Lloh0:
	adrp	x23, _errno@GOTPAGE
Lloh1:
	ldr	x23, [x23, _errno@GOTPAGEOFF]
Lloh2:
	adrp	x24, _ENOENT@GOTPAGE
Lloh3:
	ldr	x24, [x24, _ENOENT@GOTPAGEOFF]
	cbz	x0, LBB0_5
; %bb.1:
	mov	x0, x19
	bl	_push_level
	cbz	x0, LBB0_5
; %bb.2:
	ldr	x8, [x23]
	ldr	x9, [x24]
	cmp	x8, x9
	b.eq	LBB0_4
; %bb.3:
	ldr	w8, [x19]
Lloh4:
	adrp	x9, _DIR_ITERATOR_PEDANTIC@GOTPAGE
Lloh5:
	ldr	x9, [x9, _DIR_ITERATOR_PEDANTIC@GOTPAGEOFF]
Lloh6:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_14
LBB0_4:
	ldr	w8, [x19, #4]
	cbz	w8, LBB0_14
LBB0_5:
	add	x20, x19, #8
Lloh7:
	adrp	x21, l_.str@PAGE
Lloh8:
	add	x21, x21, l_.str@PAGEOFF
Lloh9:
	adrp	x25, _DIR_ITERATOR_PEDANTIC@GOTPAGE
Lloh10:
	ldr	x25, [x25, _DIR_ITERATOR_PEDANTIC@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x19
	bl	_pop_level
	cbz	x0, LBB0_17
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #16]
	ldrsw	x9, [x19, #4]
	add	x22, x8, x9, lsl #3
	ldur	w1, [x22, #-4]
	mov	x0, x20
	bl	_strbuf_setlen
	str	xzr, [x23]
	ldur	w0, [x22, #-8]
	bl	_readdir
	cbz	x0, LBB0_11
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x22, x0
	ldr	w0, [x0]
	bl	_is_dot_or_dotdot
	cbnz	x0, LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x19
	mov	x1, x22
	bl	_prepare_next_entry_data
	cbz	x0, LBB0_15
; %bb.10:                               ;   in Loop: Header=BB0_7 Depth=1
	ldr	x8, [x23]
	ldr	x9, [x24]
	cmp	x8, x9
	b.eq	LBB0_7
	b	LBB0_13
LBB0_11:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x8, [x23]
	cbz	x8, LBB0_6
; %bb.12:                               ;   in Loop: Header=BB0_7 Depth=1
	ldr	w1, [x19, #8]
	mov	x0, x21
	bl	_warning_errno
LBB0_13:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w8, [x19]
	ldr	w9, [x25]
	tst	w9, w8
	b.eq	LBB0_7
LBB0_14:
	mov	x0, x19
	bl	_dir_iterator_abort
Lloh11:
	adrp	x8, _ITER_ERROR@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ITER_ERROR@GOTPAGEOFF]
	b	LBB0_16
LBB0_15:
Lloh13:
	adrp	x8, _ITER_OK@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ITER_OK@GOTPAGEOFF]
LBB0_16:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_17:
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_dir_iterator_abort
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_errno,8,3                      ; @errno
	.comm	_ENOENT,8,3                     ; @ENOENT
	.comm	_DIR_ITERATOR_PEDANTIC,4,2      ; @DIR_ITERATOR_PEDANTIC
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"error reading directory '%s'"

	.comm	_ITER_OK,4,2                    ; @ITER_OK
	.comm	_ITER_ERROR,4,2                 ; @ITER_ERROR
.subsections_via_symbols
