	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i40iw_est_sd
_i40iw_est_sd:                          ## @i40iw_est_sd
	.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
	movq	_I40IW_HMC_IW_QP@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	movq	_I40IW_HMC_IW_PBLE@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %r11
	xorl	%ecx, %ecx
	cmpl	%r11d, %eax
	jge	LBB0_11
## %bb.1:
	movq	(%rsi), %r14
	movq	%r11, %r8
	subq	%rax, %r8
	xorl	%ecx, %ecx
	cmpq	$8, %r8
	jb	LBB0_10
## %bb.2:
	movq	%r8, %r9
	andq	$-8, %r9
	leaq	-8(%r9), %rcx
	movq	%rcx, %r10
	shrq	$3, %r10
	incq	%r10
	testq	%rcx, %rcx
	je	LBB0_3
## %bb.4:
	movq	%r10, %rbx
	andq	$-2, %rbx
	leaq	(%r14,%rax,8), %rdx
	addq	$96, %rdx
	pxor	%xmm0, %xmm0
	xorl	%ecx, %ecx
	pxor	%xmm1, %xmm1
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movups	-96(%rdx,%rcx,8), %xmm3
	movups	-80(%rdx,%rcx,8), %xmm4
	movups	-64(%rdx,%rcx,8), %xmm2
	movups	-48(%rdx,%rcx,8), %xmm5
	movaps	%xmm3, %xmm6
	shufps	$136, %xmm4, %xmm6              ## xmm6 = xmm6[0,2],xmm4[0,2]
	movaps	%xmm2, %xmm7
	shufps	$136, %xmm5, %xmm7              ## xmm7 = xmm7[0,2],xmm5[0,2]
	shufps	$221, %xmm4, %xmm3              ## xmm3 = xmm3[1,3],xmm4[1,3]
	pmulld	%xmm6, %xmm3
	paddd	%xmm0, %xmm3
	shufps	$221, %xmm5, %xmm2              ## xmm2 = xmm2[1,3],xmm5[1,3]
	pmulld	%xmm7, %xmm2
	paddd	%xmm1, %xmm2
	movups	-16(%rdx,%rcx,8), %xmm4
	movups	-32(%rdx,%rcx,8), %xmm0
	movups	16(%rdx,%rcx,8), %xmm5
	movups	(%rdx,%rcx,8), %xmm1
	movaps	%xmm0, %xmm6
	shufps	$136, %xmm4, %xmm6              ## xmm6 = xmm6[0,2],xmm4[0,2]
	movaps	%xmm1, %xmm7
	shufps	$136, %xmm5, %xmm7              ## xmm7 = xmm7[0,2],xmm5[0,2]
	shufps	$221, %xmm4, %xmm0              ## xmm0 = xmm0[1,3],xmm4[1,3]
	pmulld	%xmm6, %xmm0
	paddd	%xmm3, %xmm0
	shufps	$221, %xmm5, %xmm1              ## xmm1 = xmm1[1,3],xmm5[1,3]
	pmulld	%xmm7, %xmm1
	paddd	%xmm2, %xmm1
	addq	$16, %rcx
	addq	$-2, %rbx
	jne	LBB0_5
## %bb.6:
	testb	$1, %r10b
	je	LBB0_8
LBB0_7:
	addq	%rax, %rcx
	movups	(%r14,%rcx,8), %xmm2
	movups	16(%r14,%rcx,8), %xmm3
	movups	32(%r14,%rcx,8), %xmm4
	movups	48(%r14,%rcx,8), %xmm5
	movaps	%xmm2, %xmm6
	shufps	$136, %xmm3, %xmm6              ## xmm6 = xmm6[0,2],xmm3[0,2]
	movaps	%xmm4, %xmm7
	shufps	$136, %xmm5, %xmm7              ## xmm7 = xmm7[0,2],xmm5[0,2]
	shufps	$221, %xmm3, %xmm2              ## xmm2 = xmm2[1,3],xmm3[1,3]
	pmulld	%xmm6, %xmm2
	paddd	%xmm2, %xmm0
	shufps	$221, %xmm5, %xmm4              ## xmm4 = xmm4[1,3],xmm5[1,3]
	pmulld	%xmm7, %xmm4
	paddd	%xmm4, %xmm1
LBB0_8:
	paddd	%xmm1, %xmm0
	pshufd	$238, %xmm0, %xmm1              ## xmm1 = xmm0[2,3,2,3]
	paddd	%xmm0, %xmm1
	pshufd	$85, %xmm1, %xmm0               ## xmm0 = xmm1[1,1,1,1]
	paddd	%xmm1, %xmm0
	movd	%xmm0, %ecx
	cmpq	%r9, %r8
	je	LBB0_11
## %bb.9:
	addq	%r9, %rax
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movl	4(%r14,%rax,8), %edx
	imull	(%r14,%rax,8), %edx
	addl	%edx, %ecx
	incq	%rax
	cmpq	%rax, %r11
	jne	LBB0_10
LBB0_11:
	cmpq	$0, (%rdi)
	je	LBB0_13
