	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function luaopen_io
_luaopen_io:                            ## @luaopen_io
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	callq	_createmeta
	movq	_io_fclose@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_newfenv
	movq	%rbx, %rdi
	movl	$-10001, %esi                   ## imm = 0xD8EF
	callq	_lua_replace
	movq	_iolib@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_luaL_register
	movq	_io_noclose@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_newfenv
	movq	_stdin@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rcx
	movq	%rbx, %rdi
	movl	$1, %edx
	callq	_createstdfile
	movq	_stdout@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rcx
	movq	%rbx, %rdi
	movl	$2, %edx
	callq	_createstdfile
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.3(%rip), %rcx
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_createstdfile
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_lua_pop
	leaq	L_.str.4(%rip), %rdx
	movq	%rbx, %rdi
	movl	$-1, %esi
	callq	_lua_getfield
	movq	_io_pclose@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_newfenv
	movq	%rbx, %rdi
	movl	$-2, %esi
	callq	_lua_setfenv
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_lua_pop
	movl	$1, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_io_fclose,4,2                  ## @io_fclose
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"io"

	.comm	_iolib,4,2                      ## @iolib
	.comm	_io_noclose,4,2                 ## @io_noclose
	.comm	_stdin,4,2                      ## @stdin
L_.str.1:                               ## @.str.1
	.asciz	"stdin"

	.comm	_stdout,4,2                     ## @stdout
L_.str.2:                               ## @.str.2
	.asciz	"stdout"

	.comm	_stderr,4,2                     ## @stderr
L_.str.3:                               ## @.str.3
	.asciz	"stderr"

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

	.comm	_io_pclose,4,2                  ## @io_pclose
	.no_dead_strip	_luaopen_io
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function luaopen_io
_luaopen_io:                            ; @luaopen_io
	.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
	bl	_createmeta
Lloh0:
	adrp	x8, _io_fclose@GOTPAGE
Lloh1:
	ldr	x8, [x8, _io_fclose@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_newfenv
	mov	x0, x19
	mov	w1, #-10001
	bl	_lua_replace
Lloh3:
	adrp	x8, _iolib@GOTPAGE
Lloh4:
	ldr	x8, [x8, _iolib@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_luaL_register
Lloh8:
	adrp	x8, _io_noclose@GOTPAGE
Lloh9:
	ldr	x8, [x8, _io_noclose@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_newfenv
Lloh11:
	adrp	x8, _stdin@GOTPAGE
Lloh12:
	ldr	x8, [x8, _stdin@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
Lloh14:
	adrp	x3, l_.str.1@PAGE
Lloh15:
	add	x3, x3, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	w2, #1
	bl	_createstdfile
Lloh16:
	adrp	x8, _stdout@GOTPAGE
Lloh17:
	ldr	x8, [x8, _stdout@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
Lloh19:
	adrp	x3, l_.str.2@PAGE
Lloh20:
	add	x3, x3, l_.str.2@PAGEOFF
	mov	x0, x19
	mov	w2, #2
	bl	_createstdfile
Lloh21:
	adrp	x8, _stderr@GOTPAGE
Lloh22:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
Lloh24:
	adrp	x3, l_.str.3@PAGE
Lloh25:
	add	x3, x3, l_.str.3@PAGEOFF
	mov	x0, x19
	mov	w2, #0
	bl	_createstdfile
	mov	x0, x19
	mov	w1, #1
	bl	_lua_pop
Lloh26:
	adrp	x2, l_.str.4@PAGE
Lloh27:
	add	x2, x2, l_.str.4@PAGEOFF
	mov	x0, x19
	mov	w1, #-1
	bl	_lua_getfield
Lloh28:
	adrp	x8, _io_pclose@GOTPAGE
Lloh29:
	ldr	x8, [x8, _io_pclose@GOTPAGEOFF]
Lloh30:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_newfenv
	mov	x0, x19
	mov	w1, #-2
	bl	_lua_setfenv
	mov	x0, x19
	mov	w1, #1
	bl	_lua_pop
	mov	w0, #1
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_io_fclose,4,2                  ; @io_fclose
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"io"

	.comm	_iolib,4,2                      ; @iolib
	.comm	_io_noclose,4,2                 ; @io_noclose
	.comm	_stdin,4,2                      ; @stdin
l_.str.1:                               ; @.str.1
	.asciz	"stdin"

	.comm	_stdout,4,2                     ; @stdout
l_.str.2:                               ; @.str.2
	.asciz	"stdout"

	.comm	_stderr,4,2                     ; @stderr
l_.str.3:                               ; @.str.3
	.asciz	"stderr"

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

	.comm	_io_pclose,4,2                  ; @io_pclose
	.no_dead_strip	_luaopen_io
.subsections_via_symbols
