	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function atmel_pcm_dma_irq
_atmel_pcm_dma_irq:                     ## @atmel_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	%rsi, %r14
	movl	%edi, %r15d
	movq	8(%rsi), %rax
	movq	(%rax), %r12
	movq	16(%r12), %rbx
	movl	_atmel_pcm_dma_irq.count(%rip), %r8d
	incl	%r8d
	movl	%r8d, _atmel_pcm_dma_irq.count(%rip)
	movq	24(%rbx), %rax
	testl	%edi, (%rax)
	je	LBB0_4
## %bb.1:
	movq	(%r14), %rax
	movq	_SNDRV_PCM_STREAM_PLAYBACK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	leaq	L_.str.1(%rip), %rax
	leaq	L_.str.2(%rip), %rsi
	cmoveq	%rax, %rsi
	movl	32(%rbx), %edx
	leaq	L_.str(%rip), %rdi
	movl	%r15d, %ecx
	callq	_pr_warning
	movq	16(%rbx), %rax
	movq	24(%rbx), %rcx
	movl	(%rax), %edi
	movq	_ATMEL_PDC_PTCR@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movl	4(%rcx), %edx
	callq	_ssc_writex
	movl	(%r12), %edx
	addl	4(%r12), %edx
	movl	%edx, (%r12)
	cmpl	8(%r12), %edx
	jl	LBB0_3
## %bb.2:
	movl	12(%r12), %edx
	movl	%edx, (%r12)
LBB0_3:
	movq	8(%rbx), %rax
	movq	16(%rbx), %rcx
	movl	(%rcx), %edi
	movl	12(%rax), %esi
	callq	_ssc_writex
	movq	8(%rbx), %rax
	movq	16(%rbx), %rcx
	movl	(%rcx), %edi
	movl	8(%rax), %esi
	movl	4(%r12), %eax
	cltd
	idivl	(%rbx)
	movl	%eax, %edx
	callq	_ssc_writex
	movq	16(%rbx), %rax
	movq	24(%rbx), %rcx
	movl	(%rax), %edi
	movl	(%r13), %esi
	movl	8(%rcx), %edx
	callq	_ssc_writex
	movq	24(%rbx), %rax
LBB0_4:
	testl	%r15d, 12(%rax)
	je	LBB0_8
## %bb.5:
	movl	(%r12), %edx
	addl	4(%r12), %edx
	movl	%edx, (%r12)
	cmpl	8(%r12), %edx
	jl	LBB0_7
## %bb.6:
	movl	12(%r12), %edx
	movl	%edx, (%r12)
LBB0_7:
	movq	8(%rbx), %rax
	movq	16(%rbx), %rcx
	movl	(%rcx), %edi
	movl	4(%rax), %esi
	callq	_ssc_writex
	movq	8(%rbx), %rax
	movq	16(%rbx), %rcx
	movl	(%rcx), %edi
	movl	(%rax), %esi
	movl	4(%r12), %eax
	cltd
	idivl	(%rbx)
	movl	%eax, %edx
	callq	_ssc_writex
LBB0_8:
	movq	%r14, %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
.zerofill __DATA,__bss,_atmel_pcm_dma_irq.count,4,2 ## @atmel_pcm_dma_irq.count
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"atmel-pcm: buffer %s on %s (SSC_SR=%#x, count=%d)\n"

	.comm	_SNDRV_PCM_STREAM_PLAYBACK,8,3  ## @SNDRV_PCM_STREAM_PLAYBACK
L_.str.1:                               ## @.str.1
	.asciz	"underrun"

L_.str.2:                               ## @.str.2
	.asciz	"overrun"

	.comm	_ATMEL_PDC_PTCR,4,2             ## @ATMEL_PDC_PTCR
	.no_dead_strip	_atmel_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 atmel_pcm_dma_irq
