	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function aureon_ac97_write
_aureon_ac97_write:                     ## @aureon_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, %r12
	movq	(%rdi), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	callq	_snd_ice1712_gpio_read
	andl	$-256, %eax
	movl	%r15d, %ebx
	andl	$127, %ebx
	orl	%eax, %ebx
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_snd_ice1712_gpio_write
	movl	$10, %edi
	callq	_udelay
	movq	_AUREON_AC97_ADDR@GOTPCREL(%rip), %r13
	orl	(%r13), %ebx
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_snd_ice1712_gpio_write
	movl	$10, %edi
	callq	_udelay
	movl	(%r13), %r13d
	notl	%r13d
	andl	%ebx, %r13d
	movq	%r12, %rdi
	movl	%r13d, %esi
	callq	_snd_ice1712_gpio_write
	movl	$10, %edi
	callq	_udelay
	movq	_AUREON_AC97_DATA_MASK@GOTPCREL(%rip), %rax
	movl	%r14d, %ebx
	xorl	%r13d, %ebx
	andl	(%rax), %ebx
	xorl	%r13d, %ebx
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_snd_ice1712_gpio_write
	movl	$10, %edi
	callq	_udelay
	movq	_AUREON_AC97_DATA_LOW@GOTPCREL(%rip), %r13
	orl	(%r13), %ebx
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_snd_ice1712_gpio_write
	movl	$10, %edi
	callq	_udelay
	movl	(%r13), %r13d
	notl	%r13d
	andl	%ebx, %r13d
	movq	%r12, %rdi
	movl	%r13d, %esi
	callq	_snd_ice1712_gpio_write
	movl	$10, %edi
	callq	_udelay
	movl	%r14d, %ebx
	shrl	$8, %ebx
	xorl	%r13d, %ebx
	movq	_AUREON_AC97_DATA_MASK@GOTPCREL(%rip), %rax
	andl	(%rax), %ebx
	xorl	%r13d, %ebx
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_snd_ice1712_gpio_write
	movl	$10, %edi
	callq	_udelay
	movq	_AUREON_AC97_DATA_HIGH@GOTPCREL(%rip), %r13
	orl	(%r13), %ebx
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_snd_ice1712_gpio_write
	movl	$10, %edi
	callq	_udelay
	movl	(%r13), %r13d
	notl	%r13d
	andl	%ebx, %r13d
	movq	%r12, %rdi
	movl	%r13d, %esi
	callq	_snd_ice1712_gpio_write
	movl	$10, %edi
	callq	_udelay
	movq	_AUREON_AC97_COMMIT@GOTPCREL(%rip), %rbx
	orl	(%rbx), %r13d
	movq	%r12, %rdi
	movl	%r13d, %esi
	callq	_snd_ice1712_gpio_write
	movl	$10, %edi
	callq	_udelay
	movl	(%rbx), %esi
	notl	%esi
	andl	%r13d, %esi
	movq	%r12, %rdi
	callq	_snd_ice1712_gpio_write
	movl	$10, %edi
	callq	_udelay
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	andl	$126, %r15d
	movw	%r14w, (%rax,%r15)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AUREON_AC97_ADDR,4,2           ## @AUREON_AC97_ADDR
	.comm	_AUREON_AC97_DATA_MASK,4,2      ## @AUREON_AC97_DATA_MASK
	.comm	_AUREON_AC97_DATA_LOW,4,2       ## @AUREON_AC97_DATA_LOW
	.comm	_AUREON_AC97_DATA_HIGH,4,2      ## @AUREON_AC97_DATA_HIGH
	.comm	_AUREON_AC97_COMMIT,4,2         ## @AUREON_AC97_COMMIT
	.no_dead_strip	_aureon_ac97_write
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function aureon_ac97_write
_aureon_ac97_write:                     ; @aureon_ac97_write
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	ldr	x23, [x0]
	bl	_snd_ice1712_gpio_read
	and	w22, w0, #0xffffff00
	bfxil	w22, w20, #0, #7
	mov	x0, x21
	mov	x1, x22
	bl	_snd_ice1712_gpio_write
	mov	w0, #10
	bl	_udelay
