	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stk1160_write_ac97
_stk1160_write_ac97:                    ## @stk1160_write_ac97
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movl	%esi, %edx
	movq	%rdi, %rbx
	movq	_STK1160_AC97_ADDR@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	callq	_stk1160_write_reg
	movq	_STK1160_AC97_CMD@GOTPCREL(%rip), %r14
	movq	(%r14), %rsi
	movzbl	%r15b, %edx
	movq	%rbx, %rdi
	callq	_stk1160_write_reg
	movq	(%r14), %rsi
	incq	%rsi
	movl	%r15d, %eax
	movzbl	%ah, %edx
	movq	%rbx, %rdi
	callq	_stk1160_write_reg
	movq	_STK1160_AC97CTL_0@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%rbx, %rdi
	movl	$140, %edx
	callq	_stk1160_write_reg
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_stk1160_ac97_wait_transfer_complete ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_STK1160_AC97_ADDR,8,3          ## @STK1160_AC97_ADDR
	.comm	_STK1160_AC97_CMD,8,3           ## @STK1160_AC97_CMD
	.comm	_STK1160_AC97CTL_0,8,3          ## @STK1160_AC97CTL_0
	.no_dead_strip	_stk1160_write_ac97
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stk1160_write_ac97
_stk1160_write_ac97:                    ; @stk1160_write_ac97
	.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	x2, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _STK1160_AC97_ADDR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _STK1160_AC97_ADDR@GOTPAGEOFF]
Lloh2:
	ldr	x1, [x8]
	bl	_stk1160_write_reg
Lloh3:
	adrp	x21, _STK1160_AC97_CMD@GOTPAGE
Lloh4:
	ldr	x21, [x21, _STK1160_AC97_CMD@GOTPAGEOFF]
	ldr	x1, [x21]
	and	w2, w19, #0xff
	mov	x0, x20
	bl	_stk1160_write_reg
	ldr	x8, [x21]
	add	x1, x8, #1
	ubfx	w2, w19, #8, #8
	mov	x0, x20
	bl	_stk1160_write_reg
Lloh5:
	adrp	x8, _STK1160_AC97CTL_0@GOTPAGE
Lloh6:
	ldr	x8, [x8, _STK1160_AC97CTL_0@GOTPAGEOFF]
Lloh7:
	ldr	x1, [x8]
	mov	x0, x20
	mov	w2, #140
	bl	_stk1160_write_reg
	mov	x0, x20
	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	_stk1160_ac97_wait_transfer_complete
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_STK1160_AC97_ADDR,8,3          ; @STK1160_AC97_ADDR
	.comm	_STK1160_AC97_CMD,8,3           ; @STK1160_AC97_CMD
	.comm	_STK1160_AC97CTL_0,8,3          ; @STK1160_AC97CTL_0
	.no_dead_strip	_stk1160_write_ac97
.subsections_via_symbols
