	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function omap_pcm_dma_irq
_omap_pcm_dma_irq:                      ## @omap_pcm_dma_irq
	.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	%rdx, %rbx
	movl	%esi, %r15d
	movq	8(%rdx), %r13
	movq	8(%r13), %r12
	xorl	%eax, %eax
	callq	_cpu_is_omap1510
	testq	%rax, %rax
	je	LBB0_11
## %bb.1:
	movq	(%rbx), %rax
	movq	_SNDRV_PCM_STREAM_PLAYBACK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_11
## %bb.2:
	leaq	4(%r12), %r14
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movq	_OMAP_DMA_LAST_IRQ@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	(%r12), %eax
	cmpl	%r15d, %ecx
	jne	LBB0_4
## %bb.3:
	movl	(%r13), %edx
	decl	%edx
	cmpl	%edx, %eax
	jne	LBB0_4
## %bb.12:
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock_irqrestore         ## TAILCALL
LBB0_4:
	testl	%eax, %eax
	js	LBB0_10
## %bb.5:
	movq	_OMAP_DMA_BLOCK_IRQ@GOTPCREL(%rip), %rsi
	xorl	%edx, %edx
	testl	%r15d, (%rsi)
	jne	LBB0_9
## %bb.6:
	testl	%r15d, %ecx
	je	LBB0_8
## %bb.7:
	movl	(%r13), %edx
	decl	%edx
	jmp	LBB0_9
LBB0_8:
	incl	%eax
	xorl	%edx, %edx
	cmpl	(%r13), %eax
	cmovll	%eax, %edx
LBB0_9:
	movl	%edx, (%r12)
LBB0_10:
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
LBB0_11:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_snd_pcm_period_elapsed         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_SNDRV_PCM_STREAM_PLAYBACK,8,3  ## @SNDRV_PCM_STREAM_PLAYBACK
	.comm	_OMAP_DMA_LAST_IRQ,4,2          ## @OMAP_DMA_LAST_IRQ
	.comm	_OMAP_DMA_BLOCK_IRQ,4,2         ## @OMAP_DMA_BLOCK_IRQ
	.no_dead_strip	_omap_pcm_dma_irq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function omap_pcm_dma_irq
_omap_pcm_dma_irq:                      ; @omap_pcm_dma_irq
	.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	x19, x2
	mov	x21, x1
	ldr	x23, [x2, #8]
	ldr	x22, [x23, #8]
	bl	_cpu_is_omap1510
	cbz	x0, LBB0_13
; %bb.1:
	ldr	x8, [x19]
Lloh0:
	adrp	x9, _SNDRV_PCM_STREAM_PLAYBACK@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SNDRV_PCM_STREAM_PLAYBACK@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_13
; %bb.2:
	add	x20, x22, #4
	mov	x0, x20
	bl	_spin_lock_irqsave
Lloh3:
	adrp	x8, _OMAP_DMA_LAST_IRQ@GOTPAGE
Lloh4:
	ldr	x8, [x8, _OMAP_DMA_LAST_IRQ@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x8]
	ldr	w8, [x22]
	cmp	w9, w21
	b.ne	LBB0_5
; %bb.3:
	ldr	w10, [x23]
	sub	w10, w10, #1
	cmp	w8, w10
	b.ne	LBB0_5
; %bb.4:
	mov	x0, x20
	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
	b	_spin_unlock_irqrestore
LBB0_5:
	tbnz	w8, #31, LBB0_12
; %bb.6:
Lloh6:
	adrp	x10, _OMAP_DMA_BLOCK_IRQ@GOTPAGE
Lloh7:
	ldr	x10, [x10, _OMAP_DMA_BLOCK_IRQ@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	tst	w10, w21
	b.eq	LBB0_8
; %bb.7:
	mov	w8, #0
	b	LBB0_11
LBB0_8:
	tst	w9, w21
	b.eq	LBB0_10
; %bb.9:
	ldr	w8, [x23]
	sub	w8, w8, #1
	b	LBB0_11
LBB0_10:
	add	w9, w8, #1
	ldr	w10, [x23]
	cmp	w9, w10
	csinc	w8, wzr, w8, ge
LBB0_11:
	str	w8, [x22]
LBB0_12:
	mov	x0, x20
	bl	_spin_unlock_irqrestore
LBB0_13:
	mov	x0, x19
	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
	b	_snd_pcm_period_elapsed
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_SNDRV_PCM_STREAM_PLAYBACK,8,3  ; @SNDRV_PCM_STREAM_PLAYBACK
	.comm	_OMAP_DMA_LAST_IRQ,4,2          ; @OMAP_DMA_LAST_IRQ
	.comm	_OMAP_DMA_BLOCK_IRQ,4,2         ; @OMAP_DMA_BLOCK_IRQ
	.no_dead_strip	_omap_pcm_dma_irq
.subsections_via_symbols
