	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function check_input
_check_input:                           ## @check_input
	.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
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	leaq	-16(%rbp), %rsi
	callq	_stat
	testq	%rax, %rax
	jne	LBB0_1
## %bb.2:
	movl	-16(%rbp), %edi
	callq	_S_ISREG
	testl	%eax, %eax
	je	LBB0_3
## %bb.5:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_1:
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_ENOENT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	leaq	L_.str(%rip), %rax
	leaq	L_.str.2(%rip), %rdi
	cmoveq	%rax, %rdi
	jmp	LBB0_4
LBB0_3:
	leaq	L_.str.3(%rip), %rdi
LBB0_4:
	movq	%rbx, %rsi
	callq	_pg_log_error
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	leaq	L_.str.1(%rip), %rdi
	callq	__
	movl	%ebx, %edi
	movq	%rax, %rsi
	callq	_fprintf
	movl	$1, %edi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.comm	_errno,8,3                      ## @errno
	.comm	_ENOENT,8,3                     ## @ENOENT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"file \"%s\" does not exist"

	.comm	_stderr,4,2                     ## @stderr
L_.str.1:                               ## @.str.1
	.asciz	"This might mean you have a corrupted installation or identified\nthe wrong directory with the invocation option -L.\n"

L_.str.2:                               ## @.str.2
	.asciz	"could not access file \"%s\": %m"

L_.str.3:                               ## @.str.3
	.asciz	"file \"%s\" is not a regular file"

	.no_dead_strip	_check_input
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function check_input
_check_input:                           ; @check_input
	.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
	add	x1, sp, #8
	bl	_stat
	cbnz	x0, LBB0_3
; %bb.1:
	ldr	w0, [sp, #8]
	bl	_S_ISREG
	cbz	w0, LBB0_4
; %bb.2:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_3:
Lloh0:
	adrp	x8, _errno@GOTPAGE
Lloh1:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _ENOENT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ENOENT@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
Lloh6:
	adrp	x10, l_.str.2@PAGE
Lloh7:
	add	x10, x10, l_.str.2@PAGEOFF
Lloh8:
	adrp	x11, l_.str@PAGE
Lloh9:
	add	x11, x11, l_.str@PAGEOFF
	cmp	x8, x9
	csel	x0, x11, x10, eq
	b	LBB0_5
LBB0_4:
Lloh10:
	adrp	x0, l_.str.3@PAGE
Lloh11:
	add	x0, x0, l_.str.3@PAGEOFF
LBB0_5:
	mov	x1, x19
	bl	_pg_log_error
Lloh12:
	adrp	x8, _stderr@GOTPAGE
Lloh13:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh14:
	ldr	w19, [x8]
Lloh15:
	adrp	x0, l_.str.1@PAGE
Lloh16:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	__
	mov	x1, x0
	mov	x0, x19
	bl	_fprintf
	mov	w0, #1
	bl	_exit
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_errno,8,3                      ; @errno
	.comm	_ENOENT,8,3                     ; @ENOENT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"file \"%s\" does not exist"

	.comm	_stderr,4,2                     ; @stderr
l_.str.1:                               ; @.str.1
	.asciz	"This might mean you have a corrupted installation or identified\nthe wrong directory with the invocation option -L.\n"

l_.str.2:                               ; @.str.2
	.asciz	"could not access file \"%s\": %m"

l_.str.3:                               ; @.str.3
	.asciz	"file \"%s\" is not a regular file"

	.no_dead_strip	_check_input
.subsections_via_symbols
