	.file	"extr_intel_bios.c_get_port_by_ddc_pin.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	get_port_by_ddc_pin, @function
get_port_by_ddc_pin:
.LFB0:
	.cfi_startproc
	endbr64
	mov	r8d, DWORD PTR PORT_A[rip]
	mov	edx, DWORD PTR I915_MAX_PORTS[rip]
	cmp	r8d, edx
	jnb	.L2
	mov	rcx, QWORD PTR [rdi]
	.p2align 4,,10
	.p2align 3
.L5:
	mov	eax, r8d
	sal	rax, 4
	add	rax, rcx
	cmp	QWORD PTR 8[rax], 0
	je	.L3
	cmp	QWORD PTR [rax], rsi
	je	.L1
.L3:
	add	r8d, 1
	cmp	edx, r8d
	ja	.L5
.L2:
	mov	r8d, DWORD PTR PORT_NONE[rip]
.L1:
	mov	eax, r8d
	ret
	.cfi_endproc
.LFE0:
	.size	get_port_by_ddc_pin, .-get_port_by_ddc_pin
	.comm	PORT_NONE,4,4
	.comm	PORT_A,4,4
	.comm	I915_MAX_PORTS,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_get_port_by_ddc_pin.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	get_port_by_ddc_pin, %function
get_port_by_ddc_pin:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L16
	ldr	r2, .L16+4
	ldr	r3, [r3]
	ldr	ip, [r2]
	cmp	r3, ip
	bcs	.L11
	str	lr, [sp, #-4]!
	ldr	lr, [r0]
	add	r0, lr, #4
.L5:
	ldr	r2, [r0, r3, lsl #3]
	cmp	r2, #0
	beq	.L3
	ldr	r2, [lr, r3, lsl #3]
	cmp	r2, r1
	beq	.L1
.L3:
	add	r3, r3, #1
	cmp	ip, r3
	bhi	.L5
	ldr	r3, .L16+8
	ldr	r3, [r3]
.L1:
	mov	r0, r3
	ldr	pc, [sp], #4
.L11:
	ldr	r3, .L16+8
	ldr	r3, [r3]
	mov	r0, r3
	bx	lr
.L17:
	.align	2
.L16:
	.word	PORT_A
	.word	I915_MAX_PORTS
	.word	PORT_NONE
	.size	get_port_by_ddc_pin, .-get_port_by_ddc_pin
	.comm	PORT_NONE,4,4
	.comm	PORT_A,4,4
	.comm	I915_MAX_PORTS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
