	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cmd__dir_iterator              ## -- Begin function cmd__dir_iterator
	.p2align	4, 0x90
_cmd__dir_iterator:                     ## @cmd__dir_iterator
	.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	%rsi, %rbx
	movl	%edi, %r15d
	movq	8(%rsi), %rdi
	addq	$8, %rbx
	testq	%rdi, %rdi
	je	LBB0_10
## %bb.1:
	addl	$-2, %r15d
	leaq	L_.str(%rip), %r12
	leaq	L_.str.1(%rip), %r13
	xorl	%r14d, %r14d
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	(%rbx), %rsi
	leaq	L_.str.3(%rip), %rdi
	xorl	%eax, %eax
	callq	_die
LBB0_4:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	8(%rbx), %rdi
	addq	$8, %rbx
	decl	%r15d
	testq	%rdi, %rdi
	je	LBB0_11
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rsi
	callq	_starts_with
	movq	(%rbx), %rdi
	testq	%rax, %rax
	je	LBB0_23
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%r13, %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_2
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	(%rbx), %rdi
	leaq	L_.str.2(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	jne	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	_DIR_ITERATOR_PEDANTIC@GOTPCREL(%rip), %rax
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	_DIR_ITERATOR_FOLLOW_SYMLINKS@GOTPCREL(%rip), %rax
LBB0_3:                                 ##   in Loop: Header=BB0_5 Depth=1
	orl	(%rax), %r14d
	jmp	LBB0_4
LBB0_10:
	xorl	%r14d, %r14d
LBB0_11:
	leaq	L_.str.4(%rip), %rdi
	xorl	%eax, %eax
	callq	_die
	movq	(%rbx), %rdi
LBB0_12:
	movl	%r14d, %esi
	callq	_dir_iterator_begin
	testq	%rax, %rax
	je	LBB0_25
## %bb.13:
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_dir_iterator_advance
	movq	_ITER_OK@GOTPCREL(%rip), %r15
	cmpl	(%r15), %eax
	jne	LBB0_20
## %bb.14:
	leaq	L_.str.6(%rip), %r12
	leaq	L_.str.7(%rip), %r13
	leaq	L_.str.10(%rip), %r14
	jmp	LBB0_16
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_16 Depth=1
	xorl	%eax, %eax
	callq	_printf
	movq	(%rbx), %rsi
	movq	8(%rbx), %rdx
	movq	16(%rbx), %rcx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_printf
	movq	%rbx, %rdi
	callq	_dir_iterator_advance
	cmpl	(%r15), %eax
	jne	LBB0_20
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	movl	24(%rbx), %edi
	callq	_S_ISDIR
	movq	%r12, %rdi
	testq	%rax, %rax
	jne	LBB0_15
## %bb.17:                              ##   in Loop: Header=BB0_16 Depth=1
	movl	24(%rbx), %edi
	callq	_S_ISREG
	movq	%r13, %rdi
	testq	%rax, %rax
	jne	LBB0_15
## %bb.18:                              ##   in Loop: Header=BB0_16 Depth=1
	movl	24(%rbx), %edi
	callq	_S_ISLNK
	leaq	L_.str.9(%rip), %rdi
	testq	%rax, %rax
	je	LBB0_15
## %bb.19:                              ##   in Loop: Header=BB0_16 Depth=1
	leaq	L_.str.8(%rip), %rdi
	jmp	LBB0_15
LBB0_20:
	movq	_ITER_DONE@GOTPCREL(%rip), %rdx
	xorl	%ecx, %ecx
	cmpl	(%rdx), %eax
	je	LBB0_22
## %bb.21:
	leaq	L_str(%rip), %rdi
	callq	_puts
	movl	$1, %ecx
LBB0_22:
	movl	%ecx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_23:
	testq	%rdi, %rdi
	je	LBB0_11
## %bb.24:
	testl	%r15d, %r15d
	je	LBB0_12
	jmp	LBB0_11
LBB0_25:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_error_name
	leaq	L_.str.5(%rip), %rdi
	movq	%rax, %rsi
	xorl	%eax, %eax
	callq	_printf
	movq	_EXIT_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"--"

L_.str.1:                               ## @.str.1
	.asciz	"--follow-symlinks"

	.comm	_DIR_ITERATOR_FOLLOW_SYMLINKS,4,2 ## @DIR_ITERATOR_FOLLOW_SYMLINKS
L_.str.2:                               ## @.str.2
	.asciz	"--pedantic"

	.comm	_DIR_ITERATOR_PEDANTIC,4,2      ## @DIR_ITERATOR_PEDANTIC
L_.str.3:                               ## @.str.3
	.asciz	"invalid option '%s'"

L_.str.4:                               ## @.str.4
	.asciz	"dir-iterator needs exactly one non-option argument"

L_.str.5:                               ## @.str.5
	.asciz	"dir_iterator_begin failure: %s\n"

	.comm	_errno,4,2                      ## @errno
	.comm	_EXIT_FAILURE,4,2               ## @EXIT_FAILURE
	.comm	_ITER_OK,4,2                    ## @ITER_OK
L_.str.6:                               ## @.str.6
	.asciz	"[d] "

L_.str.7:                               ## @.str.7
	.asciz	"[f] "

L_.str.8:                               ## @.str.8
	.asciz	"[s] "

L_.str.9:                               ## @.str.9
	.asciz	"[?] "

L_.str.10:                              ## @.str.10
	.asciz	"(%s) [%s] %s\n"

	.comm	_ITER_DONE,4,2                  ## @ITER_DONE
L_str:                                  ## @str
	.asciz	"dir_iterator_advance failure"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cmd__dir_iterator              ; -- Begin function cmd__dir_iterator
	.p2align	2
_cmd__dir_iterator:                     ; @cmd__dir_iterator
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x19, x1
	mov	x8, x0
	ldr	x0, [x19, #8]!
	cbz	x0, LBB0_10
; %bb.1:
	mov	w20, #0
	sub	w25, w8, #2
Lloh0:
	adrp	x21, l_.str@PAGE
Lloh1:
	add	x21, x21, l_.str@PAGEOFF
Lloh2:
	adrp	x22, l_.str.1@PAGE
Lloh3:
	add	x22, x22, l_.str.1@PAGEOFF
Lloh4:
	adrp	x26, _DIR_ITERATOR_FOLLOW_SYMLINKS@GOTPAGE
Lloh5:
	ldr	x26, [x26, _DIR_ITERATOR_FOLLOW_SYMLINKS@GOTPAGEOFF]
Lloh6:
	adrp	x23, l_.str.2@PAGE
Lloh7:
	add	x23, x23, l_.str.2@PAGEOFF
Lloh8:
	adrp	x27, _DIR_ITERATOR_PEDANTIC@GOTPAGE
Lloh9:
	ldr	x27, [x27, _DIR_ITERATOR_PEDANTIC@GOTPAGEOFF]
Lloh10:
	adrp	x24, l_.str.3@PAGE
Lloh11:
	add	x24, x24, l_.str.3@PAGEOFF
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x19]
	str	x8, [sp]
	mov	x0, x24
	bl	_die
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x0, [x19, #8]!
	sub	w25, w25, #1
	cbz	x0, LBB0_12
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x1, x21
	bl	_starts_with
	mov	x8, x0
	ldr	x0, [x19]
	cbz	x8, LBB0_11
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x1, x22
	bl	_strcmp
	cbz	x0, LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x0, [x19]
	mov	x1, x23
	bl	_strcmp
	cbnz	x0, LBB0_2
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x27]
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x26]
LBB0_9:                                 ;   in Loop: Header=BB0_4 Depth=1
	orr	w20, w8, w20
	b	LBB0_3
