	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function read_source_file
_read_source_file:                      ## @read_source_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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	leaq	L_.str(%rip), %rsi
	callq	_fopen
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_fileno
	leaq	-40(%rbp), %rsi
	movl	%eax, %edi
	callq	_fstat
	movl	-40(%rbp), %r14d
	leal	1(%r14), %edi
	callq	_malloc
	movq	%rax, %r15
	movq	%rax, %rdi
	movl	$1, %esi
	movl	%r14d, %edx
	movq	%rbx, %rcx
	callq	_fread
	movl	%eax, %r12d
	movq	%rbx, %rdi
	callq	_fclose
	cmpl	%r14d, %r12d
	jne	LBB0_4
## %bb.2:
	movslq	%r14d, %rax
	movb	$0, (%r15,%rax)
	movq	%r15, %rdi
	callq	_split
	jmp	LBB0_5
LBB0_4:
	xorl	%eax, %eax
LBB0_5:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"r"

	.no_dead_strip	_read_source_file
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function read_source_file
_read_source_file:                      ; @read_source_file
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
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	_fileno
	add	x1, sp, #8
	bl	_fstat
	ldr	w20, [sp, #8]
	add	w0, w20, #1
	bl	_malloc
	mov	x21, x0
	mov	w1, #1
	mov	x2, x20
	mov	x3, x19
	bl	_fread
	mov	x22, x0
	mov	x0, x19
	bl	_fclose
	cmp	w22, w20
	b.ne	LBB0_3
; %bb.2:
	sxtw	x8, w20
	strb	wzr, [x21, x8]
	mov	x0, x21
	bl	_split
	b	LBB0_4
LBB0_3:
	mov	x0, #0
LBB0_4:
	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
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"r"

	.no_dead_strip	_read_source_file
.subsections_via_symbols
