	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mrb_sce_sys_fail
_mrb_sce_sys_fail:                      ## @mrb_sce_sys_fail
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	leaq	L_.str(%rip), %rsi
	callq	_mrb_class_get
	movq	%rax, %r14
	leaq	L_.str.1(%rip), %rsi
	leaq	-64(%rbp), %rdx
	leaq	-68(%rbp), %rcx
	movq	%r12, %rdi
	callq	_mrb_get_args
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_mrb_obj_value
	movl	%eax, %r15d
	cmpl	$1, %ebx
	jne	LBB0_2
## %bb.1:
	movq	-64(%rbp), %rdi
	callq	_mrb_fixnum_value
	leaq	L_.str.2(%rip), %rdx
	movq	%r12, %rdi
	movl	%r15d, %esi
	movl	$1, %ecx
	movl	%eax, %r8d
	xorl	%eax, %eax
	callq	_mrb_funcall
	jmp	LBB0_3
LBB0_2:
	movl	-68(%rbp), %ebx
	movq	-64(%rbp), %rdi
	callq	_mrb_fixnum_value
	leaq	L_.str.2(%rip), %rdx
	movq	%r12, %rdi
	movl	%r15d, %esi
	movl	$2, %ecx
	movl	%ebx, %r8d
	movl	%eax, %r9d
	xorl	%eax, %eax
	callq	_mrb_funcall
LBB0_3:
	movl	%eax, %r15d
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_mrb_obj_class
	cmpq	%r14, %rax
	jne	LBB0_5
## %bb.4:
	movq	-64(%rbp), %rcx
	leaq	L_.str.3(%rip), %rdx
	leaq	-56(%rbp), %rbx
	movq	%rbx, %rdi
	movl	$8, %esi
	callq	_snprintf
	leaq	L_.str.4(%rip), %r13
	movq	%r12, %rdi
	movq	%r13, %rsi
	callq	_mrb_module_get
	movq	%r12, %rdi
	movl	%eax, %esi
	movq	%rbx, %rdx
	movq	%r14, %rcx
	callq	_mrb_define_class_under
	movq	%rax, %rbx
	movq	-64(%rbp), %rdi
	callq	_mrb_fixnum_value
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movq	%r13, %rdx
	movl	%eax, %ecx
	callq	_mrb_define_const
	movl	%r15d, %edi
	callq	_mrb_basic_ptr
	movq	%rbx, (%rax)
LBB0_5:
	movq	%r12, %rdi
	movl	%r15d, %esi
	callq	_mrb_exc_raise
	xorl	%eax, %eax
	callq	_mrb_nil_value
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_7
## %bb.6:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"SystemCallError"

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

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

L_.str.3:                               ## @.str.3
	.asciz	"E%03ld"

L_.str.4:                               ## @.str.4
	.asciz	"Errno"

	.no_dead_strip	_mrb_sce_sys_fail
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mrb_sce_sys_fail
_mrb_sce_sys_fail:                      ; @mrb_sce_sys_fail
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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, #40]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_mrb_class_get
	mov	x20, x0
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	add	x2, sp, #16
	add	x3, sp, #28
	mov	x0, x19
	bl	_mrb_get_args
	mov	x22, x0
	mov	x0, x20
	bl	_mrb_obj_value
	mov	x21, x0
	cmp	w22, #1
	b.ne	LBB0_2
; %bb.1:
	ldr	x0, [sp, #16]
	bl	_mrb_fixnum_value
	mov	x4, x0
Lloh7:
	adrp	x2, l_.str.2@PAGE
Lloh8:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, x19
	mov	x1, x21
	mov	w3, #1
	b	LBB0_3
LBB0_2:
	ldr	w22, [sp, #28]
	ldr	x0, [sp, #16]
	bl	_mrb_fixnum_value
                                        ; kill: def $w0 killed $w0 def $x0
Lloh9:
	adrp	x2, l_.str.2@PAGE
Lloh10:
	add	x2, x2, l_.str.2@PAGEOFF
	str	x0, [sp]
	mov	x0, x19
	mov	x1, x21
	mov	w3, #2
	mov	x4, x22
LBB0_3:
	bl	_mrb_funcall
	mov	x21, x0
	mov	x0, x19
	mov	x1, x21
	bl	_mrb_obj_class
	cmp	x0, x20
	b.ne	LBB0_5
; %bb.4:
	ldr	x3, [sp, #16]
Lloh11:
	adrp	x2, l_.str.3@PAGE
Lloh12:
	add	x2, x2, l_.str.3@PAGEOFF
	add	x0, sp, #32
	mov	w1, #8
	bl	_snprintf
Lloh13:
	adrp	x22, l_.str.4@PAGE
Lloh14:
	add	x22, x22, l_.str.4@PAGEOFF
	mov	x0, x19
	mov	x1, x22
	bl	_mrb_module_get
	mov	x1, x0
	add	x2, sp, #32
	mov	x0, x19
	mov	x3, x20
	bl	_mrb_define_class_under
	mov	x20, x0
	ldr	x0, [sp, #16]
	bl	_mrb_fixnum_value
	mov	x3, x0
	mov	x0, x19
	mov	x1, x20
	mov	x2, x22
	bl	_mrb_define_const
	mov	x0, x21
	bl	_mrb_basic_ptr
	str	x20, [x0]
LBB0_5:
	mov	x0, x19
	mov	x1, x21
	bl	_mrb_exc_raise
	bl	_mrb_nil_value
	ldr	x8, [sp, #40]
Lloh15:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh16:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_7
; %bb.6:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_7:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"SystemCallError"

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

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

l_.str.3:                               ; @.str.3
	.asciz	"E%03ld"

l_.str.4:                               ; @.str.4
	.asciz	"Errno"

	.no_dead_strip	_mrb_sce_sys_fail
.subsections_via_symbols
