	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_intel_aux_power_domain         ## -- Begin function intel_aux_power_domain
	.p2align	4, 0x90
_intel_aux_power_domain:                ## @intel_aux_power_domain
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movl	16(%rdi), %edi
	callq	_to_i915
	movq	%rax, %rbx
	movl	12(%r14), %esi
	movq	%rax, %rdi
	callq	_intel_port_to_phy
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_intel_phy_is_tc
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movq	(%r14), %rax
	movq	_TC_PORT_TBT_ALT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.2:
	movl	8(%r14), %edi
	leal	-128(%rdi), %eax
	cmpl	$4, %eax
	jae	LBB0_3
## %bb.6:
	cltq
	leaq	l_switch.table.intel_aux_power_domain(%rip), %rcx
	jmp	LBB0_8
LBB0_4:
	movl	8(%r14), %edi
	leal	-128(%rdi), %eax
	cmpl	$6, %eax
	jae	LBB0_5
## %bb.7:
	cltq
	leaq	l_switch.table.intel_aux_power_domain.1(%rip), %rcx
LBB0_8:
	movq	(%rcx,%rax,8), %rax
	jmp	LBB0_9
LBB0_5:
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_MISSING_CASE
	movq	_POWER_DOMAIN_AUX_A@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_3:
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_MISSING_CASE
	movq	_POWER_DOMAIN_AUX_TBT1@GOTPCREL(%rip), %rax
LBB0_9:
	movl	(%rax), %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TC_PORT_TBT_ALT,8,3            ## @TC_PORT_TBT_ALT
	.comm	_POWER_DOMAIN_AUX_TBT1,4,2      ## @POWER_DOMAIN_AUX_TBT1
	.comm	_POWER_DOMAIN_AUX_TBT2,4,2      ## @POWER_DOMAIN_AUX_TBT2
	.comm	_POWER_DOMAIN_AUX_TBT3,4,2      ## @POWER_DOMAIN_AUX_TBT3
	.comm	_POWER_DOMAIN_AUX_TBT4,4,2      ## @POWER_DOMAIN_AUX_TBT4
	.comm	_POWER_DOMAIN_AUX_A,4,2         ## @POWER_DOMAIN_AUX_A
	.comm	_POWER_DOMAIN_AUX_B,4,2         ## @POWER_DOMAIN_AUX_B
	.comm	_POWER_DOMAIN_AUX_C,4,2         ## @POWER_DOMAIN_AUX_C
	.comm	_POWER_DOMAIN_AUX_D,4,2         ## @POWER_DOMAIN_AUX_D
	.comm	_POWER_DOMAIN_AUX_E,4,2         ## @POWER_DOMAIN_AUX_E
	.comm	_POWER_DOMAIN_AUX_F,4,2         ## @POWER_DOMAIN_AUX_F
	.section	__DATA,__const
	.p2align	3                               ## @switch.table.intel_aux_power_domain
l_switch.table.intel_aux_power_domain:
	.quad	_POWER_DOMAIN_AUX_TBT4
	.quad	_POWER_DOMAIN_AUX_TBT3
	.quad	_POWER_DOMAIN_AUX_TBT2
	.quad	_POWER_DOMAIN_AUX_TBT1

	.p2align	3                               ## @switch.table.intel_aux_power_domain.1
l_switch.table.intel_aux_power_domain.1:
	.quad	_POWER_DOMAIN_AUX_F
	.quad	_POWER_DOMAIN_AUX_E
	.quad	_POWER_DOMAIN_AUX_D
	.quad	_POWER_DOMAIN_AUX_C
	.quad	_POWER_DOMAIN_AUX_B
	.quad	_POWER_DOMAIN_AUX_A

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_intel_aux_power_domain         ; -- Begin function intel_aux_power_domain
	.p2align	2
