	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function luaH_getn
_luaH_getn:                             ## @luaH_getn
	.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	%rdi, %r14
	movl	(%rdi), %r15d
	testl	%r15d, %r15d
	je	LBB0_8
## %bb.1:
	leal	-1(%r15), %edi
	shlq	$2, %rdi
	addq	16(%r14), %rdi
	callq	_ttisnil
	testq	%rax, %rax
	je	LBB0_8
## %bb.2:
	xorl	%r12d, %r12d
	cmpl	$2, %r15d
	jb	LBB0_10
## %bb.3:
	xorl	%r12d, %r12d
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	movl	%ebx, %r15d
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	movl	%r15d, %eax
	subl	%r12d, %eax
	cmpl	$1, %eax
	jbe	LBB0_10
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	leal	(%r12,%r15), %ebx
	shrl	%ebx
	leal	-1(%rbx), %edi
	shlq	$2, %rdi
	addq	16(%r14), %rdi
	callq	_ttisnil
	testq	%rax, %rax
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	%ebx, %r12d
	jmp	LBB0_7
LBB0_8:
	movq	8(%r14), %rax
	cmpq	_dummynode_@GOTPCREL(%rip), %rax
	je	LBB0_9
## %bb.11:
	movq	%r14, %rdi
	movl	%r15d, %esi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_unbound_search                 ## TAILCALL
LBB0_9:
	movl	%r15d, %r12d
LBB0_10:
	movl	%r12d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_dummynode_,4,2                 ## @dummynode_
	.no_dead_strip	_luaH_getn
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function luaH_getn
_luaH_getn:                             ; @luaH_getn
	.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	x20, x0
	ldr	w19, [x0]
	cbz	w19, LBB0_5
; %bb.1:
	ldr	x8, [x20, #16]
	sub	w9, w19, #1
	add	x0, x8, w9, uxtw #2
	bl	_ttisnil
	cbz	x0, LBB0_5
; %bb.2:
	cmp	w19, #2
	b.lo	LBB0_8
; %bb.3:
	mov	w21, #0
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	add	w8, w21, w19
	lsr	w22, w8, #1
	ldr	x8, [x20, #16]
	sub	w9, w22, #1
	add	x0, x8, w9, uxtw #2
	bl	_ttisnil
	cmp	x0, #0
	csel	w19, w19, w22, eq
	csel	w21, w22, w21, eq
	sub	w8, w19, w21
	cmp	w8, #1
	b.hi	LBB0_4
	b	LBB0_9
LBB0_5:
	ldr	x8, [x20, #8]
Lloh0:
	adrp	x9, _dummynode_@GOTPAGE
Lloh1:
	ldr	x9, [x9, _dummynode_@GOTPAGEOFF]
	cmp	x8, x9
	b.eq	LBB0_7
; %bb.6:
	mov	x0, x20
	mov	x1, x19
	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
	b	_unbound_search
LBB0_7:
	mov	x21, x19
	b	LBB0_9
LBB0_8:
	mov	w21, #0
LBB0_9:
	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 AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_dummynode_,4,2                 ; @dummynode_
	.no_dead_strip	_luaH_getn
.subsections_via_symbols
