	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dodirs                         ## -- Begin function dodirs
	.p2align	4, 0x90
_dodirs:                                ## @dodirs
	.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
	movq	%rdi, -48(%rbp)
	leaq	_dodirs.flags(%rip), %rsi
	leaq	L_.str(%rip), %rdx
	leaq	-48(%rbp), %rdi
	callq	_skipargs
	movl	%eax, %r14d
	movq	%rbx, %rdi
	callq	_USE
	movq	_DIR_CLEAR@GOTPCREL(%rip), %r15
	testl	%r14d, (%r15)
	je	LBB0_8
## %bb.1:
	movq	_dcwd@GOTPCREL(%rip), %r12
	movq	(%r12), %rax
	movq	8(%rax), %rdi
	cmpq	%rax, %rdi
	je	LBB0_2
## %bb.3:
	movq	_dhead@GOTPCREL(%rip), %r13
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	%rbx, %rdi
	cmpq	%rax, %rbx
	je	LBB0_7
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%rdi), %rbx
	cmpq	%r13, %rdi
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	callq	_dfree
	movq	(%r12), %rax
	jmp	LBB0_6
LBB0_2:
	movq	%rax, %rbx
LBB0_7:
	movq	_dhead@GOTPCREL(%rip), %rax
	movq	%rbx, (%rax)
	movq	%rbx, 8(%rax)
	movq	%rax, (%rbx)
	movq	%rax, 8(%rbx)
LBB0_8:
	movq	_DIR_LOAD@GOTPCREL(%rip), %rbx
	testl	%r14d, (%rbx)
	je	LBB0_10
## %bb.9:
	movq	-48(%rbp), %rax
	movq	(%rax), %rdi
	callq	_loaddirs
	jmp	LBB0_12
LBB0_10:
	movq	_DIR_SAVE@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_12
## %bb.11:
	movq	-48(%rbp), %rax
	movq	(%rax), %rdi
	movl	$1, %esi
	callq	_recdirs
LBB0_12:
	movq	-48(%rbp), %rax
	cmpq	$0, (%rax)
	je	LBB0_15
## %bb.13:
	movq	_DIR_SAVE@GOTPCREL(%rip), %rcx
	movl	(%rbx), %edx
	orl	(%rcx), %edx
	testl	%r14d, %edx
	je	LBB0_16
## %bb.14:
	leaq	8(%rax), %rcx
	movq	%rcx, -48(%rbp)
	cmpq	$0, 8(%rax)
	jne	LBB0_16
LBB0_15:
	movq	_DIR_OLD@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_17
LBB0_16:
	movq	_ERR_DIRUS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	leaq	_dodirs.flags(%rip), %rdx
	leaq	L_.str(%rip), %rcx
	callq	_stderror
LBB0_17:
	movl	(%rbx), %eax
	orl	(%r15), %eax
	movq	_DIR_SAVE@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	testl	%r14d, %eax
	je	LBB0_19
## %bb.18:
	movq	_DIR_PRINT@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_20
LBB0_19:
	movl	%r14d, %edi
	callq	_printdirs
LBB0_20:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
_dodirs.flags:                          ## @dodirs.flags
	.asciz	"plvnSLc"

	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.space	1

	.comm	_DIR_CLEAR,4,2                  ## @DIR_CLEAR
	.comm	_dcwd,8,3                       ## @dcwd
	.comm	_dhead,16,3                     ## @dhead
	.comm	_DIR_LOAD,4,2                   ## @DIR_LOAD
	.comm	_DIR_SAVE,4,2                   ## @DIR_SAVE
	.comm	_DIR_OLD,4,2                    ## @DIR_OLD
	.comm	_ERR_DIRUS,4,2                  ## @ERR_DIRUS
L_.str.1:                               ## @.str.1
	.asciz	"dirs"

	.comm	_DIR_PRINT,4,2                  ## @DIR_PRINT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dodirs                         ; -- Begin function dodirs
	.p2align	2
