	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function path_power_down_sync
_path_power_down_sync:                  ## @path_power_down_sync
	.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
	movq	(%rdi), %rax
	cmpl	$0, (%rax)
	je	LBB0_9
## %bb.1:
	movq	%rsi, %r15
	cmpq	$0, 16(%rsi)
	je	LBB0_2
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	cmpl	$0, (%r15)
	jle	LBB0_9
## %bb.3:
	movq	%rdi, %r14
	xorl	%ebx, %ebx
	movq	_AC_PWRST_D3@GOTPCREL(%rip), %r13
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	incq	%rbx
	movslq	(%r15), %rax
	cmpq	%rax, %rbx
	jge	LBB0_8
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r15), %rax
	movl	(%rax,%rbx,4), %r12d
	movl	(%r13), %edx
	movq	%r14, %rdi
	movl	%r12d, %esi
	callq	_snd_hda_check_power_state
	testl	%eax, %eax
	jne	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%r14, %rdi
	movl	%r12d, %esi
	callq	_is_active_nid_for_any
	testl	%eax, %eax
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	_AC_VERB_SET_POWER_STATE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	(%r13), %r8d
	movq	%r14, %rdi
	movl	%r12d, %esi
	xorl	%edx, %edx
	callq	_snd_hda_codec_write
	movl	$1, -44(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_7
LBB0_8:
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_9
## %bb.10:
	movl	$10, %edi
	callq	_msleep
	movq	8(%r15), %rax
	movl	(%rax), %esi
	movq	_AC_VERB_GET_POWER_STATE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rdi
	xorl	%edx, %edx
	xorl	%r8d, %r8d
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_snd_hda_codec_read             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_AC_PWRST_D3,4,2                ## @AC_PWRST_D3
	.comm	_AC_VERB_SET_POWER_STATE,4,2    ## @AC_VERB_SET_POWER_STATE
	.comm	_AC_VERB_GET_POWER_STATE,4,2    ## @AC_VERB_GET_POWER_STATE
	.no_dead_strip	_path_power_down_sync
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function path_power_down_sync
_path_power_down_sync:                  ; @path_power_down_sync
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	ldr	x8, [x0]
	ldr	w8, [x8]
	cbz	w8, LBB0_2
; %bb.1:
	mov	x20, x1
	ldr	x8, [x1, #16]
	cbz	x8, LBB0_3
LBB0_2:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_3:
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_2
; %bb.4:
	mov	x19, x0
	mov	x22, #0
	mov	w25, #0
Lloh0:
	adrp	x23, _AC_PWRST_D3@GOTPAGE
Lloh1:
	ldr	x23, [x23, _AC_PWRST_D3@GOTPAGEOFF]
Lloh2:
	adrp	x24, _AC_VERB_SET_POWER_STATE@GOTPAGE
Lloh3:
	ldr	x24, [x24, _AC_VERB_SET_POWER_STATE@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x22, x22, #1
	ldrsw	x8, [x20]
	cmp	x22, x8
	b.ge	LBB0_9
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #8]
	ldr	w21, [x8, x22, lsl #2]
	ldr	w2, [x23]
	mov	x0, x19
	mov	x1, x21
	bl	_snd_hda_check_power_state
	cbnz	w0, LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x19
	mov	x1, x21
	bl	_is_active_nid_for_any
	cbnz	w0, LBB0_5
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w3, [x24]
	ldr	w4, [x23]
	mov	x0, x19
	mov	x1, x21
	mov	w2, #0
	bl	_snd_hda_codec_write
	mov	w25, #1
	b	LBB0_5
LBB0_9:
	cbz	w25, LBB0_2
; %bb.10:
	mov	w0, #10
	bl	_msleep
	ldr	x8, [x20, #8]
	ldr	w1, [x8]
Lloh4:
	adrp	x8, _AC_VERB_GET_POWER_STATE@GOTPAGE
Lloh5:
	ldr	x8, [x8, _AC_VERB_GET_POWER_STATE@GOTPAGEOFF]
Lloh6:
	ldr	w3, [x8]
	mov	x0, x19
	mov	w2, #0
	mov	w4, #0
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_snd_hda_codec_read
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_AC_PWRST_D3,4,2                ; @AC_PWRST_D3
	.comm	_AC_VERB_SET_POWER_STATE,4,2    ; @AC_VERB_SET_POWER_STATE
	.comm	_AC_VERB_GET_POWER_STATE,4,2    ; @AC_VERB_GET_POWER_STATE
	.no_dead_strip	_path_power_down_sync
.subsections_via_symbols
