	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pushnexttemplate
_pushnexttemplate:                      ## @pushnexttemplate
	.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	%rsi, %rbx
	movq	%rdi, %r14
	movq	_LUA_PATH_SEP@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movb	(%rax), %al
	leal	-1(%rsi), %r12d
	decq	%rbx
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	1(%rbx), %ecx
	incq	%rbx
	incl	%r12d
	cmpb	%al, %cl
	je	LBB0_1
## %bb.2:
	testb	%cl, %cl
	je	LBB0_3
## %bb.4:
	movsbl	%al, %esi
	movq	%rbx, %rdi
	callq	_strchr
	movq	%rax, %r15
	testq	%rax, %rax
	jne	LBB0_6
## %bb.5:
	movq	%rbx, %rdi
	callq	_strlen
	movslq	%eax, %r15
	addq	%rbx, %r15
LBB0_6:
	movl	%r15d, %edx
	subl	%r12d, %edx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_lua_pushlstring
	jmp	LBB0_7
LBB0_3:
	xorl	%r15d, %r15d
LBB0_7:
	movq	%r15, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LUA_PATH_SEP,8,3               ## @LUA_PATH_SEP
	.no_dead_strip	_pushnexttemplate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pushnexttemplate
_pushnexttemplate:                      ; @pushnexttemplate
	.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
Lloh0:
	adrp	x8, _LUA_PATH_SEP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LUA_PATH_SEP@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldrb	w8, [x8]
	sub	w22, w1, #1
	sub	x20, x1, #1
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w9, [x20, #1]!
	add	w22, w22, #1
	cmp	w9, w8
	b.eq	LBB0_1
; %bb.2:
	cbz	w9, LBB0_6
; %bb.3:
	sxtb	w1, w8
	mov	x0, x20
	bl	_strchr
	mov	x21, x0
	cbnz	x0, LBB0_5
; %bb.4:
	mov	x0, x20
	bl	_strlen
	add	x21, x20, w0, sxtw
LBB0_5:
	sub	w2, w21, w22
	mov	x0, x19
	mov	x1, x20
	bl	_lua_pushlstring
	b	LBB0_7
LBB0_6:
	mov	x21, #0
LBB0_7:
	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	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_LUA_PATH_SEP,8,3               ; @LUA_PATH_SEP
	.no_dead_strip	_pushnexttemplate
.subsections_via_symbols
