	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function activate_amp_in
_activate_amp_in:                       ## @activate_amp_in
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, -60(%rbp)                 ## 4-byte Spill
	movl	%ecx, -64(%rbp)                 ## 4-byte Spill
	movq	%rdi, %r12
	movq	8(%rdi), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	(%rsi), %rax
	movslq	%edx, %r15
	movq	(%rax,%r15,8), %r13
	leaq	-80(%rbp), %rdx
	movq	%r13, %rsi
	callq	_snd_hda_get_conn_list
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	%r12, %rdi
	movq	%r13, %rsi
	callq	_get_wcaps
	movl	%eax, %edi
	callq	_get_wcaps_type
	movq	_AC_WID_PIN@GOTPCREL(%rip), %rcx
	xorl	%r14d, %r14d
	movl	$1, %ebx
	cmpl	(%rcx), %eax
	jne	LBB0_2
## %bb.1:
	xorl	%eax, %eax
	jmp	LBB0_6
LBB0_2:
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	movq	%r15, %rdx
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movq	_AC_WID_AUD_IN@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_4
## %bb.3:
	cmpq	$0, (%r12)
	movl	$0, %eax
	jne	LBB0_6
LBB0_4:
	testl	%esi, %esi
	jle	LBB0_14
## %bb.5:
	movq	8(%r15), %rax
	movl	(%rax,%rdx,4), %eax
	movl	%esi, %ebx
LBB0_6:
	movl	%eax, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	_HDA_INPUT@GOTPCREL(%rip), %rax
	movq	%r13, %r15
	movq	%r12, %r13
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rax, %r12
	movl	(%rax), %edx
	movq	%r13, %rdi
	movq	%r15, %rsi
	movl	%r14d, %ecx
	callq	_init_amp
	movq	%r12, %rax
	incl	%r14d
	cmpl	%r14d, %ebx
	jne	LBB0_7
## %bb.8:
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	movl	%ebx, %r14d
	xorl	%ebx, %ebx
	movq	%r15, %r13
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_9 Depth=1
	movl	(%r12), %edx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rsi
	movl	%ebx, %ecx
	movl	%r15d, %r8d
	movl	-64(%rbp), %r9d                 ## 4-byte Reload
	callq	_activate_amp
LBB0_13:                                ##   in Loop: Header=BB0_9 Depth=1
	incq	%rbx
	cmpq	%rbx, %r14
	je	LBB0_14
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%rbx, %r15
	je	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	cmpl	$0, -60(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_13
## %bb.11:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	-80(%rbp), %rax
	movq	(%rax,%rbx,8), %rax
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	cmpq	(%rcx), %rax
	je	LBB0_12
	jmp	LBB0_13
LBB0_14:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AC_WID_PIN,4,2                 ## @AC_WID_PIN
	.comm	_AC_WID_AUD_IN,4,2              ## @AC_WID_AUD_IN
	.comm	_HDA_INPUT,4,2                  ## @HDA_INPUT
	.no_dead_strip	_activate_amp_in
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function activate_amp_in
_activate_amp_in:                       ; @activate_amp_in
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	mov	x19, x4
	mov	x20, x3
	mov	x25, x2
	mov	x24, x1
	mov	x21, x0
	ldr	x26, [x0, #8]
	ldr	x8, [x1]
	ldr	x22, [x8, w2, sxtw #3]
	add	x2, sp, #8
	mov	x1, x22
	bl	_snd_hda_get_conn_list
	mov	x23, x0
	mov	x0, x21
	mov	x1, x22
	bl	_get_wcaps
	bl	_get_wcaps_type
Lloh0:
	adrp	x8, _AC_WID_PIN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AC_WID_PIN@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w0, w8
	b.eq	LBB0_3
; %bb.1:
Lloh3:
	adrp	x8, _AC_WID_AUD_IN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AC_WID_AUD_IN@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_4
; %bb.2:
	ldr	x8, [x21]
	cbz	x8, LBB0_4
LBB0_3:
	mov	w8, #0
	mov	w23, #1
	b	LBB0_6
LBB0_4:
	cmp	w23, #1
	b.lt	LBB0_14
; %bb.5:
	sxtw	x8, w25
	ldr	x9, [x24, #8]
	ldr	w8, [x9, x8, lsl #2]
LBB0_6:
	mov	w25, #0
	mov	w24, w8
Lloh6:
	adrp	x27, _HDA_INPUT@GOTPAGE
Lloh7:
	ldr	x27, [x27, _HDA_INPUT@GOTPAGEOFF]
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w2, [x27]
	mov	x0, x21
	mov	x1, x22
	mov	x3, x25
	bl	_init_amp
	add	w25, w25, #1
	cmp	w23, w25
	b.ne	LBB0_7
; %bb.8:
	mov	x25, #0
	mov	w23, w23
	b	LBB0_11
LBB0_9:                                 ;   in Loop: Header=BB0_11 Depth=1
	ldr	w2, [x27]
	mov	x0, x21
	mov	x1, x22
	mov	x3, x25
	mov	x4, x24
	mov	x5, x20
	bl	_activate_amp
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=1
	add	x25, x25, #1
	cmp	x23, x25
	b.eq	LBB0_14
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	cmp	x24, x25
	b.eq	LBB0_9
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	cbz	w19, LBB0_10
; %bb.13:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	x8, [sp, #8]
	ldr	x8, [x8, x25, lsl #3]
	ldr	x9, [x26]
	cmp	x8, x9
	b.eq	LBB0_9
	b	LBB0_10
LBB0_14:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_AC_WID_PIN,4,2                 ; @AC_WID_PIN
	.comm	_AC_WID_AUD_IN,4,2              ; @AC_WID_AUD_IN
	.comm	_HDA_INPUT,4,2                  ; @HDA_INPUT
	.no_dead_strip	_activate_amp_in
.subsections_via_symbols
