	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dce110_configure_crc           ## -- Begin function dce110_configure_crc
	.p2align	4, 0x90
_dce110_configure_crc:                  ## @dce110_configure_crc
	.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	%rsi, %rbx
	movq	%rdi, %r15
	callq	_DCE110TG_FROM_TG
	movq	%r15, %rdi
	callq	_dce110_is_tg_enabled
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	_mmCRTC_CRC_CNTL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_CRTC_REG
	movq	%rax, %r14
	movl	(%r15), %edi
	movq	%rax, %rsi
	xorl	%edx, %edx
	callq	_dm_write_reg
	cmpl	$0, 48(%rbx)
	je	LBB0_3
## %bb.4:
	movq	_mmCRTC_CRC0_WINDOWA_X_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_CRTC_REG
	movq	%rax, %r12
	movl	(%rbx), %esi
	movq	_CRTC_CRC0_WINDOWA_X_CONTROL@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	movq	_CRTC_CRC0_WINDOWA_X_START@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%edi, %edi
	callq	_set_reg_field_value
	movl	4(%rbx), %esi
	movl	(%r13), %edx
	movq	_CRTC_CRC0_WINDOWA_X_END@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%edi, %edi
	callq	_set_reg_field_value
	movl	(%r15), %edi
	movq	%r12, %rsi
	xorl	%edx, %edx
	callq	_dm_write_reg
	movq	_mmCRTC_CRC0_WINDOWA_Y_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_CRTC_REG
	movq	%rax, %r12
	movl	8(%rbx), %esi
	movq	_CRTC_CRC0_WINDOWA_Y_CONTROL@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	movq	_CRTC_CRC0_WINDOWA_Y_START@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%edi, %edi
	callq	_set_reg_field_value
	movl	12(%rbx), %esi
	movl	(%r13), %edx
	movq	_CRTC_CRC0_WINDOWA_Y_END@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%edi, %edi
	callq	_set_reg_field_value
	movl	(%r15), %edi
	movq	%r12, %rsi
	xorl	%edx, %edx
	callq	_dm_write_reg
	movq	_mmCRTC_CRC0_WINDOWB_X_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_CRTC_REG
	movq	%rax, %r12
	movl	16(%rbx), %esi
	movq	_CRTC_CRC0_WINDOWB_X_CONTROL@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	movq	_CRTC_CRC0_WINDOWB_X_START@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%edi, %edi
	callq	_set_reg_field_value
	movl	20(%rbx), %esi
	movl	(%r13), %edx
	movq	_CRTC_CRC0_WINDOWB_X_END@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%edi, %edi
	callq	_set_reg_field_value
	movl	(%r15), %edi
	movq	%r12, %rsi
	xorl	%edx, %edx
	callq	_dm_write_reg
	movq	_mmCRTC_CRC0_WINDOWB_Y_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_CRTC_REG
	movq	%rax, %r12
	movl	24(%rbx), %esi
	movq	_CRTC_CRC0_WINDOWB_Y_CONTROL@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	movq	_CRTC_CRC0_WINDOWB_Y_START@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%edi, %edi
	callq	_set_reg_field_value
	movl	28(%rbx), %esi
	movl	(%r13), %edx
	movq	_CRTC_CRC0_WINDOWB_Y_END@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%edi, %edi
	callq	_set_reg_field_value
	movl	(%r15), %edi
	movq	%r12, %rsi
	xorl	%edx, %edx
	callq	_dm_write_reg
	xorl	%esi, %esi
	cmpq	$0, 40(%rbx)
	setne	%sil
	movq	_CRTC_CRC_CNTL@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	movq	_CRTC_CRC_CONT_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%edi, %edi
	callq	_set_reg_field_value
	movl	32(%rbx), %esi
	movl	(%r12), %edx
	movq	_CRTC_CRC0_SELECT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%edi, %edi
	callq	_set_reg_field_value
	movl	(%r12), %edx
	movq	_CRTC_CRC_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	$1, %ebx
	xorl	%edi, %edi
	movl	$1, %esi
	callq	_set_reg_field_value
	movl	(%r15), %edi
	movq	%r14, %rsi
	xorl	%edx, %edx
	callq	_dm_write_reg
	jmp	LBB0_5
LBB0_1:
	xorl	%ebx, %ebx
	jmp	LBB0_5
LBB0_3:
	movl	$1, %ebx
