	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function intel_psr1_get_tp_time
_intel_psr1_get_tp_time:                ## @intel_psr1_get_tp_time
	.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	%rdi, %r15
	callq	_dp_to_i915
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_INTEL_GEN
	movl	%eax, %r14d
	movl	(%rbx), %eax
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	cmpl	$101, %eax
	jge	LBB0_4
## %bb.3:
	movq	_EDP_PSR_TP1_TIME_100us@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_1:
	movq	_EDP_PSR_TP1_TIME_0us@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_4:
	cmpl	$501, %eax                      ## imm = 0x1F5
	jae	LBB0_5
## %bb.6:
	movq	_EDP_PSR_TP1_TIME_500us@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_5:
	movq	_EDP_PSR_TP1_TIME_2500us@GOTPCREL(%rip), %rax
LBB0_7:
	movq	_EDP_PSR_TP4_TIME_0US@GOTPCREL(%rip), %rcx
	movl	4(%rbx), %edx
	testl	%edx, %edx
	je	LBB0_8
## %bb.9:
	cmpl	$101, %edx
	jge	LBB0_11
## %bb.10:
	movq	_EDP_PSR_TP2_TP3_TIME_100us@GOTPCREL(%rip), %rdx
	jmp	LBB0_14
LBB0_8:
	movq	_EDP_PSR_TP2_TP3_TIME_0us@GOTPCREL(%rip), %rdx
	jmp	LBB0_14
LBB0_11:
	cmpl	$501, %edx                      ## imm = 0x1F5
	jae	LBB0_12
## %bb.13:
	movq	_EDP_PSR_TP2_TP3_TIME_500us@GOTPCREL(%rip), %rdx
	jmp	LBB0_14
LBB0_12:
	movq	_EDP_PSR_TP2_TP3_TIME_2500us@GOTPCREL(%rip), %rdx
LBB0_14:
	movl	(%rcx), %r13d
	movl	(%rax), %ebx
	movl	(%rdx), %r12d
	movq	%r15, %rdi
	callq	_intel_dp_source_supports_hbr2
	testq	%rax, %rax
	je	LBB0_17
## %bb.15:
	movl	(%r15), %edi
	callq	_drm_dp_tps3_supported
	testq	%rax, %rax
	je	LBB0_17
## %bb.16:
	movq	_EDP_PSR_TP1_TP3_SEL@GOTPCREL(%rip), %rax
	jmp	LBB0_18
LBB0_17:
	movq	_EDP_PSR_TP1_TP2_SEL@GOTPCREL(%rip), %rax
LBB0_18:
	xorl	%ecx, %ecx
	cmpl	$11, %r14d
	cmovgel	%r13d, %ecx
	orl	%ecx, %ebx
	orl	%r12d, %ebx
	orl	(%rax), %ebx
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EDP_PSR_TP4_TIME_0US,4,2       ## @EDP_PSR_TP4_TIME_0US
	.comm	_EDP_PSR_TP1_TIME_0us,4,2       ## @EDP_PSR_TP1_TIME_0us
	.comm	_EDP_PSR_TP1_TIME_100us,4,2     ## @EDP_PSR_TP1_TIME_100us
	.comm	_EDP_PSR_TP1_TIME_500us,4,2     ## @EDP_PSR_TP1_TIME_500us
	.comm	_EDP_PSR_TP1_TIME_2500us,4,2    ## @EDP_PSR_TP1_TIME_2500us
	.comm	_EDP_PSR_TP2_TP3_TIME_0us,4,2   ## @EDP_PSR_TP2_TP3_TIME_0us
	.comm	_EDP_PSR_TP2_TP3_TIME_100us,4,2 ## @EDP_PSR_TP2_TP3_TIME_100us
	.comm	_EDP_PSR_TP2_TP3_TIME_500us,4,2 ## @EDP_PSR_TP2_TP3_TIME_500us
	.comm	_EDP_PSR_TP2_TP3_TIME_2500us,4,2 ## @EDP_PSR_TP2_TP3_TIME_2500us
	.comm	_EDP_PSR_TP1_TP3_SEL,4,2        ## @EDP_PSR_TP1_TP3_SEL
	.comm	_EDP_PSR_TP1_TP2_SEL,4,2        ## @EDP_PSR_TP1_TP2_SEL
	.no_dead_strip	_intel_psr1_get_tp_time
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function intel_psr1_get_tp_time
_intel_psr1_get_tp_time:                ; @intel_psr1_get_tp_time
	.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	x20, x0
	bl	_dp_to_i915
	mov	x21, x0
	bl	_INTEL_GEN
	mov	x19, x0
Lloh0:
	adrp	x8, _EDP_PSR_TP4_TIME_0US@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EDP_PSR_TP4_TIME_0US@GOTPAGEOFF]
Lloh2:
	ldr	w22, [x8]
