	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function skl_get_aux_send_ctl
_skl_get_aux_send_ctl:                  ## @skl_get_aux_send_ctl
	.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
	movl	%esi, %r13d
	callq	_dp_to_dig_port
	movq	%rax, %r14
	movl	12(%rax), %edi
	callq	_to_i915
	movq	%rax, %r15
	movl	8(%r14), %esi
	movq	%rax, %rdi
	callq	_intel_port_to_phy
	movq	_DP_AUX_CH_CTL_SEND_BUSY@GOTPCREL(%rip), %rcx
	movq	_DP_AUX_CH_CTL_DONE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r12d
	orl	(%rcx), %r12d
	movq	_DP_AUX_CH_CTL_INTERRUPT@GOTPCREL(%rip), %rcx
	orl	(%rcx), %r12d
	movq	_DP_AUX_CH_CTL_TIME_OUT_ERROR@GOTPCREL(%rip), %rcx
	orl	(%rcx), %r12d
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	_DP_AUX_CH_CTL_TIME_OUT_MAX@GOTPCREL(%rip), %rax
	orl	(%rax), %r12d
	movq	_DP_AUX_CH_CTL_RECEIVE_ERROR@GOTPCREL(%rip), %rax
	orl	(%rax), %r12d
	movq	_DP_AUX_CH_CTL_MESSAGE_SIZE_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %r13d
	movl	$32, %edi
	callq	_DP_AUX_CH_CTL_FW_SYNC_PULSE_SKL
	movl	%eax, %ebx
	orl	%r13d, %ebx
	movl	$32, %edi
	callq	_DP_AUX_CH_CTL_SYNC_PULSE_SKL
	movl	%eax, %r13d
	orl	%ebx, %r13d
	orl	%r12d, %r13d
	movq	%r15, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_intel_phy_is_tc
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	(%r14), %rax
	movq	_TC_PORT_TBT_ALT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.2:
	movq	_DP_AUX_CH_CTL_TBT_IO@GOTPCREL(%rip), %rax
	orl	(%rax), %r13d
LBB0_3:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DP_AUX_CH_CTL_SEND_BUSY,4,2    ## @DP_AUX_CH_CTL_SEND_BUSY
	.comm	_DP_AUX_CH_CTL_DONE,4,2         ## @DP_AUX_CH_CTL_DONE
	.comm	_DP_AUX_CH_CTL_INTERRUPT,4,2    ## @DP_AUX_CH_CTL_INTERRUPT
	.comm	_DP_AUX_CH_CTL_TIME_OUT_ERROR,4,2 ## @DP_AUX_CH_CTL_TIME_OUT_ERROR
	.comm	_DP_AUX_CH_CTL_TIME_OUT_MAX,4,2 ## @DP_AUX_CH_CTL_TIME_OUT_MAX
	.comm	_DP_AUX_CH_CTL_RECEIVE_ERROR,4,2 ## @DP_AUX_CH_CTL_RECEIVE_ERROR
	.comm	_DP_AUX_CH_CTL_MESSAGE_SIZE_SHIFT,4,2 ## @DP_AUX_CH_CTL_MESSAGE_SIZE_SHIFT
	.comm	_TC_PORT_TBT_ALT,8,3            ## @TC_PORT_TBT_ALT
	.comm	_DP_AUX_CH_CTL_TBT_IO,4,2       ## @DP_AUX_CH_CTL_TBT_IO
	.no_dead_strip	_skl_get_aux_send_ctl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function skl_get_aux_send_ctl
