	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function load_file
_load_file:                             ## @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
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	(%rsi), %rax
	movq	8(%rsi), %rcx
	movq	(%rax,%rcx,8), %r12
	movq	_FALSE@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	callq	_mrbc_context_new
	movq	%rax, %r15
	cmpq	$0, 32(%rbx)
	movq	_TRUE@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	je	LBB0_2
## %bb.1:
	movq	%rcx, 8(%r15)
LBB0_2:
	movq	%rcx, (%r15)
	cmpb	$45, (%r12)
	jne	LBB0_11
## %bb.3:
	cmpb	$0, 1(%r12)
	je	LBB0_4
LBB0_11:
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	callq	_fopen
	movq	%rax, %r13
	testq	%rax, %rax
	jne	LBB0_5
## %bb.12:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	16(%rbx), %rdx
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rcx
	callq	_fprintf
	jmp	LBB0_13
LBB0_4:
	movq	%r13, -48(%rbp)                 ## 8-byte Spill
	movq	_stdin@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
LBB0_5:
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%r12, %rdx
	callq	_mrbc_filename
	movq	8(%rbx), %rax
	incq	%rax
	movq	%rax, 8(%rbx)
	cmpq	24(%rbx), %rax
	jae	LBB0_7
## %bb.6:
	movq	_FALSE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	_partial_hook@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%rbx, %rcx
	callq	_mrbc_partial_hook
LBB0_7:
	movq	%r14, %rdi
	movq	%r13, %rsi
	movq	%r15, %rdx
	callq	_mrb_load_file_cxt
	movl	%eax, %ebx
	cmpq	$0, -48(%rbp)                   ## 8-byte Folded Reload
	je	LBB0_9
## %bb.8:
	movq	%r13, %rdi
	callq	_fclose
LBB0_9:
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_mrbc_context_free
	movl	%ebx, %edi
	callq	_mrb_undef_p
	testq	%rax, %rax
	je	LBB0_10
LBB0_13:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mrb_nil_value                  ## TAILCALL
LBB0_10:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FALSE,8,3                      ## @FALSE
	.comm	_TRUE,8,3                       ## @TRUE
	.comm	_stdin,8,3                      ## @stdin
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"r"

	.comm	_stderr,4,2                     ## @stderr
L_.str.1:                               ## @.str.1
	.asciz	"%s: cannot open program file. (%s)\n"

	.comm	_partial_hook,4,2               ## @partial_hook
	.no_dead_strip	_load_file
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function load_file
_load_file:                             ; @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	x21, x1
	mov	x19, x0
	ldp	x8, x9, [x1]
	ldr	x22, [x8, x9, lsl #3]
Lloh0:
	adrp	x25, _FALSE@GOTPAGE
Lloh1:
	ldr	x25, [x25, _FALSE@GOTPAGEOFF]
	ldr	x24, [x25]
	bl	_mrbc_context_new
	mov	x20, x0
	ldr	x10, [x21, #32]
Lloh2:
	adrp	x8, _TRUE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
	ldr	x9, [x8]
	cbz	x10, LBB0_2
; %bb.1:
	str	x9, [x20, #8]
LBB0_2:
	str	x9, [x20]
	ldrb	w9, [x22]
	cmp	w9, #45
	b.ne	LBB0_4
; %bb.3:
	ldrb	w9, [x22, #1]
	cbz	w9, LBB0_7
LBB0_4:
	ldr	x24, [x8]
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x22
	bl	_fopen
	cbz	x0, LBB0_6
; %bb.5:
	mov	x23, x0
	b	LBB0_8
LBB0_6:
Lloh6:
	adrp	x8, _stderr@GOTPAGE
Lloh7:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	ldr	x2, [x21, #16]
Lloh9:
	adrp	x1, l_.str.1@PAGE
Lloh10:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x3, x22
	bl	_fprintf
	b	LBB0_13
LBB0_7:
Lloh11:
	adrp	x8, _stdin@GOTPAGE
Lloh12:
	ldr	x8, [x8, _stdin@GOTPAGEOFF]
Lloh13:
	ldr	x23, [x8]
LBB0_8:
	mov	x0, x19
	mov	x1, x20
	mov	x2, x22
	bl	_mrbc_filename
	ldr	x8, [x21, #8]
	add	x8, x8, #1
	str	x8, [x21, #8]
	ldr	x9, [x21, #24]
	cmp	x8, x9
	b.hs	LBB0_10
; %bb.9:
	ldr	x24, [x25]
Lloh14:
	adrp	x8, _partial_hook@GOTPAGE
Lloh15:
	ldr	x8, [x8, _partial_hook@GOTPAGEOFF]
Lloh16:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x20
	mov	x3, x21
	bl	_mrbc_partial_hook
LBB0_10:
	mov	x0, x19
	mov	x1, x23
	mov	x2, x20
	bl	_mrb_load_file_cxt
	mov	x21, x0
	cbz	x24, LBB0_12
; %bb.11:
	mov	x0, x23
	bl	_fclose
LBB0_12:
	mov	x0, x19
	mov	x1, x20
	bl	_mrbc_context_free
	mov	x0, x21
	bl	_mrb_undef_p
	cbz	x0, LBB0_14
LBB0_13:
	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	_mrb_nil_value
LBB0_14:
	mov	x0, x21
	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
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_FALSE,8,3                      ; @FALSE
	.comm	_TRUE,8,3                       ; @TRUE
	.comm	_stdin,8,3                      ; @stdin
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"r"

	.comm	_stderr,4,2                     ; @stderr
l_.str.1:                               ; @.str.1
	.asciz	"%s: cannot open program file. (%s)\n"

	.comm	_partial_hook,4,2               ; @partial_hook
	.no_dead_strip	_load_file
.subsections_via_symbols
