	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_emu10k1_fx8010_playback_trigger
_snd_emu10k1_fx8010_playback_trigger:   ## @snd_emu10k1_fx8010_playback_trigger
	.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	%esi, %ebx
	movq	%rdi, %r12
	callq	_snd_pcm_substream_chip
	movq	%rax, %r15
	movq	16(%rax), %r13
	movq	(%r12), %r14
	movq	%rax, %rdi
	callq	_spin_lock
	addl	$-128, %ebx
	cmpl	$5, %ebx
	ja	LBB0_5
## %bb.1:
	movl	$28, %eax
	btl	%ebx, %eax
	jae	LBB0_4
## %bb.2:
	movq	_snd_emu10k1_fx8010_playback_irq@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	(%r14,%r14,4), %rbx
	movl	32(%r13,%rbx,8), %edx
	leaq	24(,%rbx,8), %r8
	addq	%r13, %r8
	movq	%r15, %rdi
	movq	%r12, %rcx
	callq	_snd_emu10k1_fx8010_register_irq_handler
	movl	%eax, %r14d
	testl	%eax, %eax
	js	LBB0_6
## %bb.3:
	movq	%r12, %rdi
	callq	_snd_emu10k1_fx8010_playback_transfer
	movq	16(%r13,%rbx,8), %rsi
	addq	8(%r15), %rsi
	movq	%r15, %rdi
	xorl	%edx, %edx
	movl	$1, %ecx
	callq	_snd_emu10k1_ptr_write
	jmp	LBB0_6
LBB0_4:
	leaq	(%r14,%r14,4), %rbx
	movq	24(%r13,%rbx,8), %rsi
	movq	%r15, %rdi
	callq	_snd_emu10k1_fx8010_unregister_irq_handler
	movq	$0, 24(%r13,%rbx,8)
	movq	16(%r13,%rbx,8), %rsi
	addq	8(%r15), %rsi
	xorl	%r14d, %r14d
	movq	%r15, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_snd_emu10k1_ptr_write
	movl	4(%r13,%rbx,8), %edi
	callq	_INITIAL_TRAM_POS
	movl	%eax, 8(%r13,%rbx,8)
	movl	$0, (%r13,%rbx,8)
	jmp	LBB0_6
LBB0_5:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_6:
	movq	%r15, %rdi
	callq	_spin_unlock
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_snd_emu10k1_fx8010_playback_irq,4,2 ## @snd_emu10k1_fx8010_playback_irq
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_SPCS0,4,2                      ## @SPCS0
	.comm	_SPCS_CHANNELNUM_LEFT,4,2       ## @SPCS_CHANNELNUM_LEFT
	.comm	_SPCS_CLKACCY_1000PPM,4,2       ## @SPCS_CLKACCY_1000PPM
	.comm	_SPCS_COPYRIGHT,4,2             ## @SPCS_COPYRIGHT
	.comm	_SPCS_EMPHASIS_NONE,4,2         ## @SPCS_EMPHASIS_NONE
	.comm	_SPCS_GENERATIONSTATUS,4,2      ## @SPCS_GENERATIONSTATUS
	.comm	_SPCS_NOTAUDIODATA,4,2          ## @SPCS_NOTAUDIODATA
	.comm	_SPCS_SAMPLERATE_48,4,2         ## @SPCS_SAMPLERATE_48
	.comm	_SPCS_SOURCENUM_UNSPEC,4,2      ## @SPCS_SOURCENUM_UNSPEC
	.no_dead_strip	_snd_emu10k1_fx8010_playback_trigger
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function snd_emu10k1_fx8010_playback_trigger
_snd_emu10k1_fx8010_playback_trigger:   ; @snd_emu10k1_fx8010_playback_trigger
	.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	x21, x1
	mov	x20, x0
	bl	_snd_pcm_substream_chip
	mov	x19, x0
	ldr	x22, [x0, #16]
	ldr	x23, [x20]
	bl	_spin_lock
	sub	w8, w21, #128
	cmp	w8, #5
	b.hi	LBB0_5
; %bb.1:
	mov	w9, #1
	lsl	w8, w9, w8
	tst	w8, #0x1c
	b.eq	LBB0_4
; %bb.2:
Lloh0:
	adrp	x8, _snd_emu10k1_fx8010_playback_irq@GOTPAGE
Lloh1:
	ldr	x8, [x8, _snd_emu10k1_fx8010_playback_irq@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w8, #40
	madd	x8, x23, x8, x22
	ldr	w2, [x8, #32]
	add	x4, x8, #24
	mov	x0, x19
	mov	x3, x20
	bl	_snd_emu10k1_fx8010_register_irq_handler
	mov	x21, x0
	tbnz	w0, #31, LBB0_6
; %bb.3:
	mov	x0, x20
	bl	_snd_emu10k1_fx8010_playback_transfer
	ldr	x8, [x19, #8]
	mov	w9, #40
	madd	x9, x23, x9, x22
	ldr	x9, [x9, #16]
	add	x1, x9, x8
	mov	x0, x19
	mov	w2, #0
	mov	w3, #1
	bl	_snd_emu10k1_ptr_write
	b	LBB0_6
LBB0_4:
	mov	w8, #40
	madd	x20, x23, x8, x22
	ldr	x1, [x20, #24]
	mov	x0, x19
	bl	_snd_emu10k1_fx8010_unregister_irq_handler
	str	xzr, [x20, #24]
	ldr	x8, [x19, #8]
	ldr	x9, [x20, #16]
	add	x1, x9, x8
	mov	x0, x19
	mov	w2, #0
	mov	w3, #0
	bl	_snd_emu10k1_ptr_write
	ldr	w0, [x20, #4]
	bl	_INITIAL_TRAM_POS
	mov	w21, #0
	str	w0, [x20, #8]
	str	wzr, [x20]
	b	LBB0_6
LBB0_5:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_6:
	mov	x0, x19
	bl	_spin_unlock
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_snd_emu10k1_fx8010_playback_irq,4,2 ; @snd_emu10k1_fx8010_playback_irq
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_SPCS0,4,2                      ; @SPCS0
	.comm	_SPCS_CHANNELNUM_LEFT,4,2       ; @SPCS_CHANNELNUM_LEFT
	.comm	_SPCS_CLKACCY_1000PPM,4,2       ; @SPCS_CLKACCY_1000PPM
	.comm	_SPCS_COPYRIGHT,4,2             ; @SPCS_COPYRIGHT
	.comm	_SPCS_EMPHASIS_NONE,4,2         ; @SPCS_EMPHASIS_NONE
	.comm	_SPCS_GENERATIONSTATUS,4,2      ; @SPCS_GENERATIONSTATUS
	.comm	_SPCS_NOTAUDIODATA,4,2          ; @SPCS_NOTAUDIODATA
	.comm	_SPCS_SAMPLERATE_48,4,2         ; @SPCS_SAMPLERATE_48
	.comm	_SPCS_SOURCENUM_UNSPEC,4,2      ; @SPCS_SOURCENUM_UNSPEC
	.no_dead_strip	_snd_emu10k1_fx8010_playback_trigger
.subsections_via_symbols
