	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mrb_require_load_mrb_file
_mrb_require_load_mrb_file:             ## @mrb_require_load_mrb_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	leaq	L_.str(%rip), %rsi
	leaq	-28(%rbp), %rdx
	callq	_mrb_get_args
	movl	-28(%rbp), %esi
	movq	%r14, %rdi
	callq	_mrb_str_to_cstr
	leaq	L_.str.1(%rip), %rsi
	movq	%rax, %rdi
	callq	_fopen
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	movq	_E_LOAD_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-28(%rbp), %ecx
	leaq	L_.str.2(%rip), %rdx
	movq	%r14, %rdi
	callq	_mrb_raisef
LBB0_2:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_mrb_read_irep_file
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_fclose
	testq	%r15, %r15
	je	LBB0_4
## %bb.3:
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_eval_load_irep
	xorl	%eax, %eax
	callq	_mrb_true_value
	jmp	LBB0_6
LBB0_4:
	cmpq	$0, 8(%r14)
	jne	LBB0_7
## %bb.5:
	movq	_E_LOAD_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-28(%rbp), %ecx
	leaq	L_.str.3(%rip), %rdx
	movq	%r14, %rdi
	callq	_mrb_raisef
	xorl	%eax, %eax
	callq	_mrb_nil_value
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	(%r14), %rax
	movl	(%rax), %edi
	movl	$1, %esi
	callq	_longjmp
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"S"

L_.str.1:                               ## @.str.1
	.asciz	"rb"

	.comm	_E_LOAD_ERROR,4,2               ## @E_LOAD_ERROR
L_.str.2:                               ## @.str.2
	.asciz	"can't open file -- %S"

L_.str.3:                               ## @.str.3
	.asciz	"can't load file -- %S"

	.no_dead_strip	_mrb_require_load_mrb_file
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mrb_require_load_mrb_file
_mrb_require_load_mrb_file:             ; @mrb_require_load_mrb_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
	mov	x19, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	add	x2, sp, #12
	bl	_mrb_get_args
	ldr	w1, [sp, #12]
	mov	x0, x19
	bl	_mrb_str_to_cstr
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_fopen
	mov	x20, x0
	cbnz	x0, LBB0_2
; %bb.1:
Lloh4:
	adrp	x8, _E_LOAD_ERROR@GOTPAGE
Lloh5:
	ldr	x8, [x8, _E_LOAD_ERROR@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	ldr	w3, [sp, #12]
Lloh7:
	adrp	x2, l_.str.2@PAGE
Lloh8:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_mrb_raisef
LBB0_2:
	mov	x0, x19
	mov	x1, x20
	bl	_mrb_read_irep_file
	mov	x21, x0
	mov	x0, x20
	bl	_fclose
	cbz	x21, LBB0_4
; %bb.3:
	mov	x0, x19
	mov	x1, x21
	bl	_eval_load_irep
	bl	_mrb_true_value
	b	LBB0_6
LBB0_4:
	ldr	x8, [x19, #8]
	cbnz	x8, LBB0_7
; %bb.5:
Lloh9:
	adrp	x8, _E_LOAD_ERROR@GOTPAGE
Lloh10:
	ldr	x8, [x8, _E_LOAD_ERROR@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	ldr	w3, [sp, #12]
Lloh12:
	adrp	x2, l_.str.3@PAGE
Lloh13:
	add	x2, x2, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_mrb_raisef
	bl	_mrb_nil_value
LBB0_6:
	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
LBB0_7:
	ldr	x8, [x19]
	ldr	w0, [x8]
	mov	w1, #1
	bl	_longjmp
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"S"

l_.str.1:                               ; @.str.1
	.asciz	"rb"

	.comm	_E_LOAD_ERROR,4,2               ; @E_LOAD_ERROR
l_.str.2:                               ; @.str.2
	.asciz	"can't open file -- %S"

l_.str.3:                               ; @.str.3
	.asciz	"can't load file -- %S"

	.no_dead_strip	_mrb_require_load_mrb_file
.subsections_via_symbols
