	.file	"extr_pinctrl-bcm2835.c_bcm2835_pinconf_set.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	bcm2835_pinconf_set, @function
bcm2835_pinconf_set:
.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
	mov	r13d, esi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	ebp, ecx
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rdx
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	call	pinctrl_dev_get_drvdata@PLT
	test	ebp, ebp
	je	.L2
	mov	r12, rax
	lea	eax, -1[rbp]
	lea	rbp, .L5[rip]
	lea	r14, 8[rbx+rax*8]
.L14:
	mov	rdi, QWORD PTR [rbx]
	call	pinconf_to_config_param@PLT
	mov	rdi, QWORD PTR [rbx]
	mov	r15d, eax
	call	pinconf_to_config_argument@PLT
	lea	ecx, -128[r15]
	cmp	ecx, 4
	ja	.L3
	movsx	rcx, DWORD PTR 0[rbp+rcx*4]
	add	rcx, rbp
	notrack jmp	rcx
	.section	.rodata
	.align 4
	.align 4
.L5:
	.long	.L9-.L5
	.long	.L8-.L5
	.long	.L7-.L5
	.long	.L6-.L5
	.long	.L4-.L5
	.text
	.p2align 4,,10
	.p2align 3
.L6:
	mov	edx, DWORD PTR BCM2835_PUD_OFF[rip]
	mov	esi, r13d
	mov	rdi, r12
	call	bcm2835_pull_config_set@PLT
.L10:
	add	rbx, 8
	cmp	rbx, r14
	jne	.L14
.L2:
	add	rsp, 8
	.cfi_remember_state
	.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
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	mov	edx, DWORD PTR BCM2835_PUD_DOWN[rip]
	mov	esi, r13d
	mov	rdi, r12
	call	bcm2835_pull_config_set@PLT
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L8:
	mov	edx, DWORD PTR BCM2835_PUD_UP[rip]
	mov	esi, r13d
	mov	rdi, r12
	call	bcm2835_pull_config_set@PLT
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L9:
	test	eax, eax
	mov	esi, DWORD PTR GPSET0[rip]
	mov	edx, r13d
	mov	rdi, r12
	cmove	esi, DWORD PTR GPCLR0[rip]
	call	bcm2835_gpio_set_bit@PLT
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L4:
	mov	edx, eax
	mov	esi, r13d
	mov	rdi, r12
	call	bcm2835_pull_config_set@PLT
	jmp	.L10
.L3:
	mov	eax, DWORD PTR ENOTSUPP[rip]
	add	rsp, 8
	.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
	.cfi_endproc
.LFE0:
	.size	bcm2835_pinconf_set, .-bcm2835_pinconf_set
	.comm	GPSET0,4,4
	.comm	GPCLR0,4,4
	.comm	ENOTSUPP,4,4
	.comm	BCM2835_PUD_UP,4,4
	.comm	BCM2835_PUD_OFF,4,4
	.comm	BCM2835_PUD_DOWN,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-bcm2835.c_bcm2835_pinconf_set.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	bcm2835_pinconf_set, %function
bcm2835_pinconf_set:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r3, r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r6, r3
	mov	r8, r1
	mov	r4, r2
	bl	pinctrl_dev_get_drvdata
	cmp	r6, #0
	beq	.L2
	mov	r7, r0
	mov	r5, #0
	ldr	fp, .L21
	ldr	r10, .L21+4
	sub	r4, r4, #4
.L14:
	ldr	r0, [r4, #4]!
	bl	pinconf_to_config_param
	mov	r9, r0
	ldr	r0, [r4]
	bl	pinconf_to_config_argument
	sub	r3, r9, #128
	cmp	r3, #4
	ldrls	pc, [pc, r3, asl #2]
	b	.L3
.L5:
	.word	.L9
	.word	.L8
	.word	.L7
	.word	.L6
	.word	.L4
.L4:
	mov	r2, r0
	mov	r1, r8
	mov	r0, r7
	bl	bcm2835_pull_config_set
.L10:
	add	r5, r5, #1
	cmp	r5, r6
	bne	.L14
.L2:
	mov	r0, #0
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L6:
	ldr	r3, .L21+8
	mov	r1, r8
	mov	r0, r7
	ldr	r2, [r3]
	bl	bcm2835_pull_config_set
	b	.L10
.L7:
	mov	r1, r8
	mov	r0, r7
	ldr	r2, [r10]
	bl	bcm2835_pull_config_set
	b	.L10
.L8:
	mov	r1, r8
	mov	r0, r7
	ldr	r2, [fp]
	bl	bcm2835_pull_config_set
	b	.L10
.L9:
	cmp	r0, #0
	ldrne	r3, .L21+12
	ldreq	r3, .L21+16
	mov	r2, r8
	mov	r0, r7
	ldr	r1, [r3]
	bl	bcm2835_gpio_set_bit
	b	.L10
.L3:
	ldr	r3, .L21+20
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L22:
	.align	2
.L21:
	.word	BCM2835_PUD_UP
	.word	BCM2835_PUD_DOWN
	.word	BCM2835_PUD_OFF
	.word	GPSET0
	.word	GPCLR0
	.word	ENOTSUPP
	.size	bcm2835_pinconf_set, .-bcm2835_pinconf_set
	.comm	GPSET0,4,4
	.comm	GPCLR0,4,4
	.comm	ENOTSUPP,4,4
	.comm	BCM2835_PUD_UP,4,4
	.comm	BCM2835_PUD_OFF,4,4
	.comm	BCM2835_PUD_DOWN,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
