	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_optc1_enable_crtc_reset        ## -- Begin function optc1_enable_crtc_reset
	.p2align	4, 0x90
_optc1_enable_crtc_reset:               ## @optc1_enable_crtc_reset
	.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	%rdx, %r15
	movl	%esi, %r14d
	callq	_DCN10TG_FROM_TG
	movl	(%r15), %eax
	xorl	%r10d, %r10d
	cmpl	$131, %eax
	je	LBB0_3
## %bb.1:
	cmpl	$130, %eax
	jne	LBB0_4
## %bb.2:
	movl	$1, %r10d
LBB0_4:
	xorl	%r11d, %r11d
	jmp	LBB0_5
LBB0_3:
	movl	$1, %r11d
LBB0_5:
	movq	_OTG_TRIGA_CNTL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movq	_OTG_TRIGA_SOURCE_SELECT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	_OTG_TRIGA_SOURCE_PIPE_SELECT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r8d
	movq	_OTG_TRIGA_RISING_EDGE_DETECT_CNTL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %eax
	movq	_OTG_TRIGA_FALLING_EDGE_DETECT_CNTL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	xorl	%esi, %esi
	movl	$20, %ecx
	movl	%r14d, %r9d
	pushq	%r11
	pushq	%rbx
	pushq	%r10
	pushq	%rax
	callq	_REG_SET_4
	addq	$32, %rsp
	movl	4(%r15), %eax
	cmpl	$129, %eax
	je	LBB0_8
## %bb.6:
	cmpl	$128, %eax
	jne	LBB0_10
## %bb.7:
	movl	$2, %ecx
	movq	_OTG_FORCE_COUNT_NOW_MODE@GOTPCREL(%rip), %rax
	movq	_OTG_FORCE_COUNT_NOW_CNTL@GOTPCREL(%rip), %rdx
	jmp	LBB0_9
LBB0_8:
	movl	$1, %ecx
	movq	_OTG_AUTO_FORCE_VSYNC_MODE@GOTPCREL(%rip), %rax
	movq	_OTG_VERT_SYNC_CONTROL@GOTPCREL(%rip), %rdx
LBB0_9:
	movl	(%rdx), %edi
	movl	(%rax), %edx
	xorl	%esi, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_REG_SET                        ## TAILCALL
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_OTG_TRIGA_CNTL,4,2             ## @OTG_TRIGA_CNTL
	.comm	_OTG_TRIGA_SOURCE_SELECT,4,2    ## @OTG_TRIGA_SOURCE_SELECT
	.comm	_OTG_TRIGA_SOURCE_PIPE_SELECT,4,2 ## @OTG_TRIGA_SOURCE_PIPE_SELECT
	.comm	_OTG_TRIGA_RISING_EDGE_DETECT_CNTL,4,2 ## @OTG_TRIGA_RISING_EDGE_DETECT_CNTL
	.comm	_OTG_TRIGA_FALLING_EDGE_DETECT_CNTL,4,2 ## @OTG_TRIGA_FALLING_EDGE_DETECT_CNTL
	.comm	_OTG_VERT_SYNC_CONTROL,4,2      ## @OTG_VERT_SYNC_CONTROL
	.comm	_OTG_AUTO_FORCE_VSYNC_MODE,4,2  ## @OTG_AUTO_FORCE_VSYNC_MODE
	.comm	_OTG_FORCE_COUNT_NOW_CNTL,4,2   ## @OTG_FORCE_COUNT_NOW_CNTL
	.comm	_OTG_FORCE_COUNT_NOW_MODE,4,2   ## @OTG_FORCE_COUNT_NOW_MODE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_optc1_enable_crtc_reset        ; -- Begin function optc1_enable_crtc_reset
	.p2align	2
_optc1_enable_crtc_reset:               ; @optc1_enable_crtc_reset
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x2
	mov	x20, x1
	bl	_DCN10TG_FROM_TG
	ldr	w8, [x19]
	mov	w9, #1
	mov	w10, #1
	cmp	w8, #130
	csel	w11, wzr, wzr, ne
	csel	w10, wzr, w10, ne
	cmp	w8, #131
	csel	w8, w9, w11, eq
	csel	w7, wzr, w10, eq
