	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function optc1_enable_stereo
_optc1_enable_stereo:                   ## @optc1_enable_stereo
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdx, %rbx
	callq	_DCN10TG_FROM_TG
	testq	%rbx, %rbx
	je	LBB0_8
## %bb.1:
	cmpq	$0, 16(%rbx)
	je	LBB0_3
## %bb.2:
	xorl	%edx, %edx
	cmpq	$0, (%rbx)
	sete	%dl
	movq	_OTG_STEREO_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_OTG_STEREO_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_OTG_STEREO_SYNC_OUTPUT_LINE_NUM@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_OTG_STEREO_SYNC_OUTPUT_POLARITY@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movl	$0, (%rsp)
	xorl	%r8d, %r8d
	callq	_REG_UPDATE_3
LBB0_3:
	cmpq	$0, 32(%rbx)
	je	LBB0_5
## %bb.4:
	movq	_OTG_STEREO_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_OTG_STEREO_EYE_FLAG_POLARITY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	cmpq	$0, 8(%rbx)
	setne	%dl
	callq	_REG_UPDATE
LBB0_5:
	cmpq	$0, 24(%rbx)
	je	LBB0_7
## %bb.6:
	movq	_OTG_STEREO_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_OTG_DISABLE_STEREOSYNC_OUTPUT_FOR_DP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$1, %edx
	callq	_REG_UPDATE
LBB0_7:
	cmpq	$0, 16(%rbx)
	je	LBB0_8
## %bb.9:
	movq	_OTG_3D_STRUCTURE_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_OTG_3D_STRUCTURE_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	(%rbx), %rdx
	movq	_OTG_3D_STRUCTURE_STEREO_SEL_OVR@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rdx, %r8
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_REG_UPDATE_2                   ## TAILCALL
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_OTG_STEREO_CONTROL,4,2         ## @OTG_STEREO_CONTROL
	.comm	_OTG_STEREO_EN,4,2              ## @OTG_STEREO_EN
	.comm	_OTG_STEREO_SYNC_OUTPUT_LINE_NUM,4,2 ## @OTG_STEREO_SYNC_OUTPUT_LINE_NUM
	.comm	_OTG_STEREO_SYNC_OUTPUT_POLARITY,4,2 ## @OTG_STEREO_SYNC_OUTPUT_POLARITY
	.comm	_OTG_STEREO_EYE_FLAG_POLARITY,4,2 ## @OTG_STEREO_EYE_FLAG_POLARITY
	.comm	_OTG_DISABLE_STEREOSYNC_OUTPUT_FOR_DP,4,2 ## @OTG_DISABLE_STEREOSYNC_OUTPUT_FOR_DP
	.comm	_OTG_3D_STRUCTURE_CONTROL,4,2   ## @OTG_3D_STRUCTURE_CONTROL
	.comm	_OTG_3D_STRUCTURE_EN,4,2        ## @OTG_3D_STRUCTURE_EN
	.comm	_OTG_3D_STRUCTURE_STEREO_SEL_OVR,4,2 ## @OTG_3D_STRUCTURE_STEREO_SEL_OVR
	.no_dead_strip	_optc1_enable_stereo
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function optc1_enable_stereo
_optc1_enable_stereo:                   ; @optc1_enable_stereo
	.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, x2
	bl	_DCN10TG_FROM_TG
	cbz	x19, LBB0_9
