	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function try_remove_empty_parents
_try_remove_empty_parents:              ## @try_remove_empty_parents
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r13d
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	movq	_STRBUF_INIT@GOTPCREL(%rip), %rax
	movups	(%rax), %xmm0
	movaps	%xmm0, -64(%rbp)
	movaps	%xmm0, -96(%rbp)
	leaq	-64(%rbp), %rdi
	callq	_strbuf_addstr
	movq	-64(%rbp), %rbx
	movq	%rbx, %rax
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	(%rax), %ecx
	testb	%cl, %cl
	je	LBB0_5
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpb	$47, %cl
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	incq	%rax
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	1(%rax), %ecx
	incq	%rax
	cmpb	$47, %cl
	je	LBB0_4
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_28:                                ##   in Loop: Header=BB0_5 Depth=1
	movzbl	1(%rax), %ecx
	incq	%rax
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	testb	%cl, %cl
	je	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	cmpb	$47, %cl
	jne	LBB0_28
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	leaq	1(%rax), %r15
	cmpb	$47, 1(%rax)
	movq	%r15, %rax
	je	LBB0_7
	jmp	LBB0_9
LBB0_8:
	movq	%rax, %r15
LBB0_9:
	movq	_REMOVE_EMPTY_PARENTS_REF@GOTPCREL(%rip), %rcx
	movq	_REMOVE_EMPTY_PARENTS_REFLOG@GOTPCREL(%rip), %rdx
	movl	(%rdx), %eax
	orl	(%rcx), %eax
	testl	%r13d, %eax
	je	LBB0_27
## %bb.10:
	movslq	-56(%rbp), %rax
	addq	%rax, %rbx
	leaq	-96(%rbp), %r12
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_23:                                ##   in Loop: Header=BB0_11 Depth=1
	movq	%r14, %rdx
LBB0_26:                                ##   in Loop: Header=BB0_11 Depth=1
	movq	_REMOVE_EMPTY_PARENTS_REF@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	testl	%r13d, %ecx
	je	LBB0_27
LBB0_11:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_12 Depth 2
                                        ##     Child Loop BB0_16 Depth 2
	cmpq	%r15, %rbx
	jbe	LBB0_15
	.p2align	4, 0x90
LBB0_12:                                ##   Parent Loop BB0_11 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpb	$47, (%rbx)
	je	LBB0_15
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=2
	decq	%rbx
	cmpq	%r15, %rbx
	ja	LBB0_12
## %bb.14:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	%r15, %rbx
LBB0_15:                                ##   in Loop: Header=BB0_11 Depth=1
	movl	%ebx, %eax
	negl	%eax
	movq	%rbx, %rcx
	.p2align	4, 0x90
LBB0_16:                                ##   Parent Loop BB0_11 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%rcx, %rbx
	movl	%eax, %esi
	cmpq	%r15, %rcx
	jbe	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_16 Depth=2
	leaq	-1(%rbx), %rcx
	leal	1(%rsi), %eax
	cmpb	$47, -1(%rbx)
	je	LBB0_16
LBB0_18:                                ##   in Loop: Header=BB0_11 Depth=1
	cmpq	%r15, %rbx
	je	LBB0_27
## %bb.19:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	%rdx, %r14
	addl	-64(%rbp), %esi
	negl	%esi
	leaq	-64(%rbp), %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_strbuf_setlen
	movq	%r12, %rdi
	callq	_strbuf_reset
	movq	-64(%rbp), %rdx
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	%r12, %rsi
	callq	_files_ref_path
	movq	_REMOVE_EMPTY_PARENTS_REF@GOTPCREL(%rip), %rax
	testl	%r13d, (%rax)
	je	LBB0_22
## %bb.20:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	-96(%rbp), %rdi
	callq	_rmdir
	testq	%rax, %rax
	je	LBB0_22
## %bb.21:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	_REMOVE_EMPTY_PARENTS_REF@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, %r13d
LBB0_22:                                ##   in Loop: Header=BB0_11 Depth=1
	movq	%r12, %rdi
	callq	_strbuf_reset
	movq	-64(%rbp), %rdx
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	%r12, %rsi
	callq	_files_reflog_path
	movl	(%r14), %ecx
	testl	%r13d, %ecx
	je	LBB0_23
## %bb.24:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	-96(%rbp), %rdi
	callq	_rmdir
	movq	%r14, %rdx
	movl	(%r14), %ecx
	testq	%rax, %rax
	je	LBB0_26
## %bb.25:                              ##   in Loop: Header=BB0_11 Depth=1
	movl	%ecx, %eax
	notl	%eax
	andl	%eax, %r13d
	jmp	LBB0_26
LBB0_27:
	leaq	-64(%rbp), %rdi
	callq	_strbuf_release
	leaq	-96(%rbp), %rdi
	callq	_strbuf_release
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_STRBUF_INIT,16,3               ## @STRBUF_INIT
	.comm	_REMOVE_EMPTY_PARENTS_REF,4,2   ## @REMOVE_EMPTY_PARENTS_REF
	.comm	_REMOVE_EMPTY_PARENTS_REFLOG,4,2 ## @REMOVE_EMPTY_PARENTS_REFLOG
	.no_dead_strip	_try_remove_empty_parents
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function try_remove_empty_parents
_try_remove_empty_parents:              ; @try_remove_empty_parents
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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, x2
	mov	x20, x0
