	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_optc1_configure_crc            ## -- Begin function optc1_configure_crc
	.p2align	4, 0x90
_optc1_configure_crc:                   ## @optc1_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	_DCN10TG_FROM_TG
	movq	%rbx, %rdi
	callq	_optc1_is_tg_enabled
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	_OTG_CRC_CNTL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	xorl	%esi, %esi
	callq	_REG_WRITE
	movl	$1, %r14d
	cmpl	$0, 48(%r15)
	je	LBB0_4
## %bb.3:
	movq	_OTG_CRC0_WINDOWA_X_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_OTG_CRC0_WINDOWA_X_START@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	40(%r15), %r8d
	movl	44(%r15), %edx
	movq	_OTG_CRC0_WINDOWA_X_END@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_REG_UPDATE_2
	movq	_OTG_CRC0_WINDOWA_Y_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_OTG_CRC0_WINDOWA_Y_START@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	32(%r15), %r8d
	movl	36(%r15), %edx
	movq	_OTG_CRC0_WINDOWA_Y_END@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_REG_UPDATE_2
	movq	_OTG_CRC0_WINDOWB_X_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_OTG_CRC0_WINDOWB_X_START@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	24(%r15), %r8d
	movl	28(%r15), %edx
	movq	_OTG_CRC0_WINDOWB_X_END@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_REG_UPDATE_2
	movq	_OTG_CRC0_WINDOWB_Y_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_OTG_CRC0_WINDOWB_Y_START@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	16(%r15), %r8d
	movl	20(%r15), %edx
	movq	_OTG_CRC0_WINDOWB_Y_END@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_REG_UPDATE_2
	movl	(%rbx), %edi
	movq	_OTG_CRC_CONT_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	cmpq	$0, 8(%r15)
	setne	%dl
	movq	_OTG_CRC0_SELECT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	(%r15), %r8d
	movq	_OTG_CRC_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movl	$1, (%rsp)
	callq	_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	_OTG_CRC_CNTL,4,2               ## @OTG_CRC_CNTL
	.comm	_OTG_CRC0_WINDOWA_X_CONTROL,4,2 ## @OTG_CRC0_WINDOWA_X_CONTROL
	.comm	_OTG_CRC0_WINDOWA_X_START,4,2   ## @OTG_CRC0_WINDOWA_X_START
	.comm	_OTG_CRC0_WINDOWA_X_END,4,2     ## @OTG_CRC0_WINDOWA_X_END
	.comm	_OTG_CRC0_WINDOWA_Y_CONTROL,4,2 ## @OTG_CRC0_WINDOWA_Y_CONTROL
	.comm	_OTG_CRC0_WINDOWA_Y_START,4,2   ## @OTG_CRC0_WINDOWA_Y_START
	.comm	_OTG_CRC0_WINDOWA_Y_END,4,2     ## @OTG_CRC0_WINDOWA_Y_END
	.comm	_OTG_CRC0_WINDOWB_X_CONTROL,4,2 ## @OTG_CRC0_WINDOWB_X_CONTROL
	.comm	_OTG_CRC0_WINDOWB_X_START,4,2   ## @OTG_CRC0_WINDOWB_X_START
	.comm	_OTG_CRC0_WINDOWB_X_END,4,2     ## @OTG_CRC0_WINDOWB_X_END
	.comm	_OTG_CRC0_WINDOWB_Y_CONTROL,4,2 ## @OTG_CRC0_WINDOWB_Y_CONTROL
	.comm	_OTG_CRC0_WINDOWB_Y_START,4,2   ## @OTG_CRC0_WINDOWB_Y_START
	.comm	_OTG_CRC0_WINDOWB_Y_END,4,2     ## @OTG_CRC0_WINDOWB_Y_END
	.comm	_OTG_CRC_CONT_EN,4,2            ## @OTG_CRC_CONT_EN
	.comm	_OTG_CRC0_SELECT,4,2            ## @OTG_CRC0_SELECT
	.comm	_OTG_CRC_EN,4,2                 ## @OTG_CRC_EN
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_optc1_configure_crc            ; -- Begin function optc1_configure_crc
	.p2align	2
_optc1_configure_crc:                   ; @optc1_configure_crc
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	mov	x20, x0
	bl	_DCN10TG_FROM_TG
	mov	x0, x20
	bl	_optc1_is_tg_enabled
	cbz	w0, LBB0_3
; %bb.1:
Lloh0:
	adrp	x20, _OTG_CRC_CNTL@GOTPAGE
