	.file	"extr_gpio-spear-spics.c_spics_set_value.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	spics_set_value, @function
spics_set_value:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12d, esi
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	ebp, edx
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	call	gpiochip_get_data@PLT
	mov	rdi, QWORD PTR 16[rax]
	mov	rbx, rax
	add	rdi, QWORD PTR 24[rax]
	call	readl_relaxed@PLT
	cmp	DWORD PTR [rbx], r12d
	je	.L2
	mov	ecx, DWORD PTR 8[rbx]
	mov	edi, DWORD PTR 4[rbx]
	mov	DWORD PTR [rbx], r12d
	sal	edi, cl
	sal	r12d, cl
	not	edi
	and	eax, edi
	or	eax, r12d
.L2:
	mov	ecx, DWORD PTR 12[rbx]
	mov	edi, ebp
	mov	rsi, QWORD PTR 16[rbx]
	add	rsi, QWORD PTR 24[rbx]
	pop	rbx
	.cfi_def_cfa_offset 24
	btr	eax, ecx
	sal	edi, cl
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	or	edi, eax
	jmp	writel_relaxed@PLT
	.cfi_endproc
.LFE0:
	.size	spics_set_value, .-spics_set_value
	.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_gpio-spear-spics.c_spics_set_value.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	spics_set_value, %function
spics_set_value:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r5, r1
	mov	r6, r2
	bl	gpiochip_get_data
	mov	r4, r0
	ldr	r0, [r0, #20]
	ldr	r3, [r4, #16]
	add	r0, r0, r3
	bl	readl_relaxed
	mov	ip, #1
	ldr	r3, [r4]
	ldr	r1, [r4, #20]
	cmp	r3, r5
	ldmibne	r4, {r2, r3}
	bicne	r0, r0, r2, lsl r3
	orrne	r0, r0, r5, lsl r3
	ldr	r3, [r4, #12]
	ldr	r2, [r4, #16]
	bic	r0, r0, ip, lsl r3
	strne	r5, [r4]
	orr	r0, r0, r6, lsl r3
	add	r1, r1, r2
	pop	{r4, r5, r6, lr}
	b	writel_relaxed
	.size	spics_set_value, .-spics_set_value
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
