	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal4,4byte_literals
	.p2align	2                               ## -- Begin function extract_m8_i16
LCPI0_0:
	.long	0x3f800000                      ## float 1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_extract_m8_i16:                        ## @extract_m8_i16
	.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
	subq	$104, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testl	%ecx, %ecx
	movq	%r8, -56(%rbp)                  ## 8-byte Spill
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	jle	LBB0_1
## %bb.2:
	addl	%esi, %esi
	movslq	%edx, %r13
	movl	%ecx, %eax
	movq	%rax, -128(%rbp)                ## 8-byte Spill
	movl	%r13d, %r8d
	shlq	$2, %r13
	movl	%r8d, %eax
	andl	$-8, %eax
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	addq	$-8, %rax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	movq	%rax, %rcx
	shrq	$3, %rcx
	incq	%rcx
	movq	%rcx, %rax
	movq	%rcx, -88(%rbp)                 ## 8-byte Spill
	andq	$-2, %rcx
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	movq	%r8, %rax
	negq	%rax
	movq	%rax, -120(%rbp)                ## 8-byte Spill
	leaq	48(%rdi), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	leaq	4(%rdi), %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	xorl	%r14d, %r14d
	movq	%r9, -112(%rbp)                 ## 8-byte Spill
	xorl	%r11d, %r11d
	xorl	%r10d, %r10d
	xorl	%r12d, %r12d
	movq	%rdi, -136(%rbp)                ## 8-byte Spill
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	%r10d, %eax
LBB0_21:                                ##   in Loop: Header=BB0_3 Depth=1
	addq	%r13, %r9
	incq	%r11
	addl	%esi, %r14d
	movl	%eax, %r10d
	cmpq	-128(%rbp), %r11                ## 8-byte Folded Reload
	movq	-136(%rbp), %rdi                ## 8-byte Reload
	je	LBB0_22
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_11 Depth 2
                                        ##     Child Loop BB0_20 Depth 2
	testl	%edx, %edx
	jle	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	%esi, %eax
	imull	%r11d, %eax
	movslq	%r14d, %rbx
	cltq
	leaq	(%rdi,%rax,4), %r15
	cmpl	$8, %edx
	jb	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	%esi, %eax
	imull	%r11d, %eax
	cltq
	leaq	(%rdi,%rax,4), %rax
	movq	%r13, %rcx
	imulq	%r11, %rcx
	addq	-112(%rbp), %rcx                ## 8-byte Folded Reload
	subq	%rax, %rcx
	cmpq	$32, %rcx
	jb	LBB0_6
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	movd	%r10d, %xmm1
	movd	%r12d, %xmm0
	cmpq	$0, -96(%rbp)                   ## 8-byte Folded Reload
	je	LBB0_9
## %bb.10:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	%rbx, %rdi
	leaq	(%rax,%rbx,4), %rbx
	pxor	%xmm2, %xmm2
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	xorl	%eax, %eax
	pxor	%xmm3, %xmm3
	.p2align	4, 0x90
LBB0_11:                                ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movdqu	-48(%rbx,%rax,4), %xmm4
	movdqu	-32(%rbx,%rax,4), %xmm5
	paddd	%xmm4, %xmm0
	paddd	%xmm5, %xmm3
	movdqu	%xmm4, (%r9,%rax,4)
	pmulld	%xmm4, %xmm4
	paddd	%xmm1, %xmm4
	movdqu	%xmm5, 16(%r9,%rax,4)
	pmulld	%xmm5, %xmm5
	paddd	%xmm2, %xmm5
	movdqu	-16(%rbx,%rax,4), %xmm1
	movdqu	(%rbx,%rax,4), %xmm2
	paddd	%xmm1, %xmm0
	paddd	%xmm2, %xmm3
	movdqu	%xmm1, 32(%r9,%rax,4)
	pmulld	%xmm1, %xmm1
	paddd	%xmm4, %xmm1
	movdqu	%xmm2, 48(%r9,%rax,4)
	pmulld	%xmm2, %xmm2
	paddd	%xmm5, %xmm2
	addq	$16, %rax
	addq	$-2, %rcx
	jne	LBB0_11
## %bb.12:                              ##   in Loop: Header=BB0_3 Depth=1
	testb	$1, -88(%rbp)                   ## 1-byte Folded Reload
	je	LBB0_14
LBB0_13:                                ##   in Loop: Header=BB0_3 Depth=1
	movdqu	(%r15,%rax,4), %xmm4
	movdqu	16(%r15,%rax,4), %xmm5
	paddd	%xmm4, %xmm0
	paddd	%xmm5, %xmm3
	movdqu	%xmm4, (%r9,%rax,4)
	pmulld	%xmm4, %xmm4
	paddd	%xmm4, %xmm1
	movdqu	%xmm5, 16(%r9,%rax,4)
	pmulld	%xmm5, %xmm5
	paddd	%xmm5, %xmm2