_atmel_pcm_dma_irq:                     ; @atmel_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, x1
	mov	x20, x0
	ldr	x8, [x1, #8]
	ldr	x21, [x8]
	ldr	x22, [x21, #16]
	adrp	x8, _atmel_pcm_dma_irq.count@PAGE
	ldr	w9, [x8, _atmel_pcm_dma_irq.count@PAGEOFF]
	add	w4, w9, #1
	str	w4, [x8, _atmel_pcm_dma_irq.count@PAGEOFF]
	ldr	x8, [x22, #24]
	ldr	w9, [x8]
	tst	w9, w0
	b.eq	LBB0_4
; %bb.1:
	ldr	x8, [x19]
Lloh0:
	adrp	x9, _SNDRV_PCM_STREAM_PLAYBACK@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SNDRV_PCM_STREAM_PLAYBACK@GOTPAGEOFF]
Lloh2:
	adrp	x10, l_.str.2@PAGE
Lloh3:
	add	x10, x10, l_.str.2@PAGEOFF
Lloh4:
	ldr	x9, [x9]
Lloh5:
	adrp	x11, l_.str.1@PAGE
Lloh6:
	add	x11, x11, l_.str.1@PAGEOFF
	cmp	x8, x9
	csel	x1, x11, x10, eq
	ldr	w2, [x22, #32]
Lloh7:
	adrp	x0, l_.str@PAGE
Lloh8:
	add	x0, x0, l_.str@PAGEOFF
	mov	x3, x20
	bl	_pr_warning
	ldp	x8, x9, [x22, #16]
	ldr	w0, [x8]
Lloh9:
	adrp	x23, _ATMEL_PDC_PTCR@GOTPAGE
Lloh10:
	ldr	x23, [x23, _ATMEL_PDC_PTCR@GOTPAGEOFF]
	ldr	w1, [x23]
	ldr	w2, [x9, #4]
	bl	_ssc_writex
	ldp	w9, w8, [x21]
	ldr	w10, [x21, #8]
	add	w2, w9, w8
	cmp	w2, w10
	str	w2, [x21]
	b.lt	LBB0_3
; %bb.2:
	ldr	w2, [x21, #12]
	str	w2, [x21]
LBB0_3:
	ldp	x9, x8, [x22, #8]
	ldr	w0, [x8]
	ldr	w1, [x9, #12]
	bl	_ssc_writex
	ldp	x9, x8, [x22, #8]
	ldr	w0, [x8]
	ldr	w1, [x9, #8]
	ldr	w8, [x21, #4]
	ldr	w9, [x22]
	sdiv	w2, w8, w9
	bl	_ssc_writex
	ldp	x8, x9, [x22, #16]
	ldr	w0, [x8]
	ldr	w1, [x23]
	ldr	w2, [x9, #8]
	bl	_ssc_writex
	ldr	x8, [x22, #24]
LBB0_4:
	ldr	w8, [x8, #12]
	tst	w8, w20
	b.eq	LBB0_8
; %bb.5:
	ldp	w9, w8, [x21]
	ldr	w10, [x21, #8]
	add	w2, w9, w8
	cmp	w2, w10
	str	w2, [x21]
	b.lt	LBB0_7
; %bb.6:
	ldr	w2, [x21, #12]
	str	w2, [x21]
LBB0_7:
	ldp	x9, x8, [x22, #8]
	ldr	w0, [x8]
	ldr	w1, [x9, #4]
	bl	_ssc_writex
	ldp	x9, x8, [x22, #8]
	ldr	w0, [x8]
	ldr	w1, [x9]
	ldr	w8, [x21, #4]
	ldr	w9, [x22]
	sdiv	w2, w8, w9
	bl	_ssc_writex
LBB0_8:
	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 AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_atmel_pcm_dma_irq.count,4,2 ; @atmel_pcm_dma_irq.count
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"atmel-pcm: buffer %s on %s (SSC_SR=%#x, count=%d)\n"

	.comm	_SNDRV_PCM_STREAM_PLAYBACK,8,3  ; @SNDRV_PCM_STREAM_PLAYBACK
l_.str.1:                               ; @.str.1
	.asciz	"underrun"

l_.str.2:                               ; @.str.2
	.asciz	"overrun"

	.comm	_ATMEL_PDC_PTCR,4,2             ; @ATMEL_PDC_PTCR
	.no_dead_strip	_atmel_pcm_dma_irq
.subsections_via_symbols
