	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_snd_hda_codec_resume_cache     ## -- Begin function snd_hda_codec_resume_cache
	.p2align	4, 0x90
_snd_hda_codec_resume_cache:            ## @snd_hda_codec_resume_cache
	.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
	movq	%rdi, %rbx
	callq	_mutex_lock
	movq	$0, 8(%rbx)
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	cmpl	$0, 4(%rbx)
	jle	LBB0_6
## %bb.1:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	leaq	4(%rax), %r15
	xorl	%ebx, %ebx
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	incl	%ebx
	cmpl	(%r15), %ebx
	jge	LBB0_6
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_snd_array_elem
	movl	16(%rax), %r13d
	testl	%r13d, %r13d
	je	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, %r12
	cmpq	$0, 8(%rax)
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	$0, 8(%r12)
	movq	%r14, %rdi
	callq	_mutex_unlock
	movl	%r13d, %edi
	callq	_get_cmd_cache_nid
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movl	%r13d, %edi
	callq	_get_cmd_cache_cmd
	movl	(%r12), %r8d
	movq	%r14, %rdi
	movl	-52(%rbp), %esi                 ## 4-byte Reload
	xorl	%edx, %edx
	movl	%eax, %ecx
	callq	_snd_hda_codec_write
	movq	%r14, %rdi
	callq	_mutex_lock
	jmp	LBB0_5
LBB0_6:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mutex_unlock                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_snd_hda_codec_resume_cache     ; -- Begin function snd_hda_codec_resume_cache
	.p2align	2
_snd_hda_codec_resume_cache:            ; @snd_hda_codec_resume_cache
	.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
	mov	x19, x0
	bl	_mutex_lock
	mov	x20, x19
	ldr	w8, [x20, #4]!
	stur	xzr, [x20, #4]
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.1:
	mov	w21, #0
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	w21, w21, #1
	ldr	w8, [x20]
	cmp	w21, w8
	b.ge	LBB0_6
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	x1, x21
	bl	_snd_array_elem
	ldr	w23, [x0, #16]
	cbz	w23, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x22, x0
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	str	xzr, [x22, #8]
	mov	x0, x19
	bl	_mutex_unlock
	mov	x0, x23
	bl	_get_cmd_cache_nid
	mov	x24, x0
	mov	x0, x23
	bl	_get_cmd_cache_cmd
	mov	x3, x0
	ldr	w4, [x22]
	mov	x0, x19
	mov	x1, x24
	mov	w2, #0
	bl	_snd_hda_codec_write
	mov	x0, x19
	bl	_mutex_lock
	b	LBB0_2
LBB0_6:
	mov	x0, x19
	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	_mutex_unlock
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
