	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mcde_configure_fifo
_mcde_configure_fifo:                   ## @mcde_configure_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %eax
	movq	%rdi, %r14
	cmpl	$128, %esi
	je	LBB0_3
## %bb.1:
	movl	%esi, %ecx
                                        ## implicit-def: $esi
                                        ## implicit-def: $ebx
                                        ## implicit-def: $r15d
	cmpl	$129, %ecx
	jne	LBB0_5
## %bb.2:
	movq	_MCDE_CTRLA@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_MCDE_CRA0@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	movq	_MCDE_CRA1@GOTPCREL(%rip), %rcx
	jmp	LBB0_4
LBB0_3:
	movq	_MCDE_CTRLB@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_MCDE_CRB0@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	movq	_MCDE_CRB1@GOTPCREL(%rip), %rcx
LBB0_4:
	movl	(%rcx), %r15d
LBB0_5:
	movq	_MCDE_CTRLX_FIFOWTRMRK_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %eax
	movq	_MCDE_CTRLX_FORMTYPE_DSI@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movq	_MCDE_CTRLX_FORMTYPE_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %edi
	movq	_MCDE_CTRLX_FORMID_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %edx
	orl	%eax, %edi
	orl	%edi, %edx
	addl	(%r14), %esi
	movl	%edx, %edi
	callq	_writel
	movq	_MCDE_CRX0_BLENDEN@GOTPCREL(%rip), %rax
	movq	_MCDE_CRX0_ALPHABLEND_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movl	$255, %edi
	shll	%cl, %edi
	orl	(%rax), %edi
	addl	(%r14), %ebx
	movl	%ebx, %esi
	callq	_writel
	movq	_MCDE_CRX1_CLKSEL_MCDECLK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_MCDE_CRX1_CLKSEL_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %edi
	addl	(%r14), %r15d
	movl	%r15d, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_writel                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MCDE_CTRLA,4,2                 ## @MCDE_CTRLA
	.comm	_MCDE_CRA0,4,2                  ## @MCDE_CRA0
	.comm	_MCDE_CRA1,4,2                  ## @MCDE_CRA1
	.comm	_MCDE_CTRLB,4,2                 ## @MCDE_CTRLB
	.comm	_MCDE_CRB0,4,2                  ## @MCDE_CRB0
	.comm	_MCDE_CRB1,4,2                  ## @MCDE_CRB1
	.comm	_MCDE_CTRLX_FIFOWTRMRK_SHIFT,4,2 ## @MCDE_CTRLX_FIFOWTRMRK_SHIFT
	.comm	_MCDE_CTRLX_FORMTYPE_DSI,4,2    ## @MCDE_CTRLX_FORMTYPE_DSI
	.comm	_MCDE_CTRLX_FORMTYPE_SHIFT,4,2  ## @MCDE_CTRLX_FORMTYPE_SHIFT
	.comm	_MCDE_CTRLX_FORMID_SHIFT,4,2    ## @MCDE_CTRLX_FORMID_SHIFT
	.comm	_MCDE_CRX0_BLENDEN,4,2          ## @MCDE_CRX0_BLENDEN
	.comm	_MCDE_CRX0_ALPHABLEND_SHIFT,4,2 ## @MCDE_CRX0_ALPHABLEND_SHIFT
	.comm	_MCDE_CRX1_CLKSEL_MCDECLK,4,2   ## @MCDE_CRX1_CLKSEL_MCDECLK
	.comm	_MCDE_CRX1_CLKSEL_SHIFT,4,2     ## @MCDE_CRX1_CLKSEL_SHIFT
	.no_dead_strip	_mcde_configure_fifo
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mcde_configure_fifo
_mcde_configure_fifo:                   ; @mcde_configure_fifo
	.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
	cmp	w1, #128
	b.eq	LBB0_3
; %bb.1:
                                        ; implicit-def: $w8
                                        ; implicit-def: $w21
                                        ; implicit-def: $w20
	cmp	w1, #129
	b.ne	LBB0_5
; %bb.2:
Lloh0:
	adrp	x8, _MCDE_CTRLA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MCDE_CTRLA@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _MCDE_CRA0@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MCDE_CRA0@GOTPAGEOFF]
Lloh5:
	ldr	w21, [x9]
Lloh6:
	adrp	x9, _MCDE_CRA1@GOTPAGE
