	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dce120_configure_crc
_dce120_configure_crc:                  ## @dce120_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %rbx
	callq	_DCE110TG_FROM_TG
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_dce120_is_tg_enabled
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movl	(%rbx), %edi
	movq	_mmCRTC0_CRTC_CRC_CNTL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r14), %edx
	xorl	%ecx, %ecx
	callq	_dm_write_reg_soc15
	movl	$1, %r14d
	cmpl	$0, 48(%r15)
	je	LBB0_4
## %bb.3:
	movq	_CRTC0_CRTC_CRC0_WINDOWA_X_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_CRTC_CRC0_WINDOWA_X_START@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	40(%r15), %r8d
	movl	44(%r15), %edx
	movq	_CRTC_CRC0_WINDOWA_X_END@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_CRTC_REG_UPDATE_2
	movq	_CRTC0_CRTC_CRC0_WINDOWA_Y_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_CRTC_CRC0_WINDOWA_Y_START@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	32(%r15), %r8d
	movl	36(%r15), %edx
	movq	_CRTC_CRC0_WINDOWA_Y_END@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_CRTC_REG_UPDATE_2
	movq	_CRTC0_CRTC_CRC0_WINDOWB_X_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_CRTC_CRC0_WINDOWB_X_START@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	24(%r15), %r8d
	movl	28(%r15), %edx
	movq	_CRTC_CRC0_WINDOWB_X_END@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_CRTC_REG_UPDATE_2
	movq	_CRTC0_CRTC_CRC0_WINDOWB_Y_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_CRTC_CRC0_WINDOWB_Y_START@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	16(%r15), %r8d
	movl	20(%r15), %edx
	movq	_CRTC_CRC0_WINDOWB_Y_END@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_CRTC_REG_UPDATE_2
	movq	_CRTC0_CRTC_CRC_CNTL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_CRTC_CRC_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	cmpq	$0, 8(%r15)
	setne	%dl
	movq	_CRTC_CRC0_SELECT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	(%r15), %r8d
	movl	$1, (%rsp)
	movl	%esi, %r9d
	callq	_CRTC_REG_UPDATE_3
	jmp	LBB0_4
LBB0_1:
	xorl	%r14d, %r14d
LBB0_4:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_mmCRTC0_CRTC_CRC_CNTL,4,2      ## @mmCRTC0_CRTC_CRC_CNTL
	.comm	_CRTC0_CRTC_CRC0_WINDOWA_X_CONTROL,4,2 ## @CRTC0_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	_CRTC0_CRTC_CRC0_WINDOWA_Y_CONTROL,4,2 ## @CRTC0_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	_CRTC0_CRTC_CRC0_WINDOWB_X_CONTROL,4,2 ## @CRTC0_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	_CRTC0_CRTC_CRC0_WINDOWB_Y_CONTROL,4,2 ## @CRTC0_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	_CRTC0_CRTC_CRC_CNTL,4,2        ## @CRTC0_CRTC_CRC_CNTL
	.comm	_CRTC_CRC_EN,4,2                ## @CRTC_CRC_EN
	.comm	_CRTC_CRC0_SELECT,4,2           ## @CRTC_CRC0_SELECT
	.no_dead_strip	_dce120_configure_crc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dce120_configure_crc
_dce120_configure_crc:                  ; @dce120_configure_crc
	.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
	bl	_DCE110TG_FROM_TG
	mov	x21, x0
	mov	x0, x20
	bl	_dce120_is_tg_enabled
	cbz	w0, LBB0_3
; %bb.1:
	ldr	w0, [x20]
