	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function alc850_update_jacks
_alc850_update_jacks:                   ## @alc850_update_jacks
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	callq	_is_shared_surrout
	xorl	%ebx, %ebx
	testl	%eax, %eax
	setne	%bl
	movq	_AC97_ALC850_MISC1@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movl	%ebx, %ecx
	shll	$4, %ecx
	addl	$16, %ecx
	movq	%r14, %rdi
	movl	$48, %edx
	callq	_snd_ac97_update_bits
	movq	_AC97_ALC850_JACK_SELECT@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	shll	$13, %ebx
	movq	%r14, %rdi
	movl	$28672, %edx                    ## imm = 0x7000
	movl	%ebx, %ecx
	callq	_snd_ac97_update_bits
	movq	%r14, %rdi
	callq	_is_shared_clfeout
	movl	(%r12), %esi
	xorl	%ebx, %ebx
	xorl	%ecx, %ecx
	testl	%eax, %eax
	setne	%bl
	sete	%cl
	shll	$12, %ecx
	addl	$4096, %ecx                     ## imm = 0x1000
	movq	%r14, %rdi
	movl	$12288, %edx                    ## imm = 0x3000
	callq	_snd_ac97_update_bits
	movl	(%r15), %esi
	shll	$6, %ebx
	orl	$16, %ebx
	movq	%r14, %rdi
	movl	$112, %edx
	movl	%ebx, %ecx
	callq	_snd_ac97_update_bits
	movq	%r14, %rdi
	callq	_alc850_is_aux_back_surround
	xorl	%ecx, %ecx
	testl	%eax, %eax
	setne	%cl
	movq	_AC97_ALC850_MULTICH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	shll	$10, %ecx
	movq	%r14, %rdi
	movl	$1024, %edx                     ## imm = 0x400
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_snd_ac97_update_bits           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_AC97_ALC850_MISC1,4,2          ## @AC97_ALC850_MISC1
	.comm	_AC97_ALC850_JACK_SELECT,4,2    ## @AC97_ALC850_JACK_SELECT
	.comm	_AC97_ALC850_MULTICH,4,2        ## @AC97_ALC850_MULTICH
	.no_dead_strip	_alc850_update_jacks
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function alc850_update_jacks
_alc850_update_jacks:                   ; @alc850_update_jacks
	.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
	bl	_is_shared_surrout
	mov	w8, #32
	mov	w20, #16
	cmp	w0, #0
	csel	w3, w20, w8, eq
	cset	w21, ne
Lloh0:
	adrp	x22, _AC97_ALC850_MISC1@GOTPAGE
Lloh1:
	ldr	x22, [x22, _AC97_ALC850_MISC1@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x19
	mov	w2, #48
	bl	_snd_ac97_update_bits
Lloh2:
	adrp	x23, _AC97_ALC850_JACK_SELECT@GOTPAGE
Lloh3:
	ldr	x23, [x23, _AC97_ALC850_JACK_SELECT@GOTPAGEOFF]
	ldr	w1, [x23]
	lsl	w3, w21, #13
	mov	x0, x19
	mov	w2, #28672
	bl	_snd_ac97_update_bits
	mov	x0, x19
	bl	_is_shared_clfeout
	ldr	w1, [x22]
	mov	w8, #4096
	mov	w9, #8192
	cmp	w0, #0
	csel	w3, w9, w8, eq
	mov	w8, #80
	csel	w20, w20, w8, eq
	mov	x0, x19
	mov	w2, #12288
	bl	_snd_ac97_update_bits
	ldr	w1, [x23]
	mov	x0, x19
	mov	w2, #112
	mov	x3, x20
	bl	_snd_ac97_update_bits
	mov	x0, x19
	bl	_alc850_is_aux_back_surround
	cmp	w0, #0
	cset	w8, ne
Lloh4:
	adrp	x9, _AC97_ALC850_MULTICH@GOTPAGE
Lloh5:
	ldr	x9, [x9, _AC97_ALC850_MULTICH@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x9]
	lsl	w3, w8, #10
	mov	x0, x19
	mov	w2, #1024
	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
	b	_snd_ac97_update_bits
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_AC97_ALC850_MISC1,4,2          ; @AC97_ALC850_MISC1
	.comm	_AC97_ALC850_JACK_SELECT,4,2    ; @AC97_ALC850_JACK_SELECT
	.comm	_AC97_ALC850_MULTICH,4,2        ; @AC97_ALC850_MULTICH
	.no_dead_strip	_alc850_update_jacks
.subsections_via_symbols
