	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mrb_stat0
_mrb_stat0:                             ## @mrb_stat0
	.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
	movl	%ecx, %r15d
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movl	%esi, %r12d
	movq	%rdi, %rbx
	leaq	L_.str(%rip), %rsi
	callq	_mrb_class_get
	movl	%eax, %edi
	callq	_mrb_obj_value
	movl	%eax, %r14d
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	callq	_mrb_class_get
	movl	%eax, %edi
	callq	_mrb_obj_value
	movl	%eax, %r13d
	leaq	L_.str.2(%rip), %rdx
	movq	%rbx, %rdi
	movl	%r12d, %esi
	movl	$1, %ecx
	movl	%r14d, %r8d
	callq	_mrb_funcall
	movl	%eax, %edi
	callq	_mrb_test
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movq	_mrb_io_type@GOTPCREL(%rip), %rdx
	movq	%rbx, %rdi
	movl	%r12d, %esi
	callq	_mrb_get_datatype
	testq	%rax, %rax
	je	LBB0_7
## %bb.2:
	movq	(%rax), %rdi
	testq	%rdi, %rdi
	js	LBB0_7
## %bb.3:
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_fstat                          ## TAILCALL
LBB0_4:
	leaq	L_.str.2(%rip), %rdx
	movq	%rbx, %rdi
	movl	%r12d, %esi
	movl	$1, %ecx
	movl	%r13d, %r8d
	callq	_mrb_funcall
	movl	%eax, %edi
	callq	_mrb_test
	testq	%rax, %rax
	je	LBB0_8
## %bb.5:
	movq	%rbx, %rdi
	movl	%r12d, %esi
	callq	_mrb_str_to_cstr
	movl	%eax, %edi
	movl	$-1, %esi
	callq	_mrb_locale_from_utf8
	movq	%rax, %r12
	movq	%rax, %rdi
	testl	%r15d, %r15d
	je	LBB0_9
## %bb.6:
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_LSTAT
	jmp	LBB0_10
LBB0_7:
	movq	_E_IO_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.3(%rip), %rdx
	movq	%rbx, %rdi
	callq	_mrb_raise
LBB0_8:
	movl	$-1, %ebx
	jmp	LBB0_11
LBB0_9:
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_stat
LBB0_10:
	movl	%eax, %ebx
	movq	%r12, %rdi
	callq	_mrb_locale_free
LBB0_11:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"IO"

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

L_.str.2:                               ## @.str.2
	.asciz	"is_a?"

	.comm	_mrb_io_type,4,2                ## @mrb_io_type
	.comm	_E_IO_ERROR,4,2                 ## @E_IO_ERROR
L_.str.3:                               ## @.str.3
	.asciz	"closed stream"

	.no_dead_strip	_mrb_stat0
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mrb_stat0
_mrb_stat0:                             ; @mrb_stat0
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x3
	mov	x19, x2
	mov	x22, x1
	mov	x20, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_mrb_class_get
	bl	_mrb_obj_value
	mov	x24, x0
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_mrb_class_get
	bl	_mrb_obj_value
	mov	x23, x0
Lloh4:
	adrp	x2, l_.str.2@PAGE
Lloh5:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, x20
	mov	x1, x22
	mov	w3, #1
	mov	x4, x24
	bl	_mrb_funcall
	bl	_mrb_test
	cbz	x0, LBB0_4
; %bb.1:
Lloh6:
	adrp	x2, _mrb_io_type@GOTPAGE
Lloh7:
	ldr	x2, [x2, _mrb_io_type@GOTPAGEOFF]
	mov	x0, x20
	mov	x1, x22
	bl	_mrb_get_datatype
	cbz	x0, LBB0_7
; %bb.2:
	ldr	x0, [x0]
	tbnz	x0, #63, LBB0_7
; %bb.3:
	mov	x1, x19
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_fstat
LBB0_4:
Lloh8:
	adrp	x2, l_.str.2@PAGE
Lloh9:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, x20
	mov	x1, x22
	mov	w3, #1
	mov	x4, x23
	bl	_mrb_funcall
	bl	_mrb_test
	cbz	x0, LBB0_8
; %bb.5:
	mov	x0, x20
	mov	x1, x22
	bl	_mrb_str_to_cstr
	mov	w1, #-1
	bl	_mrb_locale_from_utf8
	mov	x20, x0
	mov	x1, x19
	cbz	w21, LBB0_9
; %bb.6:
	bl	_LSTAT
	b	LBB0_10
LBB0_7:
Lloh10:
	adrp	x8, _E_IO_ERROR@GOTPAGE
Lloh11:
	ldr	x8, [x8, _E_IO_ERROR@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
Lloh13:
	adrp	x2, l_.str.3@PAGE
Lloh14:
	add	x2, x2, l_.str.3@PAGEOFF
	mov	x0, x20
	bl	_mrb_raise
LBB0_8:
	mov	w19, #-1
	b	LBB0_11
LBB0_9:
	bl	_stat
LBB0_10:
	mov	x19, x0
	mov	x0, x20
	bl	_mrb_locale_free
LBB0_11:
	mov	x0, x19
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"IO"

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

l_.str.2:                               ; @.str.2
	.asciz	"is_a?"

	.comm	_mrb_io_type,4,2                ; @mrb_io_type
	.comm	_E_IO_ERROR,4,2                 ; @E_IO_ERROR
l_.str.3:                               ; @.str.3
	.asciz	"closed stream"

	.no_dead_strip	_mrb_stat0
.subsections_via_symbols
