	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_emu10k1_playback_invalidate_cache
_snd_emu10k1_playback_invalidate_cache: ## @snd_emu10k1_playback_invalidate_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
	testq	%rdx, %rdx
	je	LBB0_12
## %bb.1:
	movq	%rdi, %r12
	movq	8(%rdx), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	xorl	%r14d, %r14d
	movl	$0, %edi
	testl	%esi, %esi
	jne	LBB0_3
## %bb.2:
	cmpl	$2, (%rax)
	sete	%dil
LBB0_3:
	movl	(%rdx), %ecx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movl	%edi, -48(%rbp)                 ## 4-byte Spill
	movzbl	%dil, %r13d
	movl	4(%rax), %edi
	callq	_snd_pcm_format_width
	movl	%eax, %ebx
	xorl	%esi, %esi
	cmpl	$16, %eax
	sete	%sil
	movl	%r13d, %edi
	callq	_emu10k1_ccis
	movl	$32, %edx
	subl	%eax, %edx
	movl	$65, %ecx
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	subl	%eax, %ecx
	shrl	%ecx
	cmpl	$16, %ebx
	cmovel	%edx, %ecx
	movl	$-2139062144, %ebx              ## imm = 0x80808080
	cmovel	%r14d, %ebx
	cmpl	$16, %ecx
	movl	$16, %eax
	cmovbl	%ecx, %eax
	testl	%eax, %eax
	je	LBB0_8
## %bb.4:
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	incl	%ecx
	movl	%ecx, -60(%rbp)                 ## 4-byte Spill
	movl	%eax, %r14d
	xorl	%r13d, %r13d
	movq	_CD0@GOTPCREL(%rip), %r15
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	incq	%r13
	cmpq	%r13, %r14
	je	LBB0_8
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rsi
	addq	%r13, %rsi
	movq	%r12, %rdi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
                                        ## kill: def $edx killed $edx killed $rdx
	movl	%ebx, %ecx
	callq	_snd_emu10k1_ptr_write
	cmpb	$0, -48(%rbp)                   ## 1-byte Folded Reload
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	(%r15), %rsi
	addq	%r13, %rsi
	movq	%r12, %rdi
	movl	-60(%rbp), %edx                 ## 4-byte Reload
	movl	%ebx, %ecx
	callq	_snd_emu10k1_ptr_write
	jmp	LBB0_7
LBB0_8:
	movq	_CCR_CACHEINVALIDSIZE@GOTPCREL(%rip), %r13
	movq	(%r13), %rsi
	movq	%r12, %rbx
	movq	%r12, %rdi
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	movl	%r12d, %edx
	xorl	%ecx, %ecx
	callq	_snd_emu10k1_ptr_write
	movq	_CCR_READADDRESS@GOTPCREL(%rip), %r14
	movq	(%r14), %rsi
	movq	%rbx, %rdi
	movl	%r12d, %edx
	movl	$64, %ecx
	callq	_snd_emu10k1_ptr_write
	movq	(%r13), %rsi
	cmpb	$0, -48(%rbp)                   ## 1-byte Folded Reload
	je	LBB0_10
## %bb.9:
	leal	1(%r12), %r15d
	movq	%rbx, %rdi
	movl	%r15d, %edx
	xorl	%ecx, %ecx
	callq	_snd_emu10k1_ptr_write
	movq	(%r14), %rsi
	movq	%rbx, %rdi
	movl	%r15d, %edx
	movl	$64, %ecx
	callq	_snd_emu10k1_ptr_write
	movq	(%r13), %rsi
	movq	%rbx, %rdi
	movl	%r12d, %edx
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	movl	%r14d, %ecx
	callq	_snd_emu10k1_ptr_write
	movq	(%r13), %rsi
	movq	%rbx, %rdi
	movl	%r15d, %edx
	movl	%r14d, %ecx
	jmp	LBB0_11