Lloh3:
	adrp	x8, _EDP_PSR_TP1_TIME_0us@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EDP_PSR_TP1_TIME_0us@GOTPAGEOFF]
Lloh5:
	adrp	x9, _EDP_PSR_TP1_TIME_100us@GOTPAGE
Lloh6:
	ldr	x9, [x9, _EDP_PSR_TP1_TIME_100us@GOTPAGEOFF]
Lloh7:
	adrp	x10, _EDP_PSR_TP1_TIME_2500us@GOTPAGE
Lloh8:
	ldr	x10, [x10, _EDP_PSR_TP1_TIME_2500us@GOTPAGEOFF]
Lloh9:
	adrp	x11, _EDP_PSR_TP1_TIME_500us@GOTPAGE
Lloh10:
	ldr	x11, [x11, _EDP_PSR_TP1_TIME_500us@GOTPAGEOFF]
	ldp	w12, w13, [x21]
	cmp	w12, #501
	csel	x10, x11, x10, lo
	cmp	w12, #101
	csel	x9, x9, x10, lt
	cmp	w12, #0
	csel	x8, x8, x9, eq
Lloh11:
	adrp	x9, _EDP_PSR_TP2_TP3_TIME_0us@GOTPAGE
Lloh12:
	ldr	x9, [x9, _EDP_PSR_TP2_TP3_TIME_0us@GOTPAGEOFF]
Lloh13:
	adrp	x10, _EDP_PSR_TP2_TP3_TIME_100us@GOTPAGE
Lloh14:
	ldr	x10, [x10, _EDP_PSR_TP2_TP3_TIME_100us@GOTPAGEOFF]
	ldr	w21, [x8]
Lloh15:
	adrp	x8, _EDP_PSR_TP2_TP3_TIME_2500us@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EDP_PSR_TP2_TP3_TIME_2500us@GOTPAGEOFF]
Lloh17:
	adrp	x11, _EDP_PSR_TP2_TP3_TIME_500us@GOTPAGE
Lloh18:
	ldr	x11, [x11, _EDP_PSR_TP2_TP3_TIME_500us@GOTPAGEOFF]
	cmp	w13, #501
	csel	x8, x11, x8, lo
	cmp	w13, #101
	csel	x8, x10, x8, lt
	cmp	w13, #0
	csel	x8, x9, x8, eq
	ldr	w23, [x8]
	mov	x0, x20
	bl	_intel_dp_source_supports_hbr2
	cbz	x0, LBB0_3
; %bb.1:
	ldr	w0, [x20]
	bl	_drm_dp_tps3_supported
	cbz	x0, LBB0_3
; %bb.2:
Lloh19:
	adrp	x8, _EDP_PSR_TP1_TP3_SEL@GOTPAGE
Lloh20:
	ldr	x8, [x8, _EDP_PSR_TP1_TP3_SEL@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:
Lloh21:
	adrp	x8, _EDP_PSR_TP1_TP2_SEL@GOTPAGE
Lloh22:
	ldr	x8, [x8, _EDP_PSR_TP1_TP2_SEL@GOTPAGEOFF]
LBB0_4:
	cmp	w19, #10
	csel	w9, w22, wzr, gt
	orr	w9, w21, w9
	orr	w9, w9, w23
	ldr	w8, [x8]
	orr	w0, w9, w8
	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
	ret
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_EDP_PSR_TP4_TIME_0US,4,2       ; @EDP_PSR_TP4_TIME_0US
	.comm	_EDP_PSR_TP1_TIME_0us,4,2       ; @EDP_PSR_TP1_TIME_0us
	.comm	_EDP_PSR_TP1_TIME_100us,4,2     ; @EDP_PSR_TP1_TIME_100us
	.comm	_EDP_PSR_TP1_TIME_500us,4,2     ; @EDP_PSR_TP1_TIME_500us
	.comm	_EDP_PSR_TP1_TIME_2500us,4,2    ; @EDP_PSR_TP1_TIME_2500us
	.comm	_EDP_PSR_TP2_TP3_TIME_0us,4,2   ; @EDP_PSR_TP2_TP3_TIME_0us
	.comm	_EDP_PSR_TP2_TP3_TIME_100us,4,2 ; @EDP_PSR_TP2_TP3_TIME_100us
	.comm	_EDP_PSR_TP2_TP3_TIME_500us,4,2 ; @EDP_PSR_TP2_TP3_TIME_500us
	.comm	_EDP_PSR_TP2_TP3_TIME_2500us,4,2 ; @EDP_PSR_TP2_TP3_TIME_2500us
	.comm	_EDP_PSR_TP1_TP3_SEL,4,2        ; @EDP_PSR_TP1_TP3_SEL
	.comm	_EDP_PSR_TP1_TP2_SEL,4,2        ; @EDP_PSR_TP1_TP2_SEL
	.no_dead_strip	_intel_psr1_get_tp_time
.subsections_via_symbols