; %bb.1:
	ldr	x8, [x19, #16]
Lloh0:
	adrp	x20, _OTG_STEREO_CONTROL@GOTPAGE
Lloh1:
	ldr	x20, [x20, _OTG_STEREO_CONTROL@GOTPAGEOFF]
	cbz	x8, LBB0_3
; %bb.2:
	ldr	x8, [x19]
	cmp	x8, #0
	cset	w2, eq
	ldr	w0, [x20]
Lloh2:
	adrp	x8, _OTG_STEREO_EN@GOTPAGE
Lloh3:
	ldr	x8, [x8, _OTG_STEREO_EN@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
Lloh5:
	adrp	x8, _OTG_STEREO_SYNC_OUTPUT_LINE_NUM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _OTG_STEREO_SYNC_OUTPUT_LINE_NUM@GOTPAGEOFF]
Lloh7:
	ldr	w3, [x8]
Lloh8:
	adrp	x8, _OTG_STEREO_SYNC_OUTPUT_POLARITY@GOTPAGE
Lloh9:
	ldr	x8, [x8, _OTG_STEREO_SYNC_OUTPUT_POLARITY@GOTPAGEOFF]
Lloh10:
	ldr	w5, [x8]
	mov	w4, #0
	mov	w6, #0
	bl	_REG_UPDATE_3
LBB0_3:
	ldr	x8, [x19, #32]
	cbz	x8, LBB0_5
; %bb.4:
	ldr	w0, [x20]
Lloh11:
	adrp	x8, _OTG_STEREO_EYE_FLAG_POLARITY@GOTPAGE
Lloh12:
	ldr	x8, [x8, _OTG_STEREO_EYE_FLAG_POLARITY@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	ldr	x8, [x19, #8]
	cmp	x8, #0
	cset	w2, ne
	bl	_REG_UPDATE
LBB0_5:
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_7
; %bb.6:
	ldr	w0, [x20]
Lloh14:
	adrp	x8, _OTG_DISABLE_STEREOSYNC_OUTPUT_FOR_DP@GOTPAGE
Lloh15:
	ldr	x8, [x8, _OTG_DISABLE_STEREOSYNC_OUTPUT_FOR_DP@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	w2, #1
	bl	_REG_UPDATE
LBB0_7:
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_9
; %bb.8:
Lloh17:
	adrp	x8, _OTG_3D_STRUCTURE_CONTROL@GOTPAGE
Lloh18:
	ldr	x8, [x8, _OTG_3D_STRUCTURE_CONTROL@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
Lloh20:
	adrp	x8, _OTG_3D_STRUCTURE_EN@GOTPAGE
Lloh21:
	ldr	x8, [x8, _OTG_3D_STRUCTURE_EN@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	ldr	x2, [x19]
Lloh23:
	adrp	x8, _OTG_3D_STRUCTURE_STEREO_SEL_OVR@GOTPAGE
Lloh24:
	ldr	x8, [x8, _OTG_3D_STRUCTURE_STEREO_SEL_OVR@GOTPAGEOFF]
Lloh25:
	ldr	w3, [x8]
	mov	x4, x2
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_REG_UPDATE_2
LBB0_9:
	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	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_OTG_STEREO_CONTROL,4,2         ; @OTG_STEREO_CONTROL
	.comm	_OTG_STEREO_EN,4,2              ; @OTG_STEREO_EN
	.comm	_OTG_STEREO_SYNC_OUTPUT_LINE_NUM,4,2 ; @OTG_STEREO_SYNC_OUTPUT_LINE_NUM
	.comm	_OTG_STEREO_SYNC_OUTPUT_POLARITY,4,2 ; @OTG_STEREO_SYNC_OUTPUT_POLARITY
	.comm	_OTG_STEREO_EYE_FLAG_POLARITY,4,2 ; @OTG_STEREO_EYE_FLAG_POLARITY
	.comm	_OTG_DISABLE_STEREOSYNC_OUTPUT_FOR_DP,4,2 ; @OTG_DISABLE_STEREOSYNC_OUTPUT_FOR_DP
	.comm	_OTG_3D_STRUCTURE_CONTROL,4,2   ; @OTG_3D_STRUCTURE_CONTROL
	.comm	_OTG_3D_STRUCTURE_EN,4,2        ; @OTG_3D_STRUCTURE_EN
	.comm	_OTG_3D_STRUCTURE_STEREO_SEL_OVR,4,2 ; @OTG_3D_STRUCTURE_STEREO_SEL_OVR
	.no_dead_strip	_optc1_enable_stereo
.subsections_via_symbols