LBB0_5:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_mmCRTC_CRC_CNTL,4,2            ## @mmCRTC_CRC_CNTL
	.comm	_mmCRTC_CRC0_WINDOWA_X_CONTROL,4,2 ## @mmCRTC_CRC0_WINDOWA_X_CONTROL
	.comm	_CRTC_CRC0_WINDOWA_X_CONTROL,4,2 ## @CRTC_CRC0_WINDOWA_X_CONTROL
	.comm	_CRTC_CRC0_WINDOWA_X_START,4,2  ## @CRTC_CRC0_WINDOWA_X_START
	.comm	_CRTC_CRC0_WINDOWA_X_END,4,2    ## @CRTC_CRC0_WINDOWA_X_END
	.comm	_mmCRTC_CRC0_WINDOWA_Y_CONTROL,4,2 ## @mmCRTC_CRC0_WINDOWA_Y_CONTROL
	.comm	_CRTC_CRC0_WINDOWA_Y_CONTROL,4,2 ## @CRTC_CRC0_WINDOWA_Y_CONTROL
	.comm	_CRTC_CRC0_WINDOWA_Y_START,4,2  ## @CRTC_CRC0_WINDOWA_Y_START
	.comm	_CRTC_CRC0_WINDOWA_Y_END,4,2    ## @CRTC_CRC0_WINDOWA_Y_END
	.comm	_mmCRTC_CRC0_WINDOWB_X_CONTROL,4,2 ## @mmCRTC_CRC0_WINDOWB_X_CONTROL
	.comm	_CRTC_CRC0_WINDOWB_X_CONTROL,4,2 ## @CRTC_CRC0_WINDOWB_X_CONTROL
	.comm	_CRTC_CRC0_WINDOWB_X_START,4,2  ## @CRTC_CRC0_WINDOWB_X_START
	.comm	_CRTC_CRC0_WINDOWB_X_END,4,2    ## @CRTC_CRC0_WINDOWB_X_END
	.comm	_mmCRTC_CRC0_WINDOWB_Y_CONTROL,4,2 ## @mmCRTC_CRC0_WINDOWB_Y_CONTROL
	.comm	_CRTC_CRC0_WINDOWB_Y_CONTROL,4,2 ## @CRTC_CRC0_WINDOWB_Y_CONTROL
	.comm	_CRTC_CRC0_WINDOWB_Y_START,4,2  ## @CRTC_CRC0_WINDOWB_Y_START
	.comm	_CRTC_CRC0_WINDOWB_Y_END,4,2    ## @CRTC_CRC0_WINDOWB_Y_END
	.comm	_CRTC_CRC_CNTL,4,2              ## @CRTC_CRC_CNTL
	.comm	_CRTC_CRC_CONT_EN,4,2           ## @CRTC_CRC_CONT_EN
	.comm	_CRTC_CRC0_SELECT,4,2           ## @CRTC_CRC0_SELECT
	.comm	_CRTC_CRC_EN,4,2                ## @CRTC_CRC_EN
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dce110_configure_crc           ; -- Begin function dce110_configure_crc
	.p2align	2
_dce110_configure_crc:                  ; @dce110_configure_crc
	.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, x1
	mov	x19, x0
	bl	_DCE110TG_FROM_TG
	mov	x0, x19
	bl	_dce110_is_tg_enabled
	cbz	w0, LBB0_3
