	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function patch_sigmatel_stac9708
_patch_sigmatel_stac9708:               ## @patch_sigmatel_stac9708
	.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
	movq	%rdi, %r15
	movq	_patch_sigmatel_stac9708_ops@GOTPCREL(%rip), %rax
	movq	%rax, 8(%rdi)
	orb	$16, (%rdi)
	movq	_AC97_SIGMATEL_BIAS2@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	callq	_snd_ac97_read
	movl	%eax, %r14d
	movl	%eax, %ebx
	andl	$32768, %ebx                    ## imm = 0x8000
	movq	_AC97_SIGMATEL_ANALOG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_snd_ac97_read
	orl	%eax, %ebx
	jne	LBB0_2
## %bb.1:
	movq	_AC97_SIGMATEL_CIC1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$43962, %ebx                    ## imm = 0xABBA
	movq	%r15, %rdi
	movl	$43962, %edx                    ## imm = 0xABBA
	callq	_snd_ac97_write_cache
	movl	$7, %r14d
	movq	_AC97_SIGMATEL_BIAS1@GOTPCREL(%rip), %r13
	movl	$4096, %edx                     ## imm = 0x1000
	movq	_AC97_SIGMATEL_CIC2@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_2:
	testl	$32768, %r14d                   ## imm = 0x8000
	je	LBB0_6
## %bb.3:
	testl	%eax, %eax
	jne	LBB0_6
## %bb.4:
	movl	$8, %r14d
	movq	_AC97_SIGMATEL_DAC2INVERT@GOTPCREL(%rip), %r12
	movl	$4097, %ebx                     ## imm = 0x1001
	movq	_AC97_SIGMATEL_CIC2@GOTPCREL(%rip), %r13
	movl	$43962, %edx                    ## imm = 0xABBA
	movq	_AC97_SIGMATEL_CIC1@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_snd_ac97_write_cache
	movl	(%r13), %esi
	movq	%r15, %rdi
	movl	%ebx, %edx
	callq	_snd_ac97_write_cache
	movl	(%r12), %esi
	movq	%r15, %rdi
	movl	%r14d, %edx
	callq	_snd_ac97_write_cache
LBB0_6:
	movq	_AC97_SIGMATEL_MULTICHN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_snd_ac97_write_cache
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_patch_sigmatel_stac9708_ops,4,2 ## @patch_sigmatel_stac9708_ops
	.comm	_AC97_SIGMATEL_BIAS2,4,2        ## @AC97_SIGMATEL_BIAS2
	.comm	_AC97_SIGMATEL_ANALOG,4,2       ## @AC97_SIGMATEL_ANALOG
	.comm	_AC97_SIGMATEL_CIC1,4,2         ## @AC97_SIGMATEL_CIC1
	.comm	_AC97_SIGMATEL_CIC2,4,2         ## @AC97_SIGMATEL_CIC2
	.comm	_AC97_SIGMATEL_BIAS1,4,2        ## @AC97_SIGMATEL_BIAS1
	.comm	_AC97_SIGMATEL_DAC2INVERT,4,2   ## @AC97_SIGMATEL_DAC2INVERT
	.comm	_AC97_SIGMATEL_MULTICHN,4,2     ## @AC97_SIGMATEL_MULTICHN
	.no_dead_strip	_patch_sigmatel_stac9708
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function patch_sigmatel_stac9708
_patch_sigmatel_stac9708:               ; @patch_sigmatel_stac9708
	.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, x0
Lloh0:
	adrp	x8, _patch_sigmatel_stac9708_ops@GOTPAGE
