	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_nm256_load_coefficient
_snd_nm256_load_coefficient:            ## @snd_nm256_load_coefficient
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %ebx
	movl	%esi, %r14d
	movq	%rdi, %r15
	movq	_SNDRV_PCM_STREAM_CAPTURE@GOTPCREL(%rip), %r13
	cmpl	%esi, (%r13)
	movq	_NM_PLAYBACK_ENABLE_REG@GOTPCREL(%rip), %rax
	cmoveq	_NM_RECORD_ENABLE_REG@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	_NM_PLAYBACK_REG_OFFSET@GOTPCREL(%rip), %rax
	cmoveq	_NM_RECORD_REG_OFFSET@GOTPCREL(%rip), %rax
	movq	_NM_COEFF_START_OFFSET@GOTPCREL(%rip), %rcx
	movq	(%rax), %r12
	addq	(%rcx), %r12
	callq	_snd_nm256_readb
	testb	$1, %al
	jne	LBB0_4
## %bb.1:
	andl	$7, %ebx
	movq	%r13, %rax
	leal	8(%rbx), %r13d
	cmpl	%r14d, (%rax)
	cmovnel	%ebx, %r13d
	cmpl	$0, 16(%r15)
	je	LBB0_5
## %bb.2:
	cmpl	$0, (%r15)
	je	LBB0_6
## %bb.3:
	movq	8(%r15), %rbx
	movl	%r13d, %edi
	callq	_snd_nm256_get_start_offset
	movq	_coefficient_sizes@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	%r13d, %edx
	movq	%rbx, %rsi
	addq	%rax, %rsi
	movq	(%rcx,%rdx,8), %rbx
	addq	%rsi, %rbx
	movq	%rsi, %rdx
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_snd_nm256_writel
	movq	_SNDRV_PCM_STREAM_PLAYBACK@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	cmpl	%r14d, (%rax)
	sete	%cl
	addq	$4, %r12
	subq	%rcx, %rbx
	movq	%r15, %rdi
	movq	%r12, %rsi
	movq	%rbx, %rdx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_snd_nm256_writel               ## TAILCALL
LBB0_4:
	leaq	L_.str(%rip), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_snd_printd                     ## TAILCALL
LBB0_5:
	movq	%r15, %rdi
	movl	%r14d, %esi
	movq	%r12, %rdx
	movl	%r13d, %ecx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_snd_nm256_load_one_coefficient ## TAILCALL
LBB0_6:
	movq	_coefficients@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	8(%r15), %rdx
	movq	_NM_TOTAL_COEFF_COUNT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	shll	$2, %ecx
	movq	%r15, %rdi
	callq	_snd_nm256_write_buffer
	movl	$1, (%r15)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SNDRV_PCM_STREAM_CAPTURE,4,2   ## @SNDRV_PCM_STREAM_CAPTURE
	.comm	_NM_RECORD_ENABLE_REG,8,3       ## @NM_RECORD_ENABLE_REG
	.comm	_NM_PLAYBACK_ENABLE_REG,8,3     ## @NM_PLAYBACK_ENABLE_REG
	.comm	_NM_COEFF_START_OFFSET,8,3      ## @NM_COEFF_START_OFFSET
	.comm	_NM_RECORD_REG_OFFSET,8,3       ## @NM_RECORD_REG_OFFSET
	.comm	_NM_PLAYBACK_REG_OFFSET,8,3     ## @NM_PLAYBACK_REG_OFFSET
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"NM256: Engine was enabled while loading coefficients!\n"

	.comm	_coefficients,4,2               ## @coefficients
	.comm	_NM_TOTAL_COEFF_COUNT,4,2       ## @NM_TOTAL_COEFF_COUNT
	.comm	_coefficient_sizes,8,3          ## @coefficient_sizes
	.comm	_SNDRV_PCM_STREAM_PLAYBACK,4,2  ## @SNDRV_PCM_STREAM_PLAYBACK
	.no_dead_strip	_snd_nm256_load_coefficient
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function snd_nm256_load_coefficient
_snd_nm256_load_coefficient:            ; @snd_nm256_load_coefficient
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x22, x2
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x23, _SNDRV_PCM_STREAM_CAPTURE@GOTPAGE
Lloh1:
	ldr	x23, [x23, _SNDRV_PCM_STREAM_CAPTURE@GOTPAGEOFF]
	ldr	w8, [x23]
Lloh2:
	adrp	x9, _NM_RECORD_ENABLE_REG@GOTPAGE
Lloh3:
	ldr	x9, [x9, _NM_RECORD_ENABLE_REG@GOTPAGEOFF]
Lloh4:
	adrp	x10, _NM_PLAYBACK_ENABLE_REG@GOTPAGE
