	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mrb_require_load_rb_str
_mrb_require_load_rb_str:               ## @mrb_require_load_rb_str
	.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	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	movabsq	$24866934413088856, %rax        ## imm = 0x58585858585858
	movq	%rax, -51(%rbp)
	movabsq	$6365935209047682420, %rax      ## imm = 0x585858582E706D74
	movq	%rax, -56(%rbp)
	xorl	%eax, %eax
	callq	_mrb_nil_value
	movl	%eax, -60(%rbp)
	leaq	L_.str(%rip), %rsi
	leaq	-64(%rbp), %rdx
	leaq	-60(%rbp), %rcx
	movq	%r15, %rdi
	callq	_mrb_get_args
	movl	-60(%rbp), %edi
	callq	_mrb_string_p
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	-60(%rbp), %esi
	jmp	LBB0_3
LBB0_2:
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	callq	_mrb_str_new_cstr
	movl	%eax, %esi
	movl	%eax, -60(%rbp)
LBB0_3:
	movq	%r15, %rdi
	callq	_mrb_str_to_cstr
	movq	%rax, %r14
	movl	$63, %edi
	callq	_umask
	movl	%eax, %ebx
	leaq	-56(%rbp), %rdi
	callq	_mkstemp
	movl	%eax, %r12d
	cmpl	$-1, %eax
	jne	LBB0_5
## %bb.4:
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdi
	callq	_mrb_sys_fail
LBB0_5:
	movl	%ebx, %edi
	callq	_umask
	leaq	L_.str.3(%rip), %rsi
	movl	%r12d, %edi
	callq	_fdopen
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_7
## %bb.6:
	movl	%r12d, %edi
	callq	_close
	leaq	L_.str.4(%rip), %rsi
	movq	%r15, %rdi
	callq	_mrb_sys_fail
LBB0_7:
	movl	-64(%rbp), %edi
	callq	_RSTRING_PTR
	movl	%eax, %r12d
	movl	-64(%rbp), %edi
	callq	_RSTRING_LEN
	movq	%r15, %rdi
	movl	%r12d, %esi
	movl	%eax, %edx
	movq	%r14, %rcx
	movq	%rbx, %r8
	callq	_compile_rb2mrb
	movq	_MRB_DUMP_OK@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_8
## %bb.9:
	movq	%rbx, %rdi
	callq	_rewind
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_mrb_read_irep_file
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_fclose
	leaq	-56(%rbp), %rdi
	callq	_remove
	testq	%r14, %r14
	je	LBB0_11
## %bb.10:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_eval_load_irep
	xorl	%eax, %eax
	callq	_mrb_true_value
	jmp	LBB0_13
LBB0_8:
	movq	%rbx, %rdi
	callq	_fclose
	leaq	-56(%rbp), %rdi
	callq	_remove
	jmp	LBB0_12
LBB0_11:
	cmpq	$0, 8(%r15)
	jne	LBB0_15
LBB0_12:
	movq	_E_LOAD_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-60(%rbp), %ecx
	leaq	L_.str.5(%rip), %rdx
	movq	%r15, %rdi
	callq	_mrb_raisef
	xorl	%eax, %eax
	callq	_mrb_nil_value
LBB0_13:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-40(%rbp), %rcx
	jne	LBB0_16
## %bb.14:
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	callq	___stack_chk_fail
LBB0_15:
	movq	(%r15), %rax
	movl	(%rax), %edi
	movl	$1, %esi
	callq	_longjmp
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L___const.mrb_require_load_rb_str.tmpname: ## @__const.mrb_require_load_rb_str.tmpname
	.asciz	"tmp.XXXXXXXX"

L_.str:                                 ## @.str
	.asciz	"S|S"

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

L_.str.2:                               ## @.str.2
	.asciz	"can't create mkstemp() at mrb_require_load_rb_str"

L_.str.3:                               ## @.str.3
	.asciz	"r+"

L_.str.4:                               ## @.str.4
	.asciz	"can't open temporay file at mrb_require_load_rb_str"

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

	.comm	_MAX_PATH,4,2                   ## @MAX_PATH
	.no_dead_strip	_mrb_require_load_rb_str
.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_rb_str
_mrb_require_load_rb_str:               ; @mrb_require_load_rb_str
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
Lloh3:
	adrp	x8, l___const.mrb_require_load_rb_str.tmpname@PAGE