LBB0_10:
	mov	w20, #0
	b	LBB0_12
LBB0_11:
	cmp	x0, #0
	ccmp	w25, #0, #0, ne
	b.eq	LBB0_13
LBB0_12:
Lloh12:
	adrp	x0, l_.str.4@PAGE
Lloh13:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_die
	ldr	x0, [x19]
LBB0_13:
	mov	x1, x20
	bl	_dir_iterator_begin
	cbz	x0, LBB0_24
; %bb.14:
	mov	x19, x0
	bl	_dir_iterator_advance
Lloh14:
	adrp	x21, _ITER_OK@GOTPAGE
Lloh15:
	ldr	x21, [x21, _ITER_OK@GOTPAGEOFF]
	ldr	w8, [x21]
	cmp	w0, w8
	b.ne	LBB0_20
; %bb.15:
Lloh16:
	adrp	x22, l_.str.6@PAGE
Lloh17:
	add	x22, x22, l_.str.6@PAGEOFF
Lloh18:
	adrp	x23, l_.str.7@PAGE
Lloh19:
	add	x23, x23, l_.str.7@PAGEOFF
Lloh20:
	adrp	x24, l_.str.8@PAGE
Lloh21:
	add	x24, x24, l_.str.8@PAGEOFF
Lloh22:
	adrp	x25, l_.str.9@PAGE
