	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_nm256_ac97_write
_snd_nm256_ac97_write:                  ## @snd_nm256_ac97_write
	.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, %r13d
	movl	%esi, %ebx
	movq	(%rdi), %r14
	movl	%esi, %edi
	callq	_nm256_ac97_idx
	testl	%eax, %eax
	js	LBB0_4
## %bb.1:
	movl	%eax, %r15d
	movzwl	%bx, %r12d
	addq	8(%r14), %r12
	movq	%r14, %rdi
	callq	_snd_nm256_ac97_ready
	movl	%r13d, %ebx
	movzwl	%bx, %r13d
	movq	%r14, %rdi
	movq	%r12, %rsi
	movl	%r13d, %edx
	callq	_snd_nm256_writew
	movl	$1, %edi
	callq	_msleep
	movq	%r14, %rdi
	callq	_snd_nm256_ac97_ready
	testq	%rax, %rax
	jne	LBB0_3
## %bb.2:
	movq	%r14, %rdi
	movq	%r12, %rsi
	movl	%r13d, %edx
	callq	_snd_nm256_writew
	movl	$1, %edi
	callq	_msleep
	movq	%r14, %rdi
	callq	_snd_nm256_ac97_ready
	testq	%rax, %rax
	je	LBB0_5
LBB0_3:
	movq	(%r14), %rax
	movl	%r15d, %ecx
	movw	%bx, (%rax,%rcx,2)
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	leaq	L_.str(%rip), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_snd_printd                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"nm256: ac97 codec not ready..\n"

	.no_dead_strip	_snd_nm256_ac97_write
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function snd_nm256_ac97_write
_snd_nm256_ac97_write:                  ; @snd_nm256_ac97_write
	.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	x19, x2
	mov	x22, x1
	ldr	x20, [x0]
	mov	x0, x1
	bl	_nm256_ac97_idx
	tbnz	w0, #31, LBB0_4
; %bb.1:
	mov	x21, x0
	ldr	x23, [x20, #8]
	mov	x0, x20
	bl	_snd_nm256_ac97_ready
	add	x22, x23, w22, uxtw
	mov	x0, x20
	mov	x1, x22
	mov	x2, x19
	bl	_snd_nm256_writew
	mov	w0, #1
	bl	_msleep
	mov	x0, x20
	bl	_snd_nm256_ac97_ready
	cbnz	x0, LBB0_3
; %bb.2:
	mov	x0, x20
	mov	x1, x22
	mov	x2, x19
	bl	_snd_nm256_writew
	mov	w0, #1
	bl	_msleep
	mov	x0, x20
	bl	_snd_nm256_ac97_ready
	cbz	x0, LBB0_5
LBB0_3:
	ldr	x8, [x20]
	strh	w19, [x8, w21, uxtw #1]
LBB0_4:
	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
LBB0_5:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	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
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"nm256: ac97 codec not ready..\n"

	.no_dead_strip	_snd_nm256_ac97_write
.subsections_via_symbols