## %bb.12:
	movq	(%rsi), %rdx
	movl	4(%rdx,%r11,8), %eax
	imull	(%rdx,%r11,8), %eax
	addl	%ecx, %eax
	movl	%eax, %ecx
	andl	$2097151, %ecx                  ## imm = 0x1FFFFF
	sarl	$21, %eax
	cmpl	$1, %ecx
	sbbl	$-1, %eax
	jmp	LBB0_16
LBB0_13:
	movl	%ecx, %eax
	andl	$2097151, %eax                  ## imm = 0x1FFFFF
	sarl	$21, %ecx
	cmpl	$1, %eax
	sbbl	$-1, %ecx
	movq	(%rsi), %rax
	movl	4(%rax,%r11,8), %edx
	imull	(%rax,%r11,8), %edx
	movl	%edx, %eax
	sarl	$21, %eax
	testl	$2097151, %edx                  ## imm = 0x1FFFFF
	je	LBB0_15
## %bb.14:
	addl	%ecx, %eax
	incl	%eax
	jmp	LBB0_16
LBB0_15:
	addl	%ecx, %eax
LBB0_16:
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_3:
	pxor	%xmm0, %xmm0
	xorl	%ecx, %ecx
	pxor	%xmm1, %xmm1
	testb	$1, %r10b
	jne	LBB0_7
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_I40IW_HMC_IW_QP,4,2            ## @I40IW_HMC_IW_QP
	.comm	_I40IW_HMC_IW_PBLE,4,2          ## @I40IW_HMC_IW_PBLE
	.no_dead_strip	_i40iw_est_sd
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i40iw_est_sd
_i40iw_est_sd:                          ; @i40iw_est_sd
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _I40IW_HMC_IW_QP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _I40IW_HMC_IW_QP@GOTPAGEOFF]
Lloh2:
	ldrsw	x14, [x8]
Lloh3:
	adrp	x8, _I40IW_HMC_IW_PBLE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _I40IW_HMC_IW_PBLE@GOTPAGEOFF]
Lloh5:
	ldrsw	x8, [x8]
	cmp	w14, w8
	b.ge	LBB0_3
; %bb.1:
	ldr	x9, [x1]
	sub	x11, x8, x14
	cmp	x11, #16
	b.hs	LBB0_4
; %bb.2:
	mov	w13, #0
	mov	x10, x14
	b	LBB0_7
LBB0_3:
	mov	w13, #0
	b	LBB0_9
LBB0_4:
	and	x12, x11, #0xfffffffffffffff0
	add	x10, x12, x14
	add	x13, x9, x14, lsl #3
	add	x13, x13, #64
	movi.2d	v0, #0000000000000000
	mov	x14, x12
	movi.2d	v1, #0000000000000000
	movi.2d	v2, #0000000000000000
	movi.2d	v3, #0000000000000000
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	sub	x15, x13, #64
	ld2.4s	{ v4, v5 }, [x15]
	sub	x15, x13, #32
	ld2.4s	{ v6, v7 }, [x15]
	mov	x15, x13
	ld2.4s	{ v16, v17 }, [x15], #32
	ld2.4s	{ v18, v19 }, [x15]
	mla.4s	v0, v5, v4
	mla.4s	v1, v7, v6
	mla.4s	v2, v17, v16
	mla.4s	v3, v19, v18
	add	x13, x13, #128
	subs	x14, x14, #16
	b.ne	LBB0_5
; %bb.6:
	add.4s	v0, v1, v0
	add.4s	v0, v2, v0
	add.4s	v0, v3, v0
	addv.4s	s0, v0
	fmov	w13, s0
	cmp	x11, x12
	b.eq	LBB0_9
LBB0_7:
	add	x9, x9, x10, lsl #3
	add	x9, x9, #4
	sub	x10, x8, x10
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldp	w11, w12, [x9, #-4]
	madd	w13, w12, w11, w13
	add	x9, x9, #8
	subs	x10, x10, #1
	b.ne	LBB0_8
LBB0_9:
	ldr	x9, [x0]
	cbz	x9, LBB0_11
; %bb.10:
	ldr	x9, [x1]
	add	x8, x9, x8, lsl #3
	ldp	w9, w8, [x8]
	madd	w8, w8, w9, w13
	tst	w8, #0x1fffff
	asr	w8, w8, #21
	cinc	w0, w8, ne
	ret
LBB0_11:
	tst	w13, #0x1fffff
	asr	w9, w13, #21
	cinc	w9, w9, ne
	ldr	x10, [x1]
	add	x8, x10, x8, lsl #3
	ldp	w10, w8, [x8]
	mul	w8, w8, w10
	tst	w8, #0x1fffff
	asr	w8, w8, #21
	add	w10, w8, w9
	add	w8, w9, w8
	csinc	w0, w10, w8, eq
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_I40IW_HMC_IW_QP,4,2            ; @I40IW_HMC_IW_QP
	.comm	_I40IW_HMC_IW_PBLE,4,2          ; @I40IW_HMC_IW_PBLE
	.no_dead_strip	_i40iw_est_sd
.subsections_via_symbols
