	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ad1983_auto_smux_enum_put
_ad1983_auto_smux_enum_put:             ## @ad1983_auto_smux_enum_put
	.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	%rsi, %r14
	callq	_snd_kcontrol_chip
	movq	%rax, %rbx
	movq	(%rax), %r12
	movq	(%r14), %rax
	movl	(%rax), %r14d
	movl	4(%r12), %r15d
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	_snd_hda_get_num_conns
	cmpl	%eax, %r14d
	jae	LBB0_1
## %bb.2:
	xorl	%eax, %eax
	cmpl	%r14d, (%r12)
	je	LBB0_4
## %bb.3:
	movl	%r14d, (%r12)
	movq	_AC_VERB_SET_CONNECT_SEL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	movl	%r15d, %esi
	xorl	%edx, %edx
	movl	%r14d, %r8d
	callq	_snd_hda_codec_write_cache
	movl	$1, %eax
	jmp	LBB0_4
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_4:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_AC_VERB_SET_CONNECT_SEL,4,2    ## @AC_VERB_SET_CONNECT_SEL
	.no_dead_strip	_ad1983_auto_smux_enum_put
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ad1983_auto_smux_enum_put
_ad1983_auto_smux_enum_put:             ; @ad1983_auto_smux_enum_put
	.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, x1
	bl	_snd_kcontrol_chip
	mov	x20, x0
	ldr	x22, [x0]
	ldr	x8, [x19]
	ldr	w19, [x8]
	ldr	w21, [x22, #4]
	mov	x1, x21
	bl	_snd_hda_get_num_conns
	cmp	w19, w0
	b.hs	LBB0_3
; %bb.1:
	ldr	w8, [x22]
	cmp	w8, w19
	b.ne	LBB0_4
; %bb.2:
	mov	w0, #0
	b	LBB0_5
LBB0_3:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_5
LBB0_4:
	str	w19, [x22]
Lloh3:
	adrp	x8, _AC_VERB_SET_CONNECT_SEL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AC_VERB_SET_CONNECT_SEL@GOTPAGEOFF]
Lloh5:
	ldr	w3, [x8]
	mov	x0, x20
	mov	x1, x21
	mov	w2, #0
	mov	x4, x19
	bl	_snd_hda_codec_write_cache
	mov	w0, #1
LBB0_5:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_AC_VERB_SET_CONNECT_SEL,4,2    ; @AC_VERB_SET_CONNECT_SEL
	.no_dead_strip	_ad1983_auto_smux_enum_put
.subsections_via_symbols
