	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function add_single_cap_ctl
_add_single_cap_ctl:                    ## @add_single_cap_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
	subq	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, -108(%rbp)                ## 4-byte Spill
	movq	%rsi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	testl	%ecx, %ecx
	movq	_HDA_CTL_WIDGET_MUTE@GOTPCREL(%rip), %rax
	cmoveq	_HDA_CTL_WIDGET_VOL@GOTPCREL(%rip), %rax
	leaq	L_.str.1(%rip), %rdx
	leaq	L_.str(%rip), %r13
	cmoveq	%rdx, %r13
	xorl	%esi, %esi
	testl	%r9d, %r9d
	sete	%dl
	xorl	%ebx, %ebx
	movl	%r8d, -104(%rbp)                ## 4-byte Spill
	testl	%r8d, %r8d
	je	LBB0_15
## %bb.1:
	movl	%r9d, %r14d
	movl	%ecx, %ebx
	movq	(%rdi), %rcx
	movq	%rcx, -120(%rbp)                ## 8-byte Spill
	movl	(%rax), %eax
	movl	%eax, -100(%rbp)                ## 4-byte Spill
	movb	%dl, %sil
	leal	(%rsi,%rsi), %r12d
	incl	%r12d
	testq	%r15, %r15
	je	LBB0_3
## %bb.2:
	leaq	L_.str.2(%rip), %rdx
	leaq	-96(%rbp), %rdi
	movl	$44, %esi
	movq	%r15, %rcx
	movq	%r13, %r8
	xorl	%eax, %eax
	callq	_snprintf
	jmp	LBB0_4
LBB0_3:
	leaq	L_.str.3(%rip), %rdx
	leaq	-96(%rbp), %rdi
	movl	$44, %esi
	movq	%r13, %rcx
	xorl	%eax, %eax
	callq	_snprintf
LBB0_4:
	movl	-104(%rbp), %edi                ## 4-byte Reload
	movl	%r12d, %esi
	callq	_amp_val_replace_channels
	leaq	-96(%rbp), %rdx
	movq	-120(%rbp), %rdi                ## 8-byte Reload
	movl	-100(%rbp), %esi                ## 4-byte Reload
	movl	-108(%rbp), %ecx                ## 4-byte Reload
	movl	%eax, %r8d
	callq	_add_control
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movl	%ebx, %r12d
	testl	%ebx, %ebx
	je	LBB0_8
## %bb.7:
	movq	_cap_single_sw_put@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, (%rax)
LBB0_8:
	testl	%r14d, %r14d
	movl	$0, %ebx
	je	LBB0_15
## %bb.9:
	testq	%r15, %r15
	je	LBB0_11
## %bb.10:
	leaq	L_.str.4(%rip), %rdx
	leaq	-96(%rbp), %rdi
	movl	$44, %esi
	movq	%r15, %rcx
	movq	%r13, %r8
	xorl	%eax, %eax
	callq	_snprintf
	jmp	LBB0_12
LBB0_11:
	leaq	L_.str.5(%rip), %rdx
	leaq	-96(%rbp), %rdi
	movl	$44, %esi
	movq	%r13, %rcx
	xorl	%eax, %eax
	callq	_snprintf
LBB0_12:
	movl	-104(%rbp), %edi                ## 4-byte Reload
	movl	$2, %esi
	callq	_amp_val_replace_channels
	leaq	-96(%rbp), %rdx
	movq	-120(%rbp), %rdi                ## 8-byte Reload
	movl	-100(%rbp), %esi                ## 4-byte Reload
	movl	-108(%rbp), %ecx                ## 4-byte Reload
	movl	%eax, %r8d
	callq	_add_control
	testq	%rax, %rax
	je	LBB0_5
## %bb.13:
	testl	%r12d, %r12d
	je	LBB0_15
## %bb.14:
	movq	_cap_single_sw_put@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, (%rax)
	jmp	LBB0_15
LBB0_5:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_15:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_17
## %bb.16:
	movl	%ebx, %eax
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_17:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_HDA_CTL_WIDGET_MUTE,4,2        ## @HDA_CTL_WIDGET_MUTE
	.comm	_HDA_CTL_WIDGET_VOL,4,2         ## @HDA_CTL_WIDGET_VOL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Switch"

L_.str.1:                               ## @.str.1
	.asciz	"Volume"

L_.str.2:                               ## @.str.2
	.asciz	"%s Capture %s"

L_.str.3:                               ## @.str.3
	.asciz	"Capture %s"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_cap_single_sw_put,8,3          ## @cap_single_sw_put
L_.str.4:                               ## @.str.4
	.asciz	"Inverted %s Capture %s"

L_.str.5:                               ## @.str.5
	.asciz	"Inverted Capture %s"

	.no_dead_strip	_add_single_cap_ctl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function add_single_cap_ctl
