	.file	"extr_intel_bios.c_intel_bios_is_dsi_present.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"VBT has unsupported DSI port %c\n"
	.text
	.p2align 4
	.globl	intel_bios_is_dsi_present
	.type	intel_bios_is_dsi_present, @function
intel_bios_is_dsi_present:
.LFB0:
	.cfi_startproc
	endbr64
	mov	eax, DWORD PTR [rdi]
	test	eax, eax
	jle	.L26
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	r14, rdi
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	xor	r13d, r13d
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	lea	r12, .LC0[rip]
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	jmp	.L18
	.p2align 4,,10
	.p2align 3
.L19:
	cmp	QWORD PTR DVO_PORT_MIPID[rip], rbx
	je	.L16
.L4:
	add	r13, 1
	cmp	DWORD PTR [r14], r13d
	jle	.L31
.L18:
	mov	rax, r13
	sal	rax, 4
	add	rax, QWORD PTR 8[r14]
	mov	edx, DWORD PTR [rax]
	test	DWORD PTR DEVICE_TYPE_MIPI_OUTPUT[rip], edx
	je	.L4
	mov	rbx, QWORD PTR 8[rax]
	cmp	QWORD PTR DVO_PORT_MIPIA[rip], rbx
	je	.L12
	cmp	QWORD PTR DVO_PORT_MIPIB[rip], rbx
	je	.L32
	cmp	rbx, QWORD PTR DVO_PORT_MIPIC[rip]
	jne	.L19
.L10:
	mov	rdi, r14
	call	INTEL_GEN@PLT
	cmp	eax, 10
	jle	.L12
	cmp	QWORD PTR DVO_PORT_MIPIB[rip], rbx
	je	.L16
	cmp	QWORD PTR DVO_PORT_MIPIC[rip], rbx
	jne	.L19
.L16:
	mov	rdi, rbx
	sub	rdi, QWORD PTR DVO_PORT_MIPIA[rip]
	add	r13, 1
	call	port_name@PLT
	mov	rdi, r12
	mov	esi, eax
	call	DRM_DEBUG_KMS@PLT
	cmp	DWORD PTR [r14], r13d
	jg	.L18
.L31:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xor	eax, eax
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L32:
	.cfi_restore_state
	mov	rdi, r14
	call	INTEL_GEN@PLT
	cmp	eax, 10
	jg	.L12
	cmp	QWORD PTR DVO_PORT_MIPIC[rip], rbx
	je	.L10
	cmp	rbx, QWORD PTR DVO_PORT_MIPIB[rip]
	je	.L16
	jmp	.L19
	.p2align 4,,10
	.p2align 3
.L12:
	test	rbp, rbp
	je	.L29
	sub	ebx, DWORD PTR DVO_PORT_MIPIA[rip]
	mov	DWORD PTR 0[rbp], ebx
.L29:
	pop	rbx
	.cfi_def_cfa_offset 40
	mov	eax, 1
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
.L26:
	.cfi_restore 3
	.cfi_restore 6
	.cfi_restore 12
	.cfi_restore 13
	.cfi_restore 14
	xor	eax, eax
	ret
	.cfi_endproc
.LFE0:
	.size	intel_bios_is_dsi_present, .-intel_bios_is_dsi_present
	.comm	DVO_PORT_MIPID,8,8
	.comm	DVO_PORT_MIPIC,8,8
	.comm	DVO_PORT_MIPIB,8,8
	.comm	DVO_PORT_MIPIA,8,8
	.comm	DEVICE_TYPE_MIPI_OUTPUT,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_bios.c_intel_bios_is_dsi_present.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"VBT has unsupported DSI port %c\012\000"
	.text
	.align	2
	.global	intel_bios_is_dsi_present
	.syntax unified
	.arm
	.fpu softvfp
	.type	intel_bios_is_dsi_present, %function
intel_bios_is_dsi_present:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	ip, [r0]
	sub	sp, sp, #12
	cmp	ip, #0
	str	r1, [sp, #4]
	ble	.L2
	mov	r5, r0
	mov	r4, #0
	ldr	r7, .L28
	ldr	r6, .L28+4
	ldr	fp, .L28+8
	ldr	r9, .L28+12
	ldr	r8, .L28+16
	b	.L18
.L19:
	ldr	r3, .L28+20
	ldr	r1, [r3]
	cmp	r1, r10
	beq	.L16
	ldr	ip, [r5]
.L4:
	add	r4, r4, #1
	cmp	ip, r4
	ble	.L2
.L18:
	ldr	r3, [r5, #4]
	ldr	r1, [r7]
	ldr	r0, [r3, r4, lsl #3]
	add	r3, r3, r4, lsl #3
	tst	r0, r1
	beq	.L4
	ldr	r10, [r3, #4]
	ldr	r1, [r6]
	cmp	r1, r10
	beq	.L12
	ldr	r1, [fp]
	cmp	r1, r10
	beq	.L27
	ldr	r1, [r9]
	cmp	r10, r1
	bne	.L19
.L10:
	mov	r0, r5
	bl	INTEL_GEN
	cmp	r0, #10
	ble	.L12
	ldr	r1, [fp]
	cmp	r1, r10
	beq	.L16
	ldr	r1, [r9]
	cmp	r1, r10
	bne	.L19
.L16:
	ldr	r0, [r6]
	add	r4, r4, #1
	sub	r0, r10, r0
	bl	port_name
	mov	r1, r0
	mov	r0, r8
	bl	DRM_DEBUG_KMS
	ldr	ip, [r5]
	cmp	ip, r4
	bgt	.L18
.L2:
	mov	r0, #0
.L1:
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L27:
	mov	r0, r5
	bl	INTEL_GEN
	cmp	r0, #10
	bgt	.L12
	ldr	r1, [r9]
	cmp	r1, r10
	beq	.L10
	ldr	r1, [fp]
	cmp	r10, r1
	beq	.L16
	b	.L19
.L12:
	ldr	r3, [sp, #4]
	cmp	r3, #0
	moveq	r0, #1
	beq	.L1
	mov	r0, #1
	ldr	r2, [r6]
	sub	r3, r10, r2
	ldr	r2, [sp, #4]
	str	r3, [r2]
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L29:
	.align	2
.L28:
	.word	DEVICE_TYPE_MIPI_OUTPUT
	.word	DVO_PORT_MIPIA
	.word	DVO_PORT_MIPIB
	.word	DVO_PORT_MIPIC
	.word	.LC0
	.word	DVO_PORT_MIPID
	.size	intel_bios_is_dsi_present, .-intel_bios_is_dsi_present
	.comm	DVO_PORT_MIPID,4,4
	.comm	DVO_PORT_MIPIC,4,4
	.comm	DVO_PORT_MIPIB,4,4
	.comm	DVO_PORT_MIPIA,4,4
	.comm	DEVICE_TYPE_MIPI_OUTPUT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
