	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_nm256_get_start_offset
_snd_nm256_get_start_offset:            ## @snd_nm256_get_start_offset
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	testl	%edi, %edi
	jle	LBB0_1
## %bb.2:
	movq	_coefficient_sizes@GOTPCREL(%rip), %rax
	movq	(%rax), %r10
	movl	%edi, %edx
	xorl	%eax, %eax
	cmpl	$4, %edi
	jae	LBB0_3
LBB0_14:
	incq	%rdx
	.p2align	4, 0x90
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	leal	-2(%rdx), %ecx
	addl	(%r10,%rcx,8), %eax
	decq	%rdx
	cmpq	$1, %rdx
	ja	LBB0_15
LBB0_16:
	popq	%rbp
	retq
LBB0_1:
	xorl	%eax, %eax
	popq	%rbp
	retq
LBB0_3:
	leaq	-1(%rdx), %rsi
	decl	%edi
	cmpl	%esi, %edi
	jb	LBB0_14
## %bb.4:
	movq	%rsi, %rcx
	shrq	$32, %rcx
	jne	LBB0_14
## %bb.5:
	movl	%edx, %r8d
	andl	$-4, %r8d
	leaq	-4(%r8), %rax
	movq	%rax, %r9
	shrq	$2, %r9
	incq	%r9
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	movq	%r9, %rax
	andq	$-2, %rax
	movl	$4294967291, %ecx               ## imm = 0xFFFFFFFB
	addq	%rdx, %rcx
	pxor	%xmm0, %xmm0
	movl	$1, %r11d
	pxor	%xmm1, %xmm1
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movl	%esi, %edi
	movdqu	-24(%r10,%rdi,8), %xmm2
	movdqu	-8(%r10,%rdi,8), %xmm3
	pshufd	$226, %xmm3, %xmm3              ## xmm3 = xmm3[2,0,2,3]
	paddd	%xmm0, %xmm3
	pshufd	$226, %xmm2, %xmm2              ## xmm2 = xmm2[2,0,2,3]
	paddd	%xmm1, %xmm2
	movl	%ecx, %edi
	movdqu	-24(%r10,%rdi,8), %xmm1
	movdqu	-8(%r10,%rdi,8), %xmm0
	pshufd	$226, %xmm0, %xmm0              ## xmm0 = xmm0[2,0,2,3]
	paddd	%xmm3, %xmm0
	pshufd	$226, %xmm1, %xmm1              ## xmm1 = xmm1[2,0,2,3]
	paddd	%xmm2, %xmm1
	addq	$8, %r11
	addq	$-8, %rcx
	addq	$-8, %rsi
	addq	$-2, %rax
	jne	LBB0_8
## %bb.9:
	negq	%r11
	testb	$1, %r9b
	je	LBB0_12
LBB0_11:
	addl	%edx, %r11d
	movdqu	-24(%r10,%r11,8), %xmm2
	movdqu	-8(%r10,%r11,8), %xmm3
	pshufd	$226, %xmm3, %xmm3              ## xmm3 = xmm3[2,0,2,3]
	paddd	%xmm3, %xmm0
	pshufd	$226, %xmm2, %xmm2              ## xmm2 = xmm2[2,0,2,3]
	paddd	%xmm2, %xmm1
LBB0_12:
	paddd	%xmm1, %xmm0
	pshufd	$85, %xmm0, %xmm1               ## xmm1 = xmm0[1,1,1,1]
	paddd	%xmm0, %xmm1
	movd	%xmm1, %eax
	cmpq	%rdx, %r8
	je	LBB0_16
## %bb.13:
	andl	$3, %edx
	jmp	LBB0_14
LBB0_6:
	pxor	%xmm0, %xmm0
	movq	$-1, %r11
	pxor	%xmm1, %xmm1
	testb	$1, %r9b
	jne	LBB0_11
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_coefficient_sizes,8,3          ## @coefficient_sizes
	.no_dead_strip	_snd_nm256_get_start_offset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function snd_nm256_get_start_offset
_snd_nm256_get_start_offset:            ; @snd_nm256_get_start_offset
	.cfi_startproc
; %bb.0:
	subs	w10, w0, #1
	b.lt	LBB0_7
; %bb.1:
Lloh0:
	adrp	x8, _coefficient_sizes@GOTPAGE
Lloh1:
	ldr	x8, [x8, _coefficient_sizes@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	mov	w9, w0
	cmp	w0, #8
	b.hs	LBB0_8
; %bb.2:
	mov	w0, #0
LBB0_3:
	mov	x10, x9
LBB0_4:
	add	x9, x10, #1
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	sub	w10, w9, #2
	ldr	x10, [x8, w10, uxtw #3]
	add	w0, w0, w10
	sub	x9, x9, #1
	cmp	x9, #1
	b.hi	LBB0_5
LBB0_6:
	ret
LBB0_7:
	mov	w0, #0
	ret
LBB0_8:
	mov	w0, #0
	sub	x11, x9, #1
	cmp	w10, w11
	b.lo	LBB0_3
; %bb.9:
	lsr	x10, x11, #32
	cbnz	x10, LBB0_3
; %bb.10:
	and	x12, x9, #0xfffffff8
	movi.2d	v0, #0000000000000000
	and	x10, x9, #0x7
	mov	x13, x12
	movi.2d	v1, #0000000000000000
	movi.2d	v2, #0000000000000000
	movi.2d	v3, #0000000000000000
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	add	x14, x8, w11, uxtw #3
	ldur	q4, [x14, #-8]
	ext.16b	v4, v4, v4, #8
	ldur	q5, [x14, #-24]
	ext.16b	v5, v5, v5, #8
	ldur	q6, [x14, #-40]
	ext.16b	v6, v6, v6, #8
	ldur	q7, [x14, #-56]
	ext.16b	v7, v7, v7, #8
	xtn.2s	v4, v4
	xtn.2s	v5, v5
	xtn.2s	v6, v6
	xtn.2s	v7, v7
	add.2s	v0, v0, v4
	add.2s	v1, v1, v5
	add.2s	v2, v2, v6
	add.2s	v3, v3, v7
	sub	x11, x11, #8
	subs	x13, x13, #8
	b.ne	LBB0_11
; %bb.12:
	add.2s	v0, v1, v0
	add.2s	v0, v2, v0
	add.2s	v0, v3, v0
	addp.2s	v0, v0, v0
	fmov	w0, s0
	cmp	x12, x9
	b.eq	LBB0_6
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_coefficient_sizes,8,3          ; @coefficient_sizes
	.no_dead_strip	_snd_nm256_get_start_offset
.subsections_via_symbols