Lloh1:
	ldr	x20, [x20, _OTG_CRC_CNTL@GOTPAGEOFF]
	ldr	w0, [x20]
	mov	w1, #0
	bl	_REG_WRITE
	ldr	w8, [x19, #48]
	cbz	w8, LBB0_4
; %bb.2:
Lloh2:
	adrp	x8, _OTG_CRC0_WINDOWA_X_CONTROL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _OTG_CRC0_WINDOWA_X_CONTROL@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
Lloh5:
	adrp	x8, _OTG_CRC0_WINDOWA_X_START@GOTPAGE
Lloh6:
	ldr	x8, [x8, _OTG_CRC0_WINDOWA_X_START@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
Lloh8:
	adrp	x8, _OTG_CRC0_WINDOWA_X_END@GOTPAGE
Lloh9:
	ldr	x8, [x8, _OTG_CRC0_WINDOWA_X_END@GOTPAGEOFF]
Lloh10:
	ldr	w3, [x8]
	ldp	w4, w2, [x19, #40]
	bl	_REG_UPDATE_2
Lloh11:
	adrp	x8, _OTG_CRC0_WINDOWA_Y_CONTROL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _OTG_CRC0_WINDOWA_Y_CONTROL@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
Lloh14:
	adrp	x8, _OTG_CRC0_WINDOWA_Y_START@GOTPAGE
Lloh15:
	ldr	x8, [x8, _OTG_CRC0_WINDOWA_Y_START@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
Lloh17:
	adrp	x8, _OTG_CRC0_WINDOWA_Y_END@GOTPAGE
Lloh18:
	ldr	x8, [x8, _OTG_CRC0_WINDOWA_Y_END@GOTPAGEOFF]
Lloh19:
	ldr	w3, [x8]
	ldp	w4, w2, [x19, #32]
	bl	_REG_UPDATE_2
Lloh20:
	adrp	x8, _OTG_CRC0_WINDOWB_X_CONTROL@GOTPAGE
Lloh21:
	ldr	x8, [x8, _OTG_CRC0_WINDOWB_X_CONTROL@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
Lloh23:
	adrp	x8, _OTG_CRC0_WINDOWB_X_START@GOTPAGE
Lloh24:
	ldr	x8, [x8, _OTG_CRC0_WINDOWB_X_START@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
Lloh26:
	adrp	x8, _OTG_CRC0_WINDOWB_X_END@GOTPAGE
Lloh27:
	ldr	x8, [x8, _OTG_CRC0_WINDOWB_X_END@GOTPAGEOFF]
Lloh28:
	ldr	w3, [x8]
	ldp	w4, w2, [x19, #24]
	bl	_REG_UPDATE_2
Lloh29:
	adrp	x8, _OTG_CRC0_WINDOWB_Y_CONTROL@GOTPAGE
Lloh30:
	ldr	x8, [x8, _OTG_CRC0_WINDOWB_Y_CONTROL@GOTPAGEOFF]
Lloh31:
	ldr	w0, [x8]
Lloh32:
	adrp	x8, _OTG_CRC0_WINDOWB_Y_START@GOTPAGE
Lloh33:
	ldr	x8, [x8, _OTG_CRC0_WINDOWB_Y_START@GOTPAGEOFF]
Lloh34:
	ldr	w1, [x8]
Lloh35:
	adrp	x8, _OTG_CRC0_WINDOWB_Y_END@GOTPAGE
Lloh36:
	ldr	x8, [x8, _OTG_CRC0_WINDOWB_Y_END@GOTPAGEOFF]
Lloh37:
	ldr	w3, [x8]
	ldp	w4, w2, [x19, #16]
	bl	_REG_UPDATE_2
Lloh38:
	adrp	x8, _OTG_CRC_CONT_EN@GOTPAGE
Lloh39:
	ldr	x8, [x8, _OTG_CRC_CONT_EN@GOTPAGEOFF]
	ldr	w0, [x20]
Lloh40:
	ldr	w1, [x8]
	ldr	x8, [x19, #8]
	cmp	x8, #0
Lloh41:
	adrp	x8, _OTG_CRC0_SELECT@GOTPAGE
Lloh42:
	ldr	x8, [x8, _OTG_CRC0_SELECT@GOTPAGEOFF]
	cset	w2, ne
Lloh43:
	ldr	w3, [x8]
	ldr	w4, [x19]
Lloh44:
	adrp	x8, _OTG_CRC_EN@GOTPAGE
Lloh45:
	ldr	x8, [x8, _OTG_CRC_EN@GOTPAGEOFF]
Lloh46:
	ldr	w5, [x8]
	mov	w19, #1
	mov	w6, #1
	bl	_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, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_OTG_CRC_CNTL,4,2               ; @OTG_CRC_CNTL
	.comm	_OTG_CRC0_WINDOWA_X_CONTROL,4,2 ; @OTG_CRC0_WINDOWA_X_CONTROL
	.comm	_OTG_CRC0_WINDOWA_X_START,4,2   ; @OTG_CRC0_WINDOWA_X_START
	.comm	_OTG_CRC0_WINDOWA_X_END,4,2     ; @OTG_CRC0_WINDOWA_X_END
	.comm	_OTG_CRC0_WINDOWA_Y_CONTROL,4,2 ; @OTG_CRC0_WINDOWA_Y_CONTROL
	.comm	_OTG_CRC0_WINDOWA_Y_START,4,2   ; @OTG_CRC0_WINDOWA_Y_START
	.comm	_OTG_CRC0_WINDOWA_Y_END,4,2     ; @OTG_CRC0_WINDOWA_Y_END
	.comm	_OTG_CRC0_WINDOWB_X_CONTROL,4,2 ; @OTG_CRC0_WINDOWB_X_CONTROL
	.comm	_OTG_CRC0_WINDOWB_X_START,4,2   ; @OTG_CRC0_WINDOWB_X_START
	.comm	_OTG_CRC0_WINDOWB_X_END,4,2     ; @OTG_CRC0_WINDOWB_X_END
	.comm	_OTG_CRC0_WINDOWB_Y_CONTROL,4,2 ; @OTG_CRC0_WINDOWB_Y_CONTROL
	.comm	_OTG_CRC0_WINDOWB_Y_START,4,2   ; @OTG_CRC0_WINDOWB_Y_START
	.comm	_OTG_CRC0_WINDOWB_Y_END,4,2     ; @OTG_CRC0_WINDOWB_Y_END
	.comm	_OTG_CRC_CONT_EN,4,2            ; @OTG_CRC_CONT_EN
	.comm	_OTG_CRC0_SELECT,4,2            ; @OTG_CRC0_SELECT
	.comm	_OTG_CRC_EN,4,2                 ; @OTG_CRC_EN
.subsections_via_symbols
