	.file	"extr_gpio-vr41xx.c_vr41xx_gpio_set.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	vr41xx_gpio_set, @function
vr41xx_gpio_set:
.LFB0:
	.cfi_startproc
	endbr64
	cmp	DWORD PTR [rdi], esi
	jbe	.L1
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12d, edx
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	cmp	esi, 15
	ja	.L3
	mov	ebx, 1
	mov	ecx, esi
	mov	ebp, DWORD PTR GIUPIODL[rip]
	sal	ebx, cl
.L4:
	xor	r13d, r13d
	lea	rdi, giu_lock[rip]
	mov	rsi, r13
	call	spin_lock_irqsave@PLT
	mov	edi, ebp
	call	giu_read@PLT
	mov	edi, ebp
	mov	esi, eax
	mov	eax, ebx
	not	ebx
	and	ebx, esi
	or	eax, esi
	test	r12d, r12d
	cmove	eax, ebx
	mov	esi, eax
	call	giu_write@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rsi, r13
	lea	rdi, giu_lock[rip]
	pop	rbx
	.cfi_restore 3
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_restore 6
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_restore 12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_restore 13
	.cfi_def_cfa_offset 8
	jmp	spin_unlock_irqrestore@PLT
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	cmp	esi, 31
	jbe	.L13
	cmp	esi, 47
	ja	.L6
	lea	ecx, -32[rsi]
	mov	ebx, 1
	mov	ebp, DWORD PTR GIUPODATL[rip]
	sal	ebx, cl
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L1:
	.cfi_def_cfa_offset 8
	.cfi_restore 3
	.cfi_restore 6
	.cfi_restore 12
	.cfi_restore 13
	ret
	.p2align 4,,10
	.p2align 3
.L13:
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -40
	.cfi_offset 6, -32
	.cfi_offset 12, -24
	.cfi_offset 13, -16
	lea	ecx, -16[rsi]
	mov	ebx, 1
	mov	ebp, DWORD PTR GIUPIODH[rip]
	sal	ebx, cl
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L6:
	lea	ecx, -48[rsi]
	mov	ebx, 1
	mov	ebp, DWORD PTR GIUPODATH[rip]
	sal	ebx, cl
	jmp	.L4
	.cfi_endproc
.LFE0:
	.size	vr41xx_gpio_set, .-vr41xx_gpio_set
	.comm	giu_lock,4,4
	.comm	GIUPODATL,4,4
	.comm	GIUPODATH,4,4
	.comm	GIUPIODL,4,4
	.comm	GIUPIODH,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_gpio-vr41xx.c_vr41xx_gpio_set.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	vr41xx_gpio_set, %function
vr41xx_gpio_set:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, [r0]
	cmp	r3, r1
	bxls	lr
	cmp	r1, #15
	push	{r4, r5, r6, lr}
	mov	r4, r2
	mov	r5, #1
	bhi	.L3
	ldr	r3, .L13
	lsl	r5, r5, r1
	ldr	r6, [r3]
.L4:
	mov	r1, #0
	ldr	r0, .L13+4
	bl	spin_lock_irqsave
	mov	r0, r6
	bl	giu_read
	cmp	r4, #0
	orrne	r1, r5, r0
	biceq	r1, r0, r5
	mov	r0, r6
	bl	giu_write
	pop	{r4, r5, r6, lr}
	mov	r1, #0
	ldr	r0, .L13+4
	b	spin_unlock_irqrestore
.L3:
	cmp	r1, #31
	bhi	.L5
	ldr	r3, .L13+8
	sub	r1, r1, #16
	ldr	r6, [r3]
	lsl	r5, r5, r1
	b	.L4
.L5:
	cmp	r1, #47
	ldrls	r3, .L13+12
	ldrhi	r3, .L13+16
	subls	r1, r1, #32
	subhi	r1, r1, #48
	ldrls	r6, [r3]
	ldrhi	r6, [r3]
	lslls	r5, r5, r1
	lslhi	r5, r5, r1
	b	.L4
.L14:
	.align	2
.L13:
	.word	GIUPIODL
	.word	giu_lock
	.word	GIUPIODH
	.word	GIUPODATL
	.word	GIUPODATH
	.size	vr41xx_gpio_set, .-vr41xx_gpio_set
	.comm	giu_lock,4,4
	.comm	GIUPODATL,4,4
	.comm	GIUPODATH,4,4
	.comm	GIUPIODL,4,4
	.comm	GIUPIODH,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
