	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function check_file
_check_file:                            ## @check_file
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	_R_OK@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	callq	_access
	cmpl	$-1, %eax
	je	LBB0_1
## %bb.5:
	movq	_verbose@GOTPCREL(%rip), %rax
	movl	$-1, %r14d
	cmpq	$0, (%rax)
	je	LBB0_7
## %bb.6:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdx
	callq	_fprintf
	jmp	LBB0_7
LBB0_1:
	movq	_dir@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str(%rip), %rsi
	leaq	-24(%rbp), %rdi
	movq	%rbx, %rcx
	callq	_asprintf
	movq	-24(%rbp), %rdi
	movl	(%r14), %esi
	callq	_access
	xorl	%r14d, %r14d
	cmpl	$-1, %eax
	jne	LBB0_4
## %bb.2:
	movq	_verbose@GOTPCREL(%rip), %rax
	movl	$-1, %r14d
	cmpq	$0, (%rax)
	je	LBB0_4
## %bb.3:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	-24(%rbp), %rdx
	leaq	L_.str.1(%rip), %rsi
	callq	_fprintf
LBB0_4:
	movq	-24(%rbp), %rdi
	callq	_free
LBB0_7:
	movl	%r14d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_R_OK,4,2                       ## @R_OK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s/%s"

	.comm	_dir,4,2                        ## @dir
	.comm	_verbose,8,3                    ## @verbose
	.comm	_stderr,4,2                     ## @stderr
L_.str.1:                               ## @.str.1
	.asciz	"%s not found!\n"

L_.str.2:                               ## @.str.2
	.asciz	"No read permission for %s!\n"

	.no_dead_strip	_check_file
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function check_file
_check_file:                            ; @check_file
	.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, x0
Lloh0:
	adrp	x20, _R_OK@GOTPAGE
Lloh1:
	ldr	x20, [x20, _R_OK@GOTPAGEOFF]
	ldr	w1, [x20]
	bl	_access
	cmn	w0, #1
	b.eq	LBB0_4
; %bb.1:
Lloh2:
	adrp	x8, _verbose@GOTPAGE
Lloh3:
	ldr	x8, [x8, _verbose@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	cbz	x8, LBB0_3
; %bb.2:
Lloh5:
	adrp	x8, _stderr@GOTPAGE
Lloh6:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
Lloh8:
	adrp	x1, l_.str.2@PAGE
Lloh9:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x2, x19
	bl	_fprintf
LBB0_3:
	mov	w19, #-1
	b	LBB0_10
LBB0_4:
Lloh10:
	adrp	x8, _dir@GOTPAGE
Lloh11:
	ldr	x8, [x8, _dir@GOTPAGEOFF]
Lloh12:
	ldr	w2, [x8]
Lloh13:
	adrp	x1, l_.str@PAGE
Lloh14:
	add	x1, x1, l_.str@PAGEOFF
	add	x0, sp, #8
	mov	x3, x19
	bl	_asprintf
	ldr	x0, [sp, #8]
	ldr	w1, [x20]
	bl	_access
	cmn	w0, #1
	b.eq	LBB0_6
; %bb.5:
	mov	w19, #0
	b	LBB0_9
LBB0_6:
Lloh15:
	adrp	x8, _verbose@GOTPAGE
Lloh16:
	ldr	x8, [x8, _verbose@GOTPAGEOFF]
Lloh17:
	ldr	x8, [x8]
	cbz	x8, LBB0_8
; %bb.7:
Lloh18:
	adrp	x8, _stderr@GOTPAGE
Lloh19:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	ldr	x2, [sp, #8]
Lloh21:
	adrp	x1, l_.str.1@PAGE
Lloh22:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_fprintf
LBB0_8:
	mov	w19, #-1
LBB0_9:
	ldr	x0, [sp, #8]
	bl	_free
LBB0_10:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_R_OK,4,2                       ; @R_OK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s/%s"

	.comm	_dir,4,2                        ; @dir
	.comm	_verbose,8,3                    ; @verbose
	.comm	_stderr,4,2                     ; @stderr
l_.str.1:                               ; @.str.1
	.asciz	"%s not found!\n"

l_.str.2:                               ; @.str.2
	.asciz	"No read permission for %s!\n"

	.no_dead_strip	_check_file
.subsections_via_symbols
