	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function LoadSourceFile
_LoadSourceFile:                        ## @LoadSourceFile
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	leaq	L_.str(%rip), %rsi
	callq	_fopen
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_filelength
	movl	%eax, %r14d
	leal	1(%r14), %edi
	callq	_malloc
	movq	_sourceFile@GOTPCREL(%rip), %rbx
	movq	%rax, (%rbx)
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	%rax, %rdi
	movl	%r14d, %esi
	movl	$1, %edx
	movq	%r15, %rcx
	callq	_fread
	movq	(%rbx), %rax
	movslq	%r14d, %rcx
	movq	$0, (%rax,%rcx,8)
LBB0_4:
	movq	%r15, %rdi
	callq	_fclose
	movq	_sourceLine@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
	movq	(%rbx), %rax
	movq	_sourcePtr@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	jmp	LBB0_5
LBB0_1:
	leaq	L_.str.1(%rip), %rdi
	movq	%rbx, %rsi
	callq	_print
	movq	_sourceFile@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"r"

L_.str.1:                               ## @.str.1
	.asciz	";couldn't open %s\n"

	.comm	_sourceFile,8,3                 ## @sourceFile
	.comm	_sourceLine,4,2                 ## @sourceLine
	.comm	_sourcePtr,8,3                  ## @sourcePtr
	.no_dead_strip	_LoadSourceFile
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function LoadSourceFile
_LoadSourceFile:                        ; @LoadSourceFile
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x20, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_fopen
	cbz	x0, LBB0_4
; %bb.1:
	mov	x19, x0
	bl	_filelength
	mov	x20, x0
	add	w0, w0, #1
	bl	_malloc
Lloh2:
	adrp	x21, _sourceFile@GOTPAGE
Lloh3:
	ldr	x21, [x21, _sourceFile@GOTPAGEOFF]
	str	x0, [x21]
	cbz	x0, LBB0_3
; %bb.2:
	mov	x1, x20
	mov	w2, #1
	mov	x3, x19
	bl	_fread
	ldr	x8, [x21]
	str	xzr, [x8, w20, sxtw #3]
LBB0_3:
	mov	x0, x19
	bl	_fclose
Lloh4:
	adrp	x8, _sourceLine@GOTPAGE
Lloh5:
	ldr	x8, [x8, _sourceLine@GOTPAGEOFF]
	mov	w9, #1
Lloh6:
	str	w9, [x8]
	ldr	x8, [x21]
Lloh7:
	adrp	x9, _sourcePtr@GOTPAGE
Lloh8:
	ldr	x9, [x9, _sourcePtr@GOTPAGEOFF]
Lloh9:
	str	x8, [x9]
	b	LBB0_5
LBB0_4:
Lloh10:
	adrp	x0, l_.str.1@PAGE
Lloh11:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x20
	bl	_print
Lloh12:
	adrp	x8, _sourceFile@GOTPAGE
Lloh13:
	ldr	x8, [x8, _sourceFile@GOTPAGEOFF]
Lloh14:
	str	xzr, [x8]
LBB0_5:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotStr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotStr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotStr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"r"

l_.str.1:                               ; @.str.1
	.asciz	";couldn't open %s\n"

	.comm	_sourceFile,8,3                 ; @sourceFile
	.comm	_sourceLine,4,2                 ; @sourceLine
	.comm	_sourcePtr,8,3                  ; @sourcePtr
	.no_dead_strip	_LoadSourceFile
.subsections_via_symbols
