	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function check_file_access_chroot
_check_file_access_chroot:              ## @check_file_access_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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rdx, %rdx
	je	LBB0_1
## %bb.2:
	movq	%rdx, %rbx
	movl	%esi, %r12d
	movq	%rdi, %r13
	testq	%rdi, %rdi
	je	LBB0_5
## %bb.3:
	xorl	%eax, %eax
	movq	%r8, -72(%rbp)                  ## 8-byte Spill
	movl	%ecx, -60(%rbp)                 ## 4-byte Spill
	callq	_gc_new
	movl	%eax, -56(%rbp)
	movq	%r13, %rdi
	callq	_strlen
	movl	%eax, %r14d
	movq	_PATH_SEPARATOR_STR@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_strlen
	movl	%eax, %r15d
	movq	%rbx, %rdi
	callq	_strlen
                                        ## kill: def $eax killed $eax def $rax
	addl	%r14d, %r15d
	leal	(%rax,%r15), %edi
	incl	%edi
	leaq	-56(%rbp), %r15
	movq	%r15, %rsi
	callq	_alloc_buf_gc
	movl	%eax, -48(%rbp)
	movq	_PATH_SEPARATOR_STR@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	leaq	L_.str(%rip), %rsi
	leaq	-48(%rbp), %r14
	movq	%r14, %rdi
	movq	%r13, %rdx
	movq	%rbx, %r8
	callq	_buf_printf
	xorl	%edi, %edi
	cmpl	$0, -48(%rbp)
	setg	%dil
	callq	_ASSERT
	movq	%r14, %rdi
	callq	_BSTR
	movl	%r12d, %edi
	movq	%rax, %rsi
	movl	-60(%rbp), %edx                 ## 4-byte Reload
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	callq	_check_file_access
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_gc_free
	jmp	LBB0_4
LBB0_1:
	xorl	%ebx, %ebx
LBB0_4:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movl	%r12d, %edi
	movq	%rbx, %rsi
	movl	%ecx, %edx
	movq	%r8, %rcx
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_check_file_access              ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_PATH_SEPARATOR_STR,8,3         ## @PATH_SEPARATOR_STR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s%s%s"

	.no_dead_strip	_check_file_access_chroot
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function check_file_access_chroot
_check_file_access_chroot:              ; @check_file_access_chroot
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	cbz	x2, LBB0_3
; %bb.1:
	mov	x19, x4
	mov	x20, x3
	mov	x22, x2
	mov	x21, x1
	mov	x23, x0
	cbz	x0, LBB0_5
; %bb.2:
	bl	_gc_new
	str	w0, [sp, #8]
	mov	x0, x23
	bl	_strlen
	mov	x24, x0
Lloh0:
	adrp	x26, _PATH_SEPARATOR_STR@GOTPAGE
Lloh1:
	ldr	x26, [x26, _PATH_SEPARATOR_STR@GOTPAGEOFF]
	ldr	x0, [x26]
	bl	_strlen
	mov	x25, x0
	mov	x0, x22
	bl	_strlen
	add	w8, w24, w25
	add	w8, w8, w0
	add	w0, w8, #1
	add	x1, sp, #8
	bl	_alloc_buf_gc
	str	w0, [sp]
	ldr	x3, [x26]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, sp
	mov	x2, x23
	mov	x4, x22
	bl	_buf_printf
	ldr	w8, [sp]
	cmp	w8, #0
	cset	w0, gt
	bl	_ASSERT
	mov	x0, sp
	bl	_BSTR
	mov	x1, x0
	mov	x0, x21
	mov	x2, x20
	mov	x3, x19
	bl	_check_file_access
	mov	x19, x0
	add	x0, sp, #8
	bl	_gc_free
	b	LBB0_4
LBB0_3:
	mov	w19, #0
LBB0_4:
	mov	x0, x19
	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
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_5:
	mov	x0, x21
	mov	x1, x22
	mov	x2, x20
	mov	x3, x19
	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
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	b	_check_file_access
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_PATH_SEPARATOR_STR,8,3         ; @PATH_SEPARATOR_STR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s%s%s"

	.no_dead_strip	_check_file_access_chroot
.subsections_via_symbols