_add_single_cap_ctl:                    ; @add_single_cap_ctl
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #56]
Lloh3:
	adrp	x8, _HDA_CTL_WIDGET_MUTE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _HDA_CTL_WIDGET_MUTE@GOTPAGEOFF]
Lloh5:
	adrp	x9, _HDA_CTL_WIDGET_VOL@GOTPAGE
Lloh6:
	ldr	x9, [x9, _HDA_CTL_WIDGET_VOL@GOTPAGEOFF]
	cmp	w3, #0
	csel	x8, x9, x8, eq
Lloh7:
	adrp	x9, l_.str@PAGE
Lloh8:
	add	x9, x9, l_.str@PAGEOFF
Lloh9:
	adrp	x10, l_.str.1@PAGE
Lloh10:
	add	x10, x10, l_.str.1@PAGEOFF
	csel	x25, x10, x9, eq
	cmp	w5, #0
	mov	w9, #3
	csinc	w27, w9, wzr, eq
	cbz	w4, LBB0_14
; %bb.1:
	mov	x26, x5
	mov	x21, x4
	mov	x19, x3
	mov	x20, x2
	mov	x24, x1
	ldr	x22, [x0]
	ldr	w23, [x8]
	cbz	x1, LBB0_3
; %bb.2:
	str	x25, [sp]
Lloh11:
	adrp	x2, l_.str.2@PAGE
Lloh12:
	add	x2, x2, l_.str.2@PAGEOFF
	add	x0, sp, #12
	mov	w1, #44
	mov	x3, x24
	b	LBB0_4
LBB0_3:
Lloh13:
	adrp	x2, l_.str.3@PAGE
Lloh14:
	add	x2, x2, l_.str.3@PAGEOFF
	add	x0, sp, #12
	mov	w1, #44
	mov	x3, x25
LBB0_4:
	bl	_snprintf
	mov	x0, x21
	mov	x1, x27
	bl	_amp_val_replace_channels
	mov	x4, x0
	add	x2, sp, #12
	mov	x0, x22
	mov	x1, x23
	mov	x3, x20
	bl	_add_control
	cbz	x0, LBB0_15
; %bb.5:
	cbz	w19, LBB0_7
; %bb.6:
Lloh15:
	adrp	x8, _cap_single_sw_put@GOTPAGE
Lloh16:
	ldr	x8, [x8, _cap_single_sw_put@GOTPAGEOFF]
Lloh17:
	ldr	x8, [x8]
	str	x8, [x0]
LBB0_7:
	cbz	w26, LBB0_14
; %bb.8:
	cbz	x24, LBB0_10
; %bb.9:
	str	x25, [sp]
Lloh18:
	adrp	x2, l_.str.4@PAGE
Lloh19:
	add	x2, x2, l_.str.4@PAGEOFF
	add	x0, sp, #12
	mov	w1, #44
	mov	x3, x24
	b	LBB0_11
LBB0_10:
Lloh20:
	adrp	x2, l_.str.5@PAGE
Lloh21:
	add	x2, x2, l_.str.5@PAGEOFF
	add	x0, sp, #12
	mov	w1, #44
	mov	x3, x25
LBB0_11:
	bl	_snprintf
	mov	x0, x21
	mov	w1, #2
	bl	_amp_val_replace_channels
	mov	x4, x0
	add	x2, sp, #12
	mov	x0, x22
	mov	x1, x23
	mov	x3, x20
	bl	_add_control
	cbz	x0, LBB0_15
; %bb.12:
	cbz	w19, LBB0_14
; %bb.13:
	mov	x8, x0
	mov	w0, #0
Lloh22:
	adrp	x9, _cap_single_sw_put@GOTPAGE
Lloh23:
	ldr	x9, [x9, _cap_single_sw_put@GOTPAGEOFF]
Lloh24:
	ldr	x9, [x9]
	str	x9, [x8]
	b	LBB0_16
LBB0_14:
	mov	w0, #0
	b	LBB0_16
LBB0_15:
Lloh25:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh26:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_16:
	ldr	x8, [sp, #56]
Lloh28:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh29:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh30:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_18
; %bb.17:
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
LBB0_18:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_HDA_CTL_WIDGET_MUTE,4,2        ; @HDA_CTL_WIDGET_MUTE
	.comm	_HDA_CTL_WIDGET_VOL,4,2         ; @HDA_CTL_WIDGET_VOL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Switch"

l_.str.1:                               ; @.str.1
	.asciz	"Volume"

l_.str.2:                               ; @.str.2
	.asciz	"%s Capture %s"

l_.str.3:                               ; @.str.3
	.asciz	"Capture %s"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_cap_single_sw_put,8,3          ; @cap_single_sw_put
l_.str.4:                               ; @.str.4
	.asciz	"Inverted %s Capture %s"

l_.str.5:                               ; @.str.5
	.asciz	"Inverted Capture %s"

	.no_dead_strip	_add_single_cap_ctl
.subsections_via_symbols
