	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_snd_hda_codec_write_cache      ## -- Begin function snd_hda_codec_write_cache
	.p2align	4, 0x90
_snd_hda_codec_write_cache:             ## @snd_hda_codec_write_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, %r14d
	movl	%ecx, %r12d
	movl	%esi, %r15d
	movq	%rdi, %rbx
	movl	(%rdi), %r13d
	testl	%r13d, %r13d
	jne	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	movl	%r15d, %esi
	movl	%r12d, %ecx
	movl	%r14d, %r8d
	callq	_snd_hda_codec_write
	testl	%eax, %eax
	js	LBB0_5
LBB0_2:
	movl	%r14d, %esi
	shrl	$8, %esi
	orl	%r12d, %esi
	movl	%r15d, %edi
	callq	_build_cmd_cache_key
	movl	%eax, %r15d
	movq	8(%rbx), %rdi
	callq	_mutex_lock
	leaq	16(%rbx), %rdi
	movl	%r15d, %esi
	callq	_get_alloc_hash
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movzbl	%r14b, %ecx
	movl	%ecx, (%rax)
	movl	%r13d, 4(%rax)
LBB0_4:
	movq	8(%rbx), %rdi
	callq	_mutex_unlock
	xorl	%eax, %eax
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.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_write_cache      ; -- Begin function snd_hda_codec_write_cache
	.p2align	2
_snd_hda_codec_write_cache:             ; @snd_hda_codec_write_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	x20, x4
	mov	x22, x3
	mov	x21, x1
	mov	x19, x0
	ldr	w23, [x0]
	cbnz	w23, LBB0_2
; %bb.1:
	mov	x0, x19
	mov	x1, x21
	mov	x3, x22
	mov	x4, x20
	bl	_snd_hda_codec_write
	tbnz	w0, #31, LBB0_5
LBB0_2:
	orr	w1, w22, w20, lsr #8
	mov	x0, x21
	bl	_build_cmd_cache_key
	mov	x21, x0
	ldr	x0, [x19, #8]
	bl	_mutex_lock
	add	x0, x19, #16
	mov	x1, x21
	bl	_get_alloc_hash
	cbz	x0, LBB0_4
; %bb.3:
	and	w8, w20, #0xff
	stp	w8, w23, [x0]
LBB0_4:
	ldr	x0, [x19, #8]
	bl	_mutex_unlock
	mov	w0, #0
LBB0_5:
	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
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
