	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function compute_sidx_size
_compute_sidx_size:                     ## @compute_sidx_size
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	(%rdi), %rbx
	callq	_get_sidx_size
	testl	%eax, %eax
	js	LBB0_12
## %bb.1:
	movl	(%rbx), %r9d
	testl	%r9d, %r9d
	jle	LBB0_12
## %bb.2:
	movq	8(%rbx), %rdx
	cmpl	$8, %r9d
	jae	LBB0_4
## %bb.3:
	xorl	%esi, %esi
	jmp	LBB0_11
LBB0_4:
	movl	%r9d, %esi
	andl	$-8, %esi
	movd	%eax, %xmm0
	pshufd	$0, %xmm0, %xmm0                ## xmm0 = xmm0[0,0,0,0]
	leaq	-8(%rsi), %rcx
	movq	%rcx, %r8
	shrq	$3, %r8
	incq	%r8
	testq	%rcx, %rcx
	je	LBB0_5
## %bb.6:
	movq	%r8, %rcx
	andq	$-2, %rcx
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movdqu	(%rdx,%rdi,4), %xmm1
	movdqu	16(%rdx,%rdi,4), %xmm2
	movdqu	32(%rdx,%rdi,4), %xmm3
	movdqu	48(%rdx,%rdi,4), %xmm4
	paddd	%xmm0, %xmm1
	paddd	%xmm0, %xmm2
	movdqu	%xmm1, (%rdx,%rdi,4)
	movdqu	%xmm2, 16(%rdx,%rdi,4)
	paddd	%xmm0, %xmm3
	paddd	%xmm0, %xmm4
	movdqu	%xmm3, 32(%rdx,%rdi,4)
	movdqu	%xmm4, 48(%rdx,%rdi,4)
	addq	$16, %rdi
	addq	$-2, %rcx
	jne	LBB0_7
## %bb.8:
	testb	$1, %r8b
	je	LBB0_10
LBB0_9:
	movdqu	(%rdx,%rdi,4), %xmm1
	movdqu	16(%rdx,%rdi,4), %xmm2
	paddd	%xmm0, %xmm1
	paddd	%xmm0, %xmm2
	movdqu	%xmm1, (%rdx,%rdi,4)
	movdqu	%xmm2, 16(%rdx,%rdi,4)
LBB0_10:
	cmpq	%r9, %rsi
	je	LBB0_12
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	addl	%eax, (%rdx,%rsi,4)
	incq	%rsi
	cmpq	%rsi, %r9
	jne	LBB0_11
LBB0_12:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_5:
	xorl	%edi, %edi
	testb	$1, %r8b
	jne	LBB0_9
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_compute_sidx_size
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function compute_sidx_size
_compute_sidx_size:                     ; @compute_sidx_size
	.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	x19, [x0]
	bl	_get_sidx_size
	tbnz	w0, #31, LBB0_9
; %bb.1:
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_9
; %bb.2:
	ldr	x9, [x19, #8]
	cmp	w8, #16
	b.hs	LBB0_4
; %bb.3:
	mov	x10, #0
	b	LBB0_7
LBB0_4:
	and	x10, x8, #0xfffffff0
	dup.4s	v0, w0
	add	x11, x9, #32
	mov	x12, x10
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldp	q1, q2, [x11, #-32]
	ldp	q3, q4, [x11]
	add.4s	v1, v1, v0
	add.4s	v2, v2, v0
	add.4s	v3, v3, v0
	add.4s	v4, v4, v0
	stp	q1, q2, [x11, #-32]
	stp	q3, q4, [x11], #64
	subs	x12, x12, #16
	b.ne	LBB0_5
; %bb.6:
	cmp	x10, x8
	b.eq	LBB0_9
LBB0_7:
	add	x9, x9, x10, lsl #2
	sub	x8, x8, x10
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w10, [x9]
	add	w10, w10, w0
	str	w10, [x9], #4
	subs	x8, x8, #1
	b.ne	LBB0_8
LBB0_9:
	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	_compute_sidx_size
.subsections_via_symbols