; %bb.1:
Lloh0:
	adrp	x8, _mmCRTC_CRC_CNTL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _mmCRTC_CRC_CNTL@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_CRTC_REG
	mov	x20, x0
	ldr	w0, [x19]
	mov	x1, x20
	mov	x2, #0
	bl	_dm_write_reg
	ldr	w8, [x21, #48]
	cbz	w8, LBB0_4
; %bb.2:
Lloh3:
	adrp	x8, _mmCRTC_CRC0_WINDOWA_X_CONTROL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _mmCRTC_CRC0_WINDOWA_X_CONTROL@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_CRTC_REG
	mov	x22, x0
	ldr	w1, [x21]
Lloh6:
	adrp	x23, _CRTC_CRC0_WINDOWA_X_CONTROL@GOTPAGE
Lloh7:
	ldr	x23, [x23, _CRTC_CRC0_WINDOWA_X_CONTROL@GOTPAGEOFF]
	ldr	w2, [x23]
Lloh8:
	adrp	x8, _CRTC_CRC0_WINDOWA_X_START@GOTPAGE
Lloh9:
	ldr	x8, [x8, _CRTC_CRC0_WINDOWA_X_START@GOTPAGEOFF]
Lloh10:
	ldr	w3, [x8]
	mov	x0, #0
	bl	_set_reg_field_value
	ldr	w1, [x21, #4]
	ldr	w2, [x23]
Lloh11:
	adrp	x8, _CRTC_CRC0_WINDOWA_X_END@GOTPAGE
Lloh12:
	ldr	x8, [x8, _CRTC_CRC0_WINDOWA_X_END@GOTPAGEOFF]
Lloh13:
	ldr	w3, [x8]
	mov	x0, #0
	bl	_set_reg_field_value
	ldr	w0, [x19]
	mov	x1, x22
	mov	x2, #0
	bl	_dm_write_reg
Lloh14:
	adrp	x8, _mmCRTC_CRC0_WINDOWA_Y_CONTROL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _mmCRTC_CRC0_WINDOWA_Y_CONTROL@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	bl	_CRTC_REG
	mov	x22, x0
	ldr	w1, [x21, #8]
Lloh17:
	adrp	x23, _CRTC_CRC0_WINDOWA_Y_CONTROL@GOTPAGE
Lloh18:
	ldr	x23, [x23, _CRTC_CRC0_WINDOWA_Y_CONTROL@GOTPAGEOFF]
	ldr	w2, [x23]
Lloh19:
	adrp	x8, _CRTC_CRC0_WINDOWA_Y_START@GOTPAGE
Lloh20:
	ldr	x8, [x8, _CRTC_CRC0_WINDOWA_Y_START@GOTPAGEOFF]
Lloh21:
	ldr	w3, [x8]
	mov	x0, #0
	bl	_set_reg_field_value
	ldr	w1, [x21, #12]
	ldr	w2, [x23]
Lloh22:
	adrp	x8, _CRTC_CRC0_WINDOWA_Y_END@GOTPAGE
Lloh23:
	ldr	x8, [x8, _CRTC_CRC0_WINDOWA_Y_END@GOTPAGEOFF]
Lloh24:
	ldr	w3, [x8]
	mov	x0, #0
	bl	_set_reg_field_value
	ldr	w0, [x19]
	mov	x1, x22
	mov	x2, #0
	bl	_dm_write_reg
Lloh25:
	adrp	x8, _mmCRTC_CRC0_WINDOWB_X_CONTROL@GOTPAGE
Lloh26:
	ldr	x8, [x8, _mmCRTC_CRC0_WINDOWB_X_CONTROL@GOTPAGEOFF]
Lloh27:
	ldr	w0, [x8]
	bl	_CRTC_REG
	mov	x22, x0
	ldr	w1, [x21, #16]
Lloh28:
	adrp	x23, _CRTC_CRC0_WINDOWB_X_CONTROL@GOTPAGE
Lloh29:
	ldr	x23, [x23, _CRTC_CRC0_WINDOWB_X_CONTROL@GOTPAGEOFF]
	ldr	w2, [x23]
Lloh30:
	adrp	x8, _CRTC_CRC0_WINDOWB_X_START@GOTPAGE
Lloh31:
	ldr	x8, [x8, _CRTC_CRC0_WINDOWB_X_START@GOTPAGEOFF]
Lloh32:
	ldr	w3, [x8]
	mov	x0, #0
	bl	_set_reg_field_value
	ldr	w1, [x21, #20]
	ldr	w2, [x23]
Lloh33:
	adrp	x8, _CRTC_CRC0_WINDOWB_X_END@GOTPAGE
Lloh34:
	ldr	x8, [x8, _CRTC_CRC0_WINDOWB_X_END@GOTPAGEOFF]
Lloh35:
	ldr	w3, [x8]
	mov	x0, #0
	bl	_set_reg_field_value
	ldr	w0, [x19]
	mov	x1, x22
	mov	x2, #0
	bl	_dm_write_reg
Lloh36:
	adrp	x8, _mmCRTC_CRC0_WINDOWB_Y_CONTROL@GOTPAGE
Lloh37:
	ldr	x8, [x8, _mmCRTC_CRC0_WINDOWB_Y_CONTROL@GOTPAGEOFF]
Lloh38:
	ldr	w0, [x8]
	bl	_CRTC_REG
	mov	x22, x0
	ldr	w1, [x21, #24]
Lloh39:
	adrp	x23, _CRTC_CRC0_WINDOWB_Y_CONTROL@GOTPAGE
Lloh40:
	ldr	x23, [x23, _CRTC_CRC0_WINDOWB_Y_CONTROL@GOTPAGEOFF]
	ldr	w2, [x23]
Lloh41:
	adrp	x8, _CRTC_CRC0_WINDOWB_Y_START@GOTPAGE
Lloh42:
	ldr	x8, [x8, _CRTC_CRC0_WINDOWB_Y_START@GOTPAGEOFF]
Lloh43:
	ldr	w3, [x8]
	mov	x0, #0
	bl	_set_reg_field_value
	ldr	w1, [x21, #28]
	ldr	w2, [x23]
Lloh44:
	adrp	x8, _CRTC_CRC0_WINDOWB_Y_END@GOTPAGE
Lloh45:
	ldr	x8, [x8, _CRTC_CRC0_WINDOWB_Y_END@GOTPAGEOFF]
Lloh46:
	ldr	w3, [x8]
	mov	x0, #0
	bl	_set_reg_field_value
	ldr	w0, [x19]
	mov	x1, x22
	mov	x2, #0
	bl	_dm_write_reg
	ldr	x8, [x21, #40]
	cmp	x8, #0
	cset	w1, ne
Lloh47:
	adrp	x22, _CRTC_CRC_CNTL@GOTPAGE
Lloh48:
	ldr	x22, [x22, _CRTC_CRC_CNTL@GOTPAGEOFF]
	ldr	w2, [x22]
Lloh49:
	adrp	x8, _CRTC_CRC_CONT_EN@GOTPAGE
Lloh50:
	ldr	x8, [x8, _CRTC_CRC_CONT_EN@GOTPAGEOFF]
Lloh51:
	ldr	w3, [x8]
	mov	x0, #0
	bl	_set_reg_field_value
	ldr	w1, [x21, #32]
	ldr	w2, [x22]
Lloh52:
	adrp	x8, _CRTC_CRC0_SELECT@GOTPAGE
Lloh53:
	ldr	x8, [x8, _CRTC_CRC0_SELECT@GOTPAGEOFF]
Lloh54:
	ldr	w3, [x8]
	mov	x0, #0
	bl	_set_reg_field_value
	ldr	w2, [x22]
Lloh55:
	adrp	x8, _CRTC_CRC_EN@GOTPAGE
Lloh56:
	ldr	x8, [x8, _CRTC_CRC_EN@GOTPAGEOFF]
Lloh57:
	ldr	w3, [x8]
	mov	w21, #1
	mov	x0, #0
	mov	w1, #1
	bl	_set_reg_field_value
	ldr	w0, [x19]
	mov	x1, x20
	mov	x2, #0
	bl	_dm_write_reg
	b	LBB0_5
LBB0_3:
	mov	w21, #0
	b	LBB0_5
LBB0_4:
	mov	w21, #1
LBB0_5:
	mov	x0, 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
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh55, Lloh56, Lloh57
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGot	Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGot	Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_mmCRTC_CRC_CNTL,4,2            ; @mmCRTC_CRC_CNTL
	.comm	_mmCRTC_CRC0_WINDOWA_X_CONTROL,4,2 ; @mmCRTC_CRC0_WINDOWA_X_CONTROL
	.comm	_CRTC_CRC0_WINDOWA_X_CONTROL,4,2 ; @CRTC_CRC0_WINDOWA_X_CONTROL
	.comm	_CRTC_CRC0_WINDOWA_X_START,4,2  ; @CRTC_CRC0_WINDOWA_X_START
	.comm	_CRTC_CRC0_WINDOWA_X_END,4,2    ; @CRTC_CRC0_WINDOWA_X_END
	.comm	_mmCRTC_CRC0_WINDOWA_Y_CONTROL,4,2 ; @mmCRTC_CRC0_WINDOWA_Y_CONTROL
	.comm	_CRTC_CRC0_WINDOWA_Y_CONTROL,4,2 ; @CRTC_CRC0_WINDOWA_Y_CONTROL
	.comm	_CRTC_CRC0_WINDOWA_Y_START,4,2  ; @CRTC_CRC0_WINDOWA_Y_START
	.comm	_CRTC_CRC0_WINDOWA_Y_END,4,2    ; @CRTC_CRC0_WINDOWA_Y_END
	.comm	_mmCRTC_CRC0_WINDOWB_X_CONTROL,4,2 ; @mmCRTC_CRC0_WINDOWB_X_CONTROL
	.comm	_CRTC_CRC0_WINDOWB_X_CONTROL,4,2 ; @CRTC_CRC0_WINDOWB_X_CONTROL
	.comm	_CRTC_CRC0_WINDOWB_X_START,4,2  ; @CRTC_CRC0_WINDOWB_X_START
	.comm	_CRTC_CRC0_WINDOWB_X_END,4,2    ; @CRTC_CRC0_WINDOWB_X_END
	.comm	_mmCRTC_CRC0_WINDOWB_Y_CONTROL,4,2 ; @mmCRTC_CRC0_WINDOWB_Y_CONTROL
	.comm	_CRTC_CRC0_WINDOWB_Y_CONTROL,4,2 ; @CRTC_CRC0_WINDOWB_Y_CONTROL
	.comm	_CRTC_CRC0_WINDOWB_Y_START,4,2  ; @CRTC_CRC0_WINDOWB_Y_START
	.comm	_CRTC_CRC0_WINDOWB_Y_END,4,2    ; @CRTC_CRC0_WINDOWB_Y_END
	.comm	_CRTC_CRC_CNTL,4,2              ; @CRTC_CRC_CNTL
	.comm	_CRTC_CRC_CONT_EN,4,2           ; @CRTC_CRC_CONT_EN
	.comm	_CRTC_CRC0_SELECT,4,2           ; @CRTC_CRC0_SELECT
	.comm	_CRTC_CRC_EN,4,2                ; @CRTC_CRC_EN
.subsections_via_symbols