Lloh0:
	adrp	x8, _mmCRTC0_CRTC_CRC_CNTL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _mmCRTC0_CRTC_CRC_CNTL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	ldr	w2, [x21]
	mov	w3, #0
	bl	_dm_write_reg_soc15
	ldr	w8, [x19, #48]
	cbz	w8, LBB0_4
; %bb.2:
Lloh3:
	adrp	x8, _CRTC0_CRTC_CRC0_WINDOWA_X_CONTROL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CRTC0_CRTC_CRC0_WINDOWA_X_CONTROL@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x8, _CRTC_CRC0_WINDOWA_X_START@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CRTC_CRC0_WINDOWA_X_START@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
Lloh9:
	adrp	x8, _CRTC_CRC0_WINDOWA_X_END@GOTPAGE
Lloh10:
	ldr	x8, [x8, _CRTC_CRC0_WINDOWA_X_END@GOTPAGEOFF]
Lloh11:
	ldr	w3, [x8]
	ldp	w4, w2, [x19, #40]
	bl	_CRTC_REG_UPDATE_2
Lloh12:
	adrp	x8, _CRTC0_CRTC_CRC0_WINDOWA_Y_CONTROL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _CRTC0_CRTC_CRC0_WINDOWA_Y_CONTROL@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
Lloh15:
	adrp	x8, _CRTC_CRC0_WINDOWA_Y_START@GOTPAGE
Lloh16:
	ldr	x8, [x8, _CRTC_CRC0_WINDOWA_Y_START@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
Lloh18:
	adrp	x8, _CRTC_CRC0_WINDOWA_Y_END@GOTPAGE
Lloh19:
	ldr	x8, [x8, _CRTC_CRC0_WINDOWA_Y_END@GOTPAGEOFF]
Lloh20:
	ldr	w3, [x8]
	ldp	w4, w2, [x19, #32]
	bl	_CRTC_REG_UPDATE_2
Lloh21:
	adrp	x8, _CRTC0_CRTC_CRC0_WINDOWB_X_CONTROL@GOTPAGE
Lloh22:
	ldr	x8, [x8, _CRTC0_CRTC_CRC0_WINDOWB_X_CONTROL@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
Lloh24:
	adrp	x8, _CRTC_CRC0_WINDOWB_X_START@GOTPAGE
Lloh25:
	ldr	x8, [x8, _CRTC_CRC0_WINDOWB_X_START@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
Lloh27:
	adrp	x8, _CRTC_CRC0_WINDOWB_X_END@GOTPAGE
Lloh28:
	ldr	x8, [x8, _CRTC_CRC0_WINDOWB_X_END@GOTPAGEOFF]
Lloh29:
	ldr	w3, [x8]
	ldp	w4, w2, [x19, #24]
	bl	_CRTC_REG_UPDATE_2
Lloh30:
	adrp	x8, _CRTC0_CRTC_CRC0_WINDOWB_Y_CONTROL@GOTPAGE
Lloh31:
	ldr	x8, [x8, _CRTC0_CRTC_CRC0_WINDOWB_Y_CONTROL@GOTPAGEOFF]
Lloh32:
	ldr	w0, [x8]
Lloh33:
	adrp	x8, _CRTC_CRC0_WINDOWB_Y_START@GOTPAGE
Lloh34:
	ldr	x8, [x8, _CRTC_CRC0_WINDOWB_Y_START@GOTPAGEOFF]
Lloh35:
	ldr	w1, [x8]
Lloh36:
	adrp	x8, _CRTC_CRC0_WINDOWB_Y_END@GOTPAGE
Lloh37:
	ldr	x8, [x8, _CRTC_CRC0_WINDOWB_Y_END@GOTPAGEOFF]
Lloh38:
	ldr	w3, [x8]
	ldp	w4, w2, [x19, #16]
	bl	_CRTC_REG_UPDATE_2
Lloh39:
	adrp	x8, _CRTC0_CRTC_CRC_CNTL@GOTPAGE
Lloh40:
	ldr	x8, [x8, _CRTC0_CRTC_CRC_CNTL@GOTPAGEOFF]
Lloh41:
	ldr	w0, [x8]
Lloh42:
	adrp	x8, _CRTC_CRC_EN@GOTPAGE
Lloh43:
	ldr	x8, [x8, _CRTC_CRC_EN@GOTPAGEOFF]
Lloh44:
	ldr	w1, [x8]
	ldr	x8, [x19, #8]
	cmp	x8, #0
	cset	w2, ne
Lloh45:
	adrp	x8, _CRTC_CRC0_SELECT@GOTPAGE
Lloh46:
	ldr	x8, [x8, _CRTC_CRC0_SELECT@GOTPAGEOFF]
Lloh47:
	ldr	w3, [x8]
	ldr	w4, [x19]
	mov	w19, #1
	mov	x5, x1
	mov	w6, #1
	bl	_CRTC_REG_UPDATE_3
	b	LBB0_5
LBB0_3:
	mov	w19, #0
	b	LBB0_5
LBB0_4:
	mov	w19, #1
LBB0_5:
	mov	x0, x19
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_mmCRTC0_CRTC_CRC_CNTL,4,2      ; @mmCRTC0_CRTC_CRC_CNTL
	.comm	_CRTC0_CRTC_CRC0_WINDOWA_X_CONTROL,4,2 ; @CRTC0_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	_CRTC0_CRTC_CRC0_WINDOWA_Y_CONTROL,4,2 ; @CRTC0_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	_CRTC0_CRTC_CRC0_WINDOWB_X_CONTROL,4,2 ; @CRTC0_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	_CRTC0_CRTC_CRC0_WINDOWB_Y_CONTROL,4,2 ; @CRTC0_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	_CRTC0_CRTC_CRC_CNTL,4,2        ; @CRTC0_CRTC_CRC_CNTL
	.comm	_CRTC_CRC_EN,4,2                ; @CRTC_CRC_EN
	.comm	_CRTC_CRC0_SELECT,4,2           ; @CRTC_CRC0_SELECT
	.no_dead_strip	_dce120_configure_crc
.subsections_via_symbols