Lloh0:
	adrp	x9, _OTG_TRIGA_CNTL@GOTPAGE
Lloh1:
	ldr	x9, [x9, _OTG_TRIGA_CNTL@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x9]
Lloh3:
	adrp	x9, _OTG_TRIGA_SOURCE_SELECT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _OTG_TRIGA_SOURCE_SELECT@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x9]
Lloh6:
	adrp	x9, _OTG_TRIGA_SOURCE_PIPE_SELECT@GOTPAGE
Lloh7:
	ldr	x9, [x9, _OTG_TRIGA_SOURCE_PIPE_SELECT@GOTPAGEOFF]
Lloh8:
	ldr	w4, [x9]
Lloh9:
	adrp	x9, _OTG_TRIGA_RISING_EDGE_DETECT_CNTL@GOTPAGE
Lloh10:
	ldr	x9, [x9, _OTG_TRIGA_RISING_EDGE_DETECT_CNTL@GOTPAGEOFF]
Lloh11:
	ldr	w6, [x9]
Lloh12:
	adrp	x9, _OTG_TRIGA_FALLING_EDGE_DETECT_CNTL@GOTPAGE
Lloh13:
	ldr	x9, [x9, _OTG_TRIGA_FALLING_EDGE_DETECT_CNTL@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	stp	w9, w8, [sp]
	mov	w1, #0
	mov	w3, #20
	mov	x5, x20
	bl	_REG_SET_4
	ldr	w8, [x19, #4]
	cmp	w8, #129
	b.eq	LBB0_3
; %bb.1:
	cmp	w8, #128
	b.ne	LBB0_5
; %bb.2:
	mov	w3, #2
Lloh15:
	adrp	x8, _OTG_FORCE_COUNT_NOW_MODE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _OTG_FORCE_COUNT_NOW_MODE@GOTPAGEOFF]
Lloh17:
	adrp	x9, _OTG_FORCE_COUNT_NOW_CNTL@GOTPAGE
Lloh18:
	ldr	x9, [x9, _OTG_FORCE_COUNT_NOW_CNTL@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:
	mov	w3, #1
Lloh19:
	adrp	x8, _OTG_AUTO_FORCE_VSYNC_MODE@GOTPAGE
Lloh20:
	ldr	x8, [x8, _OTG_AUTO_FORCE_VSYNC_MODE@GOTPAGEOFF]
Lloh21:
	adrp	x9, _OTG_VERT_SYNC_CONTROL@GOTPAGE
Lloh22:
	ldr	x9, [x9, _OTG_VERT_SYNC_CONTROL@GOTPAGEOFF]
LBB0_4:
	ldr	w0, [x9]
	ldr	w2, [x8]
	mov	w1, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	b	_REG_SET
LBB0_5:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_OTG_TRIGA_CNTL,4,2             ; @OTG_TRIGA_CNTL
	.comm	_OTG_TRIGA_SOURCE_SELECT,4,2    ; @OTG_TRIGA_SOURCE_SELECT
	.comm	_OTG_TRIGA_SOURCE_PIPE_SELECT,4,2 ; @OTG_TRIGA_SOURCE_PIPE_SELECT
	.comm	_OTG_TRIGA_RISING_EDGE_DETECT_CNTL,4,2 ; @OTG_TRIGA_RISING_EDGE_DETECT_CNTL
	.comm	_OTG_TRIGA_FALLING_EDGE_DETECT_CNTL,4,2 ; @OTG_TRIGA_FALLING_EDGE_DETECT_CNTL
	.comm	_OTG_VERT_SYNC_CONTROL,4,2      ; @OTG_VERT_SYNC_CONTROL
	.comm	_OTG_AUTO_FORCE_VSYNC_MODE,4,2  ; @OTG_AUTO_FORCE_VSYNC_MODE
	.comm	_OTG_FORCE_COUNT_NOW_CNTL,4,2   ; @OTG_FORCE_COUNT_NOW_CNTL
	.comm	_OTG_FORCE_COUNT_NOW_MODE,4,2   ; @OTG_FORCE_COUNT_NOW_MODE
.subsections_via_symbols