_intel_aux_power_domain:                ; @intel_aux_power_domain
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	w0, [x0, #16]
	bl	_to_i915
	mov	x20, x0
	ldr	w1, [x19, #12]
	bl	_intel_port_to_phy
	mov	x1, x0
	mov	x0, x20
	bl	_intel_phy_is_tc
	cbz	x0, LBB0_4
; %bb.1:
	ldr	x8, [x19]
Lloh0:
	adrp	x9, _TC_PORT_TBT_ALT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _TC_PORT_TBT_ALT@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.2:
	ldr	w0, [x19, #8]
	sub	w8, w0, #128
	cmp	w8, #4
	b.hs	LBB0_8
; %bb.3:
Lloh3:
	adrp	x9, l_switch.table.intel_aux_power_domain@PAGE
Lloh4:
	add	x9, x9, l_switch.table.intel_aux_power_domain@PAGEOFF
	b	LBB0_6
LBB0_4:
	ldr	w0, [x19, #8]
	sub	w8, w0, #128
	cmp	w8, #6
	b.hs	LBB0_7
; %bb.5:
Lloh5:
	adrp	x9, l_switch.table.intel_aux_power_domain.1@PAGE
Lloh6:
	add	x9, x9, l_switch.table.intel_aux_power_domain.1@PAGEOFF
LBB0_6:
	ldr	x8, [x9, w8, sxtw #3]
	b	LBB0_9
LBB0_7:
	bl	_MISSING_CASE
Lloh7:
	adrp	x8, _POWER_DOMAIN_AUX_A@GOTPAGE
Lloh8:
	ldr	x8, [x8, _POWER_DOMAIN_AUX_A@GOTPAGEOFF]
	b	LBB0_9
LBB0_8:
	bl	_MISSING_CASE
Lloh9:
	adrp	x8, _POWER_DOMAIN_AUX_TBT1@GOTPAGE
Lloh10:
	ldr	x8, [x8, _POWER_DOMAIN_AUX_TBT1@GOTPAGEOFF]
LBB0_9:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_TC_PORT_TBT_ALT,8,3            ; @TC_PORT_TBT_ALT
	.comm	_POWER_DOMAIN_AUX_TBT1,4,2      ; @POWER_DOMAIN_AUX_TBT1
	.comm	_POWER_DOMAIN_AUX_TBT2,4,2      ; @POWER_DOMAIN_AUX_TBT2
	.comm	_POWER_DOMAIN_AUX_TBT3,4,2      ; @POWER_DOMAIN_AUX_TBT3
	.comm	_POWER_DOMAIN_AUX_TBT4,4,2      ; @POWER_DOMAIN_AUX_TBT4
	.comm	_POWER_DOMAIN_AUX_A,4,2         ; @POWER_DOMAIN_AUX_A
	.comm	_POWER_DOMAIN_AUX_B,4,2         ; @POWER_DOMAIN_AUX_B
	.comm	_POWER_DOMAIN_AUX_C,4,2         ; @POWER_DOMAIN_AUX_C
	.comm	_POWER_DOMAIN_AUX_D,4,2         ; @POWER_DOMAIN_AUX_D
	.comm	_POWER_DOMAIN_AUX_E,4,2         ; @POWER_DOMAIN_AUX_E
	.comm	_POWER_DOMAIN_AUX_F,4,2         ; @POWER_DOMAIN_AUX_F
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.intel_aux_power_domain
l_switch.table.intel_aux_power_domain:
	.quad	_POWER_DOMAIN_AUX_TBT4
	.quad	_POWER_DOMAIN_AUX_TBT3
	.quad	_POWER_DOMAIN_AUX_TBT2
	.quad	_POWER_DOMAIN_AUX_TBT1

	.p2align	3                               ; @switch.table.intel_aux_power_domain.1
l_switch.table.intel_aux_power_domain.1:
	.quad	_POWER_DOMAIN_AUX_F
	.quad	_POWER_DOMAIN_AUX_E
	.quad	_POWER_DOMAIN_AUX_D
	.quad	_POWER_DOMAIN_AUX_C
	.quad	_POWER_DOMAIN_AUX_B
	.quad	_POWER_DOMAIN_AUX_A

.subsections_via_symbols
