	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iter_aux
_iter_aux:                              ## @iter_aux
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	leaq	-48(%rbp), %rdx
	movl	$1, %esi
	callq	_luaL_checklstring
	movq	%rax, %r15
	movq	%r14, %rdi
	movl	$2, %esi
	callq	_lua_tointeger
	xorl	%r12d, %r12d
	testq	%rax, %rax
	jle	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	cmpq	-48(%rbp), %rax
	jg	LBB0_4
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	leaq	(%r15,%rbx), %rdi
	callq	_iscont
	incq	%rbx
	testq	%rax, %rax
	jne	LBB0_3
LBB0_4:
	decq	%rbx
	cmpq	-48(%rbp), %rbx
	jl	LBB0_6
	jmp	LBB0_10
LBB0_1:
	xorl	%ebx, %ebx
	cmpq	-48(%rbp), %rbx
	jge	LBB0_10
LBB0_6:
	addq	%rbx, %r15
	leaq	-36(%rbp), %rsi
	movq	%r15, %rdi
	callq	_utf8_decode
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movq	%rax, %rdi
	callq	_iscont
	testq	%rax, %rax
	je	LBB0_9
LBB0_8:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_luaL_error
	movl	%eax, %r12d
	jmp	LBB0_10
LBB0_9:
	incl	%ebx
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_lua_pushinteger
	movl	-36(%rbp), %esi
	movq	%r14, %rdi
	callq	_lua_pushinteger
	movl	$2, %r12d
LBB0_10:
	movl	%r12d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"invalid UTF-8 code"

	.no_dead_strip	_iter_aux
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function iter_aux
_iter_aux:                              ; @iter_aux
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	add	x2, sp, #8
	mov	w1, #1
	bl	_luaL_checklstring
	mov	x20, x0
	mov	x0, x19
	mov	w1, #2
	bl	_lua_tointeger
	subs	x22, x0, #1
	b.lt	LBB0_4
; %bb.1:
	mov	x21, x0
	ldr	x8, [sp, #8]
	cmp	x0, x8
	b.gt	LBB0_5
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	add	x0, x20, x21
	bl	_iscont
	add	x21, x21, #1
	cbnz	x0, LBB0_2
; %bb.3:
	sub	x22, x21, #1
	b	LBB0_5
LBB0_4:
	mov	x22, #0
LBB0_5:
	ldr	x8, [sp, #8]
	cmp	x22, x8
	b.ge	LBB0_9
; %bb.6:
	add	x0, x20, x22
	add	x1, sp, #4
	bl	_utf8_decode
	cbz	x0, LBB0_8
; %bb.7:
	bl	_iscont
	cbz	x0, LBB0_10
LBB0_8:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_luaL_error
	b	LBB0_11
LBB0_9:
	mov	w0, #0
	b	LBB0_11
LBB0_10:
	add	w1, w22, #1
	mov	x0, x19
	bl	_lua_pushinteger
	ldr	w1, [sp, #4]
	mov	x0, x19
	bl	_lua_pushinteger
	mov	w0, #2
LBB0_11:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"invalid UTF-8 code"

	.no_dead_strip	_iter_aux
.subsections_via_symbols