Lloh7:
	ldr	x9, [x9, _MCDE_CRA1@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:
Lloh8:
	adrp	x8, _MCDE_CTRLB@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MCDE_CTRLB@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
Lloh11:
	adrp	x9, _MCDE_CRB0@GOTPAGE
Lloh12:
	ldr	x9, [x9, _MCDE_CRB0@GOTPAGEOFF]
Lloh13:
	ldr	w21, [x9]
Lloh14:
	adrp	x9, _MCDE_CRB1@GOTPAGE
Lloh15:
	ldr	x9, [x9, _MCDE_CRB1@GOTPAGEOFF]
LBB0_4:
	ldr	w20, [x9]
LBB0_5:
Lloh16:
	adrp	x9, _MCDE_CTRLX_FIFOWTRMRK_SHIFT@GOTPAGE
Lloh17:
	ldr	x9, [x9, _MCDE_CTRLX_FIFOWTRMRK_SHIFT@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	lsl	w9, w3, w9
Lloh19:
	adrp	x10, _MCDE_CTRLX_FORMTYPE_DSI@GOTPAGE
Lloh20:
	ldr	x10, [x10, _MCDE_CTRLX_FORMTYPE_DSI@GOTPAGEOFF]
Lloh21:
	ldr	w10, [x10]
Lloh22:
	adrp	x11, _MCDE_CTRLX_FORMTYPE_SHIFT@GOTPAGE
Lloh23:
	ldr	x11, [x11, _MCDE_CTRLX_FORMTYPE_SHIFT@GOTPAGEOFF]
Lloh24:
	ldr	w11, [x11]
	lsl	w10, w10, w11
Lloh25:
	adrp	x11, _MCDE_CTRLX_FORMID_SHIFT@GOTPAGE
Lloh26:
	ldr	x11, [x11, _MCDE_CTRLX_FORMID_SHIFT@GOTPAGEOFF]
	orr	w9, w10, w9
Lloh27:
	ldr	w10, [x11]
	lsl	w10, w2, w10
	orr	w0, w9, w10
	ldr	w9, [x19]
	add	w1, w9, w8
	bl	_writel
Lloh28:
	adrp	x8, _MCDE_CRX0_BLENDEN@GOTPAGE
Lloh29:
	ldr	x8, [x8, _MCDE_CRX0_BLENDEN@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
Lloh31:
	adrp	x9, _MCDE_CRX0_ALPHABLEND_SHIFT@GOTPAGE
Lloh32:
	ldr	x9, [x9, _MCDE_CRX0_ALPHABLEND_SHIFT@GOTPAGEOFF]
Lloh33:
	ldr	w9, [x9]
	mov	w10, #255
	lsl	w9, w10, w9
	orr	w0, w9, w8
	ldr	w8, [x19]
	add	w1, w8, w21
	bl	_writel
Lloh34:
	adrp	x8, _MCDE_CRX1_CLKSEL_MCDECLK@GOTPAGE
Lloh35:
	ldr	x8, [x8, _MCDE_CRX1_CLKSEL_MCDECLK@GOTPAGEOFF]
Lloh36:
	ldr	w8, [x8]
Lloh37:
	adrp	x9, _MCDE_CRX1_CLKSEL_SHIFT@GOTPAGE
Lloh38:
	ldr	x9, [x9, _MCDE_CRX1_CLKSEL_SHIFT@GOTPAGEOFF]
Lloh39:
	ldr	w9, [x9]
	lsl	w0, w8, w9
	ldr	w8, [x19]
	add	w1, w8, w20
	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	_writel
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_MCDE_CTRLA,4,2                 ; @MCDE_CTRLA
	.comm	_MCDE_CRA0,4,2                  ; @MCDE_CRA0
	.comm	_MCDE_CRA1,4,2                  ; @MCDE_CRA1
	.comm	_MCDE_CTRLB,4,2                 ; @MCDE_CTRLB
	.comm	_MCDE_CRB0,4,2                  ; @MCDE_CRB0
	.comm	_MCDE_CRB1,4,2                  ; @MCDE_CRB1
	.comm	_MCDE_CTRLX_FIFOWTRMRK_SHIFT,4,2 ; @MCDE_CTRLX_FIFOWTRMRK_SHIFT
	.comm	_MCDE_CTRLX_FORMTYPE_DSI,4,2    ; @MCDE_CTRLX_FORMTYPE_DSI
	.comm	_MCDE_CTRLX_FORMTYPE_SHIFT,4,2  ; @MCDE_CTRLX_FORMTYPE_SHIFT
	.comm	_MCDE_CTRLX_FORMID_SHIFT,4,2    ; @MCDE_CTRLX_FORMID_SHIFT
	.comm	_MCDE_CRX0_BLENDEN,4,2          ; @MCDE_CRX0_BLENDEN
	.comm	_MCDE_CRX0_ALPHABLEND_SHIFT,4,2 ; @MCDE_CRX0_ALPHABLEND_SHIFT
	.comm	_MCDE_CRX1_CLKSEL_MCDECLK,4,2   ; @MCDE_CRX1_CLKSEL_MCDECLK
	.comm	_MCDE_CRX1_CLKSEL_SHIFT,4,2     ; @MCDE_CRX1_CLKSEL_SHIFT
	.no_dead_strip	_mcde_configure_fifo
.subsections_via_symbols
