	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function patch_sigmatel_stac9758
_patch_sigmatel_stac9758:               ## @patch_sigmatel_stac9758
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	leaq	_patch_sigmatel_stac9758.def_regs(%rip), %r14
	cmpq	$0, 24(%rdi)
	je	LBB0_3
## %bb.1:
	cmpl	$4219, (%rbx)                   ## imm = 0x107B
	jne	LBB0_3
## %bb.2:
	cmpl	$1537, 4(%rbx)                  ## imm = 0x601
	leaq	_patch_sigmatel_stac9758.m675_regs(%rip), %rax
	leaq	_patch_sigmatel_stac9758.def_regs(%rip), %r14
	cmoveq	%rax, %r14
LBB0_3:
	movq	_patch_sigmatel_stac9758_ops@GOTPCREL(%rip), %rax
	movq	%rax, 16(%rbx)
	movq	_AC97_INT_PAGING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_AC97_PAGE_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_AC97_PAGE_VENDOR@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	callq	_snd_ac97_update_bits
	movzwl	(%r14), %edx
	movq	%rbx, %rdi
	movl	$129, %esi
	callq	_snd_ac97_write_cache
	movzwl	2(%r14), %edx
	movq	%rbx, %rdi
	movl	$130, %esi
	callq	_snd_ac97_write_cache
	movzwl	4(%r14), %edx
	movq	%rbx, %rdi
	movl	$131, %esi
	callq	_snd_ac97_write_cache
	movzwl	6(%r14), %edx
	movq	%rbx, %rdi
	movl	$128, %esi
	callq	_snd_ac97_write_cache
	movq	_AC97_STEREO_MUTES@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 8(%rbx)
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	1                               ## @patch_sigmatel_stac9758.def_regs
_patch_sigmatel_stac9758.def_regs:
	.short	55188                           ## 0xd794
	.short	8193                            ## 0x2001
	.short	513                             ## 0x201
	.short	64                              ## 0x40

	.p2align	1                               ## @patch_sigmatel_stac9758.m675_regs
_patch_sigmatel_stac9758.m675_regs:
	.short	64624                           ## 0xfc70
	.short	8450                            ## 0x2102
	.short	515                             ## 0x203
	.short	65                              ## 0x41

	.comm	_patch_sigmatel_stac9758_ops,4,2 ## @patch_sigmatel_stac9758_ops
	.comm	_AC97_INT_PAGING,4,2            ## @AC97_INT_PAGING
	.comm	_AC97_PAGE_MASK,4,2             ## @AC97_PAGE_MASK
	.comm	_AC97_PAGE_VENDOR,4,2           ## @AC97_PAGE_VENDOR
	.comm	_AC97_STEREO_MUTES,4,2          ## @AC97_STEREO_MUTES
	.no_dead_strip	_patch_sigmatel_stac9758
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function patch_sigmatel_stac9758
_patch_sigmatel_stac9758:               ; @patch_sigmatel_stac9758
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	x8, [x0, #24]
	cbz	x8, LBB0_3
; %bb.1:
	ldr	w8, [x19]
Lloh0:
	adrp	x20, _patch_sigmatel_stac9758.def_regs@PAGE
Lloh1:
	add	x20, x20, _patch_sigmatel_stac9758.def_regs@PAGEOFF
	mov	w9, #4219
	cmp	w8, w9
	b.ne	LBB0_4
; %bb.2:
	ldr	w8, [x19, #4]
Lloh2:
	adrp	x9, _patch_sigmatel_stac9758.m675_regs@PAGE
Lloh3:
	add	x9, x9, _patch_sigmatel_stac9758.m675_regs@PAGEOFF
	cmp	w8, #1537
	csel	x20, x9, x20, eq
	b	LBB0_4
LBB0_3:
Lloh4:
	adrp	x20, _patch_sigmatel_stac9758.def_regs@PAGE
Lloh5:
	add	x20, x20, _patch_sigmatel_stac9758.def_regs@PAGEOFF
LBB0_4:
Lloh6:
	adrp	x8, _patch_sigmatel_stac9758_ops@GOTPAGE
Lloh7:
	ldr	x8, [x8, _patch_sigmatel_stac9758_ops@GOTPAGEOFF]
	str	x8, [x19, #16]
Lloh8:
	adrp	x8, _AC97_INT_PAGING@GOTPAGE
Lloh9:
	ldr	x8, [x8, _AC97_INT_PAGING@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
Lloh11:
	adrp	x8, _AC97_PAGE_MASK@GOTPAGE
Lloh12:
	ldr	x8, [x8, _AC97_PAGE_MASK@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
Lloh14:
	adrp	x8, _AC97_PAGE_VENDOR@GOTPAGE
Lloh15:
	ldr	x8, [x8, _AC97_PAGE_VENDOR@GOTPAGEOFF]
Lloh16:
	ldr	w3, [x8]
	mov	x0, x19
	bl	_snd_ac97_update_bits
	ldrh	w2, [x20]
	mov	x0, x19
	mov	w1, #129
	bl	_snd_ac97_write_cache
	ldrh	w2, [x20, #2]
	mov	x0, x19
	mov	w1, #130
	bl	_snd_ac97_write_cache
	ldrh	w2, [x20, #4]
	mov	x0, x19
	mov	w1, #131
	bl	_snd_ac97_write_cache
	ldrh	w2, [x20, #6]
	mov	x0, x19
	mov	w1, #128
	bl	_snd_ac97_write_cache
Lloh17:
	adrp	x8, _AC97_STEREO_MUTES@GOTPAGE
Lloh18:
	ldr	x8, [x8, _AC97_STEREO_MUTES@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	ldr	w9, [x19, #8]
	orr	w8, w9, w8
	str	w8, [x19, #8]
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
	.p2align	1                               ; @patch_sigmatel_stac9758.def_regs
_patch_sigmatel_stac9758.def_regs:
	.short	55188                           ; 0xd794
	.short	8193                            ; 0x2001
	.short	513                             ; 0x201
	.short	64                              ; 0x40

	.p2align	1                               ; @patch_sigmatel_stac9758.m675_regs
_patch_sigmatel_stac9758.m675_regs:
	.short	64624                           ; 0xfc70
	.short	8450                            ; 0x2102
	.short	515                             ; 0x203
	.short	65                              ; 0x41

	.comm	_patch_sigmatel_stac9758_ops,4,2 ; @patch_sigmatel_stac9758_ops
	.comm	_AC97_INT_PAGING,4,2            ; @AC97_INT_PAGING
	.comm	_AC97_PAGE_MASK,4,2             ; @AC97_PAGE_MASK
	.comm	_AC97_PAGE_VENDOR,4,2           ; @AC97_PAGE_VENDOR
	.comm	_AC97_STEREO_MUTES,4,2          ; @AC97_STEREO_MUTES
	.no_dead_strip	_patch_sigmatel_stac9758
.subsections_via_symbols
