	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function atmel_ssc_startup
_atmel_ssc_startup:                     ## @atmel_ssc_startup
	.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
	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
	shlq	$4, %rbx
	movq	8(%r14,%rbx), %rax
	movl	(%rax), %edi
	movq	_SR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_ssc_readl
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_pr_debug
	movq	(%r15), %rax
	movq	_SNDRV_PCM_STREAM_PLAYBACK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
## %bb.2:
	movq	_SSC_DIR_MASK_PLAYBACK@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_SSC_DIR_MASK_CAPTURE@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %r12d
	leaq	(%r14,%rbx), %r15
	addq	$4, %r15
	movq	%r15, %rdi
	callq	_spin_lock_irq
	movl	(%r14,%rbx), %eax
	testl	%r12d, %eax
	je	LBB0_5
## %bb.4:
	movq	%r15, %rdi
	callq	_spin_unlock_irq
	movq	_EBUSY@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_6
LBB0_5:
	addq	%rbx, %r14
	orl	%r12d, %eax
	movl	%eax, (%r14)
	movq	%r15, %rdi
	callq	_spin_unlock_irq
	xorl	%eax, %eax
LBB0_6:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ssc_info,8,3                   ## @ssc_info
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"atmel_ssc_startup: SSC_SR=0x%u\n"

	.comm	_SR,4,2                         ## @SR
	.comm	_SNDRV_PCM_STREAM_PLAYBACK,8,3  ## @SNDRV_PCM_STREAM_PLAYBACK
	.comm	_SSC_DIR_MASK_PLAYBACK,4,2      ## @SSC_DIR_MASK_PLAYBACK
	.comm	_SSC_DIR_MASK_CAPTURE,4,2       ## @SSC_DIR_MASK_CAPTURE
	.comm	_EBUSY,4,2                      ## @EBUSY
	.no_dead_strip	_atmel_ssc_startup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function atmel_ssc_startup
_atmel_ssc_startup:                     ; @atmel_ssc_startup
	.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
	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]
	add	x20, x8, x9, lsl #4
	ldr	x8, [x20, #8]
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _SR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SR@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_ssc_readl
	mov	x1, x0
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_debug
	ldr	x8, [x19]
Lloh8:
	adrp	x9, _SNDRV_PCM_STREAM_PLAYBACK@GOTPAGE
Lloh9:
	ldr	x9, [x9, _SNDRV_PCM_STREAM_PLAYBACK@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
Lloh11:
	adrp	x10, _SSC_DIR_MASK_PLAYBACK@GOTPAGE
Lloh12:
	ldr	x10, [x10, _SSC_DIR_MASK_PLAYBACK@GOTPAGEOFF]
Lloh13:
	adrp	x11, _SSC_DIR_MASK_CAPTURE@GOTPAGE
Lloh14:
	ldr	x11, [x11, _SSC_DIR_MASK_CAPTURE@GOTPAGEOFF]
	cmp	x8, x9
	csel	x8, x10, x11, eq
	ldr	w21, [x8]
	add	x19, x20, #4
	mov	x0, x19
	bl	_spin_lock_irq
	ldr	w8, [x20]
	tst	w8, w21
	b.eq	LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_spin_unlock_irq
Lloh15:
	adrp	x8, _EBUSY@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_3
LBB0_2:
	orr	w8, w8, w21
	str	w8, [x20]
	mov	x0, x19
	bl	_spin_unlock_irq
	mov	w0, #0
LBB0_3:
	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	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_ssc_info,8,3                   ; @ssc_info
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"atmel_ssc_startup: SSC_SR=0x%u\n"

	.comm	_SR,4,2                         ; @SR
	.comm	_SNDRV_PCM_STREAM_PLAYBACK,8,3  ; @SNDRV_PCM_STREAM_PLAYBACK
	.comm	_SSC_DIR_MASK_PLAYBACK,4,2      ; @SSC_DIR_MASK_PLAYBACK
	.comm	_SSC_DIR_MASK_CAPTURE,4,2       ; @SSC_DIR_MASK_CAPTURE
	.comm	_EBUSY,4,2                      ; @EBUSY
	.no_dead_strip	_atmel_ssc_startup
.subsections_via_symbols
