	.file	"extr_pinctrl-pistachio.c_pistachio_pinconf_get.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Property %u not supported\n"
	.text
	.p2align 4
	.type	pistachio_pinconf_get, @function
pistachio_pinconf_get:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12d, esi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rdx
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	call	pinctrl_dev_get_drvdata@PLT
	mov	rdi, QWORD PTR [rbx]
	mov	r13, rax
	call	pinconf_to_config_param@PLT
	mov	ebp, eax
	add	eax, -128
	cmp	eax, 6
	ja	.L2
	lea	rdx, .L4[rip]
	mov	edi, r12d
	movsx	rax, DWORD PTR [rdx+rax*4]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L4:
	.long	.L10-.L4
	.long	.L9-.L4
	.long	.L8-.L4
	.long	.L7-.L4
	.long	.L6-.L4
	.long	.L5-.L4
	.long	.L3-.L4
	.text
	.p2align 4,,10
	.p2align 3
.L5:
	call	PADS_PU_PD_REG@PLT
	mov	rdi, r13
	mov	esi, eax
	call	pctl_readl@PLT
	mov	edi, r12d
	mov	r13d, eax
	call	PADS_PU_PD_SHIFT@PLT
	xor	esi, esi
	mov	ecx, eax
	sar	r13d, cl
	and	r13d, DWORD PTR PADS_PU_PD_MASK[rip]
	cmp	r13d, DWORD PTR PADS_PU_PD_HIGHZ[rip]
	sete	sil
.L11:
	mov	edi, ebp
	call	pinconf_to_config_packed@PLT
	mov	QWORD PTR [rbx], rax
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xor	eax, eax
	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
	call	PADS_PU_PD_REG@PLT
	mov	rdi, r13
	mov	esi, eax
	call	pctl_readl@PLT
	mov	edi, r12d
	mov	r13d, eax
	call	PADS_PU_PD_SHIFT@PLT
	xor	esi, esi
	mov	ecx, eax
	sar	r13d, cl
	and	r13d, DWORD PTR PADS_PU_PD_MASK[rip]
	cmp	r13d, DWORD PTR PADS_PU_PD_BUS[rip]
	sete	sil
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L10:
	call	PADS_SLEW_RATE_REG@PLT
	mov	rdi, r13
	mov	esi, eax
	call	pctl_readl@PLT
	mov	edi, r12d
	mov	r13d, eax
	call	PADS_SLEW_RATE_BIT@PLT
	xor	esi, esi
	test	eax, r13d
	setne	sil
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L9:
	call	PADS_SCHMITT_EN_REG@PLT
	mov	rdi, r13
	mov	esi, eax
	call	pctl_readl@PLT
	mov	edi, r12d
	mov	r13d, eax
	call	PADS_SCHMITT_EN_BIT@PLT
	xor	esi, esi
	test	eax, r13d
	setne	sil
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L8:
	call	PADS_DRIVE_STRENGTH_REG@PLT
	mov	rdi, r13
	mov	esi, eax
	call	pctl_readl@PLT
	mov	edi, r12d
	mov	r13d, eax
	call	PADS_DRIVE_STRENGTH_SHIFT@PLT
	mov	esi, 12
	mov	ecx, eax
	sar	r13d, cl
	and	r13d, DWORD PTR PADS_DRIVE_STRENGTH_MASK[rip]
	lea	eax, -135[r13]
	cmp	eax, 2
	ja	.L11
	lea	rdx, CSWTCH.13[rip]
	mov	esi, DWORD PTR [rdx+rax*4]
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L7:
	call	PADS_PU_PD_REG@PLT
	mov	rdi, r13
	mov	esi, eax
	call	pctl_readl@PLT
	mov	edi, r12d
	mov	r13d, eax
	call	PADS_PU_PD_SHIFT@PLT
	xor	esi, esi
	mov	ecx, eax
	sar	r13d, cl
	and	r13d, DWORD PTR PADS_PU_PD_MASK[rip]
	cmp	r13d, DWORD PTR PADS_PU_PD_UP[rip]
	sete	sil
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L6:
	call	PADS_PU_PD_REG@PLT
	mov	rdi, r13
	mov	esi, eax
	call	pctl_readl@PLT
	mov	edi, r12d
	mov	r13d, eax
	call	PADS_PU_PD_SHIFT@PLT
	xor	esi, esi
	mov	ecx, eax
	sar	r13d, cl
	and	r13d, DWORD PTR PADS_PU_PD_MASK[rip]
	cmp	r13d, DWORD PTR PADS_PU_PD_DOWN[rip]
	sete	sil
	jmp	.L11
.L2:
	mov	edi, DWORD PTR 0[r13]
	mov	edx, ebp
	lea	rsi, .LC0[rip]
	call	dev_dbg@PLT
	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	pistachio_pinconf_get, .-pistachio_pinconf_get
	.section	.rodata
	.align 8
	.type	CSWTCH.13, @object
	.size	CSWTCH.13, 12
CSWTCH.13:
	.long	8
	.long	4
	.long	2
	.comm	PADS_PU_PD_UP,4,4
	.comm	PADS_PU_PD_MASK,4,4
	.comm	PADS_PU_PD_HIGHZ,4,4
	.comm	PADS_PU_PD_DOWN,4,4
	.comm	PADS_PU_PD_BUS,4,4
	.comm	PADS_DRIVE_STRENGTH_MASK,4,4
	.comm	ENOTSUPP,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-pistachio.c_pistachio_pinconf_get.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Property %u not supported\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	pistachio_pinconf_get, %function
