	.file	"extr_pinctrl-cygnus-mux.c_cygnus_gpio_disable_free.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"gpio disable free pin=%u offset=0x%x shift=%u\n"
	.text
	.p2align 4
	.type	cygnus_gpio_disable_free, @function
cygnus_gpio_disable_free:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12d, edx
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	rbx, rdi
	call	pinctrl_dev_get_drvdata@PLT
	mov	edx, r12d
	mov	rbp, rax
	mov	rax, QWORD PTR 8[rbx]
	mov	rax, QWORD PTR [rax]
	mov	r13, QWORD PTR [rax+rdx*8]
	mov	eax, DWORD PTR 16[r13]
	test	eax, eax
	jne	.L5
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	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
.L5:
	.cfi_restore_state
	xor	r14d, r14d
	mov	rdi, rbp
	mov	rsi, r14
	call	spin_lock_irqsave@PLT
	mov	rdi, QWORD PTR 8[r13]
	add	rdi, QWORD PTR 8[rbp]
	call	readl@PLT
	mov	ecx, DWORD PTR 0[r13]
	mov	edx, 3
	mov	rsi, QWORD PTR 8[r13]
	add	rsi, QWORD PTR 8[rbp]
	sal	edx, cl
	mov	edi, edx
	not	edi
	and	edi, eax
	call	writel@PLT
	mov	rsi, r14
	mov	rdi, rbp
	call	spin_unlock_irqrestore@PLT
	mov	rcx, QWORD PTR 8[r13]
	mov	r8d, DWORD PTR 0[r13]
	mov	edx, r12d
	mov	edi, DWORD PTR [rbx]
	lea	rsi, .LC0[rip]
	pop	rbx
	.cfi_def_cfa_offset 40
	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
	jmp	dev_err@PLT
	.cfi_endproc
.LFE0:
	.size	cygnus_gpio_disable_free, .-cygnus_gpio_disable_free
	.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-cygnus-mux.c_cygnus_gpio_disable_free.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"gpio disable free pin=%u offset=0x%x shift=%u\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	cygnus_gpio_disable_free, %function
cygnus_gpio_disable_free:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r0
	mov	r5, r2
	sub	sp, sp, #8
	bl	pinctrl_dev_get_drvdata
	ldr	r3, [r4, #4]
	ldr	r3, [r3]
	ldr	r7, [r3, r5, lsl #2]
	ldr	r3, [r7, #8]
	cmp	r3, #0
	beq	.L1
	mov	r8, #0
	mov	r6, r0
	mov	r1, r8
	bl	spin_lock_irqsave
	ldr	r3, [r7, #4]
	ldr	r0, [r6, #4]
	add	r0, r0, r3
	bl	readl
	mov	r2, #3
	ldr	r3, [r7]
	ldr	r1, [r6, #4]
	bic	r0, r0, r2, lsl r3
	ldr	r3, [r7, #4]
	add	r1, r1, r3
	bl	writel
	mov	r1, r8
	mov	r0, r6
	bl	spin_unlock_irqrestore
	ldm	r7, {r1, r3}
	ldr	r0, [r4]
	mov	r2, r5
	str	r1, [sp]
	ldr	r1, .L8
	bl	dev_err
.L1:
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L9:
	.align	2
.L8:
	.word	.LC0
	.size	cygnus_gpio_disable_free, .-cygnus_gpio_disable_free
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
