	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_vt1724_ac97_write
_snd_vt1724_ac97_write:                 ## @snd_vt1724_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, %r14d
	movl	%esi, %r15d
	movq	%rdi, %r13
	movq	8(%rdi), %r12
	movq	%r12, %rdi
	callq	_snd_vt1724_ac97_ready
	movq	_VT1724_AC97_ID_MASK@GOTPCREL(%rip), %rcx
	movb	(%rcx), %bl
	notb	%bl
	andb	%al, %bl
	orb	(%r13), %bl
	movq	_AC97_INDEX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_ICEMT1724
	movzbl	%r15b, %edi
	movl	%eax, %esi
	callq	_outb
	movq	_AC97_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_ICEMT1724
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_outw
	movq	_VT1724_AC97_WRITE@GOTPCREL(%rip), %r14
	orb	(%r14), %bl
	movq	_AC97_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_ICEMT1724
	movzbl	%bl, %edi
	movl	%eax, %esi
	callq	_outb
	movzbl	(%r14), %esi
	movq	%r12, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_snd_vt1724_ac97_wait_bit       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_VT1724_AC97_ID_MASK,1,0        ## @VT1724_AC97_ID_MASK
	.comm	_AC97_INDEX,4,2                 ## @AC97_INDEX
	.comm	_AC97_DATA,4,2                  ## @AC97_DATA
	.comm	_VT1724_AC97_WRITE,1,0          ## @VT1724_AC97_WRITE
	.comm	_AC97_CMD,4,2                   ## @AC97_CMD
	.no_dead_strip	_snd_vt1724_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_vt1724_ac97_write
_snd_vt1724_ac97_write:                 ; @snd_vt1724_ac97_write
	.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
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	ldr	x22, [x0, #8]
	mov	x0, x22
	bl	_snd_vt1724_ac97_ready
Lloh0:
	adrp	x8, _VT1724_AC97_ID_MASK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VT1724_AC97_ID_MASK@GOTPAGEOFF]
	ldrb	w8, [x8]
	eor	w8, w8, #0xff
	and	w8, w0, w8
	ldrb	w9, [x21]
	orr	w21, w8, w9
Lloh2:
	adrp	x8, _AC97_INDEX@GOTPAGE
Lloh3:
	ldr	x8, [x8, _AC97_INDEX@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_ICEMT1724
	mov	x1, x0
	and	w0, w20, #0xff
	bl	_outb
Lloh5:
	adrp	x8, _AC97_DATA@GOTPAGE
Lloh6:
	ldr	x8, [x8, _AC97_DATA@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_ICEMT1724
	mov	x1, x0
	mov	x0, x19
	bl	_outw
Lloh8:
	adrp	x20, _VT1724_AC97_WRITE@GOTPAGE
Lloh9:
	ldr	x20, [x20, _VT1724_AC97_WRITE@GOTPAGEOFF]
	ldrb	w8, [x20]
	orr	w19, w21, w8
Lloh10:
	adrp	x8, _AC97_CMD@GOTPAGE
Lloh11:
	ldr	x8, [x8, _AC97_CMD@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_ICEMT1724
	mov	x1, x0
	mov	x0, x19
	bl	_outb
	ldrb	w1, [x20]
	mov	x0, x22
	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
	b	_snd_vt1724_ac97_wait_bit
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_VT1724_AC97_ID_MASK,1,0        ; @VT1724_AC97_ID_MASK
	.comm	_AC97_INDEX,4,2                 ; @AC97_INDEX
	.comm	_AC97_DATA,4,2                  ; @AC97_DATA
	.comm	_VT1724_AC97_WRITE,1,0          ; @VT1724_AC97_WRITE
	.comm	_AC97_CMD,4,2                   ; @AC97_CMD
	.no_dead_strip	_snd_vt1724_ac97_write
.subsections_via_symbols
