	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_process_file                   ## -- Begin function process_file
	.p2align	4, 0x90
_process_file:                          ## @process_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	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	movq	%rdi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_MAXPGPATH@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	%r15, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r14
	testq	%r12, %r12
	je	LBB0_1
## %bb.2:
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_11
## %bb.3:
	movq	%r12, %rdi
	callq	_canonicalize_path
	testl	%ebx, %ebx
	je	LBB0_8
## %bb.4:
	movq	_pset@GOTPCREL(%rip), %rbx
	cmpq	$0, (%rbx)
	je	LBB0_8
## %bb.5:
	movq	%r12, %rdi
	callq	_is_absolute_path
	testl	%eax, %eax
	jne	LBB0_8
## %bb.6:
	movq	%r12, %rdi
	callq	_has_drive_prefix
	testl	%eax, %eax
	jne	LBB0_8
## %bb.7:
	movq	(%rbx), %rsi
	movq	%r14, %rdi
	movl	%r15d, %edx
	callq	_strlcpy
	movq	%r14, %rdi
	callq	_get_parent_directory
	movq	%r14, %rdi
	movq	%r14, %rsi
	movq	%r12, %rdx
	callq	_join_path_components
	movq	%r14, %rdi
	callq	_canonicalize_path
	movq	%r14, %r12
LBB0_8:
	movq	_PG_BINARY_R@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_fopen
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	movq	%rax, %rbx
	jmp	LBB0_12
LBB0_1:
	movq	_stdin@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	xorl	%r12d, %r12d
	jmp	LBB0_12
LBB0_11:
	movq	_stdin@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	leaq	L_.str.2(%rip), %r12
LBB0_12:
	movq	_pset@GOTPCREL(%rip), %r13
	movq	(%r13), %r15
	movq	%r12, (%r13)
	xorl	%edi, %edi
	movq	_PG_LOG_FLAG_TERSE@GOTPCREL(%rip), %rax
	testq	%r12, %r12
	jne	LBB0_14
## %bb.13:
	movl	(%rax), %edi
LBB0_14:
	movq	%rax, %r12
	callq	_pg_logging_config
	movq	%rbx, %rdi
	callq	_MainLoop
	movl	%eax, %r14d
	movq	_stdin@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	je	LBB0_16
## %bb.15:
	movq	%rbx, %rdi
	callq	_fclose
LBB0_16:
	movq	%r15, (%r13)
	xorl	%edi, %edi
	testq	%r15, %r15
	jne	LBB0_18
## %bb.17:
	movl	(%r12), %edi
LBB0_18:
	callq	_pg_logging_config
LBB0_19:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_21
## %bb.20:
	movl	%r14d, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	leaq	L_.str.1(%rip), %rdi
	movq	%r12, %rsi
	callq	_pg_log_error
	movq	_EXIT_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	jmp	LBB0_19
LBB0_21:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAXPGPATH,4,2                  ## @MAXPGPATH
	.comm	_stdin,8,3                      ## @stdin
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"-"

	.comm	_pset,8,3                       ## @pset
	.comm	_PG_BINARY_R,4,2                ## @PG_BINARY_R
L_.str.1:                               ## @.str.1
	.asciz	"%s: %m"

	.comm	_EXIT_FAILURE,4,2               ## @EXIT_FAILURE
L_.str.2:                               ## @.str.2
	.asciz	"<stdin>"

	.comm	_PG_LOG_FLAG_TERSE,4,2          ## @PG_LOG_FLAG_TERSE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_process_file                   ; -- Begin function process_file
	.p2align	2
_process_file:                          ; @process_file
	.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
	sub	sp, sp, #16
	mov	x22, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
Lloh3:
	adrp	x8, _MAXPGPATH@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAXPGPATH@GOTPAGEOFF]
Lloh5:
	ldr	w21, [x8]
	mov	x9, x21
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x21, #15
	and	x9, x9, #0x1fffffff0
	sub	x20, x8, x9
	mov	sp, x20
