	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function addreturn
_addreturn:                             ## @addreturn
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movl	$-1, %esi
	callq	_lua_tostring
	movq	%rax, %r14
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	movq	%rax, %rdx
	callq	_lua_pushfstring
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_strlen
	leaq	L_.str.1(%rip), %rcx
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movl	%eax, %edx
	callq	_luaL_loadbuffer
	movl	%eax, %r15d
	movq	_LUA_OK@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r15d
	jne	LBB0_3
## %bb.1:
	movq	%r12, %rdi
	movl	$-2, %esi
	callq	_lua_remove
	cmpb	$0, (%r14)
	je	LBB0_4
## %bb.2:
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_lua_saveline
	jmp	LBB0_4
LBB0_3:
	movq	%r12, %rdi
	movl	$2, %esi
	callq	_lua_pop
LBB0_4:
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"return %s;"

L_.str.1:                               ## @.str.1
	.asciz	"=stdin"

	.comm	_LUA_OK,4,2                     ## @LUA_OK
	.no_dead_strip	_addreturn
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function addreturn
_addreturn:                             ; @addreturn
	.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_tostring
	mov	x20, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x20
	bl	_lua_pushfstring
	mov	x21, x0
	bl	_strlen
	mov	x2, x0
Lloh2:
	adrp	x3, l_.str.1@PAGE
Lloh3:
	add	x3, x3, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	x1, x21
	bl	_luaL_loadbuffer
	mov	x21, x0
Lloh4:
	adrp	x8, _LUA_OK@GOTPAGE
Lloh5:
	ldr	x8, [x8, _LUA_OK@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_3
; %bb.1:
	mov	x0, x19
	mov	w1, #-2
	bl	_lua_remove
	ldrb	w8, [x20]
	cbz	w8, LBB0_4
; %bb.2:
	mov	x0, x19
	mov	x1, x20
	bl	_lua_saveline
	b	LBB0_4
LBB0_3:
	mov	x0, x19
	mov	w1, #2
	bl	_lua_pop
LBB0_4:
	mov	x0, x21
	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	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"return %s;"

l_.str.1:                               ; @.str.1
	.asciz	"=stdin"

	.comm	_LUA_OK,4,2                     ; @LUA_OK
	.no_dead_strip	_addreturn
.subsections_via_symbols
