	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tree_ascend
_tree_ascend:                           ## @tree_ascend
	.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	%rdi, %rbx
	movq	24(%rdi), %r12
	movl	(%rdi), %r14d
	movq	_isDirLink@GOTPCREL(%rip), %r13
	movl	(%r13), %eax
	testl	%eax, (%r12)
	je	LBB0_2
## %bb.1:
	movl	4(%r12), %r15d
	testl	%r15d, %r15d
	js	LBB0_4
LBB0_5:
	movl	%r15d, (%rbx)
	movq	_onWorkingDir@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, 12(%rbx)
	leaq	8(%r12), %rdx
	movl	%r14d, %edi
	movq	%rbx, %rsi
	callq	_close_and_restore_time
	movl	(%r13), %eax
	testl	%eax, (%r12)
	je	LBB0_7
## %bb.6:
	decl	8(%rbx)
	movl	$-1, 4(%r12)
LBB0_7:
	decl	4(%rbx)
	xorl	%eax, %eax
	jmp	LBB0_8
LBB0_2:
	movq	_O_RDONLY@GOTPCREL(%rip), %rax
	movq	_O_CLOEXEC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_open_on_current_dir
	movl	%eax, %r15d
	movl	%eax, %edi
	callq	___archive_ensure_cloexec_flag
	testl	%r15d, %r15d
	jns	LBB0_5
LBB0_4:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
	movq	_TREE_ERROR_FATAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_isDirLink,4,2                  ## @isDirLink
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	".."

	.comm	_O_RDONLY,4,2                   ## @O_RDONLY
	.comm	_O_CLOEXEC,4,2                  ## @O_CLOEXEC
	.comm	_errno,4,2                      ## @errno
	.comm	_TREE_ERROR_FATAL,4,2           ## @TREE_ERROR_FATAL
	.comm	_onWorkingDir,4,2               ## @onWorkingDir
	.no_dead_strip	_tree_ascend
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tree_ascend
_tree_ascend:                           ; @tree_ascend
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x19, x0
	ldr	x22, [x0, #24]
	ldr	w20, [x0]
	ldr	w8, [x22]
Lloh0:
	adrp	x23, _isDirLink@GOTPAGE
Lloh1:
	ldr	x23, [x23, _isDirLink@GOTPAGEOFF]
	ldr	w9, [x23]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.1:
	ldr	w21, [x22, #4]
	tbnz	w21, #31, LBB0_6
LBB0_2:
Lloh2:
	adrp	x8, _onWorkingDir@GOTPAGE
Lloh3:
	ldr	x8, [x8, _onWorkingDir@GOTPAGEOFF]
	str	w21, [x19]
Lloh4:
	ldr	w8, [x8]
	ldr	w9, [x19, #12]
	bic	w8, w9, w8
	str	w8, [x19, #12]
	add	x2, x22, #8
	mov	x0, x20
	mov	x1, x19
	bl	_close_and_restore_time
	ldr	w8, [x22]
	ldr	w9, [x23]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.3:
	ldr	w8, [x19, #8]
	sub	w8, w8, #1
	str	w8, [x19, #8]
	mov	w8, #-1
	str	w8, [x22, #4]
LBB0_4:
	mov	w0, #0
	ldr	w8, [x19, #4]
	sub	w8, w8, #1
	str	w8, [x19, #4]
	b	LBB0_7
LBB0_5:
Lloh5:
	adrp	x8, _O_RDONLY@GOTPAGE
Lloh6:
	ldr	x8, [x8, _O_RDONLY@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
Lloh8:
	adrp	x9, _O_CLOEXEC@GOTPAGE
Lloh9:
	ldr	x9, [x9, _O_CLOEXEC@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	orr	w2, w9, w8
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_open_on_current_dir
	mov	x21, x0
	bl	___archive_ensure_cloexec_flag
	tbz	w21, #31, LBB0_2
LBB0_6:
Lloh13:
	adrp	x8, _errno@GOTPAGE
Lloh14:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	str	w8, [x19, #16]
Lloh16:
	adrp	x8, _TREE_ERROR_FATAL@GOTPAGE
Lloh17:
	ldr	x8, [x8, _TREE_ERROR_FATAL@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
LBB0_7:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_isDirLink,4,2                  ; @isDirLink
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	".."

	.comm	_O_RDONLY,4,2                   ; @O_RDONLY
	.comm	_O_CLOEXEC,4,2                  ; @O_CLOEXEC
	.comm	_errno,4,2                      ; @errno
	.comm	_TREE_ERROR_FATAL,4,2           ; @TREE_ERROR_FATAL
	.comm	_onWorkingDir,4,2               ; @onWorkingDir
	.no_dead_strip	_tree_ascend
.subsections_via_symbols
