	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function icl_tc_phy_aux_power_well_enable
_icl_tc_phy_aux_power_well_enable:      ## @icl_tc_phy_aux_power_well_enable
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	%rdi, %r14
	callq	_icl_tc_phy_aux_ch
	movl	%eax, %r15d
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_icl_tc_port_assert_ref_held
	movl	%r15d, %edi
	callq	_DP_AUX_CH_CTL
	movl	%eax, %edi
	callq	_I915_READ
	movq	_DP_AUX_CH_CTL_TBT_IO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	movl	%ebx, %ecx
	notl	%ecx
	andl	%eax, %ecx
	movq	(%r12), %rdx
	orl	%eax, %ebx
	cmpq	$0, (%rdx)
	cmovel	%ecx, %ebx
	movl	%r15d, %edi
	callq	_DP_AUX_CH_CTL
	movl	%eax, %edi
	movl	%ebx, %esi
	callq	_I915_WRITE
	movq	%r14, %rdi
	movq	%r12, %rsi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_hsw_power_well_enable          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_DP_AUX_CH_CTL_TBT_IO,4,2       ## @DP_AUX_CH_CTL_TBT_IO
	.no_dead_strip	_icl_tc_phy_aux_power_well_enable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function icl_tc_phy_aux_power_well_enable
_icl_tc_phy_aux_power_well_enable:      ; @icl_tc_phy_aux_power_well_enable
	.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	x19, x1
	mov	x20, x0
	bl	_icl_tc_phy_aux_ch
	mov	x21, x0
	mov	x0, x20
	mov	x1, x19
	bl	_icl_tc_port_assert_ref_held
	mov	x0, x21
	bl	_DP_AUX_CH_CTL
	bl	_I915_READ
Lloh0:
	adrp	x8, _DP_AUX_CH_CTL_TBT_IO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DP_AUX_CH_CTL_TBT_IO@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	bic	w9, w0, w8
	ldr	x10, [x19]
	ldr	x10, [x10]
	orr	w8, w8, w0
	cmp	x10, #0
	csel	w22, w9, w8, eq
	mov	x0, x21
	bl	_DP_AUX_CH_CTL
	mov	x1, x22
	bl	_I915_WRITE
	mov	x0, x20
	mov	x1, x19
	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
	b	_hsw_power_well_enable
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_DP_AUX_CH_CTL_TBT_IO,4,2       ; @DP_AUX_CH_CTL_TBT_IO
	.no_dead_strip	_icl_tc_phy_aux_power_well_enable
.subsections_via_symbols
