	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dce120_timing_generator_enable_advanced_request ## -- Begin function dce120_timing_generator_enable_advanced_request
	.p2align	4, 0x90
_dce120_timing_generator_enable_advanced_request: ## @dce120_timing_generator_enable_advanced_request
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movl	%esi, %r12d
	movq	%rdi, %r15
	callq	_DCE110TG_FROM_TG
	movq	%rax, %r14
	movl	4(%rbx), %eax
	addl	8(%rbx), %eax
	movl	(%rbx), %r13d
	addl	12(%rbx), %eax
	subl	%eax, %r13d
	movl	(%r15), %edi
	movq	_mmCRTC0_CRTC_START_LINE_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r14), %edx
	callq	_dm_read_reg_soc15
	movl	%eax, %ebx
	xorl	%esi, %esi
	testl	%r12d, %r12d
	sete	%sil
	movq	_CRTC0_CRTC_START_LINE_CONTROL@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	movq	_CRTC_LEGACY_REQUESTOR_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%ebx, %edi
	callq	_set_reg_field_value
	cmpl	$10, %r13d
	movl	$10, %esi
	cmovll	%r13d, %esi
	movl	(%r12), %edx
	movq	_CRTC_ADVANCED_START_LINE_POSITION@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%ebx, %edi
	callq	_set_reg_field_value
	movl	(%r15), %edi
	movq	_mmCRTC0_CRTC_START_LINE_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r14), %edx
	movl	%ebx, %ecx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dm_write_reg_soc15             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_mmCRTC0_CRTC_START_LINE_CONTROL,4,2 ## @mmCRTC0_CRTC_START_LINE_CONTROL
	.comm	_CRTC0_CRTC_START_LINE_CONTROL,4,2 ## @CRTC0_CRTC_START_LINE_CONTROL
	.comm	_CRTC_LEGACY_REQUESTOR_EN,4,2   ## @CRTC_LEGACY_REQUESTOR_EN
	.comm	_CRTC_ADVANCED_START_LINE_POSITION,4,2 ## @CRTC_ADVANCED_START_LINE_POSITION
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dce120_timing_generator_enable_advanced_request ; -- Begin function dce120_timing_generator_enable_advanced_request
	.p2align	2
_dce120_timing_generator_enable_advanced_request: ; @dce120_timing_generator_enable_advanced_request
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	bl	_DCE110TG_FROM_TG
	mov	x22, x0
	ldp	w8, w9, [x19]
	ldp	w10, w11, [x19, #8]
	add	w9, w9, w10
	add	w9, w9, w11
	sub	w23, w8, w9
	ldr	w0, [x21]
Lloh0:
	adrp	x24, _mmCRTC0_CRTC_START_LINE_CONTROL@GOTPAGE
Lloh1:
	ldr	x24, [x24, _mmCRTC0_CRTC_START_LINE_CONTROL@GOTPAGEOFF]
	ldr	w1, [x24]
	ldr	w2, [x22]
	bl	_dm_read_reg_soc15
	mov	x19, x0
	cmp	w20, #0
	cset	w1, eq
Lloh2:
	adrp	x20, _CRTC0_CRTC_START_LINE_CONTROL@GOTPAGE
Lloh3:
	ldr	x20, [x20, _CRTC0_CRTC_START_LINE_CONTROL@GOTPAGEOFF]
	ldr	w2, [x20]
Lloh4:
	adrp	x8, _CRTC_LEGACY_REQUESTOR_EN@GOTPAGE
Lloh5:
	ldr	x8, [x8, _CRTC_LEGACY_REQUESTOR_EN@GOTPAGEOFF]
Lloh6:
	ldr	w3, [x8]
	bl	_set_reg_field_value
	mov	w8, #10
	cmp	w23, #10
	csel	w1, w23, w8, lt
	ldr	w2, [x20]
Lloh7:
	adrp	x8, _CRTC_ADVANCED_START_LINE_POSITION@GOTPAGE
Lloh8:
	ldr	x8, [x8, _CRTC_ADVANCED_START_LINE_POSITION@GOTPAGEOFF]
Lloh9:
	ldr	w3, [x8]
	mov	x0, x19
	bl	_set_reg_field_value
	ldr	w0, [x21]
	ldr	w1, [x24]
	ldr	w2, [x22]
	mov	x3, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_dm_write_reg_soc15
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_mmCRTC0_CRTC_START_LINE_CONTROL,4,2 ; @mmCRTC0_CRTC_START_LINE_CONTROL
	.comm	_CRTC0_CRTC_START_LINE_CONTROL,4,2 ; @CRTC0_CRTC_START_LINE_CONTROL
	.comm	_CRTC_LEGACY_REQUESTOR_EN,4,2   ; @CRTC_LEGACY_REQUESTOR_EN
	.comm	_CRTC_ADVANCED_START_LINE_POSITION,4,2 ; @CRTC_ADVANCED_START_LINE_POSITION
.subsections_via_symbols
