	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function io_lines
_io_lines:                              ## @io_lines
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movl	$1, %esi
	callq	_lua_isnoneornil
	testq	%rax, %rax
	je	LBB0_1
## %bb.4:
	movq	_LUA_ENVIRONINDEX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_IO_INPUT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_lua_rawgeti
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_f_lines                        ## TAILCALL
LBB0_1:
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_luaL_checkstring
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_newfile
	movq	%rax, %r15
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_fopen
	movq	%rax, (%r15)
	testq	%rax, %rax
	jne	LBB0_3
## %bb.2:
	movq	%rbx, %rdi
	movl	$1, %esi
	movq	%r14, %rdx
	callq	_fileerror
LBB0_3:
	movq	%rbx, %rdi
	callq	_lua_gettop
	movq	%rbx, %rdi
	movl	%eax, %esi
	movl	$1, %edx
	callq	_aux_lines
	movl	$1, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LUA_ENVIRONINDEX,4,2           ## @LUA_ENVIRONINDEX
	.comm	_IO_INPUT,4,2                   ## @IO_INPUT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"r"

	.no_dead_strip	_io_lines
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function io_lines
_io_lines:                              ; @io_lines
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	w1, #1
	bl	_lua_isnoneornil
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _LUA_ENVIRONINDEX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LUA_ENVIRONINDEX@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _IO_INPUT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IO_INPUT@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_lua_rawgeti
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_f_lines
LBB0_2:
	mov	x0, x19
	mov	w1, #1
	bl	_luaL_checkstring
	mov	x20, x0
	mov	x0, x19
	bl	_newfile
	mov	x21, x0
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_fopen
	str	x0, [x21]
	cbnz	x0, LBB0_4
; %bb.3:
	mov	x0, x19
	mov	w1, #1
	mov	x2, x20
	bl	_fileerror
LBB0_4:
	mov	x0, x19
	bl	_lua_gettop
	mov	x1, x0
	mov	x0, x19
	mov	w2, #1
	bl	_aux_lines
	mov	w0, #1
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_LUA_ENVIRONINDEX,4,2           ; @LUA_ENVIRONINDEX
	.comm	_IO_INPUT,4,2                   ; @IO_INPUT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"r"

	.no_dead_strip	_io_lines
.subsections_via_symbols
