	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ad1986_update_jacks
_ad1986_update_jacks:                   ## @ad1986_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	%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, %r14
	callq	_is_surround_on
	xorl	%ebx, %ebx
	movq	_AC97_AD1986_SODIS@GOTPCREL(%rip), %r15
	movl	$0, %r13d
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movzwl	(%r15), %r13d
LBB0_2:
	movq	%r14, %rdi
	callq	_is_clfe_on
	movq	_AC97_AD1986_CLDIS@GOTPCREL(%rip), %r12
	testl	%eax, %eax
	jne	LBB0_4
## %bb.3:
	movzwl	(%r12), %ebx
LBB0_4:
	orl	%r13d, %ebx
	movq	%r14, %rdi
	callq	_is_shared_linein
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	_AC97_AD1986_LISEL_SURR@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_6:
	cmpq	$0, (%r14)
	je	LBB0_9
## %bb.7:
	movq	_AC97_AD1986_LISEL_MIC@GOTPCREL(%rip), %rax
LBB0_8:
	orw	(%rax), %bx
LBB0_9:
	movq	_AC97_AD_MISC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movzwl	(%r12), %eax
	orw	(%r15), %ax
	movq	_AC97_AD1986_LISEL_MASK@GOTPCREL(%rip), %rcx
	orw	(%rcx), %ax
	movzwl	%ax, %edx
	movzwl	%bx, %ecx
	movq	%r14, %rdi
	callq	_snd_ac97_update_bits
	movq	%r14, %rdi
	callq	_is_shared_micin
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	movq	_AC97_AD1986_OMS_C@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_11:
	cmpq	$0, (%r14)
	jne	LBB0_12
## %bb.13:
	movq	_AC97_AD1986_OMS_M@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_12:
	movq	_AC97_AD1986_OMS_L@GOTPCREL(%rip), %rax
LBB0_14:
	movzwl	(%rax), %ecx
	movq	_AC97_AD_SERIAL_CFG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_AC97_AD1986_OMS_MASK@GOTPCREL(%rip), %rax
	movzwl	(%rax), %edx
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_snd_ac97_update_bits           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_AC97_AD1986_SODIS,2,1          ## @AC97_AD1986_SODIS
	.comm	_AC97_AD1986_CLDIS,2,1          ## @AC97_AD1986_CLDIS
	.comm	_AC97_AD1986_LISEL_SURR,2,1     ## @AC97_AD1986_LISEL_SURR
	.comm	_AC97_AD1986_LISEL_MIC,2,1      ## @AC97_AD1986_LISEL_MIC
	.comm	_AC97_AD_MISC,4,2               ## @AC97_AD_MISC
	.comm	_AC97_AD1986_LISEL_MASK,2,1     ## @AC97_AD1986_LISEL_MASK
	.comm	_AC97_AD1986_OMS_C,2,1          ## @AC97_AD1986_OMS_C
	.comm	_AC97_AD1986_OMS_L,2,1          ## @AC97_AD1986_OMS_L
	.comm	_AC97_AD1986_OMS_M,2,1          ## @AC97_AD1986_OMS_M
	.comm	_AC97_AD_SERIAL_CFG,4,2         ## @AC97_AD_SERIAL_CFG
	.comm	_AC97_AD1986_OMS_MASK,2,1       ## @AC97_AD1986_OMS_MASK
	.no_dead_strip	_ad1986_update_jacks
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ad1986_update_jacks
_ad1986_update_jacks:                   ; @ad1986_update_jacks
	.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
	bl	_is_surround_on
Lloh0:
	adrp	x20, _AC97_AD1986_SODIS@GOTPAGE
Lloh1:
	ldr	x20, [x20, _AC97_AD1986_SODIS@GOTPAGEOFF]
	ldrh	w8, [x20]
	cmp	w0, #0
	csel	w21, w8, wzr, eq
	mov	x0, x19
	bl	_is_clfe_on
Lloh2:
	adrp	x22, _AC97_AD1986_CLDIS@GOTPAGE
Lloh3:
	ldr	x22, [x22, _AC97_AD1986_CLDIS@GOTPAGEOFF]
	ldrh	w8, [x22]
	cmp	w0, #0
	csel	w8, w8, wzr, eq
	orr	w21, w8, w21
	mov	x0, x19
	bl	_is_shared_linein
	cbz	x0, LBB0_2
