	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function luaH_next
_luaH_next:                             ## @luaH_next
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rsi, %r12
	movq	%rdi, %r13
	callq	_findindex
	movslq	%eax, %r14
	leaq	(,%r14,4), %rbx
	incq	%r14
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movslq	(%r12), %rax
	cmpq	%rax, %r14
	jge	LBB0_6
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	8(%r12), %rax
	leaq	(%rax,%rbx), %rdi
	addq	$4, %rdi
	callq	_ttisnil
	incq	%r14
	addq	$4, %rbx
	testl	%eax, %eax
	jne	LBB0_1
## %bb.3:
	movl	%r14d, %edi
	callq	_cast_num
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_setnvalue
	incq	%r15
	addq	8(%r12), %rbx
	movq	%r13, %rdi
	movq	%r15, %rsi
	movq	%rbx, %rdx
	jmp	LBB0_4
LBB0_6:
	movq	%r13, %rbx
	subl	%eax, %r14d
	movq	%r12, %rdi
	callq	_sizenode
	xorl	%r13d, %r13d
	cmpl	%eax, %r14d
	jge	LBB0_5
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	movl	%r14d, %esi
	callq	_gnode
	movl	%eax, %edi
	callq	_gval
	movq	%rax, %rdi
	callq	_ttisnil
	testl	%eax, %eax
	je	LBB0_9
## %bb.10:                              ##   in Loop: Header=BB0_8 Depth=1
	incl	%r14d
	movq	%r12, %rdi
	callq	_sizenode
	cmpl	%eax, %r14d
	jl	LBB0_8
	jmp	LBB0_5
LBB0_9:
	movq	%r12, %rdi
	movl	%r14d, %esi
	callq	_gnode
	movl	%eax, %edi
	callq	_key2tval
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movq	%rax, %rdx
	callq	_setobj
	incq	%r15
	movq	%r12, %rdi
	movl	%r14d, %esi
	callq	_gnode
	movl	%eax, %edi
	callq	_gval
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movq	%rax, %rdx
LBB0_4:
	callq	_setobj
	movl	$1, %r13d
LBB0_5:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_luaH_next
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function luaH_next
_luaH_next:                             ; @luaH_next
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
	bl	_findindex
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x8, w0
	sbfiz	x23, x0, #2, #32
	add	x22, x8, #1
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldrsw	x8, [x20]
	cmp	x22, x8
	b.ge	LBB0_4
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	x8, [x20, #8]
	add	x8, x8, x23
	add	x0, x8, #4
	bl	_ttisnil
	add	x22, x22, #1
	add	x23, x23, #4
	cbnz	w0, LBB0_1
; %bb.3:
	mov	x0, x22
	bl	_cast_num
	mov	x1, x0
	mov	x0, x21
	bl	_setnvalue
	add	x1, x21, #1
	ldr	x8, [x20, #8]
	add	x2, x8, x23
	mov	x0, x19
	b	LBB0_10
LBB0_4:
	sub	w22, w22, w8
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_sizenode
	cmp	w22, w0
	b.ge	LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x20
	mov	x1, x22
	bl	_gnode
	bl	_gval
	bl	_ttisnil
	cbz	w0, LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	add	w22, w22, #1
	b	LBB0_5
LBB0_8:
	mov	w0, #0
	b	LBB0_11
LBB0_9:
	mov	x0, x20
	mov	x1, x22
	bl	_gnode
	bl	_key2tval
	mov	x2, x0
	mov	x0, x19
	mov	x1, x21
	bl	_setobj
	add	x21, x21, #1
	mov	x0, x20
	mov	x1, x22
	bl	_gnode
	bl	_gval
	mov	x2, x0
	mov	x0, x19
	mov	x1, x21
LBB0_10:
	bl	_setobj
	mov	w0, #1
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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_luaH_next
.subsections_via_symbols