Lloh5:
	ldr	x10, [x10, _NM_PLAYBACK_ENABLE_REG@GOTPAGEOFF]
	cmp	w8, w1
	csel	x8, x9, x10, eq
	ldr	x1, [x8]
Lloh6:
	adrp	x8, _NM_COEFF_START_OFFSET@GOTPAGE
Lloh7:
	ldr	x8, [x8, _NM_COEFF_START_OFFSET@GOTPAGEOFF]
Lloh8:
	ldr	x21, [x8]
Lloh9:
	adrp	x8, _NM_RECORD_REG_OFFSET@GOTPAGE
Lloh10:
	ldr	x8, [x8, _NM_RECORD_REG_OFFSET@GOTPAGEOFF]
Lloh11:
	adrp	x9, _NM_PLAYBACK_REG_OFFSET@GOTPAGE
Lloh12:
	ldr	x9, [x9, _NM_PLAYBACK_REG_OFFSET@GOTPAGEOFF]
	csel	x8, x8, x9, eq
	ldr	x24, [x8]
	bl	_snd_nm256_readb
	tbnz	w0, #0, LBB0_4
; %bb.1:
	add	x21, x24, x21
	and	w8, w22, #0x7
	ldr	w9, [x23]
	mov	w10, #8
	bfxil	w10, w22, #0, #3
	cmp	w9, w20
	csel	w22, w10, w8, eq
	ldr	w8, [x19, #16]
	cbz	w8, LBB0_5
; %bb.2:
	ldr	w8, [x19]
	cbz	w8, LBB0_6
; %bb.3:
	ldr	x23, [x19, #8]
	mov	x0, x22
	bl	_snd_nm256_get_start_offset
Lloh13:
	adrp	x8, _coefficient_sizes@GOTPAGE
Lloh14:
	ldr	x8, [x8, _coefficient_sizes@GOTPAGEOFF]
Lloh15:
	ldr	x8, [x8]
	ldr	x24, [x8, w22, uxtw #3]
	add	x22, x0, x23
	mov	x0, x19
	mov	x1, x21
	mov	x2, x22
	bl	_snd_nm256_writel
Lloh16:
	adrp	x8, _SNDRV_PCM_STREAM_PLAYBACK@GOTPAGE
Lloh17:
	ldr	x8, [x8, _SNDRV_PCM_STREAM_PLAYBACK@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	cmp	w8, w20
	cset	w8, eq
	add	x1, x21, #4
	add	x9, x22, x24
	sub	x2, x9, x8
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_snd_nm256_writel
LBB0_4:
Lloh19:
	adrp	x0, l_.str@PAGE
Lloh20:
	add	x0, x0, l_.str@PAGEOFF
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_snd_printd
LBB0_5:
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	mov	x3, x22
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_snd_nm256_load_one_coefficient
LBB0_6:
Lloh21:
	adrp	x8, _coefficients@GOTPAGE
Lloh22:
	ldr	x8, [x8, _coefficients@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	ldr	x2, [x19, #8]
Lloh24:
	adrp	x8, _NM_TOTAL_COEFF_COUNT@GOTPAGE
Lloh25:
	ldr	x8, [x8, _NM_TOTAL_COEFF_COUNT@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	lsl	w3, w8, #2
	mov	x0, x19
	bl	_snd_nm256_write_buffer
	mov	w8, #1
	str	w8, [x19]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_SNDRV_PCM_STREAM_CAPTURE,4,2   ; @SNDRV_PCM_STREAM_CAPTURE
	.comm	_NM_RECORD_ENABLE_REG,8,3       ; @NM_RECORD_ENABLE_REG
	.comm	_NM_PLAYBACK_ENABLE_REG,8,3     ; @NM_PLAYBACK_ENABLE_REG
	.comm	_NM_COEFF_START_OFFSET,8,3      ; @NM_COEFF_START_OFFSET
	.comm	_NM_RECORD_REG_OFFSET,8,3       ; @NM_RECORD_REG_OFFSET
	.comm	_NM_PLAYBACK_REG_OFFSET,8,3     ; @NM_PLAYBACK_REG_OFFSET
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"NM256: Engine was enabled while loading coefficients!\n"

	.comm	_coefficients,4,2               ; @coefficients
	.comm	_NM_TOTAL_COEFF_COUNT,4,2       ; @NM_TOTAL_COEFF_COUNT
	.comm	_coefficient_sizes,8,3          ; @coefficient_sizes
	.comm	_SNDRV_PCM_STREAM_PLAYBACK,4,2  ; @SNDRV_PCM_STREAM_PLAYBACK
	.no_dead_strip	_snd_nm256_load_coefficient
.subsections_via_symbols
