	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_optc2_lock_doublebuffer_enable ## -- Begin function optc2_lock_doublebuffer_enable
	.p2align	4, 0x90
_optc2_lock_doublebuffer_enable:        ## @optc2_lock_doublebuffer_enable
	.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
	callq	_DCN10TG_FROM_TG
	movl	$0, -16(%rbp)
	movl	$0, -12(%rbp)
	movq	_OTG_GLOBAL_CONTROL1@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	movq	_MASTER_UPDATE_LOCK_DB_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$1, %edx
	callq	_REG_UPDATE
	movq	_OTG_GLOBAL_CONTROL2@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_GLOBAL_UPDATE_LOCK_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_DIG_UPDATE_LOCATION@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	$1, %edx
	movl	$20, %r8d
	callq	_REG_UPDATE_2
	movq	_OTG_V_BLANK_START_END@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_OTG_V_BLANK_START@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-16(%rbp), %rdx
	callq	_REG_GET
	movq	_OTG_H_BLANK_START_END@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_OTG_H_BLANK_START@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-12(%rbp), %rdx
	callq	_REG_GET
	movl	(%rbx), %edi
	movq	_MASTER_UPDATE_LOCK_DB_X@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$-201, %edx
	addl	-12(%rbp), %edx
	movq	_MASTER_UPDATE_LOCK_DB_Y@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	-16(%rbp), %r8d
	decl	%r8d
	callq	_REG_UPDATE_2
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_OTG_GLOBAL_CONTROL1,4,2        ## @OTG_GLOBAL_CONTROL1
	.comm	_MASTER_UPDATE_LOCK_DB_EN,4,2   ## @MASTER_UPDATE_LOCK_DB_EN
	.comm	_OTG_GLOBAL_CONTROL2,4,2        ## @OTG_GLOBAL_CONTROL2
	.comm	_GLOBAL_UPDATE_LOCK_EN,4,2      ## @GLOBAL_UPDATE_LOCK_EN
	.comm	_DIG_UPDATE_LOCATION,4,2        ## @DIG_UPDATE_LOCATION
	.comm	_OTG_V_BLANK_START_END,4,2      ## @OTG_V_BLANK_START_END
	.comm	_OTG_V_BLANK_START,4,2          ## @OTG_V_BLANK_START
	.comm	_OTG_H_BLANK_START_END,4,2      ## @OTG_H_BLANK_START_END
	.comm	_OTG_H_BLANK_START,4,2          ## @OTG_H_BLANK_START
	.comm	_MASTER_UPDATE_LOCK_DB_X,4,2    ## @MASTER_UPDATE_LOCK_DB_X
	.comm	_MASTER_UPDATE_LOCK_DB_Y,4,2    ## @MASTER_UPDATE_LOCK_DB_Y
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_optc2_lock_doublebuffer_enable ; -- Begin function optc2_lock_doublebuffer_enable
	.p2align	2
_optc2_lock_doublebuffer_enable:        ; @optc2_lock_doublebuffer_enable
	.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
	bl	_DCN10TG_FROM_TG
	str	xzr, [sp, #8]
Lloh0:
	adrp	x19, _OTG_GLOBAL_CONTROL1@GOTPAGE
Lloh1:
	ldr	x19, [x19, _OTG_GLOBAL_CONTROL1@GOTPAGEOFF]
	ldr	w0, [x19]
Lloh2:
	adrp	x8, _MASTER_UPDATE_LOCK_DB_EN@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MASTER_UPDATE_LOCK_DB_EN@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	w2, #1
	bl	_REG_UPDATE
Lloh5:
	adrp	x8, _OTG_GLOBAL_CONTROL2@GOTPAGE
Lloh6:
	ldr	x8, [x8, _OTG_GLOBAL_CONTROL2@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
Lloh8:
	adrp	x8, _GLOBAL_UPDATE_LOCK_EN@GOTPAGE
Lloh9:
	ldr	x8, [x8, _GLOBAL_UPDATE_LOCK_EN@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
Lloh11:
	adrp	x8, _DIG_UPDATE_LOCATION@GOTPAGE
Lloh12:
	ldr	x8, [x8, _DIG_UPDATE_LOCATION@GOTPAGEOFF]
Lloh13:
	ldr	w3, [x8]
	mov	w2, #1
	mov	w4, #20
	bl	_REG_UPDATE_2
Lloh14:
	adrp	x8, _OTG_V_BLANK_START_END@GOTPAGE
Lloh15:
	ldr	x8, [x8, _OTG_V_BLANK_START_END@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
Lloh17:
	adrp	x8, _OTG_V_BLANK_START@GOTPAGE
Lloh18:
	ldr	x8, [x8, _OTG_V_BLANK_START@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	add	x2, sp, #12
	bl	_REG_GET
Lloh20:
	adrp	x8, _OTG_H_BLANK_START_END@GOTPAGE
Lloh21:
	ldr	x8, [x8, _OTG_H_BLANK_START_END@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
Lloh23:
	adrp	x8, _OTG_H_BLANK_START@GOTPAGE
Lloh24:
	ldr	x8, [x8, _OTG_H_BLANK_START@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
	add	x2, sp, #8
	bl	_REG_GET
	ldr	w0, [x19]
Lloh26:
	adrp	x8, _MASTER_UPDATE_LOCK_DB_X@GOTPAGE
Lloh27:
	ldr	x8, [x8, _MASTER_UPDATE_LOCK_DB_X@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x8]
	ldr	w8, [sp, #8]
	sub	w2, w8, #201
Lloh29:
	adrp	x8, _MASTER_UPDATE_LOCK_DB_Y@GOTPAGE
Lloh30:
	ldr	x8, [x8, _MASTER_UPDATE_LOCK_DB_Y@GOTPAGEOFF]
Lloh31:
	ldr	w3, [x8]
	ldr	w8, [sp, #12]
	sub	w4, w8, #1
	bl	_REG_UPDATE_2
	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	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_OTG_GLOBAL_CONTROL1,4,2        ; @OTG_GLOBAL_CONTROL1
	.comm	_MASTER_UPDATE_LOCK_DB_EN,4,2   ; @MASTER_UPDATE_LOCK_DB_EN
	.comm	_OTG_GLOBAL_CONTROL2,4,2        ; @OTG_GLOBAL_CONTROL2
	.comm	_GLOBAL_UPDATE_LOCK_EN,4,2      ; @GLOBAL_UPDATE_LOCK_EN
	.comm	_DIG_UPDATE_LOCATION,4,2        ; @DIG_UPDATE_LOCATION
	.comm	_OTG_V_BLANK_START_END,4,2      ; @OTG_V_BLANK_START_END
	.comm	_OTG_V_BLANK_START,4,2          ; @OTG_V_BLANK_START
	.comm	_OTG_H_BLANK_START_END,4,2      ; @OTG_H_BLANK_START_END
	.comm	_OTG_H_BLANK_START,4,2          ; @OTG_H_BLANK_START
	.comm	_MASTER_UPDATE_LOCK_DB_X,4,2    ; @MASTER_UPDATE_LOCK_DB_X
	.comm	_MASTER_UPDATE_LOCK_DB_Y,4,2    ; @MASTER_UPDATE_LOCK_DB_Y
.subsections_via_symbols
