	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hsw_psr_setup_aux
_hsw_psr_setup_aux:                     ## @hsw_psr_setup_aux
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	callq	_dp_to_i915
	movq	_EDP_PSR_AUX_CTL_TIME_OUT_MASK@GOTPCREL(%rip), %rax
	movq	_EDP_PSR_AUX_CTL_MESSAGE_SIZE_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	movq	_EDP_PSR_AUX_CTL_PRECHARGE_2US_MASK@GOTPCREL(%rip), %rcx
	movq	_EDP_PSR_AUX_CTL_BIT_CLOCK_2X_MASK@GOTPCREL(%rip), %rdx
	orl	(%rax), %ebx
	orl	(%rcx), %ebx
	orl	(%rdx), %ebx
	xorl	%edi, %edi
	callq	_BUILD_BUG_ON
	xorl	%edi, %edi
	callq	_EDP_PSR_AUX_DATA
	movl	%eax, %r15d
	leaq	_hsw_psr_setup_aux.aux_msg(%rip), %rdi
	movl	$20, %esi
	callq	_intel_dp_pack_aux
	movl	%r15d, %edi
	movl	%eax, %esi
	callq	_I915_WRITE
	movl	$1, %edi
	callq	_EDP_PSR_AUX_DATA
	movl	%eax, %r15d
	leaq	_hsw_psr_setup_aux.aux_msg+16(%rip), %rdi
	movl	$16, %esi
	callq	_intel_dp_pack_aux
	movl	%r15d, %edi
	movl	%eax, %esi
	callq	_I915_WRITE
	movl	$2, %edi
	callq	_EDP_PSR_AUX_DATA
	movl	%eax, %r15d
	leaq	_hsw_psr_setup_aux.aux_msg+32(%rip), %rdi
	movl	$12, %esi
	callq	_intel_dp_pack_aux
	movl	%r15d, %edi
	movl	%eax, %esi
	callq	_I915_WRITE
	movl	$3, %edi
	callq	_EDP_PSR_AUX_DATA
	movl	%eax, %r15d
	leaq	_hsw_psr_setup_aux.aux_msg+48(%rip), %rdi
	movl	$8, %esi
	callq	_intel_dp_pack_aux
	movl	%r15d, %edi
	movl	%eax, %esi
	callq	_I915_WRITE
	movl	$4, %edi
	callq	_EDP_PSR_AUX_DATA
	movl	%eax, %r15d
	leaq	_hsw_psr_setup_aux.aux_msg+64(%rip), %rdi
	movl	$4, %esi
	callq	_intel_dp_pack_aux
	movl	%r15d, %edi
	movl	%eax, %esi
	callq	_I915_WRITE
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	*(%r14)
	movq	%r14, %rdi
	movl	$20, %esi
	movl	%eax, %edx
	callq	*8(%r14)
	andl	%eax, %ebx
	movq	_EDP_PSR_AUX_CTL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%ebx, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_I915_WRITE                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	4                               ## @hsw_psr_setup_aux.aux_msg
_hsw_psr_setup_aux.aux_msg:
	.long	2080                            ## 0x820
	.long	0                               ## 0x0
	.long	129                             ## 0x81
	.long	0                               ## 0x0
	.long	128                             ## 0x80

	.comm	_EDP_PSR_AUX_CTL_TIME_OUT_MASK,4,2 ## @EDP_PSR_AUX_CTL_TIME_OUT_MASK
	.comm	_EDP_PSR_AUX_CTL_MESSAGE_SIZE_MASK,4,2 ## @EDP_PSR_AUX_CTL_MESSAGE_SIZE_MASK
	.comm	_EDP_PSR_AUX_CTL_PRECHARGE_2US_MASK,4,2 ## @EDP_PSR_AUX_CTL_PRECHARGE_2US_MASK
	.comm	_EDP_PSR_AUX_CTL_BIT_CLOCK_2X_MASK,4,2 ## @EDP_PSR_AUX_CTL_BIT_CLOCK_2X_MASK
	.comm	_EDP_PSR_AUX_CTL,4,2            ## @EDP_PSR_AUX_CTL
	.no_dead_strip	_hsw_psr_setup_aux
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hsw_psr_setup_aux
_hsw_psr_setup_aux:                     ; @hsw_psr_setup_aux
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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, x0
	bl	_dp_to_i915
