	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function add_sw_ctl
_add_sw_ctl:                            ## @add_sw_ctl
	.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
	testq	%r8, %r8
	je	LBB0_7
## %bb.1:
	movl	%edx, %r14d
	movq	%rdi, %r12
	movq	(%r8), %rax
	movq	_NID_PATH_MUTE_CTL@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movl	(%rax,%rdx,4), %edi
	testl	%edi, %edi
	je	LBB0_7
## %bb.2:
	movq	%rsi, %r15
	movq	_HDA_CTL_WIDGET_MUTE@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movl	%ecx, %esi
	callq	_amp_val_replace_channels
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_get_amp_direction_
	movq	_HDA_INPUT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.3:
	movl	%ebx, %edi
	callq	_get_amp_nid_
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_snd_hda_get_num_conns
	xorl	%ecx, %ecx
	cmpl	$2, %eax
	jl	LBB0_5
## %bb.4:
	shll	$19, %eax
	movq	_HDA_CTL_BIND_MUTE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r13d
	movl	%eax, %ecx
LBB0_5:
	orl	%ecx, %ebx
LBB0_6:
	movl	(%r12), %edi
	movl	%r13d, %esi
	movq	%r15, %rdx
	movl	%r14d, %ecx
	movl	%ebx, %r8d
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	___add_pb_sw_ctrl               ## TAILCALL
LBB0_7:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HDA_CTL_WIDGET_MUTE,4,2        ## @HDA_CTL_WIDGET_MUTE
	.comm	_NID_PATH_MUTE_CTL,8,3          ## @NID_PATH_MUTE_CTL
	.comm	_HDA_INPUT,8,3                  ## @HDA_INPUT
	.comm	_HDA_CTL_BIND_MUTE,4,2          ## @HDA_CTL_BIND_MUTE
	.no_dead_strip	_add_sw_ctl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function add_sw_ctl
_add_sw_ctl:                            ; @add_sw_ctl
	.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
	cbz	x4, LBB0_5
; %bb.1:
	mov	x21, x0
	ldr	x8, [x4]
Lloh0:
	adrp	x9, _NID_PATH_MUTE_CTL@GOTPAGE
Lloh1:
	ldr	x9, [x9, _NID_PATH_MUTE_CTL@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	ldr	w0, [x8, x9, lsl #2]
	cbz	w0, LBB0_5
; %bb.2:
	mov	x19, x2
	mov	x20, x1
Lloh3:
	adrp	x8, _HDA_CTL_WIDGET_MUTE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _HDA_CTL_WIDGET_MUTE@GOTPAGEOFF]
Lloh5:
	ldr	w22, [x8]
	mov	x1, x3
	bl	_amp_val_replace_channels
	mov	x23, x0
	bl	_get_amp_direction_
Lloh6:
	adrp	x8, _HDA_INPUT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _HDA_INPUT@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_4
; %bb.3:
	mov	x0, x23
	bl	_get_amp_nid_
	mov	x1, x0
	mov	x0, x21
	bl	_snd_hda_get_num_conns
Lloh9:
	adrp	x8, _HDA_CTL_BIND_MUTE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _HDA_CTL_BIND_MUTE@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	lsl	w9, w0, #19
	cmp	w0, #1
	csel	w22, w8, w22, gt
	csel	w8, w9, wzr, gt
	orr	w23, w8, w23
LBB0_4:
	ldr	w0, [x21]
	mov	x1, x22
	mov	x2, x20
	mov	x3, x19
	mov	x4, x23
	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	___add_pb_sw_ctrl
LBB0_5:
	mov	w0, #0
	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
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_HDA_CTL_WIDGET_MUTE,4,2        ; @HDA_CTL_WIDGET_MUTE
	.comm	_NID_PATH_MUTE_CTL,8,3          ; @NID_PATH_MUTE_CTL
	.comm	_HDA_INPUT,8,3                  ; @HDA_INPUT
	.comm	_HDA_CTL_BIND_MUTE,4,2          ; @HDA_CTL_BIND_MUTE
	.no_dead_strip	_add_sw_ctl
.subsections_via_symbols
