	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_intel_tc_port_init             ## -- Begin function intel_tc_port_init
	.p2align	4, 0x90
_intel_tc_port_init:                    ## @intel_tc_port_init
	.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, %r14d
	movq	%rdi, %rbx
	movl	28(%rdi), %edi
	callq	_to_i915
	movq	%rax, %r15
	movl	24(%rbx), %r13d
	movq	%rax, %rdi
	movl	%r13d, %esi
	callq	_intel_port_to_tc
	movl	%eax, %r12d
	movq	_PORT_TC_NONE@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	cmpl	(%rax), %r12d
	sete	%dil
	callq	_WARN_ON
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
	movl	20(%rbx), %r14d
	movl	%r13d, %edi
	callq	_port_name
	movl	%r12d, %r8d
	incl	%r8d
	leaq	L_.str(%rip), %rdx
	movl	%r14d, %edi
	movl	$4, %esi
	movl	%eax, %ecx
	callq	_snprintf
	leaq	16(%rbx), %rdi
	callq	_mutex_init
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, (%rbx)
	movq	$0, 8(%rbx)
	movq	%r15, %rdi
	movl	%r12d, %esi
	callq	_tc_port_to_fia
	movl	%eax, 4(%rbx)
LBB0_2:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PORT_TC_NONE,4,2               ## @PORT_TC_NONE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%c/TC#%d"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_intel_tc_port_init             ; -- Begin function intel_tc_port_init
	.p2align	2
_intel_tc_port_init:                    ; @intel_tc_port_init
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x20, x1
	mov	x19, x0
	ldr	w0, [x0, #28]
	bl	_to_i915
	mov	x21, x0
	ldr	w23, [x19, #24]
	mov	x1, x23
	bl	_intel_port_to_tc
	mov	x22, x0
Lloh0:
	adrp	x8, _PORT_TC_NONE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PORT_TC_NONE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w0, w8
	cset	w0, eq
	bl	_WARN_ON
	cbnz	x0, LBB0_2
; %bb.1:
	ldr	w24, [x19, #20]
	mov	x0, x23
	bl	_port_name
	mov	x3, x0
	add	w4, w22, #1
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x24
	mov	w1, #4
	bl	_snprintf
	add	x0, x19, #16
	bl	_mutex_init
	str	w20, [x19]
	str	xzr, [x19, #8]
	mov	x0, x21
	mov	x1, x22
	bl	_tc_port_to_fia
	str	w0, [x19, #4]
LBB0_2:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_PORT_TC_NONE,4,2               ; @PORT_TC_NONE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%c/TC#%d"

.subsections_via_symbols