LBB0_12:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movq	%rbx, %rdi
	movl	%r12d, %edx
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
LBB0_11:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_snd_emu10k1_ptr_write          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_CD0,8,3                        ## @CD0
	.comm	_CCR_CACHEINVALIDSIZE,8,3       ## @CCR_CACHEINVALIDSIZE
	.comm	_CCR_READADDRESS,8,3            ## @CCR_READADDRESS
	.no_dead_strip	_snd_emu10k1_playback_invalidate_cache
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function snd_emu10k1_playback_invalidate_cache
_snd_emu10k1_playback_invalidate_cache: ; @snd_emu10k1_playback_invalidate_cache
	.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
	cbz	x2, LBB0_3
; %bb.1:
	mov	x19, x0
	ldr	x8, [x2, #8]
	ldr	x8, [x8]
	ldr	x8, [x8]
	ldr	w20, [x2]
	cbz	w1, LBB0_4
; %bb.2:
	mov	w22, #0
	b	LBB0_5
LBB0_3:
	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
LBB0_4:
	ldr	w9, [x8]
	cmp	w9, #2
	cset	w22, eq
LBB0_5:
	ldr	w0, [x8, #4]
	bl	_snd_pcm_format_width
	mov	x23, x0
	cmp	w0, #16
	cset	w1, eq
	mov	x0, x22
	bl	_emu10k1_ccis
	mov	x21, x0
	mov	w8, #32
	sub	w8, w8, w0
	mov	w9, #65
	sub	w9, w9, w0
	mov	w10, #-2139062144
	cmp	w23, #16
	csel	w23, wzr, w10, eq
	lsr	w9, w9, #1
	csel	w8, w8, w9, eq
	mov	w9, #16
	cmp	w8, #16
	csel	w25, w8, w9, lo
	cbz	w25, LBB0_10
; %bb.6:
	mov	x26, #0
	add	w24, w20, #1
Lloh0:
	adrp	x27, _CD0@GOTPAGE
Lloh1:
	ldr	x27, [x27, _CD0@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	add	x26, x26, #1
	cmp	x25, x26
	b.eq	LBB0_10
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x27]
	add	x1, x26, x8
	mov	x0, x19
	mov	x2, x20
	mov	x3, x23
	bl	_snd_emu10k1_ptr_write
	cbz	w22, LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	x8, [x27]
	add	x1, x26, x8
	mov	x0, x19
	mov	x2, x24
	mov	x3, x23
	bl	_snd_emu10k1_ptr_write
	b	LBB0_7
LBB0_10:
Lloh2:
	adrp	x23, _CCR_CACHEINVALIDSIZE@GOTPAGE
Lloh3:
	ldr	x23, [x23, _CCR_CACHEINVALIDSIZE@GOTPAGEOFF]
	ldr	x1, [x23]
	mov	x0, x19
	mov	x2, x20
	mov	w3, #0
	bl	_snd_emu10k1_ptr_write
Lloh4:
	adrp	x24, _CCR_READADDRESS@GOTPAGE
Lloh5:
	ldr	x24, [x24, _CCR_READADDRESS@GOTPAGEOFF]
	ldr	x1, [x24]
	mov	x0, x19
	mov	x2, x20
	mov	w3, #64
	bl	_snd_emu10k1_ptr_write
	ldr	x1, [x23]
	cbz	w22, LBB0_12
; %bb.11:
	add	w22, w20, #1
	mov	x0, x19
	mov	x2, x22
	mov	w3, #0
	bl	_snd_emu10k1_ptr_write
	ldr	x1, [x24]
	mov	x0, x19
	mov	x2, x22
	mov	w3, #64
	bl	_snd_emu10k1_ptr_write
	ldr	x1, [x23]
	mov	x0, x19
	mov	x2, x20
	mov	x3, x21
	bl	_snd_emu10k1_ptr_write
	ldr	x1, [x23]
	mov	x0, x19
	mov	x2, x22
	b	LBB0_13
LBB0_12:
	mov	x0, x19
	mov	x2, x20
LBB0_13:
	mov	x3, x21
	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
	b	_snd_emu10k1_ptr_write
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_CD0,8,3                        ; @CD0
	.comm	_CCR_CACHEINVALIDSIZE,8,3       ; @CCR_CACHEINVALIDSIZE
	.comm	_CCR_READADDRESS,8,3            ; @CCR_READADDRESS
	.no_dead_strip	_snd_emu10k1_playback_invalidate_cache
.subsections_via_symbols
