	.file	"extr_core.c_pinctrl_gpio_set_config.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	pinctrl_gpio_set_config
	.type	pinctrl_gpio_set_config, @function
pinctrl_gpio_set_config:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	ebp, edi
	sub	rsp, 40
	.cfi_def_cfa_offset 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	mov	rdx, rsp
	mov	QWORD PTR 16[rsp], rsi
	lea	rsi, 8[rsp]
	call	pinctrl_get_device_gpio_range@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L1
	mov	rdi, QWORD PTR 8[rsp]
	lea	r12, 16[rsp]
	call	mutex_lock@PLT
	mov	rdi, QWORD PTR [rsp]
	mov	esi, ebp
	call	gpio_to_pin@PLT
	mov	rdi, r12
	mov	ebp, eax
	call	ARRAY_SIZE@PLT
	mov	rdi, QWORD PTR 8[rsp]
	mov	rdx, r12
	mov	esi, ebp
	mov	ecx, eax
	call	pinconf_set_config@PLT
	mov	rdi, QWORD PTR 8[rsp]
	mov	r12d, eax
	call	mutex_unlock@PLT
.L1:
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L7
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	eax, r12d
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
.L7:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	pinctrl_gpio_set_config, .-pinctrl_gpio_set_config
	.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_core.c_pinctrl_gpio_set_config.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	pinctrl_gpio_set_config
	.syntax unified
	.arm
	.fpu softvfp
	.type	pinctrl_gpio_set_config, %function
pinctrl_gpio_set_config:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	mov	r3, r1
	push	{r4, r5, lr}
	sub	sp, sp, #20
	str	r3, [sp, #8]
	ldr	r3, .L7
	mov	r2, sp
	add	r1, sp, #4
	ldr	r3, [r3]
	str	r3, [sp, #12]
	mov	r3,#0
	mov	r5, r0
	bl	pinctrl_get_device_gpio_range
	subs	r4, r0, #0
	bne	.L1
	ldr	r0, [sp, #4]
	bl	mutex_lock
	mov	r1, r5
	ldr	r0, [sp]
	bl	gpio_to_pin
	mov	r4, r0
	add	r0, sp, #8
	ldr	r5, [sp, #4]
	bl	ARRAY_SIZE
	mov	r1, r4
	mov	r3, r0
	add	r2, sp, #8
	mov	r0, r5
	bl	pinconf_set_config
	mov	r4, r0
	ldr	r0, [sp, #4]
	bl	mutex_unlock
.L1:
	ldr	r3, .L7
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L6
	mov	r0, r4
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, pc}
.L6:
	bl	__stack_chk_fail
.L8:
	.align	2
.L7:
	.word	.LC0
	.size	pinctrl_gpio_set_config, .-pinctrl_gpio_set_config
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
