	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fname_after_chroot             ## -- Begin function fname_after_chroot
	.p2align	4, 0x90
_fname_after_chroot:                    ## @fname_after_chroot
	.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	$24, %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	%rsi, %rbx
	movq	%rdi, %r15
	callq	_strlen_after_chroot
	movslq	%eax, %r12
	incq	%r12
	movq	%r12, %rdi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r14
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	movb	$0, (%rax)
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	(%rbx), %r15
	movb	$1, %bl
	testq	%r15, %r15
	je	LBB0_3
## %bb.4:
	cmpb	$0, (%r15)
	je	LBB0_5
## %bb.6:
	movq	%r15, %rdi
	callq	_strlen
	movq	%r15, %rdi
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rsi
	movl	%eax, %edx
	callq	_strncmp
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rsi
	testq	%rsi, %rsi
	je	LBB0_11
## %bb.9:
	cmpb	$0, (%rsi)
	je	LBB0_11
## %bb.10:
	movq	%r14, %rdi
	movq	%r12, %rdx
	callq	_strlcpy
	xorl	%ebx, %ebx
	testl	%r13d, %r13d
	jne	LBB0_12
	jmp	LBB0_21
LBB0_1:
	xorl	%r14d, %r14d
	jmp	LBB0_28
LBB0_3:
	movq	-48(%rbp), %r15                 ## 8-byte Reload
LBB0_11:
	testl	%r13d, %r13d
	jne	LBB0_12
	jmp	LBB0_21
LBB0_5:
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	testl	%r13d, %r13d
	je	LBB0_21
LBB0_12:
	cmpb	$47, (%r15)
	je	LBB0_21
## %bb.13:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rax
	testq	%rax, %rax
	je	LBB0_21
## %bb.14:
	movb	(%rax), %al
	testb	%al, %al
	je	LBB0_21
## %bb.15:
	cmpb	$47, %al
	sete	%al
	orb	%al, %bl
	jne	LBB0_17
## %bb.16:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movq	%r12, %rdx
	callq	_strlcat
LBB0_17:
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	(%rbx), %r13
	testq	%r13, %r13
	je	LBB0_22
## %bb.18:
	cmpb	$0, (%r13)
	je	LBB0_22
## %bb.19:
	movq	8(%rbx), %r15
	movq	%r13, %rdi
	callq	_strlen
	movq	%r13, %rdi
	movq	%r15, %rsi
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	movl	%eax, %edx
	callq	_strncmp
	testq	%rax, %rax
	je	LBB0_20
LBB0_22:
	movq	8(%rbx), %rsi
LBB0_23:
	movq	%r14, %rdi
	movq	%r12, %rdx
	callq	_strlcat
	jmp	LBB0_24
LBB0_21:
	testb	%bl, %bl
	jne	LBB0_26
LBB0_24:
	cmpb	$47, (%r15)
	je	LBB0_26
## %bb.25:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movq	%r12, %rdx
	callq	_strlcat
LBB0_26:
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%r12, %rdx
	callq	_strlcat
LBB0_27:
	movb	$0, -1(%r12,%r14)
LBB0_28:
	movq	%r14, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%r12, %rdx
	callq	_strlcpy
	jmp	LBB0_27
LBB0_20:
	movq	(%rbx), %rdi
	movq	8(%rbx), %r15
	callq	_strlen
	movslq	%eax, %rsi
	addq	%r15, %rsi
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	jmp	LBB0_23
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"/"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fname_after_chroot             ; -- Begin function fname_after_chroot
	.p2align	2
_fname_after_chroot:                    ; @fname_after_chroot
	.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	x23, x2
	mov	x22, x1
	mov	x21, x0
	bl	_strlen_after_chroot
	add	w8, w0, #1
	sxtw	x20, w8
	mov	x0, x20
	bl	_malloc
	mov	x19, x0
	cbz	x0, LBB0_23
; %bb.1:
	strb	wzr, [x19]
	ldr	x24, [x22]
	cbz	x24, LBB0_7
; %bb.2:
	ldrb	w8, [x24]
	cbz	w8, LBB0_7
; %bb.3:
	mov	x0, x24
	bl	_strlen
	mov	x2, x0
	mov	x0, x24
	mov	x1, x21
	bl	_strncmp
	cbz	x0, LBB0_24
; %bb.4:
	ldr	x1, [x22]
	cbz	x1, LBB0_7
; %bb.5:
	ldrb	w8, [x1]
	cbz	w8, LBB0_7
; %bb.6:
	mov	x0, x19
	mov	x2, x20
	bl	_strlcpy
	mov	w8, #0
	cbnz	w23, LBB0_8
	b	LBB0_18
LBB0_7:
	mov	w8, #1
	cbz	w23, LBB0_18
LBB0_8:
	ldrb	w9, [x21]
	cmp	w9, #47
	b.eq	LBB0_18
; %bb.9:
	ldr	x9, [x22, #8]
	cbz	x9, LBB0_18
; %bb.10:
	ldrb	w9, [x9]
	cbz	w9, LBB0_18
; %bb.11:
	cmp	w9, #47
	cset	w9, eq
	orr	w8, w8, w9
	tbnz	w8, #0, LBB0_13
; %bb.12:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x20
	bl	_strlcat
LBB0_13:
	ldr	x23, [x22]
	cbz	x23, LBB0_16
; %bb.14:
	ldrb	w8, [x23]
	cbz	w8, LBB0_16
; %bb.15:
	ldr	x24, [x22, #8]
	mov	x0, x23
	bl	_strlen
	mov	x2, x0
	mov	x0, x23
	mov	x1, x24
	bl	_strncmp
	cbz	x0, LBB0_25
LBB0_16:
	ldr	x1, [x22, #8]
LBB0_17:
	mov	x0, x19
	mov	x2, x20
	bl	_strlcat
	b	LBB0_19
LBB0_18:
	tbnz	w8, #0, LBB0_21
LBB0_19:
	ldrb	w8, [x21]
	cmp	w8, #47
	b.eq	LBB0_21
; %bb.20:
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x20
	bl	_strlcat
LBB0_21:
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	bl	_strlcat
LBB0_22:
	add	x8, x20, x19
	sturb	wzr, [x8, #-1]
LBB0_23:
	mov	x0, x19
	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
LBB0_24:
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	bl	_strlcpy
	b	LBB0_22
LBB0_25:
	ldp	x0, x23, [x22]
	bl	_strlen
	add	x1, x23, w0, sxtw
	b	LBB0_17
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"/"

.subsections_via_symbols
