	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function l_print
_l_print:                               ## @l_print
	.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
	callq	_lua_gettop
	testl	%eax, %eax
	jle	LBB0_2
## %bb.1:
	movl	%eax, %r14d
	movq	_LUA_MINSTACK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%rbx, %rdi
	callq	_luaL_checkstack
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	callq	_lua_getglobal
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_lua_insert
	movq	%rbx, %rdi
	movl	%r14d, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_lua_pcall
	movq	_LUA_OK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
LBB0_2:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_3:
	movq	_progname@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	%rbx, %rdi
	movl	$-1, %esi
	callq	_lua_tostring
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdi
	movl	%eax, %edx
	callq	_lua_pushfstring
	movl	%r14d, %edi
	movl	%eax, %esi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_l_message                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_LUA_MINSTACK,4,2               ## @LUA_MINSTACK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"too many results to print"

L_.str.1:                               ## @.str.1
	.asciz	"print"

	.comm	_LUA_OK,8,3                     ## @LUA_OK
	.comm	_progname,4,2                   ## @progname
L_.str.2:                               ## @.str.2
	.asciz	"error calling 'print' (%s)"

	.no_dead_strip	_l_print
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function l_print
_l_print:                               ; @l_print
	.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	_lua_gettop
	cmp	w0, #1
	b.lt	LBB0_2
; %bb.1:
	mov	x20, x0
Lloh0:
	adrp	x8, _LUA_MINSTACK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LUA_MINSTACK@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	bl	_luaL_checkstack
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_lua_getglobal
	mov	x0, x19
	mov	w1, #1
	bl	_lua_insert
	mov	x0, x19
	mov	x1, x20
	mov	w2, #0
	mov	w3, #0
	bl	_lua_pcall
Lloh7:
	adrp	x8, _LUA_OK@GOTPAGE
Lloh8:
	ldr	x8, [x8, _LUA_OK@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_3
LBB0_2:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_3:
Lloh10:
	adrp	x8, _progname@GOTPAGE
Lloh11:
	ldr	x8, [x8, _progname@GOTPAGEOFF]
Lloh12:
	ldr	w20, [x8]
	mov	x0, x19
	mov	w1, #-1
	bl	_lua_tostring
	mov	x2, x0
Lloh13:
	adrp	x1, l_.str.2@PAGE
Lloh14:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_lua_pushfstring
	mov	x1, x0
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_l_message
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_LUA_MINSTACK,4,2               ; @LUA_MINSTACK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"too many results to print"

l_.str.1:                               ; @.str.1
	.asciz	"print"

	.comm	_LUA_OK,8,3                     ; @LUA_OK
	.comm	_progname,4,2                   ; @progname
l_.str.2:                               ; @.str.2
	.asciz	"error calling 'print' (%s)"

	.no_dead_strip	_l_print
.subsections_via_symbols
