	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function intel_dp_aux_ch
_intel_dp_aux_ch:                       ## @intel_dp_aux_ch
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, %r14d
	movq	%rcx, -104(%rbp)                ## 8-byte Spill
	movl	%edx, %ebx
	movq	%rsi, -112(%rbp)                ## 8-byte Spill
	movl	(%rdi), %r13d
	movq	%rdi, -96(%rbp)                 ## 8-byte Spill
	callq	_dp_to_dig_port
	movq	%rax, %r15
	movq	8(%rax), %r12
	movq	(%r12), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	%r12, %rdi
	callq	_INTEL_INFO
	cmpl	$5, (%rax)
	movl	%r14d, -68(%rbp)                ## 4-byte Spill
	movl	%ebx, -56(%rbp)                 ## 4-byte Spill
	jl	LBB0_2
## %bb.1:
	movq	%r12, %rdi
	callq	_IS_VALLEYVIEW
	testq	%rax, %rax
	sete	%al
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	jmp	LBB0_3
LBB0_2:
	movl	$0, -52(%rbp)                   ## 4-byte Folded Spill
LBB0_3:
	leal	16(%r13), %ebx
	addl	$20, %r13d
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	xorl	%esi, %esi
	callq	_pm_qos_update_request
	movq	%r12, %rdi
	callq	_IS_HASWELL
	testq	%rax, %rax
	je	LBB0_7
## %bb.4:
	movl	(%r15), %eax
	addl	$-128, %eax
	cmpl	$3, %eax
	ja	LBB0_8
## %bb.5:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_6:
	movq	_PCH_DPD_AUX_CH_CTL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	_PCH_DPD_AUX_CH_DATA1@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_7:
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	jmp	LBB0_13
LBB0_8:
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	xorl	%eax, %eax
	callq	_BUG
	jmp	LBB0_13
LBB0_9:
	movq	_PCH_DPC_AUX_CH_CTL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	_PCH_DPC_AUX_CH_DATA1@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_10:
	movq	_PCH_DPB_AUX_CH_CTL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	_PCH_DPB_AUX_CH_DATA1@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_11:
	movq	_DPA_AUX_CH_CTL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	_DPA_AUX_CH_DATA1@GOTPCREL(%rip), %rax
LBB0_12:
	movl	(%rax), %r13d
