	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_ps3_interrupt
_snd_ps3_interrupt:                     ## @snd_ps3_interrupt
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpl	$0, 16(%rsi)
	movq	_PS3_AUDIO_AX_IS@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	je	LBB0_1
## %bb.2:
	movq	%rsi, %r14
	callq	_read_reg
	movl	%eax, %ebx
	xorl	%edi, %edi
	callq	_PS3_AUDIO_AX_IE_ASOBEIE
	testl	%ebx, %eax
	je	LBB0_14
## %bb.3:
	movl	(%r12), %r15d
	xorl	%edi, %edi
	callq	_PS3_AUDIO_AX_IE_ASOBEIE
	movl	%r15d, %edi
	movl	%eax, %esi
	callq	_write_reg
	xorl	%edi, %edi
	callq	_PS3_AUDIO_AX_IE_ASOBUIE
	movl	%eax, %r15d
	testl	%ebx, %eax
	je	LBB0_5
## %bb.4:
	movl	(%r12), %edi
	movl	%ebx, %esi
	callq	_write_reg
LBB0_5:
	cmpq	$0, 8(%r14)
	je	LBB0_10
## %bb.6:
	testl	%ebx, %r15d
	jne	LBB0_7
## %bb.8:
	movq	_SND_PS3_DMA_FILLTYPE_SILENT_RUNNING@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_1:
	xorl	%esi, %esi
	callq	_update_reg
	movq	_PS3_AUDIO_INTR_0@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_update_reg
	jmp	LBB0_16
LBB0_14:
	xorl	%edi, %edi
	callq	_PS3_AUDIO_AX_IE_ASOBUIE
	testl	%ebx, %eax
	je	LBB0_16
## %bb.15:
	movl	(%r12), %ebx
	xorl	%edi, %edi
	callq	_PS3_AUDIO_AX_IE_ASOBUIE
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_write_reg
	movq	_SND_PS3_DMA_FILLTYPE_SILENT_FIRSTFILL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r14, %rdi
	callq	_snd_ps3_program_dma
	movq	%r14, %rdi
	callq	_snd_ps3_kick_dma
	movl	(%rbx), %esi
	movq	%r14, %rdi
	callq	_snd_ps3_program_dma
	movq	%r14, %rdi
	callq	_snd_ps3_kick_dma
	jmp	LBB0_16
LBB0_10:
	testl	%ebx, %r15d
	jne	LBB0_11
## %bb.12:
	movq	_SND_PS3_DMA_FILLTYPE_RUNNING@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_7:
	movq	_SND_PS3_DMA_FILLTYPE_SILENT_FIRSTFILL@GOTPCREL(%rip), %rax
LBB0_9:
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_snd_ps3_program_dma
	movq	%r14, %rdi
	callq	_snd_ps3_kick_dma
	decq	8(%r14)
	jmp	LBB0_16
LBB0_11:
	movq	_SND_PS3_DMA_FILLTYPE_FIRSTFILL@GOTPCREL(%rip), %rax
LBB0_13:
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_snd_ps3_program_dma
	movq	%r14, %rdi
	callq	_snd_ps3_kick_dma
	movl	(%r14), %edi
	callq	_snd_pcm_period_elapsed
LBB0_16:
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PS3_AUDIO_AX_IS,4,2            ## @PS3_AUDIO_AX_IS
	.comm	_PS3_AUDIO_INTR_0,4,2           ## @PS3_AUDIO_INTR_0
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.comm	_SND_PS3_DMA_FILLTYPE_SILENT_FIRSTFILL,4,2 ## @SND_PS3_DMA_FILLTYPE_SILENT_FIRSTFILL
	.comm	_SND_PS3_DMA_FILLTYPE_SILENT_RUNNING,4,2 ## @SND_PS3_DMA_FILLTYPE_SILENT_RUNNING
	.comm	_SND_PS3_DMA_FILLTYPE_FIRSTFILL,4,2 ## @SND_PS3_DMA_FILLTYPE_FIRSTFILL
	.comm	_SND_PS3_DMA_FILLTYPE_RUNNING,4,2 ## @SND_PS3_DMA_FILLTYPE_RUNNING
	.no_dead_strip	_snd_ps3_interrupt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function snd_ps3_interrupt
