	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function walk_rec
_walk_rec:                              ## @walk_rec
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	movl	%edx, %r14d
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r13
	movq	_walk_path@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	callq	_strlen
	movl	%eax, %r15d
	movq	(%r12), %rdi
	callq	_opendir
	movslq	%r14d, %rbx
	movq	%rax, (%r13,%rbx,8)
	testq	%rax, %rax
	je	LBB0_28
## %bb.1:
	movq	%rax, %rdi
	callq	_readdir
	movq	%rax, %r12
	movslq	%r15d, %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	testq	%r12, %r12
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	je	LBB0_6
## %bb.2:
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	leal	-3(%rcx), %eax
	movl	%eax, -64(%rbp)                 ## 4-byte Spill
	leal	1(%rcx), %eax
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	cltq
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	leaq	L_.str.1(%rip), %r14
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	leaq	(,%rax,8), %rax
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	movq	%r13, -88(%rbp)                 ## 8-byte Spill
	movq	%rbx, -112(%rbp)                ## 8-byte Spill
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	(%rbx), %rsi
	leaq	L_.str.4(%rip), %rdi
	xorl	%eax, %eax
	callq	_kprintf
LBB0_26:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	%r13, %r14
LBB0_27:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	-88(%rbp), %r13                 ## 8-byte Reload
	movq	-112(%rbp), %rbx                ## 8-byte Reload
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	(%r13,%rbx,8), %rdi
	callq	_readdir
	movq	%rax, %r12
	testq	%rax, %rax
	je	LBB0_6
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %r15
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r15, %rdi
	leaq	L_.str.2(%rip), %rsi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_5
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r14, %r13
	movq	_walk_path@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	addq	-104(%rbp), %rdi                ## 8-byte Folded Reload
	leaq	L_.str.3(%rip), %rsi
	movq	%r15, %rdx
	callq	_sprintf
	movq	(%rbx), %rdi
	leaq	-128(%rbp), %rsi
	callq	_stat
	testq	%rax, %rax
	jne	LBB0_9
## %bb.10:                              ##   in Loop: Header=BB0_3 Depth=1
	movl	-120(%rbp), %edi
	callq	_S_ISDIR
	cmpl	$3, -56(%rbp)                   ## 4-byte Folded Reload
	jg	LBB0_21
## %bb.11:                              ##   in Loop: Header=BB0_3 Depth=1
	testq	%rax, %rax
	je	LBB0_21
## %bb.12:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	_errno@GOTPCREL(%rip), %rbx
	movq	$0, (%rbx)
	movq	(%r12), %rdi
	xorl	%esi, %esi
	movl	$10, %edx
	callq	_strtol
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	-96(%rbp), %rdx                 ## 8-byte Reload
	movl	%eax, (%rcx,%rdx,4)
	cmpq	$0, (%rbx)
	movq	%r13, %r14
	jne	LBB0_27
## %bb.13:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	cmpl	$2, %eax
	je	LBB0_19
## %bb.14:                              ##   in Loop: Header=BB0_3 Depth=1
	cmpl	$1, %eax
	je	LBB0_18
## %bb.15:                              ##   in Loop: Header=BB0_3 Depth=1
	testl	%eax, %eax
	jne	LBB0_20
## %bb.16:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	4(%rax), %edi
	callq	_check_depth0
	jmp	LBB0_17
LBB0_21:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	-120(%rbp), %edi
	callq	_S_ISREG
	cmpl	$1, -64(%rbp)                   ## 4-byte Folded Reload
	movq	%r13, %r14
	ja	LBB0_27
## %bb.22:                              ##   in Loop: Header=BB0_3 Depth=1
	testq	%rax, %rax
	je	LBB0_27
## %bb.23:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	_walk_prefix_len@GOTPCREL(%rip), %rax
	movslq	(%rax), %rdi
	shlq	$3, %rdi
	movq	_walk_path@GOTPCREL(%rip), %rax
	addq	(%rax), %rdi
	movl	$1, %esi
	callq	_get_str_f
	movq	%rax, %rbx
	movq	(%rax), %rax
	xorl	%edi, %edi
	movq	_MAX_DIRS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	setl	%dil
	callq	_assert
	movq	-128(%rbp), %rax
	cmpq	%rax, 8(%rbx)
	jge	LBB0_25
## %bb.24:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	%rax, 8(%rbx)
LBB0_25:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	(%rbx), %rax
	movq	16(%rbx), %rcx
	leaq	1(%rax), %rdx
	movq	%rdx, (%rbx)
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	movq	%rdx, (%rcx,%rax,8)
	jmp	LBB0_26