Lloh23:
	add	x25, x25, l_.str.9@PAGEOFF
Lloh24:
	adrp	x20, l_.str.10@PAGE
Lloh25:
	add	x20, x20, l_.str.10@PAGEOFF
	b	LBB0_17
LBB0_16:                                ;   in Loop: Header=BB0_17 Depth=1
	bl	_printf
	ldr	q0, [x19]
	ldr	x8, [x19, #16]
	str	x8, [sp, #16]
	str	q0, [sp]
	mov	x0, x20
	bl	_printf
	mov	x0, x19
	bl	_dir_iterator_advance
	ldr	w8, [x21]
	cmp	w0, w8
	b.ne	LBB0_20
LBB0_17:                                ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x19, #24]
	bl	_S_ISDIR
	mov	x8, x0
	mov	x0, x22
	cbnz	x8, LBB0_16
; %bb.18:                               ;   in Loop: Header=BB0_17 Depth=1
	ldr	w0, [x19, #24]
	bl	_S_ISREG
	mov	x8, x0
	mov	x0, x23
	cbnz	x8, LBB0_16
; %bb.19:                               ;   in Loop: Header=BB0_17 Depth=1
	ldr	w0, [x19, #24]
	bl	_S_ISLNK
	cmp	x0, #0
	csel	x0, x25, x24, eq
	b	LBB0_16
LBB0_20:
Lloh26:
	adrp	x8, _ITER_DONE@GOTPAGE
Lloh27:
	ldr	x8, [x8, _ITER_DONE@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_22
; %bb.21:
	mov	w0, #0
	b	LBB0_23
LBB0_22:
Lloh29:
	adrp	x0, l_str@PAGE
Lloh30:
	add	x0, x0, l_str@PAGEOFF
	bl	_puts
	mov	w0, #1
LBB0_23:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_24:
Lloh31:
	adrp	x8, _errno@GOTPAGE
Lloh32:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh33:
	ldr	w0, [x8]
	bl	_error_name
	str	x0, [sp]
Lloh34:
	adrp	x0, l_.str.5@PAGE
Lloh35:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_printf
Lloh36:
	adrp	x8, _EXIT_FAILURE@GOTPAGE
Lloh37:
	ldr	x8, [x8, _EXIT_FAILURE@GOTPAGEOFF]
Lloh38:
	ldr	w0, [x8]
	bl	_exit
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"--"

l_.str.1:                               ; @.str.1
	.asciz	"--follow-symlinks"

	.comm	_DIR_ITERATOR_FOLLOW_SYMLINKS,4,2 ; @DIR_ITERATOR_FOLLOW_SYMLINKS
l_.str.2:                               ; @.str.2
	.asciz	"--pedantic"

	.comm	_DIR_ITERATOR_PEDANTIC,4,2      ; @DIR_ITERATOR_PEDANTIC
l_.str.3:                               ; @.str.3
	.asciz	"invalid option '%s'"

l_.str.4:                               ; @.str.4
	.asciz	"dir-iterator needs exactly one non-option argument"

l_.str.5:                               ; @.str.5
	.asciz	"dir_iterator_begin failure: %s\n"

	.comm	_errno,4,2                      ; @errno
	.comm	_EXIT_FAILURE,4,2               ; @EXIT_FAILURE
	.comm	_ITER_OK,4,2                    ; @ITER_OK
l_.str.6:                               ; @.str.6
	.asciz	"[d] "

l_.str.7:                               ; @.str.7
	.asciz	"[f] "

l_.str.8:                               ; @.str.8
	.asciz	"[s] "

l_.str.9:                               ; @.str.9
	.asciz	"[?] "

l_.str.10:                              ; @.str.10
	.asciz	"(%s) [%s] %s\n"

	.comm	_ITER_DONE,4,2                  ; @ITER_DONE
l_str:                                  ; @str
	.asciz	"dir_iterator_advance failure"

.subsections_via_symbols