Lloh0:
	adrp	x24, _AUREON_AC97_ADDR@GOTPAGE
Lloh1:
	ldr	x24, [x24, _AUREON_AC97_ADDR@GOTPAGEOFF]
	ldr	w8, [x24]
	orr	w22, w8, w22
	mov	x0, x21
	mov	x1, x22
	bl	_snd_ice1712_gpio_write
	mov	w0, #10
	bl	_udelay
	ldr	w8, [x24]
	bic	w22, w22, w8
	mov	x0, x21
	mov	x1, x22
	bl	_snd_ice1712_gpio_write
	mov	w0, #10
	bl	_udelay
Lloh2:
	adrp	x24, _AUREON_AC97_DATA_MASK@GOTPAGE
Lloh3:
	ldr	x24, [x24, _AUREON_AC97_DATA_MASK@GOTPAGEOFF]
	ldr	w8, [x24]
	bic	w9, w22, w8
	and	w8, w8, w19
	orr	w22, w9, w8
	mov	x0, x21
	mov	x1, x22
	bl	_snd_ice1712_gpio_write
	mov	w0, #10
	bl	_udelay
Lloh4:
	adrp	x25, _AUREON_AC97_DATA_LOW@GOTPAGE
Lloh5:
	ldr	x25, [x25, _AUREON_AC97_DATA_LOW@GOTPAGEOFF]
	ldr	w8, [x25]
	orr	w22, w8, w22
	mov	x0, x21
	mov	x1, x22
	bl	_snd_ice1712_gpio_write
	mov	w0, #10
	bl	_udelay
	ldr	w8, [x25]
	bic	w22, w22, w8
	mov	x0, x21
	mov	x1, x22
	bl	_snd_ice1712_gpio_write
	mov	w0, #10
	bl	_udelay
	ldr	w8, [x24]
	bic	w9, w22, w8
	and	w8, w8, w19, lsr #8
	orr	w22, w9, w8
	mov	x0, x21
	mov	x1, x22
	bl	_snd_ice1712_gpio_write
	mov	w0, #10
	bl	_udelay
Lloh6:
	adrp	x24, _AUREON_AC97_DATA_HIGH@GOTPAGE
Lloh7:
	ldr	x24, [x24, _AUREON_AC97_DATA_HIGH@GOTPAGEOFF]
	ldr	w8, [x24]
	orr	w22, w8, w22
	mov	x0, x21
	mov	x1, x22
	bl	_snd_ice1712_gpio_write
	mov	w0, #10
	bl	_udelay
	ldr	w8, [x24]
	bic	w22, w22, w8
	mov	x0, x21
	mov	x1, x22
	bl	_snd_ice1712_gpio_write
	mov	w0, #10
	bl	_udelay
Lloh8:
	adrp	x24, _AUREON_AC97_COMMIT@GOTPAGE
Lloh9:
	ldr	x24, [x24, _AUREON_AC97_COMMIT@GOTPAGEOFF]
	ldr	w8, [x24]
	orr	w22, w8, w22
	mov	x0, x21
	mov	x1, x22
	bl	_snd_ice1712_gpio_write
	mov	w0, #10
	bl	_udelay
	ldr	w8, [x24]
	bic	w1, w22, w8
	mov	x0, x21
	bl	_snd_ice1712_gpio_write
	mov	w0, #10
	bl	_udelay
	ldr	x8, [x23]
	and	w9, w20, #0x7e
	strh	w19, [x8, w9, uxtw]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_AUREON_AC97_ADDR,4,2           ; @AUREON_AC97_ADDR
	.comm	_AUREON_AC97_DATA_MASK,4,2      ; @AUREON_AC97_DATA_MASK
	.comm	_AUREON_AC97_DATA_LOW,4,2       ; @AUREON_AC97_DATA_LOW
	.comm	_AUREON_AC97_DATA_HIGH,4,2      ; @AUREON_AC97_DATA_HIGH
	.comm	_AUREON_AC97_COMMIT,4,2         ; @AUREON_AC97_COMMIT
	.no_dead_strip	_aureon_ac97_write
.subsections_via_symbols
