	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pushline
_pushline:                              ## @pushline
	.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
	movl	%esi, %r15d
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	movq	_LUA_MAXINPUT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rbx
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_get_prompt
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movq	%rax, %rdx
	callq	_lua_readline
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_lua_pop
	movq	%rbx, %rdi
	callq	_strlen
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	cmpb	$10, -1(%rbx,%rax)
	jne	LBB0_6
## %bb.5:
	decq	%rax
	movb	$0, (%rbx,%rax)
LBB0_6:
	testl	%r15d, %r15d
	jne	LBB0_7
	jmp	LBB0_9
LBB0_1:
	xorl	%eax, %eax
	jmp	LBB0_11
LBB0_3:
	xorl	%eax, %eax
	testl	%r15d, %r15d
	je	LBB0_9
LBB0_7:
	cmpb	$61, (%rbx)
	jne	LBB0_9
## %bb.8:
	movq	%rbx, %rdx
	incq	%rdx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_lua_pushfstring
	jmp	LBB0_10
LBB0_9:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movq	%rax, %rdx
	callq	_lua_pushlstring
LBB0_10:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_lua_freeline
	movl	$1, %eax
LBB0_11:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-32(%rbp), %rcx
	jne	LBB0_13
## %bb.12:
	leaq	-24(%rbp), %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_LUA_MAXINPUT,4,2               ## @LUA_MAXINPUT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"return %s"

	.no_dead_strip	_pushline
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pushline
_pushline:                              ; @pushline
	.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
	sub	sp, sp, #16
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
Lloh3:
	adrp	x8, _LUA_MAXINPUT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _LUA_MAXINPUT@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x20, x9, x8
	mov	sp, x20
	bl	_get_prompt
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	bl	_lua_readline
	cbz	w0, LBB0_9
; %bb.1:
	mov	x0, x19
	mov	w1, #1
	bl	_lua_pop
	mov	x0, x20
	bl	_strlen
	mov	x2, x0
	cbz	x0, LBB0_4
; %bb.2:
	sub	x8, x2, #1
	ldrb	w9, [x20, x8]
	cmp	w9, #10
	b.ne	LBB0_4
; %bb.3:
	strb	wzr, [x20, x8]
	mov	x2, x8
LBB0_4:
	cbz	w21, LBB0_7
; %bb.5:
	ldrb	w8, [x20]
	cmp	w8, #61
	b.ne	LBB0_7
; %bb.6:
	add	x2, x20, #1
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_lua_pushfstring
	b	LBB0_8
LBB0_7:
	mov	x0, x19
	mov	x1, x20
	bl	_lua_pushlstring
LBB0_8:
	mov	x0, x19
	mov	x1, x20
	bl	_lua_freeline
	mov	w0, #1
LBB0_9:
	ldur	x8, [x29, #-40]
Lloh10:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh11:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_11
; %bb.10:
	sub	sp, x29, #32
	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
LBB0_11:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_LUA_MAXINPUT,4,2               ; @LUA_MAXINPUT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"return %s"

	.no_dead_strip	_pushline
.subsections_via_symbols
