	.file	"extr_pinctrl-merrifield.c_mrfld_gpio_request_enable.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	mrfld_gpio_request_enable, @function
mrfld_gpio_request_enable:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12d, edx
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	call	pinctrl_dev_get_drvdata@PLT
	mov	esi, r12d
	mov	ebx, DWORD PTR BUFCFG_PINMODE_GPIO[rip]
	mov	r14d, DWORD PTR BUFCFG_PINMODE_SHIFT[rip]
	mov	rdi, rax
	mov	r13d, DWORD PTR BUFCFG_PINMODE_MASK[rip]
	mov	rbp, rax
	call	mrfld_buf_available@PLT
	test	eax, eax
	jne	.L2
	mov	eax, DWORD PTR EBUSY[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	neg	eax
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	xor	r15d, r15d
	mov	rdi, rbp
	mov	rsi, r15
	call	raw_spin_lock_irqsave@PLT
	mov	ecx, r14d
	mov	esi, r12d
	mov	rdi, rbp
	sal	ebx, cl
	mov	ecx, r13d
	mov	edx, ebx
	call	mrfld_update_bufcfg@PLT
	mov	rsi, r15
	mov	rdi, rbp
	call	raw_spin_unlock_irqrestore@PLT
	add	rsp, 8
	.cfi_def_cfa_offset 56
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	mrfld_gpio_request_enable, .-mrfld_gpio_request_enable
	.comm	EBUSY,4,4
	.comm	BUFCFG_PINMODE_SHIFT,4,4
	.comm	BUFCFG_PINMODE_MASK,4,4
	.comm	BUFCFG_PINMODE_GPIO,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-merrifield.c_mrfld_gpio_request_enable.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	mrfld_gpio_request_enable, %function
mrfld_gpio_request_enable:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r4, r2
	bl	pinctrl_dev_get_drvdata
	ldr	ip, .L6
	ldr	r2, .L6+4
	ldr	r3, .L6+8
	mov	r1, r4
	mov	r5, r0
	ldr	r7, [ip]
	ldr	r6, [r2]
	ldr	r8, [r3]
	bl	mrfld_buf_available
	cmp	r0, #0
	bne	.L2
	ldr	r3, .L6+12
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L2:
	mov	r9, #0
	mov	r0, r5
	mov	r1, r9
	bl	raw_spin_lock_irqsave
	mov	r3, r8
	mov	r1, r4
	lsl	r2, r7, r6
	mov	r0, r5
	bl	mrfld_update_bufcfg
	mov	r1, r9
	mov	r0, r5
	bl	raw_spin_unlock_irqrestore
	mov	r0, r9
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L7:
	.align	2
.L6:
	.word	BUFCFG_PINMODE_GPIO
	.word	BUFCFG_PINMODE_SHIFT
	.word	BUFCFG_PINMODE_MASK
	.word	EBUSY
	.size	mrfld_gpio_request_enable, .-mrfld_gpio_request_enable
	.comm	EBUSY,4,4
	.comm	BUFCFG_PINMODE_SHIFT,4,4
	.comm	BUFCFG_PINMODE_MASK,4,4
	.comm	BUFCFG_PINMODE_GPIO,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