LBB0_14:                                ##   in Loop: Header=BB0_3 Depth=1
	paddd	%xmm2, %xmm1
	paddd	%xmm3, %xmm0
	pshufd	$238, %xmm0, %xmm2              ## xmm2 = xmm0[2,3,2,3]
	paddd	%xmm0, %xmm2
	pshufd	$85, %xmm2, %xmm0               ## xmm0 = xmm2[1,1,1,1]
	paddd	%xmm2, %xmm0
	movd	%xmm0, %r12d
	pshufd	$238, %xmm1, %xmm0              ## xmm0 = xmm1[2,3,2,3]
	paddd	%xmm1, %xmm0
	pshufd	$85, %xmm0, %xmm1               ## xmm1 = xmm0[1,1,1,1]
	paddd	%xmm0, %xmm1
	movd	%xmm1, %r10d
	movq	-104(%rbp), %rcx                ## 8-byte Reload
	movq	%rcx, %rbx
	movl	%r10d, %eax
	cmpq	%r8, %rcx
	je	LBB0_21
## %bb.15:                              ##   in Loop: Header=BB0_3 Depth=1
	testb	$1, %r8b
	jne	LBB0_17
LBB0_16:                                ##   in Loop: Header=BB0_3 Depth=1
                                        ## implicit-def: $eax
	movq	%rbx, %rcx
	jmp	LBB0_18
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%rbx, %rdi
	xorl	%ebx, %ebx
	testb	$1, %r8b
	je	LBB0_16
LBB0_17:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	(%r15,%rbx,4), %eax
	addl	%eax, %r12d
	movl	%eax, (%r9,%rbx,4)
	imull	%eax, %eax
	addl	%r10d, %eax
	movq	%rbx, %rcx
	orq	$1, %rcx
	movl	%eax, %r10d
LBB0_18:                                ##   in Loop: Header=BB0_3 Depth=1
	notq	%rbx
	cmpq	-120(%rbp), %rbx                ## 8-byte Folded Reload
	je	LBB0_21
## %bb.19:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rax,%rdi,4), %rdi
	movl	%r10d, %eax
	.p2align	4, 0x90
LBB0_20:                                ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	-4(%rdi,%rcx,4), %ebx
	addl	%ebx, %r12d
	movl	%ebx, (%r9,%rcx,4)
	imull	%ebx, %ebx
	addl	%eax, %ebx
	movl	(%rdi,%rcx,4), %eax
	addl	%eax, %r12d
	movl	%eax, 4(%r9,%rcx,4)
	imull	%eax, %eax
	addl	%ebx, %eax
	addq	$2, %rcx
	cmpq	%rcx, %r8
	jne	LBB0_20
	jmp	LBB0_21
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%rbx, %rdi
	pxor	%xmm2, %xmm2
	xorl	%eax, %eax
	pxor	%xmm3, %xmm3
	testb	$1, -88(%rbp)                   ## 1-byte Folded Reload
	jne	LBB0_13
	jmp	LBB0_14
LBB0_1:
	xorl	%r12d, %r12d
	xorl	%eax, %eax
LBB0_22:
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	imull	%edx, %ecx
	xorps	%xmm0, %xmm0
	cvtsi2ss	%ecx, %xmm0
	movss	LCPI0_0(%rip), %xmm3            ## xmm3 = mem[0],zero,zero,zero
	movaps	%xmm3, %xmm1
	divss	%xmm0, %xmm1
	xorps	%xmm2, %xmm2
	cvtsi2ss	%r12d, %xmm2
	mulss	%xmm1, %xmm2
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movss	%xmm2, (%rbx)
	xorps	%xmm0, %xmm0
	cvtsi2ss	%eax, %xmm0
	mulss	%xmm2, %xmm2
	mulss	%xmm1, %xmm0
	subss	%xmm2, %xmm0
	movl	$0, 12(%rbx)
	movq	_FLT_EPSILON@GOTPCREL(%rip), %rax
	movss	(%rax), %xmm1                   ## xmm1 = mem[0],zero,zero,zero
	ucomiss	%xmm0, %xmm1
	jae	LBB0_23
## %bb.24:
	xorps	%xmm1, %xmm1
	ucomiss	%xmm1, %xmm0
	jb	LBB0_26
## %bb.25:
	sqrtss	%xmm0, %xmm0
	jmp	LBB0_27
LBB0_23:
	movl	$0, 4(%rbx)
	xorps	%xmm3, %xmm3
	jmp	LBB0_28
LBB0_26:
	callq	_sqrt
	movss	LCPI0_0(%rip), %xmm3            ## xmm3 = mem[0],zero,zero,zero
LBB0_27:
	movss	%xmm0, 4(%rbx)
	divss	%xmm0, %xmm3
