	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function computesizes
_computesizes:                          ## @computesizes
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	(%rsi), %r8d
	testl	%r8d, %r8d
	jle	LBB0_1
## %bb.2:
	movl	$1, %edx
	xorl	%r10d, %r10d
	xorl	%r9d, %r9d
	xorl	%r14d, %r14d
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rdi), %eax
	leal	(%rax,%rcx), %ebx
	cmpl	%r10d, %ebx
	setg	%r10b
	testl	%eax, %eax
	cmovgl	%ebx, %ecx
	setg	%al
	testb	%r10b, %al
	cmovnel	%ebx, %r14d
	cmovnel	%edx, %r9d
	cmpl	%r8d, %ecx
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	leal	(%rdx,%rdx), %eax
	andl	$2147483647, %edx               ## imm = 0x7FFFFFFF
	addq	$4, %rdi
	movl	%edx, %r10d
	cmpl	%r8d, %edx
	movl	%eax, %edx
	jl	LBB0_3
	jmp	LBB0_5
LBB0_1:
	xorl	%r14d, %r14d
	xorl	%r9d, %r9d
LBB0_5:
	movl	%r9d, (%rsi)
	movl	%r9d, %eax
	shrl	$31, %eax
	addl	%r9d, %eax
	sarl	%eax
	cmpl	%r14d, %eax
	setle	%al
	cmpl	%r9d, %r14d
	setle	%cl
	andb	%al, %cl
	movzbl	%cl, %edi
	callq	_lua_assert
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_computesizes
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function computesizes
_computesizes:                          ; @computesizes
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	w9, [x1]
	cmp	w9, #1
	b.lt	LBB0_3
; %bb.1:
	mov	w12, #0
	mov	w8, #0
	mov	w19, #0
	mov	w10, #0
	mov	w11, #1
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w13, [x0], #4
	add	w14, w13, w10
	cmp	w14, w12
	cset	w12, gt
	cmp	w13, #0
	csel	w10, w14, w10, gt
	cset	w13, gt
	tst	w13, w12
	csel	w19, w14, w19, ne
	csel	w8, w11, w8, ne
	cmp	w10, w9
	and	w12, w11, #0x7fffffff
	lsl	w11, w11, #1
	ccmp	w12, w9, #0, ne
	b.lt	LBB0_2
	b	LBB0_4
LBB0_3:
	mov	w19, #0
	mov	w8, #0
LBB0_4:
	str	w8, [x1]
	cmp	w8, #0
	cinc	w9, w8, lt
	asr	w9, w9, #1
	cmp	w19, w8
	ccmp	w19, w9, #8, le
	cset	w0, ge
	bl	_lua_assert
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_computesizes
.subsections_via_symbols
