	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function apply_dir_rename
_apply_dir_rename:                      ## @apply_dir_rename
	.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	_STRBUF_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
	cmpq	$0, 16(%rdi)
	je	LBB0_2
## %bb.1:
	xorl	%eax, %eax
	jmp	LBB0_3
LBB0_2:
	movq	%rsi, %r14
	movq	%rdi, %r12
	movq	(%rdi), %rdi
	callq	_strlen
	movl	%eax, %r15d
	movl	8(%r12), %ebx
	addq	$8, %r12
	cmpl	$1, %ebx
	adcl	$0, %r15d
	movq	%r14, %rdi
	callq	_strlen
	addl	%eax, %ebx
	subl	%r15d, %ebx
	incl	%ebx
	leaq	-48(%rbp), %r13
	movq	%r13, %rdi
	movl	%ebx, %esi
	callq	_strbuf_grow
	movq	%r13, %rdi
	movq	%r12, %rsi
	callq	_strbuf_addbuf
	movslq	%r15d, %rsi
	addq	%r14, %rsi
	movq	%r13, %rdi
	callq	_strbuf_addstr
	movq	%r13, %rdi
	xorl	%esi, %esi
	callq	_strbuf_detach
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_STRBUF_INIT,4,2                ## @STRBUF_INIT
	.no_dead_strip	_apply_dir_rename
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function apply_dir_rename
_apply_dir_rename:                      ; @apply_dir_rename
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
Lloh0:
	adrp	x8, _STRBUF_INIT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _STRBUF_INIT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #8]
	ldr	x8, [x0, #16]
	cbz	x8, LBB0_2
; %bb.1:
	mov	x0, #0
	b	LBB0_3
LBB0_2:
	mov	x19, x1
	mov	x20, x0
	ldr	x0, [x0]
	bl	_strlen
	ldr	w21, [x20, #8]!
	cmp	w21, #0
	cinc	w22, w0, eq
	mov	x0, x19
	bl	_strlen
	add	w8, w21, w0
	sub	w8, w8, w22
	add	w1, w8, #1
	add	x0, sp, #8
	bl	_strbuf_grow
	add	x0, sp, #8
	mov	x1, x20
	bl	_strbuf_addbuf
	add	x1, x19, w22, sxtw
	add	x0, sp, #8
	bl	_strbuf_addstr
	add	x0, sp, #8
	mov	x1, #0
	bl	_strbuf_detach
LBB0_3:
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_STRBUF_INIT,4,2                ; @STRBUF_INIT
	.no_dead_strip	_apply_dir_rename
.subsections_via_symbols
