	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function io_type
_io_type:                               ## @io_type
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movl	$1, %esi
	callq	_luaL_checkany
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_lua_touserdata
	movq	%rax, %r14
	leaq	L_.str(%rip), %rdx
	movq	%rbx, %rdi
	movl	$-10000, %esi                   ## imm = 0xD8F0
	callq	_lua_getfield
	testq	%r14, %r14
	je	LBB0_3
## %bb.1:
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_lua_getmetatable
	testl	%eax, %eax
	je	LBB0_3
## %bb.2:
	movq	%rbx, %rdi
	movl	$-2, %esi
	movl	$-1, %edx
	callq	_lua_rawequal
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:
	cmpq	$0, (%r14)
	je	LBB0_5
## %bb.6:
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_7
LBB0_3:
	movq	%rbx, %rdi
	callq	_lua_pushnil
	jmp	LBB0_8
LBB0_5:
	leaq	L_.str.1(%rip), %rsi
LBB0_7:
	movq	%rbx, %rdi
	callq	_lua_pushliteral
LBB0_8:
	movl	$1, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"FILE*"

L_.str.1:                               ## @.str.1
	.asciz	"closed file"

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

	.no_dead_strip	_io_type
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function io_type
_io_type:                               ; @io_type
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	mov	w1, #1
	bl	_luaL_checkany
	mov	x0, x19
	mov	w1, #1
	bl	_lua_touserdata
	mov	x20, x0
Lloh0:
	adrp	x2, l_.str@PAGE
Lloh1:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	mov	w1, #-10000
	bl	_lua_getfield
	cbz	x20, LBB0_5
; %bb.1:
	mov	x0, x19
	mov	w1, #1
	bl	_lua_getmetatable
	cbz	w0, LBB0_5
; %bb.2:
	mov	x0, x19
	mov	w1, #-2
	mov	w2, #-1
	bl	_lua_rawequal
	cbz	w0, LBB0_5
; %bb.3:
	ldr	x8, [x20]
	cbz	x8, LBB0_6
; %bb.4:
Lloh2:
	adrp	x1, l_.str.2@PAGE
Lloh3:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_7
LBB0_5:
	mov	x0, x19
	bl	_lua_pushnil
	b	LBB0_8
LBB0_6:
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_7:
	mov	x0, x19
	bl	_lua_pushliteral
LBB0_8:
	mov	w0, #1
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"FILE*"

l_.str.1:                               ; @.str.1
	.asciz	"closed file"

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

	.no_dead_strip	_io_type
.subsections_via_symbols