_snd_ps3_interrupt:                     ; @snd_ps3_interrupt
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	ldr	w8, [x1, #16]
Lloh0:
	adrp	x22, _PS3_AUDIO_AX_IS@GOTPAGE
Lloh1:
	ldr	x22, [x22, _PS3_AUDIO_AX_IS@GOTPAGEOFF]
	ldr	w0, [x22]
	cbz	w8, LBB0_6
; %bb.1:
	mov	x19, x1
	bl	_read_reg
	mov	x20, x0
	mov	w0, #0
	bl	_PS3_AUDIO_AX_IE_ASOBEIE
	tst	w0, w20
	b.eq	LBB0_7
; %bb.2:
	ldr	w21, [x22]
	mov	w0, #0
	bl	_PS3_AUDIO_AX_IE_ASOBEIE
	mov	x1, x0
	mov	x0, x21
	bl	_write_reg
	mov	w0, #0
	bl	_PS3_AUDIO_AX_IE_ASOBUIE
	ands	w21, w0, w20
	b.eq	LBB0_4
; %bb.3:
	ldr	w0, [x22]
	mov	x1, x20
	bl	_write_reg
LBB0_4:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_9
; %bb.5:
Lloh2:
	adrp	x8, _SND_PS3_DMA_FILLTYPE_SILENT_FIRSTFILL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SND_PS3_DMA_FILLTYPE_SILENT_FIRSTFILL@GOTPAGEOFF]
Lloh4:
	adrp	x9, _SND_PS3_DMA_FILLTYPE_SILENT_RUNNING@GOTPAGE
Lloh5:
	ldr	x9, [x9, _SND_PS3_DMA_FILLTYPE_SILENT_RUNNING@GOTPAGEOFF]
	cmp	w21, #0
	csel	x8, x9, x8, eq
	ldr	w1, [x8]
	mov	x0, x19
	bl	_snd_ps3_program_dma
	mov	x0, x19
	bl	_snd_ps3_kick_dma
	ldr	x8, [x19, #8]
	sub	x8, x8, #1
	str	x8, [x19, #8]
	b	LBB0_10
LBB0_6:
	mov	w1, #0
	bl	_update_reg
Lloh6:
	adrp	x8, _PS3_AUDIO_INTR_0@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PS3_AUDIO_INTR_0@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	mov	w1, #0
	bl	_update_reg
	b	LBB0_10
LBB0_7:
	mov	w0, #0
	bl	_PS3_AUDIO_AX_IE_ASOBUIE
	tst	w0, w20
	b.eq	LBB0_10
; %bb.8:
	ldr	w20, [x22]
	mov	w0, #0
	bl	_PS3_AUDIO_AX_IE_ASOBUIE
	mov	x1, x0
	mov	x0, x20
	bl	_write_reg
Lloh9:
	adrp	x20, _SND_PS3_DMA_FILLTYPE_SILENT_FIRSTFILL@GOTPAGE
Lloh10:
	ldr	x20, [x20, _SND_PS3_DMA_FILLTYPE_SILENT_FIRSTFILL@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_snd_ps3_program_dma
	mov	x0, x19
	bl	_snd_ps3_kick_dma
	ldr	w1, [x20]
	mov	x0, x19
	bl	_snd_ps3_program_dma
	mov	x0, x19
	bl	_snd_ps3_kick_dma
	b	LBB0_10
LBB0_9:
Lloh11:
	adrp	x8, _SND_PS3_DMA_FILLTYPE_FIRSTFILL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _SND_PS3_DMA_FILLTYPE_FIRSTFILL@GOTPAGEOFF]
Lloh13:
	adrp	x9, _SND_PS3_DMA_FILLTYPE_RUNNING@GOTPAGE
Lloh14:
	ldr	x9, [x9, _SND_PS3_DMA_FILLTYPE_RUNNING@GOTPAGEOFF]
	cmp	w21, #0
	csel	x8, x9, x8, eq
	ldr	w1, [x8]
	mov	x0, x19
	bl	_snd_ps3_program_dma
	mov	x0, x19
	bl	_snd_ps3_kick_dma
	ldr	w0, [x19]
	bl	_snd_pcm_period_elapsed
LBB0_10:
Lloh15:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh16:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_PS3_AUDIO_AX_IS,4,2            ; @PS3_AUDIO_AX_IS
	.comm	_PS3_AUDIO_INTR_0,4,2           ; @PS3_AUDIO_INTR_0
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.comm	_SND_PS3_DMA_FILLTYPE_SILENT_FIRSTFILL,4,2 ; @SND_PS3_DMA_FILLTYPE_SILENT_FIRSTFILL
	.comm	_SND_PS3_DMA_FILLTYPE_SILENT_RUNNING,4,2 ; @SND_PS3_DMA_FILLTYPE_SILENT_RUNNING
	.comm	_SND_PS3_DMA_FILLTYPE_FIRSTFILL,4,2 ; @SND_PS3_DMA_FILLTYPE_FIRSTFILL
	.comm	_SND_PS3_DMA_FILLTYPE_RUNNING,4,2 ; @SND_PS3_DMA_FILLTYPE_RUNNING
	.no_dead_strip	_snd_ps3_interrupt
.subsections_via_symbols
