	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mcde_drain_pipe
_mcde_drain_pipe:                       ## @mcde_drain_pipe
	.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
                                        ## kill: def $edx killed $edx def $rdx
	movl	%esi, %ebx
	movq	%rdi, %r14
	cmpl	$128, %esi
	je	LBB0_3
## %bb.1:
                                        ## implicit-def: $edi
	cmpl	$129, %ebx
	jne	LBB0_5
## %bb.2:
	movq	_MCDE_CTRLA@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_3:
	movq	_MCDE_CTRLB@GOTPCREL(%rip), %rax
LBB0_4:
	movl	(%rax), %edi
LBB0_5:
	addl	$-130, %edx
	cmpl	$3, %edx
	ja	LBB0_6
## %bb.7:
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%rdx,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_10:
	movq	_MCDE_CHNL2SYNCHSW@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_6:
                                        ## implicit-def: $r15d
	jmp	LBB0_12
LBB0_9:
	movq	_MCDE_CHNL1SYNCHSW@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_8:
	movq	_MCDE_CHNL0SYNCHSW@GOTPCREL(%rip), %rax
LBB0_11:
	movl	(%rax), %r15d
LBB0_12:
	addl	(%r14), %edi
	callq	_readl
	movq	_MCDE_CTRLX_FIFOEMPTY@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_14
LBB0_13:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	movl	4(%r14), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_mcde_enable_fifo
	movq	_MCDE_CHNLXSYNCHSW_SW_TRIG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addl	(%r14), %r15d
	movl	%r15d, %esi
	callq	_writel
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	$1, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mcde_disable_fifo              ## TAILCALL
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
LJTI0_0:
	.long	L0_0_set_13
	.long	L0_0_set_10
	.long	L0_0_set_9
	.long	L0_0_set_8
	.end_data_region
                                        ## -- End function
	.comm	_MCDE_CTRLA,4,2                 ## @MCDE_CTRLA
	.comm	_MCDE_CTRLB,4,2                 ## @MCDE_CTRLB
	.comm	_MCDE_CHNL0SYNCHSW,4,2          ## @MCDE_CHNL0SYNCHSW
	.comm	_MCDE_CHNL1SYNCHSW,4,2          ## @MCDE_CHNL1SYNCHSW
	.comm	_MCDE_CHNL2SYNCHSW,4,2          ## @MCDE_CHNL2SYNCHSW
	.comm	_MCDE_CHNL3SYNCHSW,4,2          ## @MCDE_CHNL3SYNCHSW
	.comm	_MCDE_CTRLX_FIFOEMPTY,4,2       ## @MCDE_CTRLX_FIFOEMPTY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Channel A FIFO not empty (handover)\n"

	.comm	_MCDE_CHNLXSYNCHSW_SW_TRIG,4,2  ## @MCDE_CHNLXSYNCHSW_SW_TRIG
	.no_dead_strip	_mcde_drain_pipe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mcde_drain_pipe
_mcde_drain_pipe:                       ; @mcde_drain_pipe
	.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, x1
	mov	x20, x0
	cmp	w1, #128
	b.eq	LBB0_3
; %bb.1:
                                        ; implicit-def: $w8
	cmp	w19, #129
	b.ne	LBB0_5
; %bb.2:
Lloh0:
	adrp	x8, _MCDE_CTRLA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MCDE_CTRLA@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:
Lloh2:
	adrp	x8, _MCDE_CTRLB@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MCDE_CTRLB@GOTPAGEOFF]
LBB0_4:
	ldr	w8, [x8]
LBB0_5:
	sub	w9, w2, #130
	cmp	w9, #3
	b.hi	LBB0_8
; %bb.6:
Lloh4:
	adrp	x10, lJTI0_0@PAGE
Lloh5:
	add	x10, x10, lJTI0_0@PAGEOFF
	adr	x11, LBB0_7
	ldrb	w12, [x10, x9]
	add	x11, x11, x12, lsl #2
	br	x11
LBB0_7:
Lloh6:
	adrp	x9, _MCDE_CHNL2SYNCHSW@GOTPAGE
Lloh7:
	ldr	x9, [x9, _MCDE_CHNL2SYNCHSW@GOTPAGEOFF]
	b	LBB0_11
LBB0_8:
                                        ; implicit-def: $w21
	b	LBB0_12
LBB0_9:
Lloh8:
	adrp	x9, _MCDE_CHNL1SYNCHSW@GOTPAGE
Lloh9:
	ldr	x9, [x9, _MCDE_CHNL1SYNCHSW@GOTPAGEOFF]
	b	LBB0_11
LBB0_10:
Lloh10:
	adrp	x9, _MCDE_CHNL0SYNCHSW@GOTPAGE
Lloh11:
	ldr	x9, [x9, _MCDE_CHNL0SYNCHSW@GOTPAGEOFF]
LBB0_11:
	ldr	w21, [x9]
LBB0_12:
	ldr	w9, [x20]
	add	w0, w9, w8
	bl	_readl
Lloh12:
	adrp	x8, _MCDE_CTRLX_FIFOEMPTY@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MCDE_CTRLX_FIFOEMPTY@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_14
LBB0_13:
	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
LBB0_14:
	ldr	w0, [x20, #4]
Lloh15:
	adrp	x1, l_.str@PAGE
Lloh16:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
	mov	x0, x20
	mov	x1, x19
	bl	_mcde_enable_fifo
Lloh17:
	adrp	x8, _MCDE_CHNLXSYNCHSW_SW_TRIG@GOTPAGE
Lloh18:
	ldr	x8, [x8, _MCDE_CHNLXSYNCHSW_SW_TRIG@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
	ldr	w8, [x20]
	add	w1, w8, w21
	bl	_writel
	mov	x0, x20
	mov	x1, x19
	mov	w2, #1
	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
	b	_mcde_disable_fifo
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_13-LBB0_7)>>2
	.byte	(LBB0_7-LBB0_7)>>2
	.byte	(LBB0_9-LBB0_7)>>2
	.byte	(LBB0_10-LBB0_7)>>2
                                        ; -- End function
	.comm	_MCDE_CTRLA,4,2                 ; @MCDE_CTRLA
	.comm	_MCDE_CTRLB,4,2                 ; @MCDE_CTRLB
	.comm	_MCDE_CHNL0SYNCHSW,4,2          ; @MCDE_CHNL0SYNCHSW
	.comm	_MCDE_CHNL1SYNCHSW,4,2          ; @MCDE_CHNL1SYNCHSW
	.comm	_MCDE_CHNL2SYNCHSW,4,2          ; @MCDE_CHNL2SYNCHSW
	.comm	_MCDE_CHNL3SYNCHSW,4,2          ; @MCDE_CHNL3SYNCHSW
	.comm	_MCDE_CTRLX_FIFOEMPTY,4,2       ; @MCDE_CTRLX_FIFOEMPTY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Channel A FIFO not empty (handover)\n"

	.comm	_MCDE_CHNLXSYNCHSW_SW_TRIG,4,2  ; @MCDE_CHNLXSYNCHSW_SW_TRIG
	.no_dead_strip	_mcde_drain_pipe
.subsections_via_symbols