Lloh1:
	ldr	x8, [x8, _patch_sigmatel_stac9708_ops@GOTPAGEOFF]
	str	x8, [x0, #8]
	ldr	w8, [x0]
	orr	w8, w8, #0x10
	str	w8, [x0]
Lloh2:
	adrp	x8, _AC97_SIGMATEL_BIAS2@GOTPAGE
Lloh3:
	ldr	x8, [x8, _AC97_SIGMATEL_BIAS2@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	bl	_snd_ac97_read
	mov	x20, x0
	and	w21, w0, #0x8000
Lloh5:
	adrp	x8, _AC97_SIGMATEL_ANALOG@GOTPAGE
Lloh6:
	ldr	x8, [x8, _AC97_SIGMATEL_ANALOG@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_snd_ac97_read
	orr	w8, w21, w0
	cbnz	w8, LBB0_2
; %bb.1:
Lloh8:
	adrp	x8, _AC97_SIGMATEL_CIC1@GOTPAGE
Lloh9:
	ldr	x8, [x8, _AC97_SIGMATEL_CIC1@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	w21, #43962
	mov	x0, x19
	mov	w2, #43962
	bl	_snd_ac97_write_cache
Lloh11:
	adrp	x22, _AC97_SIGMATEL_BIAS2@GOTPAGE
Lloh12:
	ldr	x22, [x22, _AC97_SIGMATEL_BIAS2@GOTPAGEOFF]
	mov	w20, #7
Lloh13:
	adrp	x23, _AC97_SIGMATEL_BIAS1@GOTPAGE
Lloh14:
	ldr	x23, [x23, _AC97_SIGMATEL_BIAS1@GOTPAGEOFF]
	mov	w2, #4096
Lloh15:
	adrp	x8, _AC97_SIGMATEL_CIC2@GOTPAGE
Lloh16:
	ldr	x8, [x8, _AC97_SIGMATEL_CIC2@GOTPAGEOFF]
	b	LBB0_5
LBB0_2:
	tbz	w20, #15, LBB0_6
; %bb.3:
	cbnz	w0, LBB0_6
; %bb.4:
	mov	w20, #8
Lloh17:
	adrp	x22, _AC97_SIGMATEL_DAC2INVERT@GOTPAGE
Lloh18:
	ldr	x22, [x22, _AC97_SIGMATEL_DAC2INVERT@GOTPAGEOFF]
	mov	w21, #4097
Lloh19:
	adrp	x23, _AC97_SIGMATEL_CIC2@GOTPAGE
Lloh20:
	ldr	x23, [x23, _AC97_SIGMATEL_CIC2@GOTPAGEOFF]
	mov	w2, #43962
Lloh21:
	adrp	x8, _AC97_SIGMATEL_CIC1@GOTPAGE
Lloh22:
	ldr	x8, [x8, _AC97_SIGMATEL_CIC1@GOTPAGEOFF]
LBB0_5:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_snd_ac97_write_cache
	ldr	w1, [x23]
	mov	x0, x19
	mov	x2, x21
	bl	_snd_ac97_write_cache
	ldr	w1, [x22]
	mov	x0, x19
	mov	x2, x20
	bl	_snd_ac97_write_cache
LBB0_6:
Lloh23:
	adrp	x8, _AC97_SIGMATEL_MULTICHN@GOTPAGE
Lloh24:
	ldr	x8, [x8, _AC97_SIGMATEL_MULTICHN@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_snd_ac97_write_cache
	mov	w0, #0
	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 AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_patch_sigmatel_stac9708_ops,4,2 ; @patch_sigmatel_stac9708_ops
	.comm	_AC97_SIGMATEL_BIAS2,4,2        ; @AC97_SIGMATEL_BIAS2
	.comm	_AC97_SIGMATEL_ANALOG,4,2       ; @AC97_SIGMATEL_ANALOG
	.comm	_AC97_SIGMATEL_CIC1,4,2         ; @AC97_SIGMATEL_CIC1
	.comm	_AC97_SIGMATEL_CIC2,4,2         ; @AC97_SIGMATEL_CIC2
	.comm	_AC97_SIGMATEL_BIAS1,4,2        ; @AC97_SIGMATEL_BIAS1
	.comm	_AC97_SIGMATEL_DAC2INVERT,4,2   ; @AC97_SIGMATEL_DAC2INVERT
	.comm	_AC97_SIGMATEL_MULTICHN,4,2     ; @AC97_SIGMATEL_MULTICHN
	.no_dead_strip	_patch_sigmatel_stac9708
.subsections_via_symbols
