	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function atmel_ssc_prepare
_atmel_ssc_prepare:                     ## @atmel_ssc_prepare
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	callq	_snd_pcm_substream_chip
	movq	_ssc_info@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r14
	movq	(%rax), %rax
	movq	(%rax), %rax
	movq	(%rax), %rbx
	movq	(%r15), %rax
	movq	_SNDRV_PCM_STREAM_PLAYBACK@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	cmpq	(%rcx), %rax
	setne	%dl
	leaq	L_.str.2(%rip), %rax
	leaq	L_.str.1(%rip), %r15
	cmoveq	%rax, %r15
	shlq	$4, %rbx
	movq	(%r14,%rbx), %rax
	movq	8(%r14,%rbx), %rcx
	movq	(%rcx,%rdx,8), %rcx
	movl	(%rax), %edi
	movq	_CR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	(%rcx), %rax
	movl	(%rax), %edx
	callq	_ssc_writel
	movq	(%r14,%rbx), %rax
	movl	(%rax), %edi
	movq	_SR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_ssc_readl
	leaq	L_.str(%rip), %rdi
	movq	%r15, %rsi
	movl	%eax, %edx
	callq	_pr_debug
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ssc_info,8,3                   ## @ssc_info
	.comm	_SNDRV_PCM_STREAM_PLAYBACK,8,3  ## @SNDRV_PCM_STREAM_PLAYBACK
	.comm	_CR,4,2                         ## @CR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s enabled SSC_SR=0x%08x\n"

L_.str.1:                               ## @.str.1
	.asciz	"receive"

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

	.comm	_SR,4,2                         ## @SR
	.no_dead_strip	_atmel_ssc_prepare
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function atmel_ssc_prepare
_atmel_ssc_prepare:                     ; @atmel_ssc_prepare
	.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	x19, x0
	bl	_snd_pcm_substream_chip
Lloh0:
	adrp	x8, _ssc_info@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ssc_info@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	x9, [x0]
	ldr	x9, [x9]
	ldr	x9, [x9]
	ldr	x10, [x19]
Lloh3:
	adrp	x11, _SNDRV_PCM_STREAM_PLAYBACK@GOTPAGE
Lloh4:
	ldr	x11, [x11, _SNDRV_PCM_STREAM_PLAYBACK@GOTPAGEOFF]
Lloh5:
	ldr	x11, [x11]
Lloh6:
	adrp	x12, l_.str.1@PAGE
Lloh7:
	add	x12, x12, l_.str.1@PAGEOFF
Lloh8:
	adrp	x13, l_.str.2@PAGE
Lloh9:
	add	x13, x13, l_.str.2@PAGEOFF
	cmp	x10, x11
	csel	x19, x13, x12, eq
	cset	w10, ne
	add	x20, x8, x9, lsl #4
	ldp	x9, x8, [x20]
	ldr	x8, [x8, w10, uxtw #3]
	ldr	w0, [x9]
Lloh10:
	adrp	x9, _CR@GOTPAGE
Lloh11:
	ldr	x9, [x9, _CR@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x9]
	ldr	x8, [x8]
	ldr	w2, [x8]
	bl	_ssc_writel
	ldr	x8, [x20]
	ldr	w0, [x8]
Lloh13:
	adrp	x8, _SR@GOTPAGE
Lloh14:
	ldr	x8, [x8, _SR@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	bl	_ssc_readl
	mov	x2, x0
Lloh16:
	adrp	x0, l_.str@PAGE
Lloh17:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_pr_debug
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ssc_info,8,3                   ; @ssc_info
	.comm	_SNDRV_PCM_STREAM_PLAYBACK,8,3  ; @SNDRV_PCM_STREAM_PLAYBACK
	.comm	_CR,4,2                         ; @CR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s enabled SSC_SR=0x%08x\n"

l_.str.1:                               ; @.str.1
	.asciz	"receive"

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

	.comm	_SR,4,2                         ; @SR
	.no_dead_strip	_atmel_ssc_prepare
.subsections_via_symbols