_dodirs:                                ; @dodirs
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x20, x1
	str	x0, [sp, #8]
Lloh0:
	adrp	x1, _dodirs.flags@PAGE
Lloh1:
	add	x1, x1, _dodirs.flags@PAGEOFF
Lloh2:
	adrp	x2, l_.str@PAGE
Lloh3:
	add	x2, x2, l_.str@PAGEOFF
	add	x0, sp, #8
	bl	_skipargs
	mov	x19, x0
	mov	x0, x20
	bl	_USE
Lloh4:
	adrp	x20, _DIR_CLEAR@GOTPAGE
Lloh5:
	ldr	x20, [x20, _DIR_CLEAR@GOTPAGEOFF]
	ldr	w8, [x20]
	tst	w8, w19
	b.eq	LBB0_4
; %bb.1:
Lloh6:
	adrp	x22, _dcwd@GOTPAGE
Lloh7:
	ldr	x22, [x22, _dcwd@GOTPAGEOFF]
	ldr	x8, [x22]
	ldr	x0, [x8, #8]
Lloh8:
	adrp	x21, _dhead@GOTPAGE
Lloh9:
	ldr	x21, [x21, _dhead@GOTPAGEOFF]
	cmp	x0, x8
	b.ne	LBB0_7
; %bb.2:
	mov	x23, x8
LBB0_3:
	stp	x23, x23, [x21]
	stp	x21, x21, [x23]
LBB0_4:
Lloh10:
	adrp	x21, _DIR_LOAD@GOTPAGE
Lloh11:
	ldr	x21, [x21, _DIR_LOAD@GOTPAGEOFF]
	ldr	w8, [x21]
Lloh12:
	adrp	x22, _DIR_SAVE@GOTPAGE
Lloh13:
	ldr	x22, [x22, _DIR_SAVE@GOTPAGEOFF]
	tst	w8, w19
	b.eq	LBB0_9
; %bb.5:
	ldr	x8, [sp, #8]
	ldr	x0, [x8]
	bl	_loaddirs
	b	LBB0_11
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x23
	cmp	x23, x8
	b.eq	LBB0_3
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x23, [x0, #8]
	cmp	x0, x21
	b.eq	LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	bl	_dfree
	ldr	x8, [x22]
	b	LBB0_6
LBB0_9:
	ldr	w8, [x22]
	tst	w8, w19
	b.eq	LBB0_11
; %bb.10:
	ldr	x8, [sp, #8]
	ldr	x0, [x8]
	mov	w1, #1
	bl	_recdirs
LBB0_11:
	ldr	x8, [sp, #8]
	ldr	x9, [x8]
	cbz	x9, LBB0_14
; %bb.12:
	ldr	w9, [x22]
	ldr	w10, [x21]
	orr	w9, w10, w9
	tst	w9, w19
	b.eq	LBB0_15
; %bb.13:
	ldr	x9, [x8, #8]!
	str	x8, [sp, #8]
	cbnz	x9, LBB0_15
LBB0_14:
Lloh14:
	adrp	x8, _DIR_OLD@GOTPAGE
Lloh15:
	ldr	x8, [x8, _DIR_OLD@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	tst	w8, w19
	b.eq	LBB0_16
LBB0_15:
Lloh17:
	adrp	x8, _ERR_DIRUS@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ERR_DIRUS@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
Lloh20:
	adrp	x1, l_.str.1@PAGE
Lloh21:
	add	x1, x1, l_.str.1@PAGEOFF
Lloh22:
	adrp	x2, _dodirs.flags@PAGE
Lloh23:
	add	x2, x2, _dodirs.flags@PAGEOFF
Lloh24:
	adrp	x3, l_.str@PAGE
Lloh25:
	add	x3, x3, l_.str@PAGEOFF
	bl	_stderror
LBB0_16:
	ldr	w8, [x20]
	ldr	w9, [x21]
	orr	w8, w9, w8
	ldr	w9, [x22]
	orr	w8, w8, w9
	tst	w8, w19
	b.eq	LBB0_18
; %bb.17:
Lloh26:
	adrp	x8, _DIR_PRINT@GOTPAGE
Lloh27:
	ldr	x8, [x8, _DIR_PRINT@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	tst	w8, w19
	b.eq	LBB0_19
LBB0_18:
	mov	x0, x19
	bl	_printdirs
LBB0_19:
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
_dodirs.flags:                          ; @dodirs.flags
	.asciz	"plvnSLc"

	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.space	1

	.comm	_DIR_CLEAR,4,2                  ; @DIR_CLEAR
	.comm	_dcwd,8,3                       ; @dcwd
	.comm	_dhead,16,3                     ; @dhead
	.comm	_DIR_LOAD,4,2                   ; @DIR_LOAD
	.comm	_DIR_SAVE,4,2                   ; @DIR_SAVE
	.comm	_DIR_OLD,4,2                    ; @DIR_OLD
	.comm	_ERR_DIRUS,4,2                  ; @ERR_DIRUS
l_.str.1:                               ; @.str.1
	.asciz	"dirs"

	.comm	_DIR_PRINT,4,2                  ; @DIR_PRINT
.subsections_via_symbols
