	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_jv_load_file                   ## -- Begin function jv_load_file
	.p2align	4, 0x90
_jv_load_file:                          ## @jv_load_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
	movl	$4152, %eax                     ## imm = 0x1038
	callq	____chkstk_darwin
	subq	%rax, %rsp
	popq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_O_RDONLY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_open
	cmpl	$-1, %eax
	je	LBB0_1
## %bb.4:
	movl	%eax, %ebx
	leaq	-4176(%rbp), %rsi
	movl	%eax, %edi
	callq	_fstat
	cmpl	$-1, %eax
	je	LBB0_6
## %bb.5:
	movl	-4176(%rbp), %edi
	callq	_S_ISDIR
	testq	%rax, %rax
	je	LBB0_7
LBB0_6:
	movl	%ebx, %edi
	callq	_close
	leaq	L_.str(%rip), %rdi
	leaq	L_.str.1(%rip), %rdx
	movq	%r14, %rsi
	xorl	%eax, %eax
	callq	_jv_string_fmt
	jmp	LBB0_2
LBB0_7:
	leaq	L_.str.2(%rip), %rsi
	movl	%ebx, %edi
	callq	_fdopen
	testq	%rax, %rax
	je	LBB0_8
## %bb.10:
	movq	%rax, %r12
	movq	%r14, -4184(%rbp)               ## 8-byte Spill
	movl	%r15d, -4168(%rbp)              ## 4-byte Spill
	testl	%r15d, %r15d
	je	LBB0_12
## %bb.11:
	leaq	L_.str.3(%rip), %rdi
	callq	_jv_string
	movl	%eax, %r15d
	xorl	%r13d, %r13d
	jmp	LBB0_13
LBB0_8:
	movl	%ebx, %edi
	callq	_close
LBB0_1:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	leaq	L_.str(%rip), %rdi
	movq	%r14, %rsi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_jv_string_fmt
LBB0_2:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_9
## %bb.3:
	movl	%eax, %edi
	addq	$4152, %rsp                     ## imm = 0x1038
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_jv_invalid_with_msg            ## TAILCALL
LBB0_12:
	xorl	%eax, %eax
	callq	_jv_array
	movl	%eax, %r15d
	xorl	%edi, %edi
	callq	_jv_parser_new
	movq	%rax, %r13
LBB0_13:
	movq	%r12, %rdi
	callq	_feof
	testl	%eax, %eax
	je	LBB0_14
LBB0_30:
	cmpl	$0, -4168(%rbp)                 ## 4-byte Folded Reload
	jne	LBB0_32
## %bb.31:
	movq	%r13, %rdi
	callq	_jv_parser_free
LBB0_32:
	movq	%r12, %rdi
	callq	_ferror
	movl	%eax, %ebx
	movq	%r12, %rdi
	callq	_fclose
	testl	%ebx, %ebx
	jne	LBB0_34
## %bb.33:
	testq	%rax, %rax
	je	LBB0_35
LBB0_34:
	movl	%r15d, %edi
	callq	_jv_free
	leaq	L_.str.4(%rip), %rdi
	movq	-4184(%rbp), %rsi               ## 8-byte Reload
	xorl	%eax, %eax
	callq	_jv_string_fmt
	movl	%eax, %edi
	callq	_jv_invalid_with_msg
	movl	%eax, %r15d
LBB0_35:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_9
## %bb.36:
	movl	%r15d, %eax
	addq	$4152, %rsp                     ## imm = 0x1038
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	leaq	-4160(%rbp), %rbx
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_22:                                ##   in Loop: Header=BB0_15 Depth=1
	cmpl	$0, -4168(%rbp)                 ## 4-byte Folded Reload
	je	LBB0_24
## %bb.23:                              ##   in Loop: Header=BB0_15 Depth=1
	movl	%r15d, %edi
	movq	%rbx, %rsi
	movq	%r14, %rdx
	callq	_jv_string_append_buf
	movl	%eax, %r15d
LBB0_29:                                ##   in Loop: Header=BB0_15 Depth=1
	movq	%r12, %rdi
	callq	_feof
	testl	%eax, %eax
	jne	LBB0_30
LBB0_15:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_26 Depth 2
	movq	%r12, %rdi
	callq	_ferror
	testl	%eax, %eax
	jne	LBB0_30
## %bb.16:                              ##   in Loop: Header=BB0_15 Depth=1
	movq	%rbx, %rdi
	movl	$1, %esi
	movl	$4096, %edx                     ## imm = 0x1000
	movq	%r12, %rcx
	callq	_fread
	movl	$0, -4164(%rbp)
	testq	%rax, %rax
	je	LBB0_29
## %bb.17:                              ##   in Loop: Header=BB0_15 Depth=1
	movq	%rax, %r14
	leaq	(%rax,%rbx), %rdi
	decq	%rdi
	movq	%rbx, %rsi
	leaq	-4164(%rbp), %rdx
	callq	_jvp_utf8_backtrack
	testq	%rax, %rax
	je	LBB0_22
