	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mcde_disable_fifo
_mcde_disable_fifo:                     ## @mcde_disable_fifo
	.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, %r14d
	movq	%rdi, %rbx
	cmpl	$129, %esi
	je	LBB0_1
## %bb.2:
	cmpl	$128, %r14d
	jne	LBB0_3
## %bb.4:
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movq	_MCDE_CRB0@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_1:
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movq	_MCDE_CRA0@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %r13d
	leaq	8(%rbx), %r12
	movq	%r12, %rdi
	callq	_spin_lock
	movl	(%rbx), %edi
	addl	%r13d, %edi
	callq	_readl
	movq	_MCDE_CRX0_FLOEN@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	notl	%edi
	andl	%eax, %edi
	movl	(%rbx), %esi
	addl	%r13d, %esi
	callq	_writel
	movq	$0, 16(%rbx)
	movq	%r12, %rdi
	callq	_spin_unlock
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_11
## %bb.6:
	movl	$-100, %r12d
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rbx), %edi
	addl	%r13d, %edi
	callq	_readl
	testl	%eax, (%r15)
	je	LBB0_11
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movl	$1000, %edi                     ## imm = 0x3E8
	movl	$1500, %esi                     ## imm = 0x5DC
	callq	_usleep_range
	incl	%r12d
	jne	LBB0_7
## %bb.9:
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_10
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	leaq	L_.str(%rip), %rsi
LBB0_10:
	movl	4(%rbx), %edi
	addb	$65, %r14b
	movsbl	%r14b, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dev_err                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MCDE_CRA0,4,2                  ## @MCDE_CRA0
	.comm	_MCDE_CRB0,4,2                  ## @MCDE_CRB0
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cannot disable FIFO %c\n"

	.comm	_MCDE_CRX0_FLOEN,4,2            ## @MCDE_CRX0_FLOEN
L_.str.1:                               ## @.str.1
	.asciz	"FIFO timeout while clearing FIFO %c\n"

	.no_dead_strip	_mcde_disable_fifo
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mcde_disable_fifo
_mcde_disable_fifo:                     ; @mcde_disable_fifo
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x21, x2
	mov	x19, x1
	mov	x20, x0
	cmp	w1, #129
	b.eq	LBB0_3
; %bb.1:
	cmp	w19, #128
	b.ne	LBB0_9
; %bb.2:
Lloh0:
	adrp	x8, _MCDE_CRB0@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MCDE_CRB0@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:
Lloh2:
	adrp	x8, _MCDE_CRA0@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MCDE_CRA0@GOTPAGEOFF]
LBB0_4:
	ldr	w23, [x8]
	add	x22, x20, #8
	mov	x0, x22
	bl	_spin_lock
	ldr	w8, [x20]
	add	w0, w8, w23
	bl	_readl
Lloh4:
	adrp	x24, _MCDE_CRX0_FLOEN@GOTPAGE
Lloh5:
	ldr	x24, [x24, _MCDE_CRX0_FLOEN@GOTPAGEOFF]
	ldr	w8, [x24]
	bic	w0, w0, w8
	ldr	w8, [x20]
	add	w1, w8, w23
	bl	_writel
	str	xzr, [x20, #16]
	mov	x0, x22
	bl	_spin_unlock
	cbz	w21, LBB0_8
; %bb.5:
	mov	w22, #-100
Lloh6:
	adrp	x21, l_.str.1@PAGE
Lloh7:
	add	x21, x21, l_.str.1@PAGEOFF
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x20]
	add	w0, w8, w23
	bl	_readl
	ldr	w8, [x24]
	tst	w8, w0
	b.eq	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	w0, #1000
	mov	w1, #1500
	bl	_usleep_range
	adds	w22, w22, #1
	b.lo	LBB0_6
	b	LBB0_10
LBB0_8:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_9:
Lloh8:
	adrp	x21, l_.str@PAGE
Lloh9:
	add	x21, x21, l_.str@PAGEOFF
LBB0_10:
	ldr	w0, [x20, #4]
	add	w8, w19, #65
	sxtb	w2, w8
	mov	x1, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_dev_err
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_MCDE_CRA0,4,2                  ; @MCDE_CRA0
	.comm	_MCDE_CRB0,4,2                  ; @MCDE_CRB0
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cannot disable FIFO %c\n"

	.comm	_MCDE_CRX0_FLOEN,4,2            ; @MCDE_CRX0_FLOEN
l_.str.1:                               ; @.str.1
	.asciz	"FIFO timeout while clearing FIFO %c\n"

	.no_dead_strip	_mcde_disable_fifo
.subsections_via_symbols
