	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_snd_hda_activate_path          ## -- Begin function snd_hda_activate_path
	.p2align	4, 0x90
_snd_hda_activate_path:                 ## @snd_hda_activate_path
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movl	%edx, %r14d
	movq	%rsi, %r13
	movq	%rdi, %r12
	movq	(%rdi), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	testl	%edx, %edx
	jne	LBB0_2
## %bb.1:
	movl	$0, (%r13)
LBB0_2:
	movl	4(%r13), %ebx
	testl	%ebx, %ebx
	jle	LBB0_15
## %bb.3:
	movl	%r14d, -48(%rbp)                ## 4-byte Spill
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	%rbx, %rax
	incq	%rax
	cmpq	$1, %rax
	jbe	LBB0_15
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	decq	%rbx
	testl	%r14d, %r14d
	je	LBB0_10
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	24(%r13), %rax
	movl	%ebx, %r14d
	movl	(%rax,%r14,4), %r15d
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	cmpq	$0, (%rax)
	je	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	_AC_PWRST_D0@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	movl	%r15d, %esi
	callq	_snd_hda_check_power_state
	testl	%eax, %eax
	jne	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	_AC_VERB_SET_POWER_STATE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_AC_PWRST_D0@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%r12, %rdi
	movl	%r15d, %esi
	xorl	%edx, %edx
	callq	_snd_hda_codec_write
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	16(%r13), %rax
	cmpq	$0, (%rax,%r14,8)
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	_AC_VERB_SET_CONNECT_SEL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	8(%r13), %rax
	movl	(%rax,%r14,4), %r8d
	movq	%r12, %rdi
	movl	%r15d, %esi
	xorl	%edx, %edx
	callq	_snd_hda_codec_write_cache
LBB0_10:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	%r12, %rdi
	movq	%r13, %rsi
	movl	%ebx, %edx
	callq	_has_amp_in
	testq	%rax, %rax
	movl	-48(%rbp), %r14d                ## 4-byte Reload
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	%r12, %rdi
	movq	%r13, %rsi
	movl	%ebx, %edx
	movl	%r14d, %ecx
	movl	-44(%rbp), %r8d                 ## 4-byte Reload
	callq	_activate_amp_in
LBB0_12:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	%r12, %rdi
	movq	%r13, %rsi
	movl	%ebx, %edx
	callq	_has_amp_out
	testq	%rax, %rax
	je	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	%r12, %rdi
	movq	%r13, %rsi
	movl	%ebx, %edx
	movl	%r14d, %ecx
	callq	_activate_amp_out
	jmp	LBB0_14
LBB0_15:
	testl	%r14d, %r14d
	je	LBB0_17
## %bb.16:
	movl	$1, (%r13)
LBB0_17:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AC_PWRST_D0,4,2                ## @AC_PWRST_D0
	.comm	_AC_VERB_SET_POWER_STATE,4,2    ## @AC_VERB_SET_POWER_STATE
	.comm	_AC_VERB_SET_CONNECT_SEL,4,2    ## @AC_VERB_SET_CONNECT_SEL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_snd_hda_activate_path          ; -- Begin function snd_hda_activate_path
	.p2align	2
_snd_hda_activate_path:                 ; @snd_hda_activate_path
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x21, x3
	mov	x20, x2
	mov	x19, x1
	mov	x22, x0
	ldr	x25, [x0]
	cbnz	w2, LBB0_2
; %bb.1:
	str	wzr, [x19]
LBB0_2:
	ldr	w23, [x19, #4]
	cmp	w23, #1
	b.lt	LBB0_15
; %bb.3:
Lloh0:
	adrp	x26, _AC_VERB_SET_CONNECT_SEL@GOTPAGE
Lloh1:
	ldr	x26, [x26, _AC_VERB_SET_CONNECT_SEL@GOTPAGEOFF]
Lloh2:
	adrp	x27, _AC_PWRST_D0@GOTPAGE
Lloh3:
	ldr	x27, [x27, _AC_PWRST_D0@GOTPAGEOFF]
Lloh4:
	adrp	x28, _AC_VERB_SET_POWER_STATE@GOTPAGE
Lloh5:
	ldr	x28, [x28, _AC_VERB_SET_POWER_STATE@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x8, x23, #1
	cmp	x8, #1
	b.ls	LBB0_15
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	sub	x23, x23, #1
	cbz	w20, LBB0_11
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x19, #24]
	ldr	w24, [x8, w23, uxtw #2]
	ldr	x8, [x25]
	cbz	x8, LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w2, [x27]
	mov	x0, x22
	mov	x1, x24
	bl	_snd_hda_check_power_state
	cbnz	w0, LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w3, [x28]
	ldr	w4, [x27]
	mov	x0, x22
	mov	x1, x24
	mov	w2, #0
	bl	_snd_hda_codec_write
LBB0_9:                                 ;   in Loop: Header=BB0_5 Depth=1
	and	x8, x23, #0xffffffff
	ldr	x9, [x19, #16]
	ldr	x9, [x9, x8, lsl #3]
	cbz	x9, LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	w3, [x26]
	ldr	x9, [x19, #8]
	ldr	w4, [x9, x8, lsl #2]
	mov	x0, x22
	mov	x1, x24
	mov	w2, #0
	bl	_snd_hda_codec_write_cache
LBB0_11:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x22
	mov	x1, x19
	mov	x2, x23
	bl	_has_amp_in
	cbz	x0, LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x22
	mov	x1, x19
	mov	x2, x23
	mov	x3, x20
	mov	x4, x21
	bl	_activate_amp_in
LBB0_13:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x22
	mov	x1, x19
	mov	x2, x23
	bl	_has_amp_out
	cbz	x0, LBB0_4
; %bb.14:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x22
	mov	x1, x19
	mov	x2, x23
	mov	x3, x20
	bl	_activate_amp_out
	b	LBB0_4
LBB0_15:
	cbz	w20, LBB0_17
; %bb.16:
	mov	w8, #1
	str	w8, [x19]
LBB0_17:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_AC_PWRST_D0,4,2                ; @AC_PWRST_D0
	.comm	_AC_VERB_SET_POWER_STATE,4,2    ; @AC_VERB_SET_POWER_STATE
	.comm	_AC_VERB_SET_CONNECT_SEL,4,2    ; @AC_VERB_SET_CONNECT_SEL
.subsections_via_symbols