Lloh4:
	add	x8, x8, l___const.mrb_require_load_rb_str.tmpname@PAGEOFF
	ldr	x9, [x8]
	str	x9, [sp, #8]
	ldur	x8, [x8, #5]
	stur	x8, [sp, #13]
	bl	_mrb_nil_value
	str	w0, [sp]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	add	x2, sp, #4
	mov	x3, sp
	mov	x0, x19
	bl	_mrb_get_args
	ldr	w0, [sp]
	bl	_mrb_string_p
	cbz	w0, LBB0_2
; %bb.1:
	ldr	w1, [sp]
	b	LBB0_3
LBB0_2:
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_mrb_str_new_cstr
	mov	x1, x0
	str	w0, [sp]
LBB0_3:
	mov	x0, x19
	bl	_mrb_str_to_cstr
	mov	x20, x0
	mov	w0, #63
	bl	_umask
	mov	x21, x0
	add	x0, sp, #8
	bl	_mkstemp
	mov	x22, x0
	cmn	w0, #1
	b.ne	LBB0_5
; %bb.4:
Lloh9:
	adrp	x1, l_.str.2@PAGE
Lloh10:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_mrb_sys_fail
LBB0_5:
	mov	x0, x21
	bl	_umask
Lloh11:
	adrp	x1, l_.str.3@PAGE
Lloh12:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x22
	bl	_fdopen
	mov	x21, x0
	cbnz	x0, LBB0_7
; %bb.6:
	mov	x0, x22
	bl	_close
Lloh13:
	adrp	x1, l_.str.4@PAGE
Lloh14:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_mrb_sys_fail
LBB0_7:
	ldr	w0, [sp, #4]
	bl	_RSTRING_PTR
	mov	x22, x0
	ldr	w0, [sp, #4]
	bl	_RSTRING_LEN
	mov	x2, x0
	mov	x0, x19
	mov	x1, x22
	mov	x3, x20
	mov	x4, x21
	bl	_compile_rb2mrb
Lloh15:
	adrp	x8, _MRB_DUMP_OK@GOTPAGE
Lloh16:
	ldr	x8, [x8, _MRB_DUMP_OK@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_10
; %bb.8:
	mov	x0, x21
	bl	_rewind
	mov	x0, x19
	mov	x1, x21
	bl	_mrb_read_irep_file
	mov	x20, x0
	mov	x0, x21
	bl	_fclose
	add	x0, sp, #8
	bl	_remove
	cbz	x20, LBB0_11
; %bb.9:
	mov	x0, x19
	mov	x1, x20
	bl	_eval_load_irep
	bl	_mrb_true_value
	b	LBB0_13
LBB0_10:
	mov	x0, x21
	bl	_fclose
	add	x0, sp, #8
	bl	_remove
	b	LBB0_12
LBB0_11:
	ldr	x8, [x19, #8]
	cbnz	x8, LBB0_16
LBB0_12:
Lloh18:
	adrp	x8, _E_LOAD_ERROR@GOTPAGE
Lloh19:
	ldr	x8, [x8, _E_LOAD_ERROR@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	ldr	w3, [sp]
Lloh21:
	adrp	x2, l_.str.5@PAGE
Lloh22:
	add	x2, x2, l_.str.5@PAGEOFF
	mov	x0, x19
	bl	_mrb_raisef
	bl	_mrb_nil_value
LBB0_13:
	ldr	x8, [sp, #24]
Lloh23:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh24:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh25:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_15
; %bb.14:
	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
	add	sp, sp, #80
	ret
LBB0_15:
	bl	___stack_chk_fail
LBB0_16:
	ldr	x8, [x19]
	ldr	w0, [x8]
	mov	w1, #1
	bl	_longjmp
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l___const.mrb_require_load_rb_str.tmpname: ; @__const.mrb_require_load_rb_str.tmpname
	.asciz	"tmp.XXXXXXXX"

l_.str:                                 ; @.str
	.asciz	"S|S"

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

l_.str.2:                               ; @.str.2
	.asciz	"can't create mkstemp() at mrb_require_load_rb_str"

l_.str.3:                               ; @.str.3
	.asciz	"r+"

l_.str.4:                               ; @.str.4
	.asciz	"can't open temporay file at mrb_require_load_rb_str"

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

	.comm	_MAX_PATH,4,2                   ; @MAX_PATH
	.no_dead_strip	_mrb_require_load_rb_str
.subsections_via_symbols
