	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dce110_timing_generator_get_crtc_scanoutpos ## -- Begin function dce110_timing_generator_get_crtc_scanoutpos
	.p2align	4, 0x90
_dce110_timing_generator_get_crtc_scanoutpos: ## @dce110_timing_generator_get_crtc_scanoutpos
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, -64(%rbp)                  ## 8-byte Spill
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	%rdx, %r12
	movq	%rsi, %r13
	movq	%rdi, %r15
	callq	_DCE110TG_FROM_TG
	movl	(%r15), %r14d
	movq	_mmCRTC_V_BLANK_START_END@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_CRTC_REG
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_dm_read_reg
	movl	%eax, %ebx
	movq	_CRTC_V_BLANK_START_END@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	_CRTC_V_BLANK_START@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%ebx, %edi
	callq	_get_reg_field_value
	movl	%eax, (%r13)
	movl	(%r14), %esi
	movq	_CRTC_V_BLANK_END@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%ebx, %edi
	callq	_get_reg_field_value
	movl	%eax, (%r12)
	leaq	-48(%rbp), %rsi
	movq	%r15, %rdi
	callq	_dce110_timing_generator_get_position
	movl	-44(%rbp), %eax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	movl	-48(%rbp), %eax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_mmCRTC_V_BLANK_START_END,4,2   ## @mmCRTC_V_BLANK_START_END
	.comm	_CRTC_V_BLANK_START_END,4,2     ## @CRTC_V_BLANK_START_END
	.comm	_CRTC_V_BLANK_START,4,2         ## @CRTC_V_BLANK_START
	.comm	_CRTC_V_BLANK_END,4,2           ## @CRTC_V_BLANK_END
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dce110_timing_generator_get_crtc_scanoutpos ; -- Begin function dce110_timing_generator_get_crtc_scanoutpos
	.p2align	2
_dce110_timing_generator_get_crtc_scanoutpos: ; @dce110_timing_generator_get_crtc_scanoutpos
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x4
	mov	x20, x3
	mov	x21, x2
	mov	x22, x1
	mov	x23, x0
	bl	_DCE110TG_FROM_TG
	ldr	w24, [x23]
Lloh0:
	adrp	x8, _mmCRTC_V_BLANK_START_END@GOTPAGE
Lloh1:
	ldr	x8, [x8, _mmCRTC_V_BLANK_START_END@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_CRTC_REG
	mov	x1, x0
	mov	x0, x24
	bl	_dm_read_reg
	mov	x24, x0
Lloh3:
	adrp	x25, _CRTC_V_BLANK_START_END@GOTPAGE
Lloh4:
	ldr	x25, [x25, _CRTC_V_BLANK_START_END@GOTPAGEOFF]
	ldr	w1, [x25]
Lloh5:
	adrp	x8, _CRTC_V_BLANK_START@GOTPAGE
Lloh6:
	ldr	x8, [x8, _CRTC_V_BLANK_START@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	bl	_get_reg_field_value
	str	w0, [x22]
	ldr	w1, [x25]
Lloh8:
	adrp	x8, _CRTC_V_BLANK_END@GOTPAGE
Lloh9:
	ldr	x8, [x8, _CRTC_V_BLANK_END@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	mov	x0, x24
	bl	_get_reg_field_value
	str	w0, [x21]
	add	x1, sp, #8
	mov	x0, x23
	bl	_dce110_timing_generator_get_position
	ldp	w9, w8, [sp, #8]
	str	w8, [x20]
	str	w9, [x19]
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_mmCRTC_V_BLANK_START_END,4,2   ; @mmCRTC_V_BLANK_START_END
	.comm	_CRTC_V_BLANK_START_END,4,2     ; @CRTC_V_BLANK_START_END
	.comm	_CRTC_V_BLANK_START,4,2         ; @CRTC_V_BLANK_START
	.comm	_CRTC_V_BLANK_END,4,2           ; @CRTC_V_BLANK_END
.subsections_via_symbols