LBB0_19:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	12(%rax), %eax
	cltd
	movq	_split_modulo@GOTPCREL(%rip), %rcx
	idivl	(%rcx)
	movq	_split_rem@GOTPCREL(%rip), %rax
	cmpl	(%rax), %edx
	jne	LBB0_27
	jmp	LBB0_20
LBB0_18:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	imull	$100, 8(%rax), %edi
	addl	4(%rax), %edi
	callq	_check_depth1
LBB0_17:                                ##   in Loop: Header=BB0_3 Depth=1
	testl	%eax, %eax
	je	LBB0_27
LBB0_20:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movl	-60(%rbp), %edx                 ## 4-byte Reload
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	callq	_walk_rec
	jmp	LBB0_27
LBB0_6:
	movq	_walk_path@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movq	$0, (%rax,%rcx,8)
	movq	(%r13,%rbx,8), %rdi
	callq	_closedir
	xorl	%eax, %eax
	jmp	LBB0_7
LBB0_28:
	movq	(%r12), %rsi
	leaq	L_.str(%rip), %rdi
	movl	%r14d, %edx
	xorl	%eax, %eax
	callq	_kprintf
	movl	$-1, %eax
LBB0_7:
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_walk_path,8,3                  ## @walk_path
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"opendir (%s) fail (depth = %d). %m\n"

L_.str.1:                               ## @.str.1
	.asciz	"."

L_.str.2:                               ## @.str.2
	.asciz	".."

L_.str.3:                               ## @.str.3
	.asciz	"/%s"

