	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_emu10k1_ipcm_poke
_snd_emu10k1_ipcm_poke:                 ## @snd_emu10k1_ipcm_poke
	.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	(%rsi), %rax
	movq	_EMU10K1_FX8010_PCM_COUNT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jae	LBB0_1
## %bb.2:
	movq	%rsi, %rbx
	cmpl	$33, 8(%rsi)
	jl	LBB0_3
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_13
LBB0_3:
	movq	%rdi, %r15
	movq	8(%rdi), %r12
	imulq	$56, %rax, %r13
	callq	_mutex_lock
	leaq	16(%r15), %r14
	movq	%r14, %rdi
	callq	_spin_lock_irq
	cmpq	$0, 48(%r12,%r13)
	je	LBB0_6
## %bb.4:
	movq	_EBUSY@GOTPCREL(%rip), %rax
LBB0_5:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_12:
	movq	%r14, %rdi
	callq	_spin_unlock_irq
	movq	%r15, %rdi
	callq	_mutex_unlock
LBB0_13:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	leaq	(%r12,%r13), %rcx
	movl	8(%rbx), %eax
	cmpl	$2, %eax
	je	LBB0_10
## %bb.7:
	testl	%eax, %eax
	jne	LBB0_9
## %bb.8:
	movl	$0, (%rcx)
	xorl	%ebx, %ebx
	jmp	LBB0_12
LBB0_10:
	leaq	(%r12,%r13), %rax
	addq	$48, %rax
	movl	$1, (%rcx)
	movq	$0, (%rax)
	movl	$2, 4(%r12,%r13)
	movups	40(%rbx), %xmm0
	movups	%xmm0, 32(%r12,%r13)
	movups	24(%rbx), %xmm0
	movups	%xmm0, 16(%r12,%r13)
	movq	16(%rbx), %rcx
	movq	8(%r12,%r13), %rdx
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rcx,%rsi,4), %edi
	movl	%edi, (%rdx,%rsi,4)
	incq	%rsi
	movl	-44(%rax), %edi
	cmpq	%rdi, %rsi
	jb	LBB0_11
	jmp	LBB0_12
LBB0_9:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.comm	_EMU10K1_FX8010_PCM_COUNT,8,3   ## @EMU10K1_FX8010_PCM_COUNT
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_EBUSY,4,2                      ## @EBUSY
	.no_dead_strip	_snd_emu10k1_ipcm_poke
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function snd_emu10k1_ipcm_poke
lCPI0_0:
	.long	1                               ; 0x1
	.long	2                               ; 0x2
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_snd_emu10k1_ipcm_poke:                 ; @snd_emu10k1_ipcm_poke
	.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
	ldr	x22, [x1]
Lloh0:
	adrp	x8, _EMU10K1_FX8010_PCM_COUNT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EMU10K1_FX8010_PCM_COUNT@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x22, x8
	b.hs	LBB0_2
; %bb.1:
	mov	x21, x1
	ldr	w8, [x1, #8]
	cmp	w8, #33
	b.lt	LBB0_3
LBB0_2:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_7
LBB0_3:
	mov	x19, x0
	ldr	x24, [x0, #8]
	mov	w8, #56
	madd	x23, x22, x8, x24
	bl	_mutex_lock
	add	x20, x19, #16
	mov	x0, x20
	bl	_spin_lock_irq
	mov	x9, x23
	ldr	x8, [x9, #48]!
	cbz	x8, LBB0_8
; %bb.4:
Lloh6:
	adrp	x8, _EBUSY@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
LBB0_5:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_6:
	mov	x0, x20
	bl	_spin_unlock_irq
	mov	x0, x19
	bl	_mutex_unlock
LBB0_7:
	mov	x0, x21
	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
LBB0_8:
	ldr	w8, [x21, #8]
	cmp	w8, #2
	b.eq	LBB0_11
; %bb.9:
	cbnz	w8, LBB0_14
; %bb.10:
	mov	w21, #0
	str	wzr, [x23]
	b	LBB0_6
LBB0_11:
	mov	x8, #0
	str	xzr, [x9]
	mov	w9, #56
	madd	x11, x22, x9, x24
	add	x9, x11, #4
Lloh8:
	adrp	x10, lCPI0_0@PAGE
Lloh9:
	ldr	d0, [x10, lCPI0_0@PAGEOFF]
	str	d0, [x23]
	ldur	q0, [x21, #40]
	str	q0, [x11, #32]
	ldur	q0, [x21, #24]
	str	q0, [x11, #16]
	ldr	x10, [x21, #16]
	ldr	x11, [x11, #8]
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	lsl	x12, x8, #2
	ldr	w13, [x10, x12]
	str	w13, [x11, x12]
	add	x8, x8, #1
	ldr	w12, [x9]
	cmp	x8, x12
	b.lo	LBB0_12
; %bb.13:
	mov	w21, #0
	b	LBB0_6
LBB0_14:
Lloh10:
	adrp	x8, _EINVAL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdr	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_EMU10K1_FX8010_PCM_COUNT,8,3   ; @EMU10K1_FX8010_PCM_COUNT
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_EBUSY,4,2                      ; @EBUSY
	.no_dead_strip	_snd_emu10k1_ipcm_poke
.subsections_via_symbols
