	.file	"extr_pinctrl-coh901.c_u300_gpio_config_get.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	u300_gpio_config_get
	.type	u300_gpio_config_get, @function
u300_gpio_config_get:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13, rdx
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	ebx, esi
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	call	gpiochip_get_data@PLT
	mov	esi, DWORD PTR per[rip]
	mov	edi, ebx
	mov	rbp, QWORD PTR 0[r13]
	call	U300_PIN_REG@PLT
	add	ebp, -128
	mov	edi, eax
	call	readl@PLT
	mov	edi, ebx
	mov	r12d, eax
	call	U300_PIN_BIT@PLT
	mov	esi, DWORD PTR pcr[rip]
	mov	edi, ebx
	and	r12d, eax
	call	U300_PIN_REG@PLT
	mov	edi, eax
	call	readl@PLT
	lea	ecx, [rbx+rbx]
	mov	r8d, eax
	mov	eax, DWORD PTR U300_GPIO_PXPCR_PIN_MODE_MASK[rip]
	and	ecx, 14
	sal	eax, cl
	and	eax, r8d
	shr	eax, cl
	cmp	ebp, 4
	ja	.L2
	lea	rcx, .L4[rip]
	mov	QWORD PTR 0[r13], 0
	movsx	rdx, DWORD PTR [rcx+rbp*4]
	add	rdx, rcx
	notrack jmp	rdx
	.section	.rodata
	.align 4
	.align 4
.L4:
	.long	.L8-.L4
	.long	.L7-.L4
	.long	.L6-.L4
	.long	.L5-.L4
	.long	.L3-.L4
	.text
	.p2align 4,,10
	.p2align 3
.L5:
	test	r12d, r12d
	jne	.L16
.L11:
	xor	eax, eax
.L20:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	test	r12d, r12d
	je	.L16
	xor	eax, eax
	jmp	.L20
	.p2align 4,,10
	.p2align 3
.L8:
	cmp	DWORD PTR U300_GPIO_PXPCR_PIN_MODE_OUTPUT_PUSH_PULL[rip], eax
	je	.L11
.L16:
	mov	eax, DWORD PTR EINVAL[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	neg	eax
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	cmp	DWORD PTR U300_GPIO_PXPCR_PIN_MODE_OUTPUT_OPEN_SOURCE[rip], eax
	jne	.L16
	xor	eax, eax
	jmp	.L20
	.p2align 4,,10
	.p2align 3
.L6:
	cmp	DWORD PTR U300_GPIO_PXPCR_PIN_MODE_OUTPUT_OPEN_DRAIN[rip], eax
	jne	.L16
	xor	eax, eax
	jmp	.L20
.L2:
	mov	eax, DWORD PTR ENOTSUPP[rip]
	add	rsp, 8
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	neg	eax
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	u300_gpio_config_get, .-u300_gpio_config_get
	.comm	per,4,4
	.comm	pcr,4,4
	.comm	U300_GPIO_PXPCR_PIN_MODE_OUTPUT_PUSH_PULL,4,4
	.comm	U300_GPIO_PXPCR_PIN_MODE_OUTPUT_OPEN_SOURCE,4,4
	.comm	U300_GPIO_PXPCR_PIN_MODE_OUTPUT_OPEN_DRAIN,4,4
	.comm	U300_GPIO_PXPCR_PIN_MODE_MASK,4,4
	.comm	ENOTSUPP,4,4
	.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-coh901.c_u300_gpio_config_get.c"
	.text
	.align	2
	.global	u300_gpio_config_get
	.syntax unified
	.arm
	.fpu softvfp
	.type	u300_gpio_config_get, %function
u300_gpio_config_get:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r1
	mov	r6, r2
	bl	gpiochip_get_data
	ldr	r3, .L19
	mov	r0, r4
	ldr	r1, [r3]
	ldr	r7, [r6]
	bl	U300_PIN_REG
	bl	readl
	mov	r5, r0
	mov	r0, r4
	bl	U300_PIN_BIT
	mov	r3, r0
	ldr	r2, .L19+4
	mov	r0, r4
	ldr	r1, [r2]
	and	r5, r5, r3
	bl	U300_PIN_REG
	bl	readl
	ldr	r3, .L19+8
	lsl	r4, r4, #1
	ldr	r3, [r3]
	and	r4, r4, #14
	and	r3, r0, r3, lsl r4
	sub	r2, r7, #128
	lsr	r4, r3, r4
	cmp	r2, #4
	ldrls	pc, [pc, r2, asl #2]
	b	.L2
.L4:
	.word	.L8
	.word	.L7
	.word	.L6
	.word	.L5
	.word	.L3
.L3:
	mov	r3, #0
	cmp	r5, r3
	str	r3, [r6]
	beq	.L17
.L11:
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L8:
	mov	r2, #0
	ldr	r3, .L19+12
	str	r2, [r6]
	ldr	r3, [r3]
	cmp	r3, r4
	beq	.L11
.L17:
	ldr	r3, .L19+16
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L6:
	mov	r2, #0
	ldr	r3, .L19+20
	str	r2, [r6]
	ldr	r3, [r3]
	cmp	r3, r4
	bne	.L17
	b	.L11
.L7:
	mov	r2, #0
	ldr	r3, .L19+24
	str	r2, [r6]
	ldr	r3, [r3]
	cmp	r3, r4
	bne	.L17
	b	.L11
.L5:
	mov	r3, #0
	cmp	r5, r3
	str	r3, [r6]
	beq	.L11
	b	.L17
.L2:
	ldr	r3, .L19+28
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L20:
	.align	2
.L19:
	.word	per
	.word	pcr
	.word	U300_GPIO_PXPCR_PIN_MODE_MASK
	.word	U300_GPIO_PXPCR_PIN_MODE_OUTPUT_PUSH_PULL
	.word	EINVAL
	.word	U300_GPIO_PXPCR_PIN_MODE_OUTPUT_OPEN_DRAIN
	.word	U300_GPIO_PXPCR_PIN_MODE_OUTPUT_OPEN_SOURCE
	.word	ENOTSUPP
	.size	u300_gpio_config_get, .-u300_gpio_config_get
	.comm	per,4,4
	.comm	pcr,4,4
	.comm	U300_GPIO_PXPCR_PIN_MODE_OUTPUT_PUSH_PULL,4,4
	.comm	U300_GPIO_PXPCR_PIN_MODE_OUTPUT_OPEN_SOURCE,4,4
	.comm	U300_GPIO_PXPCR_PIN_MODE_OUTPUT_OPEN_DRAIN,4,4
	.comm	U300_GPIO_PXPCR_PIN_MODE_MASK,4,4
	.comm	ENOTSUPP,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
