	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_ps3_pcm_trigger
_snd_ps3_pcm_trigger:                   ## @snd_ps3_pcm_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %ebx
	callq	_snd_pcm_substream_chip
	movq	%rax, %r14
	cmpl	$128, %ebx
	je	LBB0_6
## %bb.1:
	cmpl	$129, %ebx
	jne	LBB0_7
## %bb.2:
	movq	_PS3_AUDIO_AX_IS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_update_reg
	movq	%r14, %rbx
	addq	$4, %rbx
	movq	%rbx, %rdi
	callq	_spin_lock
	movl	$1, (%r14)
	movq	%rbx, %rdi
	callq	_spin_unlock
	movq	_SND_PS3_DMA_FILLTYPE_SILENT_FIRSTFILL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_snd_ps3_program_dma
	movq	%r14, %rdi
	callq	_snd_ps3_kick_dma
	movl	$7, %edi
	callq	_PS3_AUDIO_KICK
	movl	%eax, %edi
	callq	_read_reg
	movq	_PS3_AUDIO_KICK_STATUS_MASK@GOTPCREL(%rip), %rbx
	testl	%eax, (%rbx)
	je	LBB0_5
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	$1, %edi
	callq	_udelay
	movl	$7, %edi
	callq	_PS3_AUDIO_KICK
	movl	%eax, %edi
	callq	_read_reg
	testl	%eax, (%rbx)
	jne	LBB0_3
LBB0_5:
	movq	_SND_PS3_DMA_FILLTYPE_SILENT_RUNNING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_snd_ps3_program_dma
	movq	%r14, %rdi
	callq	_snd_ps3_kick_dma
	jmp	LBB0_7
LBB0_6:
	movq	%r14, %rbx
	addq	$4, %rbx
	movq	%rbx, %rdi
	callq	_spin_lock
	movl	$0, (%r14)
	movq	%rbx, %rdi
	callq	_spin_unlock
	movq	%r14, %rdi
	callq	_snd_ps3_wait_for_dma_stop
LBB0_7:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PS3_AUDIO_AX_IS,4,2            ## @PS3_AUDIO_AX_IS
	.comm	_SND_PS3_DMA_FILLTYPE_SILENT_FIRSTFILL,4,2 ## @SND_PS3_DMA_FILLTYPE_SILENT_FIRSTFILL
	.comm	_PS3_AUDIO_KICK_STATUS_MASK,4,2 ## @PS3_AUDIO_KICK_STATUS_MASK
	.comm	_SND_PS3_DMA_FILLTYPE_SILENT_RUNNING,4,2 ## @SND_PS3_DMA_FILLTYPE_SILENT_RUNNING
	.no_dead_strip	_snd_ps3_pcm_trigger
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function snd_ps3_pcm_trigger
_snd_ps3_pcm_trigger:                   ; @snd_ps3_pcm_trigger
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x1
	bl	_snd_pcm_substream_chip
	mov	x19, x0
	cmp	w20, #128
	b.eq	LBB0_5
; %bb.1:
	cmp	w20, #129
	b.ne	LBB0_7
; %bb.2:
Lloh0:
	adrp	x8, _PS3_AUDIO_AX_IS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PS3_AUDIO_AX_IS@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	mov	w1, #0
	bl	_update_reg
	add	x20, x19, #4
	mov	x0, x20
	bl	_spin_lock
	mov	w8, #1
	str	w8, [x19]
	mov	x0, x20
	bl	_spin_unlock
Lloh3:
	adrp	x8, _SND_PS3_DMA_FILLTYPE_SILENT_FIRSTFILL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SND_PS3_DMA_FILLTYPE_SILENT_FIRSTFILL@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_snd_ps3_program_dma
	mov	x0, x19
	bl	_snd_ps3_kick_dma
	mov	w0, #7
	bl	_PS3_AUDIO_KICK
	bl	_read_reg
Lloh6:
	adrp	x20, _PS3_AUDIO_KICK_STATUS_MASK@GOTPAGE
Lloh7:
	ldr	x20, [x20, _PS3_AUDIO_KICK_STATUS_MASK@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x20]
	tst	w8, w0
	b.eq	LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	w0, #1
	bl	_udelay
	mov	w0, #7
	bl	_PS3_AUDIO_KICK
	bl	_read_reg
	b	LBB0_3
LBB0_5:
	add	x20, x19, #4
	mov	x0, x20
	bl	_spin_lock
	str	wzr, [x19]
	mov	x0, x20
	bl	_spin_unlock
	mov	x0, x19
	bl	_snd_ps3_wait_for_dma_stop
	b	LBB0_7
LBB0_6:
Lloh8:
	adrp	x8, _SND_PS3_DMA_FILLTYPE_SILENT_RUNNING@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SND_PS3_DMA_FILLTYPE_SILENT_RUNNING@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_snd_ps3_program_dma
	mov	x0, x19
	bl	_snd_ps3_kick_dma
LBB0_7:
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_PS3_AUDIO_AX_IS,4,2            ; @PS3_AUDIO_AX_IS
	.comm	_SND_PS3_DMA_FILLTYPE_SILENT_FIRSTFILL,4,2 ; @SND_PS3_DMA_FILLTYPE_SILENT_FIRSTFILL
	.comm	_PS3_AUDIO_KICK_STATUS_MASK,4,2 ; @PS3_AUDIO_KICK_STATUS_MASK
	.comm	_SND_PS3_DMA_FILLTYPE_SILENT_RUNNING,4,2 ; @SND_PS3_DMA_FILLTYPE_SILENT_RUNNING
	.no_dead_strip	_snd_ps3_pcm_trigger
.subsections_via_symbols
