	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_cs46xx_clear_serial_FIFOs
_snd_cs46xx_clear_serial_FIFOs:         ## @snd_cs46xx_clear_serial_FIFOs
	.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	%rdi, %r15
	movq	_BA0_CLKCR1@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	callq	_snd_cs46xx_peekBA0
	movl	%eax, %r12d
	movq	_CLKCR1_SWCE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	testl	%r12d, %ebx
	jne	LBB0_2
## %bb.1:
	movl	(%r14), %esi
	movl	%ebx, %edx
	orl	%r12d, %edx
	movq	%r15, %rdi
	callq	_snd_cs46xx_pokeBA0
LBB0_2:
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movl	%r12d, -48(%rbp)                ## 4-byte Spill
	movq	_BA0_SERBWP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_snd_cs46xx_pokeBA0
	movq	_BA0_SERBAD@GOTPCREL(%rip), %r12
	movq	_BA0_SERBCM@GOTPCREL(%rip), %r14
	movq	_SERBCM_WRC@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movl	$1, %esi
	callq	_cs46xx_wait_for_fifo
	testq	%rax, %rax
	jne	LBB0_4
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	(%r12), %esi
	movq	%r15, %rdi
	movl	%ebx, %edx
	callq	_snd_cs46xx_pokeBA0
	movl	(%r14), %esi
	movl	(%r13), %edx
	movq	%r15, %rdi
	callq	_snd_cs46xx_pokeBA0
	incl	%ebx
	cmpl	$255, %ebx
	jne	LBB0_3
## %bb.8:
	movl	-48(%rbp), %ebx                 ## 4-byte Reload
	testl	%ebx, -44(%rbp)                 ## 4-byte Folded Reload
	jne	LBB0_9
	jmp	LBB0_6
LBB0_4:
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %esi
	callq	_snd_printdd
	movl	-48(%rbp), %ebx                 ## 4-byte Reload
	testl	%ebx, -44(%rbp)                 ## 4-byte Folded Reload
	je	LBB0_5
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	_BA0_CLKCR1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	%ebx, %edx
	callq	_snd_cs46xx_pokeBA0
LBB0_6:
	movq	_BA0_CLKCR1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	%ebx, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_snd_cs46xx_pokeBA0             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_BA0_CLKCR1,4,2                 ## @BA0_CLKCR1
	.comm	_CLKCR1_SWCE,4,2                ## @CLKCR1_SWCE
	.comm	_BA0_SERBWP,4,2                 ## @BA0_SERBWP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed waiting for FIFO at addr (%02X)\n"

	.comm	_BA0_SERBAD,4,2                 ## @BA0_SERBAD
	.comm	_BA0_SERBCM,4,2                 ## @BA0_SERBCM
	.comm	_SERBCM_WRC,4,2                 ## @SERBCM_WRC
	.no_dead_strip	_snd_cs46xx_clear_serial_FIFOs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function snd_cs46xx_clear_serial_FIFOs
_snd_cs46xx_clear_serial_FIFOs:         ; @snd_cs46xx_clear_serial_FIFOs
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x0
Lloh0:
	adrp	x22, _BA0_CLKCR1@GOTPAGE
Lloh1:
	ldr	x22, [x22, _BA0_CLKCR1@GOTPAGEOFF]
	ldr	w1, [x22]
	bl	_snd_cs46xx_peekBA0
	mov	x20, x0
Lloh2:
	adrp	x8, _CLKCR1_SWCE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _CLKCR1_SWCE@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	ands	w23, w8, w0
	b.ne	LBB0_2
; %bb.1:
	ldr	w1, [x22]
	orr	w2, w8, w20
	mov	x0, x19
	bl	_snd_cs46xx_pokeBA0
LBB0_2:
Lloh5:
	adrp	x8, _BA0_SERBWP@GOTPAGE
Lloh6:
	ldr	x8, [x8, _BA0_SERBWP@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_snd_cs46xx_pokeBA0
	mov	w21, #0
Lloh8:
	adrp	x24, _BA0_SERBAD@GOTPAGE
Lloh9:
	ldr	x24, [x24, _BA0_SERBAD@GOTPAGEOFF]
Lloh10:
	adrp	x25, _BA0_SERBCM@GOTPAGE
Lloh11:
	ldr	x25, [x25, _BA0_SERBCM@GOTPAGEOFF]
Lloh12:
	adrp	x26, _SERBCM_WRC@GOTPAGE
Lloh13:
	ldr	x26, [x26, _SERBCM_WRC@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	w1, #1
	bl	_cs46xx_wait_for_fifo
	cbnz	x0, LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w1, [x24]
	mov	x0, x19
	mov	x2, x21
	bl	_snd_cs46xx_pokeBA0
	ldr	w1, [x25]
	ldr	w2, [x26]
	mov	x0, x19
	bl	_snd_cs46xx_pokeBA0
	add	w21, w21, #1
	cmp	w21, #255
	b.ne	LBB0_3
; %bb.5:
	cbnz	w23, LBB0_7
	b	LBB0_9
LBB0_6:
Lloh14:
	adrp	x0, l_.str@PAGE
Lloh15:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x21
	bl	_snd_printdd
	cbz	w23, LBB0_8
LBB0_7:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_8:
	ldr	w1, [x22]
	mov	x0, x19
	mov	x2, x20
	bl	_snd_cs46xx_pokeBA0
LBB0_9:
	ldr	w1, [x22]
	mov	x0, x19
	mov	x2, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_snd_cs46xx_pokeBA0
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_BA0_CLKCR1,4,2                 ; @BA0_CLKCR1
	.comm	_CLKCR1_SWCE,4,2                ; @CLKCR1_SWCE
	.comm	_BA0_SERBWP,4,2                 ; @BA0_SERBWP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed waiting for FIFO at addr (%02X)\n"

	.comm	_BA0_SERBAD,4,2                 ; @BA0_SERBAD
	.comm	_BA0_SERBCM,4,2                 ; @BA0_SERBCM
	.comm	_SERBCM_WRC,4,2                 ; @SERBCM_WRC
	.no_dead_strip	_snd_cs46xx_clear_serial_FIFOs
.subsections_via_symbols
