	.file	"extr_pinctrl-intel.c_intel_gpio_to_pin.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	intel_gpio_to_pin, @function
intel_gpio_to_pin:
.LFB0:
	.cfi_startproc
	endbr64
	mov	eax, DWORD PTR [rdi]
	test	eax, eax
	jle	.L2
	mov	r10, QWORD PTR 8[rdi]
	sub	eax, 1
	sal	rax, 4
	lea	r11, 16[r10+rax]
.L8:
	mov	edi, DWORD PTR [r10]
	test	edi, edi
	jle	.L3
	mov	rax, QWORD PTR 8[r10]
	sub	edi, 1
	lea	rdi, [rdi+rdi*2]
	lea	r8, 12[rax+rdi*4]
	.p2align 4,,10
	.p2align 3
.L7:
	mov	edi, DWORD PTR [rax]
	cmp	edi, esi
	ja	.L4
	mov	r9d, DWORD PTR 4[rax]
	add	r9d, edi
	cmp	r9d, esi
	ja	.L18
.L4:
	add	rax, 12
	cmp	r8, rax
	jne	.L7
.L3:
	add	r10, 16
	cmp	r11, r10
	jne	.L8
.L2:
	mov	r8d, DWORD PTR EINVAL[rip]
	neg	r8d
	mov	eax, r8d
	ret
	.p2align 4,,10
	.p2align 3
.L18:
	sub	esi, edi
	add	esi, DWORD PTR 8[rax]
	mov	r8d, esi
	test	rdx, rdx
	je	.L5
	mov	QWORD PTR [rdx], r10
.L5:
	test	rcx, rcx
	je	.L1
	mov	QWORD PTR [rcx], rax
.L1:
	mov	eax, r8d
	ret
	.cfi_endproc
.LFE0:
	.size	intel_gpio_to_pin, .-intel_gpio_to_pin
	.comm	EINVAL,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_pinctrl-intel.c_intel_gpio_to_pin.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	intel_gpio_to_pin, %function
intel_gpio_to_pin:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, lr}
	ldr	r9, [r0]
	cmp	r9, #0
	ble	.L2
	ldr	r8, [r0, #4]
	mov	r6, #0
	mov	r7, r8
.L8:
	ldr	r5, [r8, r6, lsl #3]
	cmp	r5, #0
	ble	.L3
	mov	r0, #0
	ldr	ip, [r7, #4]
.L7:
	ldr	lr, [ip]
	add	r0, r0, #1
	cmp	lr, r1
	bhi	.L4
	ldr	r4, [ip, #4]
	add	r4, lr, r4
	cmp	r4, r1
	bhi	.L19
.L4:
	cmp	r0, r5
	add	ip, ip, #12
	bne	.L7
.L3:
	add	r6, r6, #1
	cmp	r9, r6
	add	r7, r7, #8
	bne	.L8
.L2:
	ldr	r3, .L20
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L19:
	ldr	r0, [ip, #8]
	cmp	r2, #0
	strne	r7, [r2]
	sub	r1, r1, lr
	cmp	r3, #0
	add	r0, r1, r0
	strne	ip, [r3]
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L21:
	.align	2
.L20:
	.word	EINVAL
	.size	intel_gpio_to_pin, .-intel_gpio_to_pin
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
