	.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	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movl	(%rsi), %r8d
	movl	$1, %ecx
	xorl	%r9d, %r9d
	xorl	%r15d, %r15d
	xorl	%r12d, %r12d
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ecx, %eax
	shrl	%eax
	cmpl	%eax, %r8d
	jbe	LBB0_5
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	(%rdi,%r9,4), %edx
	addl	%edx, %esi
	cmpl	%eax, %esi
	movl	%r12d, %ebx
	cmoval	%esi, %ebx
	movl	%r15d, %eax
	cmoval	%ecx, %eax
	testl	%edx, %edx
	cmovel	%r12d, %ebx
	cmovel	%r15d, %eax
	movl	%ecx, %edx
	andl	$2147483645, %edx               ## imm = 0x7FFFFFFD
	cmpl	%edx, %r8d
	jbe	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	leal	(%rcx,%rcx), %r15d
	movl	4(%rdi,%r9,4), %r10d
	addl	%r10d, %esi
	cmpl	%edx, %esi
	movl	%ebx, %r12d
	cmoval	%esi, %r12d
	cmovbel	%eax, %r15d
	testl	%r10d, %r10d
	cmovel	%ebx, %r12d
	cmovel	%eax, %r15d
	addq	$2, %r9
	shll	$2, %ecx
	cmpq	$32, %r9
	jne	LBB0_1
	jmp	LBB0_5
LBB0_3:
	movl	%ebx, %r12d
	movl	%eax, %r15d
LBB0_5:
	testl	%r15d, %r15d
	sete	%al
	movl	%r15d, %ecx
	shrl	%ecx
	cmpl	%r12d, %ecx
	setb	%cl
	orb	%al, %cl
	cmpl	%r15d, %r12d
	setbe	%al
	andb	%cl, %al
	movzbl	%al, %edi
	callq	_lua_assert
	movl	%r12d, (%r14)
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	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	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	x19, x1
	mov	x8, #0
	mov	w20, #0
	mov	w21, #0
	mov	w9, #0
	ldr	w10, [x1]
	mov	w11, #1
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	lsr	w12, w11, #1
	cmp	w10, w12
	b.ls	LBB0_3
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	w13, [x0, x8]
	add	w9, w13, w9
	cmp	w9, w12
	csel	w12, w9, w21, hi
	csel	w14, w11, w20, hi
	cmp	w13, #0
	csel	w21, w21, w12, eq
	csel	w20, w20, w14, eq
	lsl	w11, w11, #1
	add	x8, x8, #4
	cmp	x8, #128
	b.ne	LBB0_1
LBB0_3:
	cmp	w20, #0
	lsr	w8, w20, #1
	ccmp	w21, w8, #2, ne
	ccmp	w21, w20, #2, hi
	cset	w0, ls
	bl	_lua_assert
	str	w21, [x19]
	mov	x0, x20
	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
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_computesizes
.subsections_via_symbols