## %bb.18:                              ##   in Loop: Header=BB0_15 Depth=1
	cmpl	$0, -4164(%rbp)
	jle	LBB0_22
## %bb.19:                              ##   in Loop: Header=BB0_15 Depth=1
	movq	%r12, %rdi
	callq	_feof
	testl	%eax, %eax
	jne	LBB0_22
## %bb.20:                              ##   in Loop: Header=BB0_15 Depth=1
	movq	%r12, %rdi
	callq	_ferror
	testl	%eax, %eax
	jne	LBB0_22
## %bb.21:                              ##   in Loop: Header=BB0_15 Depth=1
	leaq	(%r14,%rbp), %rdi
	addq	$-4160, %rdi                    ## imm = 0xEFC0
	movl	-4164(%rbp), %edx
	movl	$1, %esi
	movq	%r12, %rcx
	callq	_fread
	addq	%rax, %r14
	jmp	LBB0_22
LBB0_24:                                ##   in Loop: Header=BB0_15 Depth=1
	movq	%r12, %rdi
	callq	_feof
	xorl	%ecx, %ecx
	testl	%eax, %eax
	sete	%cl
	movq	%r13, %rdi
	movq	%rbx, %rsi
	movq	%r14, %rdx
	callq	_jv_parser_set_buf
	.p2align	4, 0x90
LBB0_26:                                ##   Parent Loop BB0_15 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%r13, %rdi
	callq	_jv_parser_next
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_jv_is_valid
	testq	%rax, %rax
	je	LBB0_27
## %bb.25:                              ##   in Loop: Header=BB0_26 Depth=2
	movl	%r15d, %edi
	movl	%ebx, %esi
	callq	_jv_array_append
	movl	%eax, %r15d
	jmp	LBB0_26
LBB0_27:                                ##   in Loop: Header=BB0_15 Depth=1
	movl	%ebx, %edi
	callq	_jv_copy
	movl	%eax, %edi
	callq	_jv_invalid_has_msg
	testq	%rax, %rax
	jne	LBB0_37
## %bb.28:                              ##   in Loop: Header=BB0_15 Depth=1
	leaq	-4160(%rbp), %rbx
	jmp	LBB0_29
LBB0_37:
	movl	%r15d, %edi
	callq	_jv_free
	movl	%ebx, %r15d
	jmp	LBB0_30
LBB0_9:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_O_RDONLY,4,2                   ## @O_RDONLY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Could not open %s: %s"

	.comm	_errno,4,2                      ## @errno
L_.str.1:                               ## @.str.1
	.asciz	"It's a directory"

L_.str.2:                               ## @.str.2
	.asciz	"r"

L_.str.3:                               ## @.str.3
	.space	1

L_.str.4:                               ## @.str.4
	.asciz	"Error reading from %s"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_jv_load_file                   ; -- Begin function jv_load_file
	.p2align	2
_jv_load_file:                          ; @jv_load_file
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	w9, #4128
Lloh0:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh1:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	sub	sp, sp, #1, lsl #12             ; =4096
	sub	sp, sp, #32
	mov	x20, x1
	mov	x19, x0
Lloh2:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh3:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
Lloh5:
	adrp	x8, _O_RDONLY@GOTPAGE
