	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function unbound_search
_unbound_search:                        ## @unbound_search
	.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
	movl	%esi, %r13d
	movq	%rdi, %r14
	leal	1(%r13), %r12d
	movl	%r12d, %esi
	callq	_luaH_getint
	movl	%eax, %edi
	callq	_ttisnil
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movl	%r12d, %r15d
	jmp	LBB0_2
LBB0_5:
	movq	_LUA_MAXINTEGER@GOTPCREL(%rip), %rbx
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rbx), %edi
	callq	_l_castS2U
	movl	%eax, %ecx
	shrl	$31, %ecx
	addl	%eax, %ecx
	sarl	%ecx
	cmpl	%ecx, %r12d
	jg	LBB0_7
## %bb.9:                               ##   in Loop: Header=BB0_6 Depth=1
	leal	(%r12,%r12), %r15d
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_luaH_getint
	movl	%eax, %edi
	callq	_ttisnil
	movl	%r12d, %r13d
	movl	%r15d, %r12d
	testq	%rax, %rax
	je	LBB0_6
LBB0_2:
	movl	%r15d, %eax
	subl	%r13d, %eax
	cmpl	$2, %eax
	jge	LBB0_3
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	%ebx, %r15d
LBB0_11:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	%r15d, %eax
	subl	%r13d, %eax
	cmpl	$1, %eax
	jle	LBB0_12
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	leal	(%r15,%r13), %eax
	movl	%eax, %ebx
	shrl	$31, %ebx
	addl	%eax, %ebx
	sarl	%ebx
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_luaH_getint
	movl	%eax, %edi
	callq	_ttisnil
	testq	%rax, %rax
	jne	LBB0_10
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	%ebx, %r13d
	jmp	LBB0_11
LBB0_7:
	movl	$-1, %r13d
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	leal	2(%r13), %esi
	movq	%r14, %rdi
	callq	_luaH_getint
	movl	%eax, %edi
	callq	_ttisnil
	incl	%r13d
	testq	%rax, %rax
	je	LBB0_8
LBB0_12:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LUA_MAXINTEGER,4,2             ## @LUA_MAXINTEGER
	.no_dead_strip	_unbound_search
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function unbound_search
_unbound_search:                        ; @unbound_search
	.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	x20, x1
	mov	x19, x0
	add	w22, w1, #1
	mov	x1, x22
	bl	_luaH_getint
	bl	_ttisnil
	cbz	x0, LBB0_2
; %bb.1:
	mov	x21, x22
	b	LBB0_5
LBB0_2:
Lloh0:
	adrp	x23, _LUA_MAXINTEGER@GOTPAGE
Lloh1:
	ldr	x23, [x23, _LUA_MAXINTEGER@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x23]
	bl	_l_castS2U
	cmp	w0, #0
	cinc	w8, w0, lt
	cmp	w22, w8, asr #1
	b.gt	LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	lsl	w21, w22, #1
	mov	x0, x19
	mov	x1, x21
	bl	_luaH_getint
	bl	_ttisnil
	mov	x20, x22
	mov	x22, x21
	cbz	x0, LBB0_3
LBB0_5:
	sub	w8, w21, w20
	cmp	w8, #2
	b.lt	LBB0_9
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	add	w8, w20, w21
	cmp	w8, #0
	cinc	w8, w8, lt
	asr	w22, w8, #1
	mov	x0, x19
	mov	x1, x22
	bl	_luaH_getint
	bl	_ttisnil
	cmp	x0, #0
	csel	w21, w21, w22, eq
	csel	w20, w22, w20, eq
	sub	w8, w21, w20
	cmp	w8, #1
	b.gt	LBB0_6
	b	LBB0_9
LBB0_7:
	mov	w20, #-1
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	add	w1, w20, #2
	mov	x0, x19
	bl	_luaH_getint
	bl	_ttisnil
	add	w20, w20, #1
	cbz	x0, LBB0_8
LBB0_9:
	mov	x0, x20
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_LUA_MAXINTEGER,4,2             ; @LUA_MAXINTEGER
	.no_dead_strip	_unbound_search
.subsections_via_symbols
