	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function file_check
_file_check:                            ## @file_check
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -24
	movl	%esi, %ebx
	movq	(%rdi), %rdi
	movq	%rdi, -24(%rbp)
	leaq	L_.str(%rip), %rsi
	leaq	-24(%rbp), %rdx
	callq	_av_strstart
	movq	-24(%rbp), %rdi
	leaq	-16(%rbp), %rsi
	callq	_stat
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movl	-16(%rbp), %ecx
	movq	_S_IRUSR@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	andl	%ecx, %edx
	movq	_AVIO_FLAG_READ@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	andl	%ebx, %esi
	testl	%edx, %edx
	cmovel	%edx, %esi
	movq	_S_IWUSR@GOTPCREL(%rip), %rdx
	andl	(%rdx), %ecx
	orl	%eax, %esi
	movq	_AVIO_FLAG_WRITE@GOTPCREL(%rip), %rax
	andl	(%rax), %ebx
	testl	%ecx, %ecx
	cmovel	%ecx, %ebx
	orl	%esi, %ebx
	jmp	LBB0_3
LBB0_1:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AVERROR
	movl	%eax, %ebx
LBB0_3:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"file:"

	.comm	_errno,4,2                      ## @errno
	.comm	_S_IRUSR,4,2                    ## @S_IRUSR
	.comm	_AVIO_FLAG_READ,4,2             ## @AVIO_FLAG_READ
	.comm	_S_IWUSR,4,2                    ## @S_IWUSR
	.comm	_AVIO_FLAG_WRITE,4,2            ## @AVIO_FLAG_WRITE
	.comm	_F_OK,4,2                       ## @F_OK
	.comm	_R_OK,4,2                       ## @R_OK
	.comm	_W_OK,4,2                       ## @W_OK
	.no_dead_strip	_file_check
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function file_check
_file_check:                            ; @file_check
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	ldr	x0, [x0]
	str	x0, [sp, #8]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	add	x2, sp, #8
	bl	_av_strstart
	ldr	x0, [sp, #8]
	mov	x1, sp
	bl	_stat
	tbnz	w0, #31, LBB0_2
; %bb.1:
	ldr	w8, [sp]
Lloh2:
	adrp	x9, _S_IRUSR@GOTPAGE
Lloh3:
	ldr	x9, [x9, _S_IRUSR@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
Lloh5:
	adrp	x10, _AVIO_FLAG_READ@GOTPAGE
Lloh6:
	ldr	x10, [x10, _AVIO_FLAG_READ@GOTPAGEOFF]
Lloh7:
	ldr	w10, [x10]
	and	w10, w10, w19
	tst	w9, w8
	csel	w9, wzr, w10, eq
	orr	w9, w9, w0
Lloh8:
	adrp	x10, _S_IWUSR@GOTPAGE
Lloh9:
	ldr	x10, [x10, _S_IWUSR@GOTPAGEOFF]
Lloh10:
	adrp	x11, _AVIO_FLAG_WRITE@GOTPAGE
Lloh11:
	ldr	x11, [x11, _AVIO_FLAG_WRITE@GOTPAGEOFF]
Lloh12:
	ldr	w10, [x10]
Lloh13:
	ldr	w11, [x11]
	and	w11, w11, w19
	tst	w10, w8
	csel	w8, wzr, w11, eq
	orr	w0, w9, w8
	b	LBB0_3
LBB0_2:
Lloh14:
	adrp	x8, _errno@GOTPAGE
Lloh15:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	bl	_AVERROR
LBB0_3:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh12
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"file:"

	.comm	_errno,4,2                      ; @errno
	.comm	_S_IRUSR,4,2                    ; @S_IRUSR
	.comm	_AVIO_FLAG_READ,4,2             ; @AVIO_FLAG_READ
	.comm	_S_IWUSR,4,2                    ; @S_IWUSR
	.comm	_AVIO_FLAG_WRITE,4,2            ; @AVIO_FLAG_WRITE
	.comm	_F_OK,4,2                       ; @F_OK
	.comm	_R_OK,4,2                       ; @R_OK
	.comm	_W_OK,4,2                       ; @W_OK
	.no_dead_strip	_file_check
.subsections_via_symbols
