	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tree_descent
_tree_descent:                          ## @tree_descent
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	addq	$48, %rdi
	callq	_archive_strlen
	movl	%eax, 52(%rbx)
	movq	_O_RDONLY@GOTPCREL(%rip), %rax
	movq	_O_CLOEXEC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movq	32(%rbx), %rax
	movl	8(%rax), %esi
	movq	%rbx, %rdi
	callq	_open_on_current_dir
	movl	%eax, %r14d
	movl	%eax, %edi
	callq	___archive_ensure_cloexec_flag
	testl	%r14d, %r14d
	js	LBB0_1
## %bb.2:
	incl	40(%rbx)
	movq	32(%rbx), %rax
	movq	_isDirLink@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	(%rbx), %edi
	testl	%ecx, (%rax)
	je	LBB0_5
## %bb.3:
	movl	%edi, 4(%rax)
	movq	8(%rbx), %rcx
	leaq	1(%rcx), %rax
	movq	%rax, 8(%rbx)
	cmpq	16(%rbx), %rcx
	jl	LBB0_6
## %bb.4:
	movq	%rax, 16(%rbx)
	jmp	LBB0_6
LBB0_1:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 44(%rbx)
	movq	_TREE_ERROR_DIR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_7
LBB0_5:
	callq	_close
LBB0_6:
	movl	%r14d, (%rbx)
	movq	_onWorkingDir@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, 24(%rbx)
	xorl	%eax, %eax
LBB0_7:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_O_RDONLY,4,2                   ## @O_RDONLY
	.comm	_O_CLOEXEC,4,2                  ## @O_CLOEXEC
	.comm	_errno,4,2                      ## @errno
	.comm	_TREE_ERROR_DIR,4,2             ## @TREE_ERROR_DIR
	.comm	_isDirLink,4,2                  ## @isDirLink
	.comm	_onWorkingDir,4,2               ## @onWorkingDir
	.comm	_O_DIRECTORY,4,2                ## @O_DIRECTORY
	.no_dead_strip	_tree_descent
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tree_descent
_tree_descent:                          ; @tree_descent
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	add	x0, x0, #48
	bl	_archive_strlen
	str	w0, [x19, #52]
Lloh0:
	adrp	x8, _O_RDONLY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _O_RDONLY@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _O_CLOEXEC@GOTPAGE
Lloh4:
	ldr	x9, [x9, _O_CLOEXEC@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w2, w9, w8
	ldr	x8, [x19, #32]
	ldr	w1, [x8, #8]
	mov	x0, x19
	bl	_open_on_current_dir
	mov	x20, x0
	bl	___archive_ensure_cloexec_flag
	tbnz	w20, #31, LBB0_4
; %bb.1:
	ldr	w8, [x19, #40]
	add	w8, w8, #1
	str	w8, [x19, #40]
	ldr	x8, [x19, #32]
	ldr	w9, [x8]
Lloh6:
	adrp	x10, _isDirLink@GOTPAGE
Lloh7:
	ldr	x10, [x10, _isDirLink@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	ldr	w0, [x19]
	tst	w10, w9
	b.eq	LBB0_5
; %bb.2:
	str	w0, [x8, #4]
	ldp	x9, x10, [x19, #8]
	add	x8, x9, #1
	str	x8, [x19, #8]
	cmp	x9, x10
	b.lt	LBB0_6
; %bb.3:
	str	x8, [x19, #16]
	b	LBB0_6
LBB0_4:
Lloh9:
	adrp	x8, _errno@GOTPAGE
Lloh10:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	str	w8, [x19, #44]
Lloh12:
	adrp	x8, _TREE_ERROR_DIR@GOTPAGE
Lloh13:
	ldr	x8, [x8, _TREE_ERROR_DIR@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	b	LBB0_7
LBB0_5:
	bl	_close
LBB0_6:
	mov	w0, #0
	str	w20, [x19]
Lloh15:
	adrp	x8, _onWorkingDir@GOTPAGE
Lloh16:
	ldr	x8, [x8, _onWorkingDir@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	ldr	w9, [x19, #24]
	bic	w8, w9, w8
	str	w8, [x19, #24]
LBB0_7:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_O_RDONLY,4,2                   ; @O_RDONLY
	.comm	_O_CLOEXEC,4,2                  ; @O_CLOEXEC
	.comm	_errno,4,2                      ; @errno
	.comm	_TREE_ERROR_DIR,4,2             ; @TREE_ERROR_DIR
	.comm	_isDirLink,4,2                  ; @isDirLink
	.comm	_onWorkingDir,4,2               ; @onWorkingDir
	.comm	_O_DIRECTORY,4,2                ; @O_DIRECTORY
	.no_dead_strip	_tree_descent
.subsections_via_symbols