Lloh8:
	adrp	x23, _pset@GOTPAGE
Lloh9:
	ldr	x23, [x23, _pset@GOTPAGEOFF]
Lloh10:
	adrp	x24, _stdin@GOTPAGE
Lloh11:
	ldr	x24, [x24, _stdin@GOTPAGEOFF]
	cbz	x0, LBB0_9
; %bb.1:
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_strcmp
	cbz	x0, LBB0_10
; %bb.2:
	mov	x0, x19
	bl	_canonicalize_path
	cbz	w22, LBB0_7
; %bb.3:
	ldr	x8, [x23]
	cbz	x8, LBB0_7
; %bb.4:
	mov	x0, x19
	bl	_is_absolute_path
	cbnz	w0, LBB0_7
; %bb.5:
	mov	x0, x19
	bl	_has_drive_prefix
	cbnz	w0, LBB0_7
; %bb.6:
	ldr	x1, [x23]
	mov	x0, x20
	mov	x2, x21
	bl	_strlcpy
	mov	x0, x20
	bl	_get_parent_directory
	mov	x0, x20
	mov	x1, x20
	mov	x2, x19
	bl	_join_path_components
	mov	x0, x20
	bl	_canonicalize_path
	mov	x19, x20
LBB0_7:
Lloh14:
	adrp	x8, _PG_BINARY_R@GOTPAGE
Lloh15:
	ldr	x8, [x8, _PG_BINARY_R@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_fopen
	cbz	x0, LBB0_16
; %bb.8:
	mov	x20, x0
	b	LBB0_11
LBB0_9:
	ldr	x20, [x24]
	b	LBB0_11
LBB0_10:
	ldr	x20, [x24]
Lloh17:
	adrp	x19, l_.str.2@PAGE
Lloh18:
	add	x19, x19, l_.str.2@PAGEOFF
LBB0_11:
	ldr	x21, [x23]
	str	x19, [x23]
Lloh19:
	adrp	x22, _PG_LOG_FLAG_TERSE@GOTPAGE
Lloh20:
	ldr	x22, [x22, _PG_LOG_FLAG_TERSE@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	x19, #0
	csel	w0, w8, wzr, eq
	bl	_pg_logging_config
	mov	x0, x20
	bl	_MainLoop
	mov	x19, x0
	ldr	x8, [x24]
	cmp	x20, x8
	b.eq	LBB0_13
; %bb.12:
	mov	x0, x20
	bl	_fclose
LBB0_13:
	str	x21, [x23]
	ldr	w8, [x22]
	cmp	x21, #0
	csel	w0, w8, wzr, eq
	bl	_pg_logging_config
LBB0_14:
	ldur	x8, [x29, #-56]
Lloh21:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh22:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_17
; %bb.15:
	mov	x0, x19
	sub	sp, x29, #48
	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_16:
Lloh24:
	adrp	x0, l_.str.1@PAGE
Lloh25:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x19
	bl	_pg_log_error
Lloh26:
	adrp	x8, _EXIT_FAILURE@GOTPAGE
Lloh27:
	ldr	x8, [x8, _EXIT_FAILURE@GOTPAGEOFF]
Lloh28:
	ldr	w19, [x8]
	b	LBB0_14
LBB0_17:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_MAXPGPATH,4,2                  ; @MAXPGPATH
	.comm	_stdin,8,3                      ; @stdin
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"-"

	.comm	_pset,8,3                       ; @pset
	.comm	_PG_BINARY_R,4,2                ; @PG_BINARY_R
l_.str.1:                               ; @.str.1
	.asciz	"%s: %m"

	.comm	_EXIT_FAILURE,4,2               ; @EXIT_FAILURE
l_.str.2:                               ; @.str.2
	.asciz	"<stdin>"

	.comm	_PG_LOG_FLAG_TERSE,4,2          ; @PG_LOG_FLAG_TERSE
.subsections_via_symbols