pistachio_pinconf_get:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r5, r2
	mov	r6, r1
	bl	pinctrl_dev_get_drvdata
	mov	r7, r0
	ldr	r0, [r5]
	bl	pinconf_to_config_param
	sub	r3, r0, #128
	mov	r4, r0
	cmp	r3, #6
	ldrls	pc, [pc, r3, asl #2]
	b	.L2
.L4:
	.word	.L10
	.word	.L9
	.word	.L8
	.word	.L7
	.word	.L6
	.word	.L5
	.word	.L3
.L3:
	mov	r0, r6
	bl	PADS_PU_PD_REG
	mov	r1, r0
	mov	r0, r7
	bl	pctl_readl
	mov	r1, r0
	mov	r0, r6
	mov	r6, r1
	bl	PADS_PU_PD_SHIFT
	ldr	r3, .L17
	ldr	r2, .L17+4
.L15:
	ldr	r3, [r3]
	ldr	r2, [r2]
	and	r1, r3, r6, asr r0
	sub	r1, r1, r2
	clz	r1, r1
	lsr	r1, r1, #5
.L11:
	mov	r0, r4
	bl	pinconf_to_config_packed
	mov	r3, r0
	mov	r0, #0
	str	r3, [r5]
	pop	{r4, r5, r6, r7, r8, pc}
.L10:
	mov	r0, r6
	bl	PADS_SLEW_RATE_REG
	mov	r1, r0
	mov	r0, r7
	bl	pctl_readl
	mov	r3, r0
	mov	r0, r6
	mov	r6, r3
	bl	PADS_SLEW_RATE_BIT
	tst	r0, r6
	movne	r1, #1
	moveq	r1, #0
	b	.L11
.L9:
	mov	r0, r6
	bl	PADS_SCHMITT_EN_REG
	mov	r1, r0
	mov	r0, r7
	bl	pctl_readl
	mov	r3, r0
	mov	r0, r6
	mov	r6, r3
	bl	PADS_SCHMITT_EN_BIT
	tst	r0, r6
	movne	r1, #1
	moveq	r1, #0
	b	.L11
.L8:
	mov	r0, r6
	bl	PADS_DRIVE_STRENGTH_REG
	mov	r1, r0
	mov	r0, r7
	bl	pctl_readl
	mov	r3, r0
	mov	r0, r6
	mov	r6, r3
	bl	PADS_DRIVE_STRENGTH_SHIFT
	ldr	r3, .L17+8
	ldr	r3, [r3]
	and	r0, r3, r6, asr r0
	sub	r0, r0, #135
	cmp	r0, #2
	movhi	r1, #12
	ldrls	r3, .L17+12
	ldrls	r1, [r3, r0, lsl #2]
	b	.L11
.L7:
	mov	r0, r6
	bl	PADS_PU_PD_REG
	mov	r1, r0
	mov	r0, r7
	bl	pctl_readl
	mov	r1, r0
	mov	r0, r6
	mov	r6, r1
	bl	PADS_PU_PD_SHIFT
	ldr	r3, .L17
	ldr	r2, .L17+16
	b	.L15
.L6:
	mov	r0, r6
	bl	PADS_PU_PD_REG
	mov	r1, r0
	mov	r0, r7
	bl	pctl_readl
	mov	r1, r0
	mov	r0, r6
	mov	r6, r1
	bl	PADS_PU_PD_SHIFT
	ldr	r3, .L17
	ldr	r2, .L17+20
	b	.L15
.L5:
	mov	r0, r6
	bl	PADS_PU_PD_REG
	mov	r1, r0
	mov	r0, r7
	bl	pctl_readl
	mov	r1, r0
	mov	r0, r6
	mov	r6, r1
	bl	PADS_PU_PD_SHIFT
	ldr	r3, .L17
	ldr	r2, .L17+24
	b	.L15
.L2:
	mov	r2, r0
	ldr	r1, .L17+28
	ldr	r0, [r7]
	bl	dev_dbg
	ldr	r3, .L17+32
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L18:
	.align	2
.L17:
	.word	PADS_PU_PD_MASK
	.word	PADS_PU_PD_BUS
	.word	PADS_DRIVE_STRENGTH_MASK
	.word	.LANCHOR0
	.word	PADS_PU_PD_UP
	.word	PADS_PU_PD_DOWN
	.word	PADS_PU_PD_HIGHZ
	.word	.LC0
	.word	ENOTSUPP
	.size	pistachio_pinconf_get, .-pistachio_pinconf_get
	.comm	PADS_PU_PD_UP,4,4
	.comm	PADS_PU_PD_MASK,4,4
	.comm	PADS_PU_PD_HIGHZ,4,4
	.comm	PADS_PU_PD_DOWN,4,4
	.comm	PADS_PU_PD_BUS,4,4
	.comm	PADS_DRIVE_STRENGTH_MASK,4,4
	.comm	ENOTSUPP,4,4
	.section	.rodata
	.align	2
	.set	.LANCHOR0,. + 0
	.type	CSWTCH.13, %object
	.size	CSWTCH.13, 12
CSWTCH.13:
	.word	8
	.word	4
	.word	2
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