_skl_get_aux_send_ctl:                  ; @skl_get_aux_send_ctl
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x1
	bl	_dp_to_dig_port
	mov	x19, x0
	ldr	w0, [x0, #12]
	bl	_to_i915
	mov	x21, x0
	ldr	w1, [x19, #8]
	bl	_intel_port_to_phy
	mov	x22, x0
Lloh0:
	adrp	x8, _DP_AUX_CH_CTL_SEND_BUSY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DP_AUX_CH_CTL_SEND_BUSY@GOTPAGEOFF]
Lloh2:
	adrp	x9, _DP_AUX_CH_CTL_DONE@GOTPAGE
Lloh3:
	ldr	x9, [x9, _DP_AUX_CH_CTL_DONE@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh6:
	adrp	x9, _DP_AUX_CH_CTL_INTERRUPT@GOTPAGE
Lloh7:
	ldr	x9, [x9, _DP_AUX_CH_CTL_INTERRUPT@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh9:
	adrp	x9, _DP_AUX_CH_CTL_TIME_OUT_ERROR@GOTPAGE
Lloh10:
	ldr	x9, [x9, _DP_AUX_CH_CTL_TIME_OUT_ERROR@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
Lloh12:
	adrp	x10, _DP_AUX_CH_CTL_TIME_OUT_MAX@GOTPAGE
Lloh13:
	ldr	x10, [x10, _DP_AUX_CH_CTL_TIME_OUT_MAX@GOTPAGEOFF]
	orr	w8, w8, w9
Lloh14:
	ldr	w9, [x10]
	orr	w8, w8, w9
Lloh15:
	adrp	x9, _DP_AUX_CH_CTL_RECEIVE_ERROR@GOTPAGE
Lloh16:
	ldr	x9, [x9, _DP_AUX_CH_CTL_RECEIVE_ERROR@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh18:
	adrp	x9, _DP_AUX_CH_CTL_MESSAGE_SIZE_SHIFT@GOTPAGE
Lloh19:
	ldr	x9, [x9, _DP_AUX_CH_CTL_MESSAGE_SIZE_SHIFT@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	lsl	w9, w20, w9
	orr	w20, w8, w9
	mov	w0, #32
	bl	_DP_AUX_CH_CTL_FW_SYNC_PULSE_SKL
	orr	w20, w20, w0
	mov	w0, #32
	bl	_DP_AUX_CH_CTL_SYNC_PULSE_SKL
	orr	w20, w20, w0
	mov	x0, x21
	mov	x1, x22
	bl	_intel_phy_is_tc
	cbz	x0, LBB0_3
; %bb.1:
	ldr	x8, [x19]
Lloh21:
	adrp	x9, _TC_PORT_TBT_ALT@GOTPAGE
Lloh22:
	ldr	x9, [x9, _TC_PORT_TBT_ALT@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.2:
Lloh24:
	adrp	x8, _DP_AUX_CH_CTL_TBT_IO@GOTPAGE
Lloh25:
	ldr	x8, [x8, _DP_AUX_CH_CTL_TBT_IO@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	orr	w20, w8, w20
LBB0_3:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_DP_AUX_CH_CTL_SEND_BUSY,4,2    ; @DP_AUX_CH_CTL_SEND_BUSY
	.comm	_DP_AUX_CH_CTL_DONE,4,2         ; @DP_AUX_CH_CTL_DONE
	.comm	_DP_AUX_CH_CTL_INTERRUPT,4,2    ; @DP_AUX_CH_CTL_INTERRUPT
	.comm	_DP_AUX_CH_CTL_TIME_OUT_ERROR,4,2 ; @DP_AUX_CH_CTL_TIME_OUT_ERROR
	.comm	_DP_AUX_CH_CTL_TIME_OUT_MAX,4,2 ; @DP_AUX_CH_CTL_TIME_OUT_MAX
	.comm	_DP_AUX_CH_CTL_RECEIVE_ERROR,4,2 ; @DP_AUX_CH_CTL_RECEIVE_ERROR
	.comm	_DP_AUX_CH_CTL_MESSAGE_SIZE_SHIFT,4,2 ; @DP_AUX_CH_CTL_MESSAGE_SIZE_SHIFT
	.comm	_TC_PORT_TBT_ALT,8,3            ; @TC_PORT_TBT_ALT
	.comm	_DP_AUX_CH_CTL_TBT_IO,4,2       ; @DP_AUX_CH_CTL_TBT_IO
	.no_dead_strip	_skl_get_aux_send_ctl
.subsections_via_symbols