LBB0_28:
	movss	%xmm3, 8(%rbx)
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FLT_EPSILON,4,2                ## @FLT_EPSILON
	.no_dead_strip	_extract_m8_i16
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function extract_m8_i16
_extract_m8_i16:                        ; @extract_m8_i16
	.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
                                        ; kill: def $w2 killed $w2 def $x2
	cmp	w3, #1
	b.lt	LBB0_11
; %bb.1:
	mov	w8, #0
	mov	x9, #0
	mov	w7, #0
	mov	w6, #0
	lsl	w10, w1, #1
	mov	w11, w3
	mov	w12, w2
	sbfiz	x13, x2, #2, #32
	and	x14, x12, #0xfffffff0
	lsl	x15, x12, #2
	and	x15, x15, #0x3ffffffc0
	add	x16, x0, #32
	mov	x17, x5
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x9, x9, #1
	add	x17, x17, x13
	add	w8, w8, w10
	cmp	x9, x11
	b.eq	LBB0_12
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
                                        ;     Child Loop BB0_10 Depth 2
	cmp	w2, #1
	b.lt	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x19, #0
	sbfiz	x1, x8, #2, #32
	cmp	w2, #16
	b.lo	LBB0_9
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	mul	w20, w10, w9
	add	x20, x0, w20, sxtw #2
	madd	x21, x13, x9, x5
	sub	x20, x21, x20
	cmp	x20, #64
	b.lo	LBB0_9
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x19, #0
	movi.2d	v0, #0000000000000000
	mov.s	v0[0], w7
	movi.2d	v4, #0000000000000000
	mov.s	v4[0], w6
	add	x6, x16, x1
	movi.2d	v1, #0000000000000000
	movi.2d	v2, #0000000000000000
	movi.2d	v3, #0000000000000000
	movi.2d	v5, #0000000000000000
	movi.2d	v6, #0000000000000000
	movi.2d	v7, #0000000000000000
LBB0_7:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	x7, x6, x19
	ldp	q16, q17, [x7, #-32]
	ldp	q18, q19, [x7]
	add.4s	v4, v16, v4
	add.4s	v5, v17, v5
	add.4s	v6, v18, v6
	add.4s	v7, v19, v7
	mla.4s	v0, v16, v16
	mla.4s	v1, v17, v17
	mla.4s	v2, v18, v18
	mla.4s	v3, v19, v19
	add	x7, x17, x19
	stp	q16, q17, [x7]
	stp	q18, q19, [x7, #32]
	add	x19, x19, #64
	cmp	x15, x19
	b.ne	LBB0_7
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
	add.4s	v4, v5, v4
	add.4s	v4, v6, v4
	add.4s	v4, v7, v4
	addv.4s	s4, v4
	fmov	w6, s4
	add.4s	v0, v1, v0
	add.4s	v0, v2, v0
	add.4s	v0, v3, v0
	addv.4s	s0, v0
	fmov	w7, s0
	mov	x19, x14
	cmp	x14, x12
	b.eq	LBB0_2
LBB0_9:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x1, x0, x1
LBB0_10:                                ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	lsl	x20, x19, #2
	ldr	w21, [x1, x20]
	add	w6, w21, w6
	madd	w7, w21, w21, w7
	str	w21, [x17, x20]
	add	x19, x19, #1
	cmp	x12, x19
	b.ne	LBB0_10
	b	LBB0_2
LBB0_11:
	mov	w6, #0
	mov	w7, #0
LBB0_12:
	mul	w8, w3, w2
	scvtf	s0, w8
	fmov	s1, #1.00000000
	fdiv	s0, s1, s0
	scvtf	s1, w6
	fmul	s2, s0, s1
	str	s2, [x4]
	scvtf	s3, w7
	fnmul	s1, s0, s1
	fmul	s1, s2, s1
	fmadd	s0, s3, s0, s1
	str	wzr, [x4, #12]
Lloh0:
	adrp	x8, _FLT_EPSILON@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FLT_EPSILON@GOTPAGEOFF]
Lloh2:
	ldr	s1, [x8]
	fcmp	s0, s1
	b.ls	LBB0_15
; %bb.13:
	fsqrt	s1, s0
	fcmp	s1, s1
	b.vs	LBB0_17
LBB0_14:
	str	s1, [x4, #4]
	fmov	s0, #1.00000000
	fdiv	s0, s0, s1
	b	LBB0_16
LBB0_15:
	str	wzr, [x4, #4]
	movi	d0, #0000000000000000
LBB0_16:
	str	s0, [x4, #8]
	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
LBB0_17:
	mov	x19, x4
	bl	_sqrt
	mov	x4, x19
	fmov	s1, s0
	b	LBB0_14
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_FLT_EPSILON,4,2                ; @FLT_EPSILON
	.no_dead_strip	_extract_m8_i16
.subsections_via_symbols
