	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function patch_sigmatel_stac97xx_specific
_patch_sigmatel_stac97xx_specific:      ## @patch_sigmatel_stac97xx_specific
	.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
	movq	%rdi, %r14
	movq	_AC97_SIGMATEL_ANALOG@GOTPCREL(%rip), %r15
	movl	(%r15), %ebx
	movl	%ebx, %esi
	callq	_snd_ac97_read
	andl	$-4, %eax
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_snd_ac97_write_cache
	movl	(%r15), %esi
	movq	%r14, %rdi
	movl	$1, %edx
	callq	_snd_ac97_try_bit
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_snd_ac97_sigmatel_controls@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%r14, %rdi
	movl	$1, %edx
	callq	_patch_build_controls
	testl	%eax, %eax
	js	LBB0_9
LBB0_2:
	movl	(%r15), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_snd_ac97_try_bit
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	_snd_ac97_sigmatel_controls@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	$4, %rsi
	movq	%r14, %rdi
	movl	$1, %edx
	callq	_patch_build_controls
	testl	%eax, %eax
	js	LBB0_9
LBB0_4:
	movq	_AC97_SIGMATEL_DAC2INVERT@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r14, %rdi
	movl	$2, %edx
	callq	_snd_ac97_try_bit
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	_snd_ac97_sigmatel_4speaker@GOTPCREL(%rip), %rsi
	movq	%r14, %rdi
	movl	$1, %edx
	callq	_patch_build_controls
	testl	%eax, %eax
	js	LBB0_9
LBB0_6:
	movl	(%rbx), %esi
	movq	%r14, %rdi
	movl	$3, %edx
	callq	_snd_ac97_try_bit
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movq	_snd_ac97_sigmatel_phaseinvert@GOTPCREL(%rip), %rsi
	movq	%r14, %rdi
	movl	$1, %edx
	callq	_patch_build_controls
	testl	%eax, %eax
	js	LBB0_9
LBB0_8:
	xorl	%eax, %eax
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AC97_SIGMATEL_ANALOG,4,2       ## @AC97_SIGMATEL_ANALOG
	.comm	_snd_ac97_sigmatel_controls,8,3 ## @snd_ac97_sigmatel_controls
	.comm	_AC97_SIGMATEL_DAC2INVERT,4,2   ## @AC97_SIGMATEL_DAC2INVERT
	.comm	_snd_ac97_sigmatel_4speaker,4,2 ## @snd_ac97_sigmatel_4speaker
	.comm	_snd_ac97_sigmatel_phaseinvert,4,2 ## @snd_ac97_sigmatel_phaseinvert
	.no_dead_strip	_patch_sigmatel_stac97xx_specific
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function patch_sigmatel_stac97xx_specific
_patch_sigmatel_stac97xx_specific:      ; @patch_sigmatel_stac97xx_specific
	.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, x0
Lloh0:
	adrp	x21, _AC97_SIGMATEL_ANALOG@GOTPAGE
Lloh1:
	ldr	x21, [x21, _AC97_SIGMATEL_ANALOG@GOTPAGEOFF]
	ldr	w20, [x21]
	mov	x1, x20
	bl	_snd_ac97_read
	and	w2, w0, #0xfffffffc
	mov	x0, x19
	mov	x1, x20
	bl	_snd_ac97_write_cache
	ldr	w1, [x21]
	mov	x0, x19
	mov	w2, #1
	bl	_snd_ac97_try_bit
Lloh2:
	adrp	x20, _snd_ac97_sigmatel_controls@GOTPAGE
Lloh3:
	ldr	x20, [x20, _snd_ac97_sigmatel_controls@GOTPAGEOFF]
	cbz	x0, LBB0_2
; %bb.1:
	ldr	x1, [x20]
	mov	x0, x19
	mov	w2, #1
	bl	_patch_build_controls
	tbnz	w0, #31, LBB0_9
LBB0_2:
	ldr	w1, [x21]
	mov	x0, x19
	mov	w2, #0
	bl	_snd_ac97_try_bit
	cbz	x0, LBB0_4
; %bb.3:
	ldr	x8, [x20]
	add	x1, x8, #4
	mov	x0, x19
	mov	w2, #1
	bl	_patch_build_controls
	tbnz	w0, #31, LBB0_9
LBB0_4:
Lloh4:
	adrp	x20, _AC97_SIGMATEL_DAC2INVERT@GOTPAGE
Lloh5:
	ldr	x20, [x20, _AC97_SIGMATEL_DAC2INVERT@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x19
	mov	w2, #2
	bl	_snd_ac97_try_bit
	cbz	x0, LBB0_6
; %bb.5:
Lloh6:
	adrp	x1, _snd_ac97_sigmatel_4speaker@GOTPAGE
Lloh7:
	ldr	x1, [x1, _snd_ac97_sigmatel_4speaker@GOTPAGEOFF]
	mov	x0, x19
	mov	w2, #1
	bl	_patch_build_controls
	tbnz	w0, #31, LBB0_9
LBB0_6:
	ldr	w1, [x20]
	mov	x0, x19
	mov	w2, #3
	bl	_snd_ac97_try_bit
	cbz	x0, LBB0_8
; %bb.7:
Lloh8:
	adrp	x1, _snd_ac97_sigmatel_phaseinvert@GOTPAGE
Lloh9:
	ldr	x1, [x1, _snd_ac97_sigmatel_phaseinvert@GOTPAGEOFF]
	mov	x0, x19
	mov	w2, #1
	bl	_patch_build_controls
	tbnz	w0, #31, LBB0_9
LBB0_8:
	mov	w0, #0
LBB0_9:
	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
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_AC97_SIGMATEL_ANALOG,4,2       ; @AC97_SIGMATEL_ANALOG
	.comm	_snd_ac97_sigmatel_controls,8,3 ; @snd_ac97_sigmatel_controls
	.comm	_AC97_SIGMATEL_DAC2INVERT,4,2   ; @AC97_SIGMATEL_DAC2INVERT
	.comm	_snd_ac97_sigmatel_4speaker,4,2 ; @snd_ac97_sigmatel_4speaker
	.comm	_snd_ac97_sigmatel_phaseinvert,4,2 ; @snd_ac97_sigmatel_phaseinvert
	.no_dead_strip	_patch_sigmatel_stac97xx_specific
.subsections_via_symbols
