	.file	"extr_intel_tc.c_tc_port_fixup_legacy_flag.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Port %s: live status %08x mismatches the legacy port flag, fix flag\n"
	.text
	.p2align 4
	.type	tc_port_fixup_legacy_flag, @function
tc_port_fixup_legacy_flag:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12d, esi
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	ecx, DWORD PTR [rdi]
	test	ecx, ecx
	je	.L2
	mov	edi, DWORD PTR TC_PORT_LEGACY[rip]
	call	BIT@PLT
.L3:
	not	eax
	test	eax, r12d
	je	.L1
	mov	esi, DWORD PTR 4[rbp]
	mov	edx, r12d
	lea	rdi, .LC0[rip]
	call	DRM_ERROR@PLT
	mov	edx, DWORD PTR 0[rbp]
	xor	eax, eax
	test	edx, edx
	sete	al
	mov	DWORD PTR 0[rbp], eax
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	edi, DWORD PTR TC_PORT_DP_ALT[rip]
	call	BIT@PLT
	mov	edi, DWORD PTR TC_PORT_TBT_ALT[rip]
	mov	ebx, eax
	call	BIT@PLT
	or	eax, ebx
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	tc_port_fixup_legacy_flag, .-tc_port_fixup_legacy_flag
	.comm	TC_PORT_TBT_ALT,4,4
	.comm	TC_PORT_LEGACY,4,4
	.comm	TC_PORT_DP_ALT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_intel_tc.c_tc_port_fixup_legacy_flag.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Port %s: live status %08x mismatches the legacy por"
	.ascii	"t flag, fix flag\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	tc_port_fixup_legacy_flag, %function
tc_port_fixup_legacy_flag:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, [r0]
	push	{r4, r5, r6, lr}
	cmp	r3, #0
	mov	r4, r0
	mov	r6, r1
	beq	.L2
	ldr	r3, .L11
	ldr	r0, [r3]
	bl	BIT
	bics	r3, r6, r0
	popeq	{r4, r5, r6, pc}
.L10:
	mov	r2, r6
	ldr	r1, [r4, #4]
	ldr	r0, .L11+4
	bl	DRM_ERROR
	ldr	r3, [r4]
	clz	r3, r3
	lsr	r3, r3, #5
	str	r3, [r4]
	pop	{r4, r5, r6, pc}
.L2:
	ldr	r3, .L11+8
	ldr	r0, [r3]
	bl	BIT
	ldr	r3, .L11+12
	mov	r5, r0
	ldr	r0, [r3]
	bl	BIT
	orr	r0, r5, r0
	bics	r3, r6, r0
	popeq	{r4, r5, r6, pc}
	b	.L10
.L12:
	.align	2
.L11:
	.word	TC_PORT_LEGACY
	.word	.LC0
	.word	TC_PORT_DP_ALT
	.word	TC_PORT_TBT_ALT
	.size	tc_port_fixup_legacy_flag, .-tc_port_fixup_legacy_flag
	.comm	TC_PORT_TBT_ALT,4,4
	.comm	TC_PORT_LEGACY,4,4
	.comm	TC_PORT_DP_ALT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
