	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dodir                          ## -- Begin function dodir
	.p2align	4, 0x90
_dodir:                                 ## @dodir
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_MAXPATHLEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rbx
	movq	_MAXDEWEY@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	leaq	(,%r15,4), %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -56(%rbp)                 ## 8-byte Spill
	movq	%r12, %rdi
	callq	_opendir
	testq	%rax, %rax
	je	LBB0_14
## %bb.1:
	movq	%rax, %r13
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	movq	%rax, %rdi
	callq	_readdir
	testq	%rax, %rax
	je	LBB0_21
## %bb.2:
	movq	%rax, %r12
	shll	$2, %r15d
	leaq	-4(%rbx), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	%r13, %rdi
	callq	_readdir
	movq	%rax, %r12
	testq	%rax, %rax
	je	LBB0_21
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_9 Depth 2
	movq	(%r12), %rsi
	cmpb	$108, (%rsi)
	jne	LBB0_20
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpb	$105, 1(%rsi)
	jne	LBB0_20
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpb	$98, 2(%rsi)
	jne	LBB0_20
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	addq	$3, %rsi
	movq	%rbx, %rdi
	callq	_strcpy
	movq	%rbx, %rdi
	callq	_strlen
	cmpl	$4, %eax
	jl	LBB0_20
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	%eax, %r14d
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	addq	%r14, %rax
	cmpq	%rbx, %rax
	jbe	LBB0_20
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	addq	%rbx, %r14
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_9 Depth=2
	leaq	-1(%r14), %rax
	addq	$-5, %r14
	cmpq	%rbx, %r14
	movq	%rax, %r14
	jbe	LBB0_20
LBB0_9:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpb	$46, -4(%r14)
	jne	LBB0_13
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=2
	cmpb	$115, -3(%r14)
	jne	LBB0_13
## %bb.11:                              ##   in Loop: Header=BB0_9 Depth=2
	cmpb	$111, -2(%r14)
	jne	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_9 Depth=2
	cmpb	$46, -1(%r14)
	jne	LBB0_13
## %bb.17:                              ##   in Loop: Header=BB0_3 Depth=1
	movb	$0, -4(%r14)
	movsbl	(%r14), %edi
	callq	_isdigit
	testl	%eax, %eax
	je	LBB0_20
## %bb.18:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
                                        ## kill: def $edi killed $edi killed $rdi
	movl	%r15d, %esi
	callq	_bzero
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %rsi
	callq	_getdewey
	cmpl	$2, %eax
	jl	LBB0_20
## %bb.19:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	(%r12), %rsi
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rdx
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, %r8d
	callq	_enter
	jmp	LBB0_20
LBB0_21:
	movq	%r13, %rdi
	callq	_closedir
	xorl	%eax, %eax
	jmp	LBB0_22
LBB0_14:
	testl	%r14d, %r14d
	je	LBB0_16
## %bb.15:
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	_ENOENT@GOTPCREL(%rip), %rdx
	xorl	%eax, %eax
	cmpq	(%rdx), %rcx
	je	LBB0_22
LBB0_16:
	leaq	L_.str(%rip), %rdi
	movq	%r12, %rsi
	callq	_warn
	movl	$-1, %eax
LBB0_22:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_24
## %bb.23:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_24:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAXPATHLEN,4,2                 ## @MAXPATHLEN
	.comm	_MAXDEWEY,4,2                   ## @MAXDEWEY
	.comm	_errno,8,3                      ## @errno
	.comm	_ENOENT,8,3                     ## @ENOENT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dodir                          ; -- Begin function dodir
	.p2align	2
_dodir:                                 ; @dodir
	.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
	sub	sp, sp, #16
	mov	x23, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
Lloh3:
	adrp	x8, _MAXPATHLEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAXPATHLEN@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x20, x9, x8
	mov	sp, x20
Lloh8:
	adrp	x8, _MAXDEWEY@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MAXDEWEY@GOTPAGEOFF]
Lloh10:
	ldr	w25, [x8]
	lsl	x8, x25, #2
	mov	x9, x8
Lloh11:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh12:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x21, x9, x8
	mov	sp, x21
	bl	_opendir
	cbz	x0, LBB0_20
; %bb.1:
	mov	x22, x0
	bl	_readdir
	cbz	x0, LBB0_18
; %bb.2:
	mov	x24, x0
	lsl	w23, w25, #2
	sub	x26, x20, #4
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x22
	bl	_readdir
	mov	x24, x0
	cbz	x0, LBB0_18
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_11 Depth 2
	ldr	x8, [x24]
	ldrb	w9, [x8]
	cmp	w9, #108
	b.ne	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldrb	w9, [x8, #1]
	cmp	w9, #105
	b.ne	LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldrb	w9, [x8, #2]
	cmp	w9, #98
	b.ne	LBB0_3
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x1, x8, #3
	mov	x0, x20
	bl	_strcpy
	mov	x0, x20
	bl	_strlen
	cmp	w0, #4
	b.lt	LBB0_3
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	w8, w0
	add	x9, x26, x8
	cmp	x9, x20
	b.ls	LBB0_3
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x25, x20, x8
	b	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=2
	sub	x8, x25, #5
	sub	x25, x25, #1
	cmp	x8, x20
	b.ls	LBB0_3
LBB0_11:                                ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldurb	w8, [x25, #-4]
	cmp	w8, #46
	b.ne	LBB0_10
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=2
	ldurb	w8, [x25, #-3]
	cmp	w8, #115
	b.ne	LBB0_10
; %bb.13:                               ;   in Loop: Header=BB0_11 Depth=2
	ldurb	w8, [x25, #-2]
	cmp	w8, #111
	b.ne	LBB0_10
; %bb.14:                               ;   in Loop: Header=BB0_11 Depth=2
	ldurb	w8, [x25, #-1]
	cmp	w8, #46
	b.ne	LBB0_10
; %bb.15:                               ;   in Loop: Header=BB0_4 Depth=1
	sturb	wzr, [x25, #-4]
	ldrsb	w0, [x25]
	bl	_isdigit
	cbz	w0, LBB0_3
; %bb.16:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x21
	mov	x1, x23
	bl	_bzero
	mov	x0, x21
	mov	x1, x25
	bl	_getdewey
	cmp	w0, #2
	b.lt	LBB0_3
; %bb.17:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	x4, x0
	ldr	x1, [x24]
	mov	x0, x19
	mov	x2, x20
	mov	x3, x21
	bl	_enter
	b	LBB0_3
LBB0_18:
	mov	x0, x22
	bl	_closedir
LBB0_19:
	mov	w0, #0
	b	LBB0_23
LBB0_20:
	cbz	w23, LBB0_22
; %bb.21:
Lloh13:
	adrp	x8, _errno@GOTPAGE
Lloh14:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh15:
	ldr	x8, [x8]
Lloh16:
	adrp	x9, _ENOENT@GOTPAGE
Lloh17:
	ldr	x9, [x9, _ENOENT@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_19
LBB0_22:
Lloh19:
	adrp	x0, l_.str@PAGE
Lloh20:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_warn
	mov	w0, #-1
LBB0_23:
	ldur	x8, [x29, #-72]
Lloh21:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh22:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_25
; %bb.24:
	sub	sp, x29, #64
	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_25:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_MAXPATHLEN,4,2                 ; @MAXPATHLEN
	.comm	_MAXDEWEY,4,2                   ; @MAXDEWEY
	.comm	_errno,8,3                      ; @errno
	.comm	_ENOENT,8,3                     ; @ENOENT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s"

.subsections_via_symbols
