	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fget                           ## -- Begin function fget
	.p2align	4, 0x90
_fget:                                  ## @fget
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movl	%edi, %r12d
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_MAXPATHLEN@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	%r14, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rbx
	movq	_MAX_C_NAME@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	%r13, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rax
	cmpl	$2, %r12d
	jne	LBB0_1
## %bb.3:
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	8(%r15), %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_fopen
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, %r12
	leaq	L_.str.3(%rip), %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%r13d, %edx
	callq	_strlcpy
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, (%r15)
	movq	_restart_point@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	leaq	L_.str.5(%rip), %rax
	leaq	L_.str.4(%rip), %r13
	cmoveq	%rax, %r13
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movl	%r14d, %edx
	xorl	%ecx, %ecx
	callq	_get_line
	testq	%rax, %rax
	js	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	cmpb	$0, (%rbx)
	je	LBB0_6
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	%rbx, 8(%r15)
	movl	$2, %edi
	movq	%r15, %rsi
	xorl	%edx, %edx
	movq	%r13, %rcx
	callq	_getit
	jmp	LBB0_6
LBB0_1:
	movq	(%r15), %rsi
	leaq	L_.str(%rip), %rdi
	callq	_UPRINTF
	jmp	LBB0_2
LBB0_9:
	movq	%r12, %rdi
	callq	_fclose
	jmp	LBB0_10
LBB0_4:
	movq	_ttyout@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	8(%r15), %rdx
	leaq	L_.str.2(%rip), %rsi
	callq	_fprintf
LBB0_2:
	movq	_code@GOTPCREL(%rip), %rax
	movl	$-1, (%rax)
LBB0_10:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_12
## %bb.11:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAXPATHLEN,4,2                 ## @MAXPATHLEN
	.comm	_MAX_C_NAME,4,2                 ## @MAX_C_NAME
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"usage: %s localfile\n"

	.comm	_code,4,2                       ## @code
L_.str.1:                               ## @.str.1
	.asciz	"r"

	.comm	_ttyout,4,2                     ## @ttyout
L_.str.2:                               ## @.str.2
	.asciz	"Can't open source file %s\n"

L_.str.3:                               ## @.str.3
	.asciz	"get"

	.comm	_restart_point,8,3              ## @restart_point
L_.str.4:                               ## @.str.4
	.asciz	"r+"

L_.str.5:                               ## @.str.5
	.asciz	"w"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fget                           ; -- Begin function fget
	.p2align	2
_fget:                                  ; @fget
	.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	x19, x1
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, _MAXPATHLEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAXPATHLEN@GOTPAGEOFF]
Lloh5:
	ldr	w20, [x8]
	mov	x9, x20
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x20, #15
	and	x9, x9, #0x1fffffff0
	sub	x21, x8, x9
	mov	sp, x21
Lloh8:
	adrp	x8, _MAX_C_NAME@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MAX_C_NAME@GOTPAGEOFF]
Lloh10:
	ldr	w23, [x8]
	mov	x9, x23
Lloh11:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh12:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x23, #15
	and	x9, x9, #0x1fffffff0
	sub	x24, x8, x9
	mov	sp, x24
	cmp	w0, #2
	b.ne	LBB0_6
; %bb.1:
	ldr	x0, [x19, #8]
Lloh13:
	adrp	x1, l_.str.1@PAGE
Lloh14:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_fopen
	cbz	x0, LBB0_8
; %bb.2:
	mov	x22, x0
Lloh15:
	adrp	x1, l_.str.3@PAGE
Lloh16:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x24
	mov	x2, x23
	bl	_strlcpy
	str	x24, [x19]
Lloh17:
	adrp	x8, _restart_point@GOTPAGE
Lloh18:
	ldr	x8, [x8, _restart_point@GOTPAGEOFF]
Lloh19:
	ldr	x8, [x8]
Lloh20:
	adrp	x9, l_.str.4@PAGE
Lloh21:
	add	x9, x9, l_.str.4@PAGEOFF
Lloh22:
	adrp	x10, l_.str.5@PAGE
Lloh23:
	add	x10, x10, l_.str.5@PAGEOFF
	cmp	x8, #0
	csel	x23, x10, x9, eq
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x22
	mov	x1, x21
	mov	x2, x20
	mov	x3, #0
	bl	_get_line
	tbnz	x0, #63, LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldrb	w8, [x21]
	cbz	w8, LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	str	x21, [x19, #8]
	mov	w0, #2
	mov	x1, x19
	mov	w2, #0
	mov	x3, x23
	bl	_getit
	b	LBB0_3
LBB0_6:
	ldr	x1, [x19]
Lloh24:
	adrp	x0, l_.str@PAGE
Lloh25:
	add	x0, x0, l_.str@PAGEOFF
	bl	_UPRINTF
	b	LBB0_9
LBB0_7:
	mov	x0, x22
	bl	_fclose
	b	LBB0_10
LBB0_8:
Lloh26:
	adrp	x8, _ttyout@GOTPAGE
Lloh27:
	ldr	x8, [x8, _ttyout@GOTPAGEOFF]
Lloh28:
	ldr	w0, [x8]
	ldr	x2, [x19, #8]
Lloh29:
	adrp	x1, l_.str.2@PAGE
Lloh30:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_fprintf
LBB0_9:
Lloh31:
	adrp	x8, _code@GOTPAGE
Lloh32:
	ldr	x8, [x8, _code@GOTPAGEOFF]
	mov	w9, #-1
Lloh33:
	str	w9, [x8]
LBB0_10:
	ldur	x8, [x29, #-56]
Lloh34:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh35:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh36:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_12
; %bb.11:
	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_12:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotStr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.cfi_endproc
                                        ; -- End function
	.comm	_MAXPATHLEN,4,2                 ; @MAXPATHLEN
	.comm	_MAX_C_NAME,4,2                 ; @MAX_C_NAME
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"usage: %s localfile\n"

	.comm	_code,4,2                       ; @code
l_.str.1:                               ; @.str.1
	.asciz	"r"

	.comm	_ttyout,4,2                     ; @ttyout
l_.str.2:                               ; @.str.2
	.asciz	"Can't open source file %s\n"

l_.str.3:                               ; @.str.3
	.asciz	"get"

	.comm	_restart_point,8,3              ; @restart_point
l_.str.4:                               ; @.str.4
	.asciz	"r+"

l_.str.5:                               ; @.str.5
	.asciz	"w"

.subsections_via_symbols
