	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function atmel_pcm_trigger
_atmel_pcm_trigger:                     ## @atmel_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	%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), %rax
	movq	16(%rax), %r15
	movq	16(%r15), %r14
	movslq	8(%rax), %rsi
	movl	(%rax), %ecx
	movl	4(%rax), %edx
	leaq	L_.str(%rip), %rdi
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	callq	_pr_debug
	addl	$-128, %ebx
	cmpl	$5, %ebx
	ja	LBB0_7
## %bb.1:
	movl	$35, %eax
	btl	%ebx, %eax
	jae	LBB0_2
## %bb.4:
	movq	8(%r14), %rax
	movq	16(%r14), %rcx
	movl	(%rcx), %edi
	movq	_ATMEL_PDC_PTCR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	12(%rax), %edx
	jmp	LBB0_5
LBB0_2:
	movl	$24, %eax
	btl	%ebx, %eax
	jae	LBB0_3
## %bb.6:
	movq	8(%r14), %rax
	movq	16(%r14), %rcx
	movl	(%rcx), %edi
	movq	_ATMEL_PDC_PTCR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	8(%rax), %edx
LBB0_5:
	callq	_ssc_writex
	xorl	%r12d, %r12d
LBB0_8:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %r12d
	jmp	LBB0_8
LBB0_3:
	movl	4(%r15), %edx
	movl	%edx, (%r15)
	movq	16(%r14), %rax
	movq	24(%r14), %rcx
	movl	(%rax), %edi
	movl	12(%rcx), %esi
	callq	_ssc_writex
	movq	16(%r14), %rax
	movq	24(%r14), %rcx
	movl	(%rax), %edi
	movl	8(%rcx), %esi
	movl	8(%r15), %eax
	cltd
	idivl	(%r14)
	movl	%eax, %edx
	callq	_ssc_writex
	movl	(%r15), %edx
	addl	8(%r15), %edx
	movl	%edx, (%r15)
	movq	16(%r14), %rax
	movq	24(%r14), %rcx
	movl	(%rax), %edi
	movl	4(%rcx), %esi
	callq	_ssc_writex
	movq	16(%r14), %rax
	movq	24(%r14), %rcx
	movl	(%rax), %edi
	movl	(%rcx), %esi
	movl	8(%r15), %eax
	cltd
	idivl	(%r14)
	movl	%eax, %edx
	callq	_ssc_writex
	movslq	(%r15), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	16(%r14), %rax
	movq	24(%r14), %rcx
	movl	(%rax), %edi
	movl	12(%rcx), %esi
	callq	_ssc_readx
	movl	%eax, %r15d
	movq	16(%r14), %rax
	movq	24(%r14), %rcx
	movl	(%rax), %edi
	movl	8(%rcx), %esi
	callq	_ssc_readx
	movl	%eax, %r13d
	movq	16(%r14), %rax
	movq	24(%r14), %rcx
	movl	(%rax), %edi
	movl	4(%rcx), %esi
	callq	_ssc_readx
	movl	%eax, %ebx
	movq	16(%r14), %rax
	movq	24(%r14), %rcx
	movl	(%rax), %edi
	movl	(%rcx), %esi
	callq	_ssc_readx
	leaq	L_.str.1(%rip), %rdi
	xorl	%r12d, %r12d
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movl	%r15d, %edx
	movl	%r13d, %ecx
	movl	%ebx, %r8d
	movl	%eax, %r9d
	xorl	%eax, %eax
	callq	_pr_debug
	movq	8(%r14), %rax
	movq	16(%r14), %rcx
	movl	(%rcx), %edi
	movq	_SSC_IER@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movl	4(%rax), %edx
	orl	(%rax), %edx
	callq	_ssc_writex
	movq	8(%r14), %rax
	movq	16(%r14), %rcx
	movl	(%rcx), %edi
	movq	_SSC_PDC_PTCR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	8(%rax), %edx
	callq	_ssc_writex
	movq	16(%r14), %rax
	movl	(%rax), %edi
	movq	_SSC_SR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_ssc_readx
	movslq	%eax, %rbx
	movq	16(%r14), %rax
	movl	(%rax), %edi
	movl	(%r15), %esi
	callq	_ssc_readx
	leaq	L_.str.2(%rip), %rdi
	movq	%rbx, %rsi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_pr_debug
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"atmel-pcm:buffer_size = %ld,dma_area = %p, dma_bytes = %u\n"

L_.str.1:                               ## @.str.1
	.asciz	"atmel-pcm: trigger: period_ptr=%lx, xpr=%u, xcr=%u, xnpr=%u, xncr=%u\n"

	.comm	_SSC_IER,4,2                    ## @SSC_IER
	.comm	_SSC_PDC_PTCR,4,2               ## @SSC_PDC_PTCR