L_.str.4:                               ## @.str.4
	.asciz	"stat (%s) fail. %m\n"

	.comm	_errno,8,3                      ## @errno
	.comm	_split_modulo,4,2               ## @split_modulo
	.comm	_split_rem,4,2                  ## @split_rem
	.comm	_walk_prefix_len,4,2            ## @walk_prefix_len
	.comm	_MAX_DIRS,8,3                   ## @MAX_DIRS
	.no_dead_strip	_walk_rec
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function walk_rec
_walk_rec:                              ; @walk_rec
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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
	stp	x3, x1, [sp, #32]               ; 16-byte Folded Spill
	mov	x20, x2
	mov	x19, x0
Lloh0:
	adrp	x26, _walk_path@GOTPAGE
Lloh1:
	ldr	x26, [x26, _walk_path@GOTPAGEOFF]
	ldr	x0, [x26]
	bl	_strlen
	mov	x21, x0
	ldr	x0, [x26]
	bl	_opendir
	str	x0, [x19, w20, sxtw #3]
	cbz	x0, LBB0_24
; %bb.1:
	sxtw	x27, w20
	bl	_readdir
	sxtw	x22, w21
	cbz	x0, LBB0_23
; %bb.2:
	mov	x28, x0
	sub	w8, w20, #3
	str	w8, [sp, #20]                   ; 4-byte Folded Spill
Lloh2:
	adrp	x23, l_.str.1@PAGE
Lloh3:
	add	x23, x23, l_.str.1@PAGEOFF
Lloh4:
	adrp	x24, l_.str.2@PAGE
Lloh5:
	add	x24, x24, l_.str.2@PAGEOFF
Lloh6:
	adrp	x25, l_.str.3@PAGE
Lloh7:
	add	x25, x25, l_.str.3@PAGEOFF
	add	x8, x27, #1
	str	x8, [sp, #24]                   ; 8-byte Folded Spill
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	x1, [x26]
Lloh8:
	adrp	x0, l_.str.4@PAGE
Lloh9:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_kprintf
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	x0, [x19, x27, lsl #3]
	bl	_readdir
	mov	x28, x0
	cbz	x0, LBB0_23
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x21, [x28]
	mov	x0, x21
	mov	x1, x23
	bl	_strcmp
	cbz	w0, LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x21
	mov	x1, x24
	bl	_strcmp
	cbz	w0, LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x26]
	add	x0, x8, x22, lsl #3
	mov	x1, x25
	mov	x2, x21
	bl	_sprintf
	ldr	x0, [x26]
	add	x1, sp, #48
	bl	_stat
	cbnz	x0, LBB0_3
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [sp, #56]
	bl	_S_ISDIR
	cmp	w20, #3
	b.gt	LBB0_15
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=1
	cbz	x0, LBB0_15
; %bb.10:                               ;   in Loop: Header=BB0_5 Depth=1
Lloh10:
	adrp	x21, _errno@GOTPAGE
Lloh11:
	ldr	x21, [x21, _errno@GOTPAGEOFF]
	str	xzr, [x21]
	ldr	x0, [x28]
	mov	x1, #0
	mov	w2, #10
	bl	_strtol
	ldr	x8, [sp, #40]                   ; 8-byte Folded Reload
	ldr	x9, [sp, #24]                   ; 8-byte Folded Reload
	str	w0, [x8, x9, lsl #2]
	ldr	x8, [x21]
	cbnz	x8, LBB0_4
; %bb.11:                               ;   in Loop: Header=BB0_5 Depth=1
	cmp	w20, #2
	b.eq	LBB0_20
; %bb.12:                               ;   in Loop: Header=BB0_5 Depth=1
	cmp	w20, #1
	b.eq	LBB0_21
; %bb.13:                               ;   in Loop: Header=BB0_5 Depth=1
	cbnz	w20, LBB0_22
; %bb.14:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [sp, #40]                   ; 8-byte Folded Reload
	ldr	w0, [x8, #4]
	bl	_check_depth0
	cbnz	w0, LBB0_22
	b	LBB0_4
LBB0_15:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [sp, #56]
	bl	_S_ISREG
	ldr	w8, [sp, #20]                   ; 4-byte Folded Reload
	cmp	w8, #1
	b.hi	LBB0_4
; %bb.16:                               ;   in Loop: Header=BB0_5 Depth=1
	cbz	x0, LBB0_4
; %bb.17:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x26]
Lloh12:
	adrp	x9, _walk_prefix_len@GOTPAGE
Lloh13:
	ldr	x9, [x9, _walk_prefix_len@GOTPAGEOFF]
Lloh14:
	ldrsw	x9, [x9]
	add	x0, x8, x9, lsl #3
	mov	w1, #1
	bl	_get_str_f
	mov	x21, x0
	ldr	x8, [x0]
Lloh15:
	adrp	x9, _MAX_DIRS@GOTPAGE
Lloh16:
	ldr	x9, [x9, _MAX_DIRS@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, lt
	bl	_assert
	ldr	x9, [x21, #8]
	ldr	x8, [sp, #48]
	cmp	x9, x8
	b.ge	LBB0_19
; %bb.18:                               ;   in Loop: Header=BB0_5 Depth=1
	str	x8, [x21, #8]
LBB0_19:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x21, #16]
	ldr	x9, [x21]
	add	x10, x9, #1
	str	x10, [x21]
	ldr	x10, [sp, #32]                  ; 8-byte Folded Reload
	str	x10, [x8, x9, lsl #3]
	b	LBB0_4
LBB0_20:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [sp, #40]                   ; 8-byte Folded Reload
	ldr	w8, [x8, #12]
Lloh18:
	adrp	x9, _split_modulo@GOTPAGE
Lloh19:
	ldr	x9, [x9, _split_modulo@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	sdiv	w10, w8, w9
	msub	w8, w10, w9, w8
Lloh21:
	adrp	x9, _split_rem@GOTPAGE
Lloh22:
	ldr	x9, [x9, _split_rem@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_4
	b	LBB0_22
LBB0_21:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x9, [sp, #40]                   ; 8-byte Folded Reload
	ldp	w8, w9, [x9, #4]
	mov	w10, #100
	madd	w0, w9, w10, w8
	bl	_check_depth1
	cbz	w0, LBB0_4
LBB0_22:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x19
	ldp	x3, x1, [sp, #32]               ; 16-byte Folded Reload
	ldr	x2, [sp, #24]                   ; 8-byte Folded Reload
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_walk_rec
	b	LBB0_4
LBB0_23:
	ldr	x8, [x26]
	str	xzr, [x8, x22, lsl #3]
	ldr	x0, [x19, x27, lsl #3]
	bl	_closedir
	mov	w0, #0
	b	LBB0_25
LBB0_24:
	ldr	x1, [x26]
                                        ; kill: def $w20 killed $w20 killed $x20 def $x20
	str	x20, [sp]
Lloh24:
	adrp	x0, l_.str@PAGE
Lloh25:
	add	x0, x0, l_.str@PAGEOFF
	bl	_kprintf
	mov	w0, #-1
LBB0_25:
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_walk_path,8,3                  ; @walk_path
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"opendir (%s) fail (depth = %d). %m\n"

l_.str.1:                               ; @.str.1
	.asciz	"."

l_.str.2:                               ; @.str.2
	.asciz	".."

l_.str.3:                               ; @.str.3
	.asciz	"/%s"

l_.str.4:                               ; @.str.4
	.asciz	"stat (%s) fail. %m\n"

	.comm	_errno,8,3                      ; @errno
	.comm	_split_modulo,4,2               ; @split_modulo
	.comm	_split_rem,4,2                  ; @split_rem
	.comm	_walk_prefix_len,4,2            ; @walk_prefix_len
	.comm	_MAX_DIRS,8,3                   ; @MAX_DIRS
	.no_dead_strip	_walk_rec
.subsections_via_symbols