Lloh0:
	adrp	x8, _STRBUF_INIT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _STRBUF_INIT@GOTPAGEOFF]
Lloh2:
	ldr	q0, [x8]
	stp	q0, q0, [sp]
	add	x0, sp, #16
	bl	_strbuf_addstr
	ldr	x8, [sp, #16]
	mov	x21, x8
	ldrb	w9, [x21]
	cbz	w9, LBB0_5
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	cmp	w9, #47
	b.eq	LBB0_3
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	add	x21, x21, #1
	ldrb	w9, [x21]
	cbnz	w9, LBB0_1
	b	LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w9, [x21, #1]!
	cmp	w9, #47
	b.eq	LBB0_3
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldrb	w9, [x21, #1]!
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	cbz	w9, LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	cmp	w9, #47
	b.ne	LBB0_4
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w9, [x21, #1]!
	cmp	w9, #47
	b.eq	LBB0_7
LBB0_8:
Lloh3:
	adrp	x22, _REMOVE_EMPTY_PARENTS_REF@GOTPAGE
Lloh4:
	ldr	x22, [x22, _REMOVE_EMPTY_PARENTS_REF@GOTPAGEOFF]
	ldr	w9, [x22]
Lloh5:
	adrp	x23, _REMOVE_EMPTY_PARENTS_REFLOG@GOTPAGE
Lloh6:
	ldr	x23, [x23, _REMOVE_EMPTY_PARENTS_REFLOG@GOTPAGEOFF]
	ldr	w10, [x23]
	orr	w9, w10, w9
	tst	w9, w19
	b.eq	LBB0_24
; %bb.9:
	ldrsw	x9, [sp, #24]
	add	x24, x8, x9
	b	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=1
	ldr	w9, [x22]
	orr	w8, w8, w9
	tst	w8, w19
	b.eq	LBB0_24
LBB0_11:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_12 Depth 2
                                        ;     Child Loop BB0_16 Depth 2
	cmp	x24, x21
	b.ls	LBB0_15
LBB0_12:                                ;   Parent Loop BB0_11 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldrb	w8, [x24]
	cmp	w8, #47
	b.eq	LBB0_15
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=2
	sub	x24, x24, #1
	cmp	x24, x21
	b.hi	LBB0_12
; %bb.14:                               ;   in Loop: Header=BB0_11 Depth=1
	mov	x24, x21
LBB0_15:                                ;   in Loop: Header=BB0_11 Depth=1
	neg	w9, w24
	mov	x10, x24
LBB0_16:                                ;   Parent Loop BB0_11 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x24, x10
	mov	x8, x9
	cmp	x10, x21
	b.ls	LBB0_18
; %bb.17:                               ;   in Loop: Header=BB0_16 Depth=2
	mov	x10, x24
	ldrb	w11, [x10, #-1]!
	add	w9, w8, #1
	cmp	w11, #47
	b.eq	LBB0_16
LBB0_18:                                ;   in Loop: Header=BB0_11 Depth=1
	cmp	x24, x21
	b.eq	LBB0_24
; %bb.19:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	w9, [sp, #16]
	add	w8, w9, w8
	neg	w1, w8
	add	x0, sp, #16
	bl	_strbuf_setlen
	mov	x0, sp
	bl	_strbuf_reset
	ldr	x2, [sp, #16]
	mov	x1, sp
	mov	x0, x20
	bl	_files_ref_path
	ldr	w8, [x22]
	tst	w8, w19
	b.eq	LBB0_22
; %bb.20:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	x0, [sp]
	bl	_rmdir
	cbz	x0, LBB0_22
; %bb.21:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	w8, [x22]
	bic	w19, w19, w8
LBB0_22:                                ;   in Loop: Header=BB0_11 Depth=1
	mov	x0, sp
	bl	_strbuf_reset
	ldr	x2, [sp, #16]
	mov	x1, sp
	mov	x0, x20
	bl	_files_reflog_path
	ldr	w8, [x23]
	tst	w8, w19
	b.eq	LBB0_10
; %bb.23:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	x0, [sp]
	bl	_rmdir
	ldr	w8, [x23]
	bic	w9, w19, w8
	cmp	x0, #0
	csel	w19, w19, w9, eq
	b	LBB0_10
LBB0_24:
	add	x0, sp, #16
	bl	_strbuf_release
	mov	x0, sp
	bl	_strbuf_release
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_STRBUF_INIT,16,3               ; @STRBUF_INIT
	.comm	_REMOVE_EMPTY_PARENTS_REF,4,2   ; @REMOVE_EMPTY_PARENTS_REF
	.comm	_REMOVE_EMPTY_PARENTS_REFLOG,4,2 ; @REMOVE_EMPTY_PARENTS_REFLOG
	.no_dead_strip	_try_remove_empty_parents
.subsections_via_symbols