Lloh0:
	adrp	x8, _EDP_PSR_AUX_CTL_TIME_OUT_MASK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EDP_PSR_AUX_CTL_TIME_OUT_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w22, [x8]
Lloh3:
	adrp	x8, _EDP_PSR_AUX_CTL_MESSAGE_SIZE_MASK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EDP_PSR_AUX_CTL_MESSAGE_SIZE_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w23, [x8]
Lloh6:
	adrp	x8, _EDP_PSR_AUX_CTL_PRECHARGE_2US_MASK@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EDP_PSR_AUX_CTL_PRECHARGE_2US_MASK@GOTPAGEOFF]
Lloh8:
	ldr	w24, [x8]
Lloh9:
	adrp	x8, _EDP_PSR_AUX_CTL_BIT_CLOCK_2X_MASK@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EDP_PSR_AUX_CTL_BIT_CLOCK_2X_MASK@GOTPAGEOFF]
Lloh11:
	ldr	w25, [x8]
	mov	w0, #0
	bl	_BUILD_BUG_ON
	mov	w0, #0
	bl	_EDP_PSR_AUX_DATA
	mov	x21, x0
Lloh12:
	adrp	x20, _hsw_psr_setup_aux.aux_msg@PAGE
Lloh13:
	add	x20, x20, _hsw_psr_setup_aux.aux_msg@PAGEOFF
	mov	x0, x20
	mov	w1, #20
	bl	_intel_dp_pack_aux
	mov	x1, x0
	mov	x0, x21
	bl	_I915_WRITE
	mov	w0, #1
	bl	_EDP_PSR_AUX_DATA
	mov	x21, x0
	add	x0, x20, #16
	mov	w1, #16
	bl	_intel_dp_pack_aux
	mov	x1, x0
	mov	x0, x21
	bl	_I915_WRITE
	mov	w0, #2
	bl	_EDP_PSR_AUX_DATA
	mov	x21, x0
	add	x0, x20, #32
	mov	w1, #12
	bl	_intel_dp_pack_aux
	mov	x1, x0
	mov	x0, x21
	bl	_I915_WRITE
	mov	w0, #3
	bl	_EDP_PSR_AUX_DATA
	mov	x21, x0
	add	x0, x20, #48
	mov	w1, #8
	bl	_intel_dp_pack_aux
	mov	x1, x0
	mov	x0, x21
	bl	_I915_WRITE
	mov	w0, #4
	bl	_EDP_PSR_AUX_DATA
	mov	x21, x0
	add	x0, x20, #64
	mov	w1, #4
	bl	_intel_dp_pack_aux
	mov	x1, x0
	mov	x0, x21
	bl	_I915_WRITE
	orr	w8, w23, w22
	orr	w8, w8, w24
	orr	w20, w8, w25
	ldr	x8, [x19]
	mov	x0, x19
	mov	w1, #0
	blr	x8
	mov	x2, x0
	ldr	x8, [x19, #8]
	mov	x0, x19
	mov	w1, #20
	blr	x8
	and	w1, w0, w20
Lloh14:
	adrp	x8, _EDP_PSR_AUX_CTL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EDP_PSR_AUX_CTL@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_I915_WRITE
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
	.p2align	2                               ; @hsw_psr_setup_aux.aux_msg
_hsw_psr_setup_aux.aux_msg:
	.long	2080                            ; 0x820
	.long	0                               ; 0x0
	.long	129                             ; 0x81
	.long	0                               ; 0x0
	.long	128                             ; 0x80

	.comm	_EDP_PSR_AUX_CTL_TIME_OUT_MASK,4,2 ; @EDP_PSR_AUX_CTL_TIME_OUT_MASK
	.comm	_EDP_PSR_AUX_CTL_MESSAGE_SIZE_MASK,4,2 ; @EDP_PSR_AUX_CTL_MESSAGE_SIZE_MASK
	.comm	_EDP_PSR_AUX_CTL_PRECHARGE_2US_MASK,4,2 ; @EDP_PSR_AUX_CTL_PRECHARGE_2US_MASK
	.comm	_EDP_PSR_AUX_CTL_BIT_CLOCK_2X_MASK,4,2 ; @EDP_PSR_AUX_CTL_BIT_CLOCK_2X_MASK
	.comm	_EDP_PSR_AUX_CTL,4,2            ; @EDP_PSR_AUX_CTL
	.no_dead_strip	_hsw_psr_setup_aux
.subsections_via_symbols