Lloh6:
	ldr	x8, [x8, _O_RDONLY@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	bl	_open
	cmn	w0, #1
	b.eq	LBB0_8
; %bb.1:
	mov	x22, x0
	add	x1, sp, #16
	bl	_fstat
	cmn	w0, #1
	b.eq	LBB0_3
; %bb.2:
	ldr	w0, [sp, #16]
	bl	_S_ISDIR
	cbz	x0, LBB0_4
LBB0_3:
	mov	x0, x22
	bl	_close
Lloh8:
	adrp	x8, l_.str.1@PAGE
Lloh9:
	add	x8, x8, l_.str.1@PAGEOFF
	str	x8, [sp]
	b	LBB0_9
LBB0_4:
Lloh10:
	adrp	x1, l_.str.2@PAGE
Lloh11:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x22
	bl	_fdopen
	cbz	x0, LBB0_7
; %bb.5:
	mov	x21, x0
	cbz	w20, LBB0_11
; %bb.6:
Lloh12:
	adrp	x0, l_.str.3@PAGE
Lloh13:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_jv_string
	mov	x22, x0
	mov	x23, #0
	b	LBB0_12
LBB0_7:
	mov	x0, x22
	bl	_close
LBB0_8:
Lloh14:
	adrp	x8, _errno@GOTPAGE
Lloh15:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	bl	_strerror
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
LBB0_9:
Lloh17:
	adrp	x0, l_.str@PAGE
Lloh18:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_jv_string_fmt
	ldur	x8, [x29, #-72]
Lloh19:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh20:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh21:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_36
; %bb.10:
	add	sp, sp, #1, lsl #12             ; =4096
	add	sp, sp, #32
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_jv_invalid_with_msg
LBB0_11:
	bl	_jv_array
	mov	x22, x0
	mov	w0, #0
	bl	_jv_parser_new
	mov	x23, x0
LBB0_12:
	mov	x0, x21
	bl	_feof
	cbz	w0, LBB0_20
LBB0_13:
	cbnz	w20, LBB0_15
; %bb.14:
	mov	x0, x23
	bl	_jv_parser_free
LBB0_15:
	mov	x0, x21
	bl	_ferror
	mov	x20, x0
	mov	x0, x21
	bl	_fclose
	cbnz	w20, LBB0_17
; %bb.16:
	cbz	x0, LBB0_18
LBB0_17:
	mov	x0, x22
	bl	_jv_free
Lloh22:
	adrp	x0, l_.str.4@PAGE
Lloh23:
	add	x0, x0, l_.str.4@PAGEOFF
	mov	x1, x19
	bl	_jv_string_fmt
	bl	_jv_invalid_with_msg
	mov	x22, x0
LBB0_18:
	ldur	x8, [x29, #-72]
Lloh24:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh25:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh26:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_36
; %bb.19:
	mov	x0, x22
	add	sp, sp, #1, lsl #12             ; =4096
	add	sp, sp, #32
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_20:
	add	x25, sp, #20
	b	LBB0_24
LBB0_21:                                ;   in Loop: Header=BB0_24 Depth=1
	cbz	w20, LBB0_31
; %bb.22:                               ;   in Loop: Header=BB0_24 Depth=1
	add	x1, sp, #20
	mov	x0, x22
	mov	x2, x24
	bl	_jv_string_append_buf
	mov	x22, x0
LBB0_23:                                ;   in Loop: Header=BB0_24 Depth=1
	mov	x0, x21
	bl	_feof
	cbnz	w0, LBB0_13
LBB0_24:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_32 Depth 2
	mov	x0, x21
	bl	_ferror
	cbnz	w0, LBB0_13
; %bb.25:                               ;   in Loop: Header=BB0_24 Depth=1
	add	x0, sp, #20
	mov	w1, #1
	mov	w2, #4096
	mov	x3, x21
	bl	_fread
	str	wzr, [sp, #12]
	cbz	x0, LBB0_23
; %bb.26:                               ;   in Loop: Header=BB0_24 Depth=1
	mov	x24, x0
	add	x8, x0, x25
	sub	x0, x8, #1
	add	x1, sp, #20
	add	x2, sp, #12
	bl	_jvp_utf8_backtrack
	cbz	x0, LBB0_21
; %bb.27:                               ;   in Loop: Header=BB0_24 Depth=1
	ldr	w8, [sp, #12]
	cmp	w8, #1
	b.lt	LBB0_21
; %bb.28:                               ;   in Loop: Header=BB0_24 Depth=1
	mov	x0, x21
	bl	_feof
	cbnz	w0, LBB0_21
; %bb.29:                               ;   in Loop: Header=BB0_24 Depth=1
	mov	x0, x21
	bl	_ferror
	cbnz	w0, LBB0_21
; %bb.30:                               ;   in Loop: Header=BB0_24 Depth=1
	add	x0, x25, x24
	ldr	w2, [sp, #12]
	mov	w1, #1
	mov	x3, x21
	bl	_fread
	add	x24, x0, x24
	b	LBB0_21
LBB0_31:                                ;   in Loop: Header=BB0_24 Depth=1
	mov	x0, x21
	bl	_feof
	cmp	w0, #0
	cset	w3, eq
	add	x1, sp, #20
	mov	x0, x23
	mov	x2, x24
	bl	_jv_parser_set_buf
LBB0_32:                                ;   Parent Loop BB0_24 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x23
	bl	_jv_parser_next
	mov	x24, x0
	bl	_jv_is_valid
	cbz	x0, LBB0_34
; %bb.33:                               ;   in Loop: Header=BB0_32 Depth=2
	mov	x0, x22
	mov	x1, x24
	bl	_jv_array_append
	mov	x22, x0
	b	LBB0_32
LBB0_34:                                ;   in Loop: Header=BB0_24 Depth=1
	mov	x0, x24
	bl	_jv_copy
	bl	_jv_invalid_has_msg
	cbz	x0, LBB0_23
; %bb.35:
	mov	x0, x22
	bl	_jv_free
	mov	x22, x24
	b	LBB0_13
LBB0_36:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_O_RDONLY,4,2                   ; @O_RDONLY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Could not open %s: %s"

	.comm	_errno,4,2                      ; @errno
l_.str.1:                               ; @.str.1
	.asciz	"It's a directory"

l_.str.2:                               ; @.str.2
	.asciz	"r"

l_.str.3:                               ; @.str.3
	.space	1

l_.str.4:                               ; @.str.4
	.asciz	"Error reading from %s"

.subsections_via_symbols