LBB0_13:
	movq	-96(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_intel_dp_check_edp
	movq	%rbx, %rdi
	callq	_is_cpu_edp
	movq	%r12, %rdi
	testq	%rax, %rax
	je	LBB0_16
## %bb.14:
	callq	_HAS_DDI
	testq	%rax, %rax
	je	LBB0_18
## %bb.15:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_intel_ddi_get_cdclk_freq
	sarl	%eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	jmp	LBB0_23
LBB0_16:
	callq	_HAS_PCH_SPLIT
	movq	%r12, %rdi
	testq	%rax, %rax
	je	LBB0_21
## %bb.17:
	callq	_intel_pch_rawclk
	movl	%eax, %edi
	movl	$2, %esi
	callq	_DIV_ROUND_UP
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	jmp	LBB0_23
LBB0_18:
	movq	%r12, %rdi
	callq	_IS_VALLEYVIEW
	movl	$100, -48(%rbp)                 ## 4-byte Folded Spill
	testq	%rax, %rax
	jne	LBB0_23
## %bb.19:
	movq	%r12, %rdi
	callq	_IS_GEN6
	movl	$200, -48(%rbp)                 ## 4-byte Folded Spill
	testq	%rax, %rax
	jne	LBB0_23
## %bb.20:
	movq	%r12, %rdi
	callq	_IS_GEN7
	testq	%rax, %rax
	movl	$225, %eax
	movl	$200, %ecx
	cmovel	%eax, %ecx
	jmp	LBB0_22
LBB0_21:
	callq	_intel_hrawclk
	movl	%eax, %ecx
	shrl	$31, %ecx
	addl	%eax, %ecx
	sarl	%ecx
LBB0_22:
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
LBB0_23:
	movq	%r12, %rdi
	callq	_IS_GEN6
	xorl	%ebx, %ebx
	testq	%rax, %rax
	sete	%r15b
	movl	-44(%rbp), %r12d                ## 4-byte Reload
	movl	%r12d, %edi
	callq	_I915_READ_NOTRACE
	movq	_DP_AUX_CH_CTL_SEND_BUSY@GOTPCREL(%rip), %r14
	testl	%eax, (%r14)
	je	LBB0_27
## %bb.24:
	movl	$1, %edi
	callq	_msleep
	movl	%r12d, %edi
	callq	_I915_READ_NOTRACE
	testl	%eax, (%r14)
	je	LBB0_27
## %bb.25:
	movl	$1, %edi
	callq	_msleep
	movl	%r12d, %edi
	callq	_I915_READ_NOTRACE
	testl	%eax, (%r14)
	je	LBB0_27
## %bb.26:
	movl	$1, %edi
	callq	_msleep
	movl	%r12d, %edi
	callq	_I915_READ
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	movl	%eax, %edx
	callq	_WARN
	jmp	LBB0_43
LBB0_27:
	movq	%r13, -88(%rbp)                 ## 8-byte Spill
	movzbl	-52(%rbp), %eax                 ## 1-byte Folded Reload
	movl	%eax, -76(%rbp)                 ## 4-byte Spill
	movb	%r15b, %bl
	leal	(%rbx,%rbx), %eax
	addl	$3, %eax
	movl	%eax, -72(%rbp)                 ## 4-byte Spill
	movl	$0, -52(%rbp)                   ## 4-byte Folded Spill
	movl	-56(%rbp), %r14d                ## 4-byte Reload
	jmp	LBB0_31
	.p2align	4, 0x90
LBB0_28:                                ##   in Loop: Header=BB0_31 Depth=1
	movq	_DP_AUX_CH_CTL_SEND_BUSY@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	_DP_AUX_CH_CTL_TIME_OUT_400us@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	_DP_AUX_CH_CTL_MESSAGE_SIZE_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movl	%r14d, %edx
	shll	%cl, %edx
	movq	_DP_AUX_CH_CTL_PRECHARGE_2US_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movl	-72(%rbp), %edi                 ## 4-byte Reload
	shll	%cl, %edi
	orl	%edx, %edi
	movq	_DP_AUX_CH_CTL_BIT_CLOCK_2X_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	shll	%cl, %esi
	orl	%eax, %edi
	orl	%edi, %esi
	movq	_DP_AUX_CH_CTL_DONE@GOTPCREL(%rip), %r12
	orl	(%r12), %esi
	movq	_DP_AUX_CH_CTL_TIME_OUT_ERROR@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movq	_DP_AUX_CH_CTL_RECEIVE_ERROR@GOTPCREL(%rip), %r13
	orl	(%r13), %esi
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %edi
	callq	_I915_WRITE
	movq	-96(%rbp), %rdi                 ## 8-byte Reload
	movl	%r15d, %esi
	callq	_intel_dp_aux_wait_done
	movl	%eax, %r15d
	movl	(%r12), %esi
	orl	%eax, %esi
	movq	_DP_AUX_CH_CTL_TIME_OUT_ERROR@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	orl	(%r13), %esi
	movl	%ebx, %edi
	callq	_I915_WRITE
	movq	_DP_AUX_CH_CTL_TIME_OUT_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	(%r13), %ecx
	movl	%ecx, %edx
	orl	%eax, %edx
	testl	%r15d, %edx
	je	LBB0_36
## %bb.29:                              ##   in Loop: Header=BB0_31 Depth=1
	movq	_DP_AUX_CH_CTL_DONE@GOTPCREL(%rip), %rdx
	movl	-52(%rbp), %esi                 ## 4-byte Reload
	cmpl	$4, %esi
	jae	LBB0_41
LBB0_30:                                ##   in Loop: Header=BB0_31 Depth=1
	incl	%esi
	movl	%esi, -52(%rbp)                 ## 4-byte Spill
LBB0_31:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_33 Depth 2
	testl	%r14d, %r14d
	movq	-88(%rbp), %r12                 ## 8-byte Reload
	jle	LBB0_34
## %bb.32:                              ##   in Loop: Header=BB0_31 Depth=1
	xorl	%r13d, %r13d
	movq	-112(%rbp), %r15                ## 8-byte Reload
	movl	%r14d, %ebx
	.p2align	4, 0x90
LBB0_33:                                ##   Parent Loop BB0_31 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	leal	(%r12,%r13), %r14d
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_pack_aux
	movl	%r14d, %edi
	movl	-56(%rbp), %r14d                ## 4-byte Reload
	movl	%eax, %esi
	callq	_I915_WRITE
	addl	$-4, %ebx
	addl	$4, %r13d
	addq	$16, %r15
	cmpl	%r14d, %r13d
	jl	LBB0_33
LBB0_34:                                ##   in Loop: Header=BB0_31 Depth=1
	movl	-76(%rbp), %r15d                ## 4-byte Reload
	movl	%r15d, %eax
	testl	%r15d, %r15d
	je	LBB0_28
## %bb.35:                              ##   in Loop: Header=BB0_31 Depth=1
	movq	_DP_AUX_CH_CTL_INTERRUPT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_28
	.p2align	4, 0x90
LBB0_36:                                ##   in Loop: Header=BB0_31 Depth=1
	movq	_DP_AUX_CH_CTL_DONE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	testl	%r15d, %edx
	jne	LBB0_38
## %bb.37:                              ##   in Loop: Header=BB0_31 Depth=1
	movl	-52(%rbp), %esi                 ## 4-byte Reload
	cmpl	$4, %esi
	jb	LBB0_30
LBB0_38:
	testl	%r15d, %edx
	je	LBB0_42
LBB0_39:
	testl	%r15d, %ecx
	je	LBB0_46
## %bb.40:
	leaq	L_.str.2(%rip), %rdi
	movl	%r15d, %esi
	callq	_DRM_ERROR
	movq	_EIO@GOTPCREL(%rip), %rax
	jmp	LBB0_44
LBB0_41:
	movl	(%rdx), %edx
	testl	%r15d, %edx
	jne	LBB0_39
LBB0_42:
	leaq	L_.str.1(%rip), %rdi
	movl	%r15d, %esi
	callq	_DRM_ERROR
LBB0_43:
	movq	_EBUSY@GOTPCREL(%rip), %rax
LBB0_44:
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_45:
	movq	_PM_QOS_DEFAULT_VALUE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_pm_qos_update_request
	movl	%r14d, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_46:
	testl	%r15d, %eax
	je	LBB0_48
## %bb.47:
	leaq	L_.str.3(%rip), %rdi
	movl	%r15d, %esi
	callq	_DRM_DEBUG_KMS
	movq	_ETIMEDOUT@GOTPCREL(%rip), %rax
	jmp	LBB0_44
LBB0_48:
	movq	_DP_AUX_CH_CTL_MESSAGE_SIZE_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	andl	%r15d, %r14d
	movq	_DP_AUX_CH_CTL_MESSAGE_SIZE_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	sarl	%cl, %r14d
	movl	-68(%rbp), %eax                 ## 4-byte Reload
	cmpl	%eax, %r14d
	cmovgel	%eax, %r14d
	testl	%r14d, %r14d
	jle	LBB0_45
## %bb.49:
	xorl	%ebx, %ebx
	movl	%r14d, %r15d
	movq	-104(%rbp), %r12                ## 8-byte Reload
	movq	-88(%rbp), %r13                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_50:                                ## =>This Inner Loop Header: Depth=1
	leal	(%rbx,%r13), %edi
	callq	_I915_READ
	movl	%eax, %edi
	movq	%r12, %rsi
	movl	%r15d, %edx
	callq	_unpack_aux
	addl	$-4, %r15d
	addl	$4, %ebx
	addq	$16, %r12
	cmpl	%ebx, %r14d
	jg	LBB0_50
	jmp	LBB0_45
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
LJTI0_0:
	.long	L0_0_set_6
	.long	L0_0_set_9
	.long	L0_0_set_10
	.long	L0_0_set_11
	.end_data_region
                                        ## -- End function
	.comm	_DPA_AUX_CH_CTL,4,2             ## @DPA_AUX_CH_CTL
	.comm	_DPA_AUX_CH_DATA1,4,2           ## @DPA_AUX_CH_DATA1
	.comm	_PCH_DPB_AUX_CH_CTL,4,2         ## @PCH_DPB_AUX_CH_CTL
	.comm	_PCH_DPB_AUX_CH_DATA1,4,2       ## @PCH_DPB_AUX_CH_DATA1
	.comm	_PCH_DPC_AUX_CH_CTL,4,2         ## @PCH_DPC_AUX_CH_CTL
	.comm	_PCH_DPC_AUX_CH_DATA1,4,2       ## @PCH_DPC_AUX_CH_DATA1
	.comm	_PCH_DPD_AUX_CH_CTL,4,2         ## @PCH_DPD_AUX_CH_CTL
	.comm	_PCH_DPD_AUX_CH_DATA1,4,2       ## @PCH_DPD_AUX_CH_DATA1
	.comm	_DP_AUX_CH_CTL_SEND_BUSY,4,2    ## @DP_AUX_CH_CTL_SEND_BUSY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"dp_aux_ch not started status 0x%08x\n"

	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_DP_AUX_CH_CTL_INTERRUPT,4,2    ## @DP_AUX_CH_CTL_INTERRUPT
	.comm	_DP_AUX_CH_CTL_TIME_OUT_400us,4,2 ## @DP_AUX_CH_CTL_TIME_OUT_400us
	.comm	_DP_AUX_CH_CTL_MESSAGE_SIZE_SHIFT,4,2 ## @DP_AUX_CH_CTL_MESSAGE_SIZE_SHIFT
	.comm	_DP_AUX_CH_CTL_PRECHARGE_2US_SHIFT,4,2 ## @DP_AUX_CH_CTL_PRECHARGE_2US_SHIFT
	.comm	_DP_AUX_CH_CTL_BIT_CLOCK_2X_SHIFT,4,2 ## @DP_AUX_CH_CTL_BIT_CLOCK_2X_SHIFT
	.comm	_DP_AUX_CH_CTL_DONE,4,2         ## @DP_AUX_CH_CTL_DONE
	.comm	_DP_AUX_CH_CTL_TIME_OUT_ERROR,4,2 ## @DP_AUX_CH_CTL_TIME_OUT_ERROR
	.comm	_DP_AUX_CH_CTL_RECEIVE_ERROR,4,2 ## @DP_AUX_CH_CTL_RECEIVE_ERROR
L_.str.1:                               ## @.str.1
	.asciz	"dp_aux_ch not done status 0x%08x\n"

L_.str.2:                               ## @.str.2
	.asciz	"dp_aux_ch receive error status 0x%08x\n"

	.comm	_EIO,4,2                        ## @EIO
L_.str.3:                               ## @.str.3
	.asciz	"dp_aux_ch timeout status 0x%08x\n"

	.comm	_ETIMEDOUT,4,2                  ## @ETIMEDOUT
	.comm	_DP_AUX_CH_CTL_MESSAGE_SIZE_MASK,4,2 ## @DP_AUX_CH_CTL_MESSAGE_SIZE_MASK
	.comm	_PM_QOS_DEFAULT_VALUE,4,2       ## @PM_QOS_DEFAULT_VALUE
	.no_dead_strip	_intel_dp_aux_ch
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function intel_dp_aux_ch
_intel_dp_aux_ch:                       ; @intel_dp_aux_ch
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x24, x4
	mov	x22, x3
	mov	x21, x2
	str	x1, [sp, #32]                   ; 8-byte Folded Spill
	ldr	w19, [x0]
	str	x0, [sp, #56]                   ; 8-byte Folded Spill
	bl	_dp_to_dig_port
	mov	x27, x0
	ldr	x28, [x0, #8]
	ldr	x23, [x28]
	add	w25, w19, #16
	add	w20, w19, #20
	mov	x0, x28
	bl	_INTEL_INFO
	ldr	w8, [x0]
	cmp	w8, #5
	b.lt	LBB0_2
; %bb.1:
	mov	x0, x28
	bl	_IS_VALLEYVIEW
	cmp	x0, #0
	cset	w8, eq
	str	w8, [sp, #44]                   ; 4-byte Folded Spill
	b	LBB0_3
LBB0_2:
	str	wzr, [sp, #44]                  ; 4-byte Folded Spill
LBB0_3:
	mov	x0, x23
	mov	w1, #0
	bl	_pm_qos_update_request
	mov	x0, x28
	bl	_IS_HASWELL
	cbz	x0, LBB0_12
; %bb.4:
	ldr	w8, [x27]
	sub	w8, w8, #128
	cmp	w8, #3
	b.hi	LBB0_7
; %bb.5:
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_6
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_6:
Lloh2:
	adrp	x8, _PCH_DPD_AUX_CH_CTL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _PCH_DPD_AUX_CH_CTL@GOTPAGEOFF]
Lloh4:
	ldr	w25, [x8]
Lloh5:
	adrp	x8, _PCH_DPD_AUX_CH_DATA1@GOTPAGE
Lloh6:
	ldr	x8, [x8, _PCH_DPD_AUX_CH_DATA1@GOTPAGEOFF]
	b	LBB0_11
LBB0_7:
	bl	_BUG
	b	LBB0_12
LBB0_8:
Lloh7:
	adrp	x8, _PCH_DPC_AUX_CH_CTL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _PCH_DPC_AUX_CH_CTL@GOTPAGEOFF]
Lloh9:
	ldr	w25, [x8]
Lloh10:
	adrp	x8, _PCH_DPC_AUX_CH_DATA1@GOTPAGE
Lloh11:
	ldr	x8, [x8, _PCH_DPC_AUX_CH_DATA1@GOTPAGEOFF]
	b	LBB0_11
LBB0_9:
Lloh12:
	adrp	x8, _PCH_DPB_AUX_CH_CTL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _PCH_DPB_AUX_CH_CTL@GOTPAGEOFF]
Lloh14:
	ldr	w25, [x8]
Lloh15:
	adrp	x8, _PCH_DPB_AUX_CH_DATA1@GOTPAGE
Lloh16:
	ldr	x8, [x8, _PCH_DPB_AUX_CH_DATA1@GOTPAGEOFF]
	b	LBB0_11
LBB0_10:
Lloh17:
	adrp	x8, _DPA_AUX_CH_CTL@GOTPAGE
Lloh18:
	ldr	x8, [x8, _DPA_AUX_CH_CTL@GOTPAGEOFF]
Lloh19:
	ldr	w25, [x8]
Lloh20:
	adrp	x8, _DPA_AUX_CH_DATA1@GOTPAGE
Lloh21:
	ldr	x8, [x8, _DPA_AUX_CH_DATA1@GOTPAGEOFF]
LBB0_11:
	ldr	w20, [x8]
LBB0_12:
	ldr	x19, [sp, #56]                  ; 8-byte Folded Reload
	mov	x0, x19
	bl	_intel_dp_check_edp
	mov	x0, x19
	bl	_is_cpu_edp
	cbz	x0, LBB0_15
; %bb.13:
	mov	x0, x28
	bl	_HAS_DDI
	cbz	x0, LBB0_17
; %bb.14:
	mov	x0, x23
	bl	_intel_ddi_get_cdclk_freq
	asr	w8, w0, #1
	b	LBB0_22
LBB0_15:
	mov	x0, x28
	bl	_HAS_PCH_SPLIT
	cbz	x0, LBB0_19
; %bb.16:
	mov	x0, x28
	bl	_intel_pch_rawclk
	mov	w1, #2
	bl	_DIV_ROUND_UP
	str	w0, [sp, #52]                   ; 4-byte Folded Spill
	b	LBB0_23
LBB0_17:
	mov	x0, x28
	bl	_IS_VALLEYVIEW
	cbz	x0, LBB0_20
; %bb.18:
	mov	w8, #100
	b	LBB0_22
LBB0_19:
	mov	x0, x28
	bl	_intel_hrawclk
	cmp	w0, #0
	cinc	w8, w0, lt
	asr	w8, w8, #1
	b	LBB0_22
LBB0_20:
	mov	x0, x28
	bl	_IS_GEN6
	mov	w8, #200
	str	w8, [sp, #52]                   ; 4-byte Folded Spill
	cbnz	x0, LBB0_23
; %bb.21:
	mov	x0, x28
	bl	_IS_GEN7
	cmp	x0, #0
	mov	w8, #225
	mov	w9, #200
	csel	w8, w8, w9, eq
LBB0_22:
	str	w8, [sp, #52]                   ; 4-byte Folded Spill
LBB0_23:
	mov	x0, x28
	bl	_IS_GEN6
	cmp	x0, #0
	mov	w8, #3
	mov	w9, #5
	csel	w8, w9, w8, eq
	str	w8, [sp, #48]                   ; 4-byte Folded Spill
	mov	x0, x25
	bl	_I915_READ_NOTRACE
Lloh22:
	adrp	x19, _DP_AUX_CH_CTL_SEND_BUSY@GOTPAGE
Lloh23:
	ldr	x19, [x19, _DP_AUX_CH_CTL_SEND_BUSY@GOTPAGEOFF]
	ldr	w8, [x19]
	tst	w8, w0
	b.eq	LBB0_27
; %bb.24:
	mov	w0, #1
	bl	_msleep
	mov	x0, x25
	bl	_I915_READ_NOTRACE
	ldr	w8, [x19]
	tst	w8, w0
	b.eq	LBB0_27
; %bb.25:
	mov	w0, #1
	bl	_msleep
	mov	x0, x25
	bl	_I915_READ_NOTRACE
	ldr	w8, [x19]
	tst	w8, w0
	b.eq	LBB0_27
; %bb.26:
	mov	w0, #1
	bl	_msleep
	mov	x0, x25
	bl	_I915_READ
	mov	x2, x0
Lloh24:
	adrp	x1, l_.str@PAGE
Lloh25:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_WARN
Lloh26:
	adrp	x8, _EBUSY@GOTPAGE
Lloh27:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
	b	LBB0_43
LBB0_27:
	str	w25, [sp, #40]                  ; 4-byte Folded Spill
	str	w24, [sp, #20]                  ; 4-byte Folded Spill
	str	x22, [sp, #8]                   ; 8-byte Folded Spill
	str	x23, [sp, #24]                  ; 8-byte Folded Spill
	mov	w24, #0
Lloh28:
	adrp	x27, _DP_AUX_CH_CTL_DONE@GOTPAGE
Lloh29:
	ldr	x27, [x27, _DP_AUX_CH_CTL_DONE@GOTPAGEOFF]
Lloh30:
	adrp	x26, _DP_AUX_CH_CTL_TIME_OUT_ERROR@GOTPAGE
Lloh31:
	ldr	x26, [x26, _DP_AUX_CH_CTL_TIME_OUT_ERROR@GOTPAGEOFF]
Lloh32:
	adrp	x23, _DP_AUX_CH_CTL_RECEIVE_ERROR@GOTPAGE
Lloh33:
	ldr	x23, [x23, _DP_AUX_CH_CTL_RECEIVE_ERROR@GOTPAGEOFF]
	b	LBB0_30
LBB0_28:                                ;   in Loop: Header=BB0_30 Depth=1
	cmp	w24, #4
	b.hs	LBB0_39
LBB0_29:                                ;   in Loop: Header=BB0_30 Depth=1
	add	w24, w24, #1
LBB0_30:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_32 Depth 2
	cmp	w21, #1
	b.lt	LBB0_33
; %bb.31:                               ;   in Loop: Header=BB0_30 Depth=1
	mov	w25, #0
	ldr	x28, [sp, #32]                  ; 8-byte Folded Reload
	mov	x22, x21
LBB0_32:                                ;   Parent Loop BB0_30 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	w19, w20, w25
	mov	x0, x28
	mov	x1, x22
	bl	_pack_aux
	mov	x1, x0
	mov	x0, x19
	bl	_I915_WRITE
	sub	w22, w22, #4
	add	w25, w25, #4
	add	x28, x28, #16
	cmp	w25, w21
	b.lt	LBB0_32
LBB0_33:                                ;   in Loop: Header=BB0_30 Depth=1
Lloh34:
	adrp	x8, _DP_AUX_CH_CTL_SEND_BUSY@GOTPAGE
Lloh35:
	ldr	x8, [x8, _DP_AUX_CH_CTL_SEND_BUSY@GOTPAGEOFF]
Lloh36:
	ldr	w8, [x8]
Lloh37:
	adrp	x9, _DP_AUX_CH_CTL_INTERRUPT@GOTPAGE
Lloh38:
	ldr	x9, [x9, _DP_AUX_CH_CTL_INTERRUPT@GOTPAGEOFF]
Lloh39:
	ldr	w9, [x9]
	ldp	w22, w10, [sp, #44]             ; 8-byte Folded Reload
	cmp	w22, #0
	csel	w9, w9, wzr, ne
	orr	w8, w9, w8
Lloh40:
	adrp	x9, _DP_AUX_CH_CTL_TIME_OUT_400us@GOTPAGE
Lloh41:
	ldr	x9, [x9, _DP_AUX_CH_CTL_TIME_OUT_400us@GOTPAGEOFF]
Lloh42:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh43:
	adrp	x9, _DP_AUX_CH_CTL_MESSAGE_SIZE_SHIFT@GOTPAGE
Lloh44:
	ldr	x9, [x9, _DP_AUX_CH_CTL_MESSAGE_SIZE_SHIFT@GOTPAGEOFF]
Lloh45:
	ldr	w9, [x9]
	lsl	w9, w21, w9
	orr	w8, w8, w9
Lloh46:
	adrp	x9, _DP_AUX_CH_CTL_PRECHARGE_2US_SHIFT@GOTPAGE
Lloh47:
	ldr	x9, [x9, _DP_AUX_CH_CTL_PRECHARGE_2US_SHIFT@GOTPAGEOFF]
Lloh48:
	ldr	w9, [x9]
	lsl	w9, w10, w9
	orr	w8, w8, w9
Lloh49:
	adrp	x9, _DP_AUX_CH_CTL_BIT_CLOCK_2X_SHIFT@GOTPAGE
Lloh50:
	ldr	x9, [x9, _DP_AUX_CH_CTL_BIT_CLOCK_2X_SHIFT@GOTPAGEOFF]
Lloh51:
	ldr	w9, [x9]
	ldr	w10, [sp, #52]                  ; 4-byte Folded Reload
	lsl	w9, w10, w9
	orr	w8, w8, w9
	ldr	w9, [x27]
	orr	w8, w8, w9
	ldr	w9, [x26]
	orr	w8, w8, w9
	ldr	w9, [x23]
	orr	w1, w8, w9
	ldr	w19, [sp, #40]                  ; 4-byte Folded Reload
	mov	x0, x19
	bl	_I915_WRITE
	ldr	x0, [sp, #56]                   ; 8-byte Folded Reload
	mov	x1, x22
	bl	_intel_dp_aux_wait_done
	mov	x28, x0
	ldr	w8, [x27]
	orr	w8, w8, w0
	ldr	w9, [x26]
	orr	w8, w8, w9
	ldr	w9, [x23]
	orr	w1, w8, w9
	mov	x0, x19
	bl	_I915_WRITE
	ldr	w8, [x26]
	ldr	w9, [x23]
	orr	w10, w9, w8
	tst	w10, w28
	b.ne	LBB0_28
; %bb.34:                               ;   in Loop: Header=BB0_30 Depth=1
	ldr	w10, [x27]
	tst	w10, w28
	b.ne	LBB0_36
; %bb.35:                               ;   in Loop: Header=BB0_30 Depth=1
	cmp	w24, #4
	b.lo	LBB0_29
LBB0_36:
	tst	w10, w28
	b.eq	LBB0_40
LBB0_37:
	tst	w9, w28
	ldr	x23, [sp, #24]                  ; 8-byte Folded Reload
	b.eq	LBB0_41
; %bb.38:
Lloh52:
	adrp	x0, l_.str.2@PAGE
Lloh53:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x28
	bl	_DRM_ERROR
Lloh54:
	adrp	x8, _EIO@GOTPAGE
Lloh55:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
	b	LBB0_43
LBB0_39:
	ldr	w10, [x27]
	tst	w10, w28
	b.ne	LBB0_37
LBB0_40:
Lloh56:
	adrp	x0, l_.str.1@PAGE
Lloh57:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x28
	bl	_DRM_ERROR
Lloh58:
	adrp	x8, _EBUSY@GOTPAGE
Lloh59:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh60:
	ldr	w8, [x8]
	neg	w21, w8
	ldr	x23, [sp, #24]                  ; 8-byte Folded Reload
	b	LBB0_44
LBB0_41:
	tst	w8, w28
	b.eq	LBB0_45
; %bb.42:
Lloh61:
	adrp	x0, l_.str.3@PAGE
Lloh62:
	add	x0, x0, l_.str.3@PAGEOFF
	mov	x1, x28
	bl	_DRM_DEBUG_KMS
Lloh63:
	adrp	x8, _ETIMEDOUT@GOTPAGE
Lloh64:
	ldr	x8, [x8, _ETIMEDOUT@GOTPAGEOFF]
LBB0_43:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_44:
Lloh65:
	adrp	x8, _PM_QOS_DEFAULT_VALUE@GOTPAGE
Lloh66:
	ldr	x8, [x8, _PM_QOS_DEFAULT_VALUE@GOTPAGEOFF]
Lloh67:
	ldr	w1, [x8]
	mov	x0, x23
	bl	_pm_qos_update_request
	mov	x0, x21
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
LBB0_45:
Lloh68:
	adrp	x8, _DP_AUX_CH_CTL_MESSAGE_SIZE_MASK@GOTPAGE
Lloh69:
	ldr	x8, [x8, _DP_AUX_CH_CTL_MESSAGE_SIZE_MASK@GOTPAGEOFF]
Lloh70:
	ldr	w8, [x8]
	and	w8, w8, w28
Lloh71:
	adrp	x9, _DP_AUX_CH_CTL_MESSAGE_SIZE_SHIFT@GOTPAGE
Lloh72:
	ldr	x9, [x9, _DP_AUX_CH_CTL_MESSAGE_SIZE_SHIFT@GOTPAGEOFF]
Lloh73:
	ldr	w9, [x9]
	asr	w8, w8, w9
	ldr	w9, [sp, #20]                   ; 4-byte Folded Reload
	cmp	w8, w9
	csel	w21, w8, w9, lt
	cmp	w21, #1
	b.lt	LBB0_44
; %bb.46:
	mov	w19, #0
	mov	x22, x21
	ldr	x24, [sp, #8]                   ; 8-byte Folded Reload
LBB0_47:                                ; =>This Inner Loop Header: Depth=1
	add	w0, w20, w19
	bl	_I915_READ
	mov	x1, x24
	mov	x2, x22
	bl	_unpack_aux
	sub	w22, w22, #4
	add	w19, w19, #4
	add	x24, x24, #16
	cmp	w21, w19
	b.gt	LBB0_47
	b	LBB0_44
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh54, Lloh55
	.loh AdrpAdd	Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh58, Lloh59, Lloh60
	.loh AdrpAdd	Lloh56, Lloh57
	.loh AdrpLdrGot	Lloh63, Lloh64
	.loh AdrpAdd	Lloh61, Lloh62
	.loh AdrpLdrGotLdr	Lloh65, Lloh66, Lloh67
	.loh AdrpLdrGotLdr	Lloh71, Lloh72, Lloh73
	.loh AdrpLdrGotLdr	Lloh68, Lloh69, Lloh70
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_6-LBB0_6)>>2
	.byte	(LBB0_8-LBB0_6)>>2
	.byte	(LBB0_9-LBB0_6)>>2
	.byte	(LBB0_10-LBB0_6)>>2
                                        ; -- End function
	.comm	_DPA_AUX_CH_CTL,4,2             ; @DPA_AUX_CH_CTL
	.comm	_DPA_AUX_CH_DATA1,4,2           ; @DPA_AUX_CH_DATA1
	.comm	_PCH_DPB_AUX_CH_CTL,4,2         ; @PCH_DPB_AUX_CH_CTL
	.comm	_PCH_DPB_AUX_CH_DATA1,4,2       ; @PCH_DPB_AUX_CH_DATA1
	.comm	_PCH_DPC_AUX_CH_CTL,4,2         ; @PCH_DPC_AUX_CH_CTL
	.comm	_PCH_DPC_AUX_CH_DATA1,4,2       ; @PCH_DPC_AUX_CH_DATA1
	.comm	_PCH_DPD_AUX_CH_CTL,4,2         ; @PCH_DPD_AUX_CH_CTL
	.comm	_PCH_DPD_AUX_CH_DATA1,4,2       ; @PCH_DPD_AUX_CH_DATA1
	.comm	_DP_AUX_CH_CTL_SEND_BUSY,4,2    ; @DP_AUX_CH_CTL_SEND_BUSY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"dp_aux_ch not started status 0x%08x\n"

	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_DP_AUX_CH_CTL_INTERRUPT,4,2    ; @DP_AUX_CH_CTL_INTERRUPT
	.comm	_DP_AUX_CH_CTL_TIME_OUT_400us,4,2 ; @DP_AUX_CH_CTL_TIME_OUT_400us
	.comm	_DP_AUX_CH_CTL_MESSAGE_SIZE_SHIFT,4,2 ; @DP_AUX_CH_CTL_MESSAGE_SIZE_SHIFT
	.comm	_DP_AUX_CH_CTL_PRECHARGE_2US_SHIFT,4,2 ; @DP_AUX_CH_CTL_PRECHARGE_2US_SHIFT
	.comm	_DP_AUX_CH_CTL_BIT_CLOCK_2X_SHIFT,4,2 ; @DP_AUX_CH_CTL_BIT_CLOCK_2X_SHIFT
	.comm	_DP_AUX_CH_CTL_DONE,4,2         ; @DP_AUX_CH_CTL_DONE
	.comm	_DP_AUX_CH_CTL_TIME_OUT_ERROR,4,2 ; @DP_AUX_CH_CTL_TIME_OUT_ERROR
	.comm	_DP_AUX_CH_CTL_RECEIVE_ERROR,4,2 ; @DP_AUX_CH_CTL_RECEIVE_ERROR
l_.str.1:                               ; @.str.1
	.asciz	"dp_aux_ch not done status 0x%08x\n"

l_.str.2:                               ; @.str.2
	.asciz	"dp_aux_ch receive error status 0x%08x\n"

	.comm	_EIO,4,2                        ; @EIO
l_.str.3:                               ; @.str.3
	.asciz	"dp_aux_ch timeout status 0x%08x\n"

	.comm	_ETIMEDOUT,4,2                  ; @ETIMEDOUT
	.comm	_DP_AUX_CH_CTL_MESSAGE_SIZE_MASK,4,2 ; @DP_AUX_CH_CTL_MESSAGE_SIZE_MASK
	.comm	_PM_QOS_DEFAULT_VALUE,4,2       ; @PM_QOS_DEFAULT_VALUE
	.no_dead_strip	_intel_dp_aux_ch
.subsections_via_symbols