; %bb.1:
Lloh4:
	adrp	x8, _AC97_AD1986_LISEL_SURR@GOTPAGE
Lloh5:
	ldr	x8, [x8, _AC97_AD1986_LISEL_SURR@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:
	ldr	x8, [x19]
	cbz	x8, LBB0_5
; %bb.3:
Lloh6:
	adrp	x8, _AC97_AD1986_LISEL_MIC@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AC97_AD1986_LISEL_MIC@GOTPAGEOFF]
LBB0_4:
	ldrh	w8, [x8]
	orr	w21, w8, w21
LBB0_5:
Lloh8:
	adrp	x8, _AC97_AD_MISC@GOTPAGE
Lloh9:
	ldr	x8, [x8, _AC97_AD_MISC@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	ldrh	w8, [x20]
	ldrh	w9, [x22]
	orr	w8, w9, w8
Lloh11:
	adrp	x9, _AC97_AD1986_LISEL_MASK@GOTPAGE
Lloh12:
	ldr	x9, [x9, _AC97_AD1986_LISEL_MASK@GOTPAGEOFF]
	ldrh	w9, [x9]
	orr	w2, w8, w9
	and	w3, w21, #0xffff
	mov	x0, x19
	bl	_snd_ac97_update_bits
	mov	x0, x19
	bl	_is_shared_micin
	cbz	x0, LBB0_7
; %bb.6:
Lloh13:
	adrp	x8, _AC97_AD1986_OMS_C@GOTPAGE
Lloh14:
	ldr	x8, [x8, _AC97_AD1986_OMS_C@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:
	ldr	x8, [x19]
Lloh15:
	adrp	x9, _AC97_AD1986_OMS_L@GOTPAGE
Lloh16:
	ldr	x9, [x9, _AC97_AD1986_OMS_L@GOTPAGEOFF]
Lloh17:
	adrp	x10, _AC97_AD1986_OMS_M@GOTPAGE
Lloh18:
	ldr	x10, [x10, _AC97_AD1986_OMS_M@GOTPAGEOFF]
	cmp	x8, #0
	csel	x8, x10, x9, eq
LBB0_8:
	ldrh	w3, [x8]
Lloh19:
	adrp	x8, _AC97_AD_SERIAL_CFG@GOTPAGE
Lloh20:
	ldr	x8, [x8, _AC97_AD_SERIAL_CFG@GOTPAGEOFF]
Lloh21:
	adrp	x9, _AC97_AD1986_OMS_MASK@GOTPAGE
Lloh22:
	ldr	x9, [x9, _AC97_AD1986_OMS_MASK@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	ldrh	w2, [x9]
	mov	x0, x19
	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
	b	_snd_ac97_update_bits
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_AC97_AD1986_SODIS,2,1          ; @AC97_AD1986_SODIS
	.comm	_AC97_AD1986_CLDIS,2,1          ; @AC97_AD1986_CLDIS
	.comm	_AC97_AD1986_LISEL_SURR,2,1     ; @AC97_AD1986_LISEL_SURR
	.comm	_AC97_AD1986_LISEL_MIC,2,1      ; @AC97_AD1986_LISEL_MIC
	.comm	_AC97_AD_MISC,4,2               ; @AC97_AD_MISC
	.comm	_AC97_AD1986_LISEL_MASK,2,1     ; @AC97_AD1986_LISEL_MASK
	.comm	_AC97_AD1986_OMS_C,2,1          ; @AC97_AD1986_OMS_C
	.comm	_AC97_AD1986_OMS_L,2,1          ; @AC97_AD1986_OMS_L
	.comm	_AC97_AD1986_OMS_M,2,1          ; @AC97_AD1986_OMS_M
	.comm	_AC97_AD_SERIAL_CFG,4,2         ; @AC97_AD_SERIAL_CFG
	.comm	_AC97_AD1986_OMS_MASK,2,1       ; @AC97_AD1986_OMS_MASK
	.no_dead_strip	_ad1986_update_jacks
.subsections_via_symbols