L_.str.2:                               ## @.str.2
	.asciz	"sr=%u imr=%u\n"

	.comm	_SSC_SR,4,2                     ## @SSC_SR
	.comm	_ATMEL_PDC_PTCR,4,2             ## @ATMEL_PDC_PTCR
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_atmel_pcm_trigger
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function atmel_pcm_trigger
_atmel_pcm_trigger:                     ; @atmel_pcm_trigger
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	ldr	x8, [x0]
	ldr	x20, [x8, #16]
	ldr	x23, [x20, #16]
	ldp	w2, w1, [x8, #4]
                                        ; kill: def $w1 killed $w1 def $x1
	sxtw	x1, w1
	ldr	w8, [x8]
	str	x8, [sp]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_debug
	sub	w8, w19, #128
	cmp	w8, #5
	b.hi	LBB0_8
; %bb.1:
	mov	w9, #1
	lsl	w8, w9, w8
	mov	w9, #35
	tst	w8, w9
	b.eq	LBB0_3
; %bb.2:
	ldp	x9, x8, [x23, #8]
	ldr	w0, [x8]
Lloh2:
	adrp	x8, _ATMEL_PDC_PTCR@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ATMEL_PDC_PTCR@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	ldr	w2, [x9, #12]
	b	LBB0_5
LBB0_3:
	tst	w8, #0x18
	b.eq	LBB0_9
; %bb.4:
	ldp	x9, x8, [x23, #8]
	ldr	w0, [x8]
Lloh5:
	adrp	x8, _ATMEL_PDC_PTCR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ATMEL_PDC_PTCR@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	ldr	w2, [x9, #8]
LBB0_5:
	bl	_ssc_writex
LBB0_6:
	mov	w0, #0
LBB0_7:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_8:
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_7
LBB0_9:
	ldr	w2, [x20, #4]
	str	w2, [x20]
	ldp	x8, x9, [x23, #16]
	ldr	w0, [x8]
	ldr	w1, [x9, #12]
	bl	_ssc_writex
	ldp	x8, x9, [x23, #16]
	ldr	w0, [x8]
	ldr	w1, [x9, #8]
	ldr	w8, [x20, #8]
	ldr	w9, [x23]
	sdiv	w2, w8, w9
	bl	_ssc_writex
	ldr	w8, [x20, #8]
	ldr	w9, [x20]
	add	w2, w9, w8
	str	w2, [x20]
	ldp	x8, x9, [x23, #16]
	ldr	w0, [x8]
	ldr	w1, [x9, #4]
	bl	_ssc_writex
	ldp	x8, x9, [x23, #16]
	ldr	w0, [x8]
	ldr	w1, [x9]
	ldr	w8, [x20, #8]
	ldr	w9, [x23]
	sdiv	w2, w8, w9
	bl	_ssc_writex
	ldrsw	x19, [x20]
	ldp	x8, x9, [x23, #16]
	ldr	w0, [x8]
	ldr	w1, [x9, #12]
	bl	_ssc_readx
	mov	x20, x0
	ldp	x8, x9, [x23, #16]
	ldr	w0, [x8]
	ldr	w1, [x9, #8]
	bl	_ssc_readx
	mov	x21, x0
	ldp	x8, x9, [x23, #16]
	ldr	w0, [x8]
	ldr	w1, [x9, #4]
	bl	_ssc_readx
	mov	x22, x0
	ldp	x8, x9, [x23, #16]
	ldr	w0, [x8]
	ldr	w1, [x9]
	bl	_ssc_readx
                                        ; kill: def $w0 killed $w0 def $x0
	stp	x22, x0, [sp, #8]
	str	x21, [sp]
Lloh11:
	adrp	x0, l_.str.1@PAGE
Lloh12:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x19
	mov	x2, x20
	bl	_pr_debug
	ldp	x9, x8, [x23, #8]
	ldr	w0, [x8]
Lloh13:
	adrp	x20, _SSC_IER@GOTPAGE
Lloh14:
	ldr	x20, [x20, _SSC_IER@GOTPAGEOFF]
	ldr	w1, [x20]
	ldp	w8, w9, [x9]
	orr	w2, w9, w8
	bl	_ssc_writex
	ldp	x9, x8, [x23, #8]
	ldr	w0, [x8]
Lloh15:
	adrp	x8, _SSC_PDC_PTCR@GOTPAGE
Lloh16:
	ldr	x8, [x8, _SSC_PDC_PTCR@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	ldr	w2, [x9, #8]
	bl	_ssc_writex
	ldr	x8, [x23, #16]
	ldr	w0, [x8]
Lloh18:
	adrp	x8, _SSC_SR@GOTPAGE
Lloh19:
	ldr	x8, [x8, _SSC_SR@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	bl	_ssc_readx
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x19, w0
	ldr	x8, [x23, #16]
	ldr	w0, [x8]
	ldr	w1, [x20]
	bl	_ssc_readx
	mov	x2, x0
Lloh21:
	adrp	x0, l_.str.2@PAGE
Lloh22:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x19
	bl	_pr_debug
	b	LBB0_6
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"atmel-pcm:buffer_size = %ld,dma_area = %p, dma_bytes = %u\n"

l_.str.1:                               ; @.str.1
	.asciz	"atmel-pcm: trigger: period_ptr=%lx, xpr=%u, xcr=%u, xnpr=%u, xncr=%u\n"

	.comm	_SSC_IER,4,2                    ; @SSC_IER
	.comm	_SSC_PDC_PTCR,4,2               ; @SSC_PDC_PTCR
l_.str.2:                               ; @.str.2
	.asciz	"sr=%u imr=%u\n"

	.comm	_SSC_SR,4,2                     ; @SSC_SR
	.comm	_ATMEL_PDC_PTCR,4,2             ; @ATMEL_PDC_PTCR
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_atmel_pcm_trigger
.subsections_via_symbols
