	.file	"extr_gpio.c_gpio_release.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	gpio_release, @function
gpio_release:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	lea	rdi, alarm_lock[rip]
	mov	rbx, rsi
	call	spin_lock_irq@PLT
	mov	rax, QWORD PTR alarmlist[rip]
	mov	rdi, QWORD PTR [rbx]
	cmp	rax, rdi
	je	.L16
	.p2align 4,,10
	.p2align 3
.L2:
	mov	rdx, rax
	mov	rax, QWORD PTR 24[rax]
	cmp	rax, rdi
	jne	.L2
	mov	rax, QWORD PTR 24[rdi]
	mov	QWORD PTR 24[rdx], rax
.L3:
	call	kfree@PLT
	mov	rax, QWORD PTR alarmlist[rip]
	test	rax, rax
	je	.L8
	mov	r8, QWORD PTR GPIO_MINOR_A[rip]
	xor	esi, esi
	xor	r9d, r9d
	xor	r10d, r10d
	mov	edi, 1
	.p2align 4,,10
	.p2align 3
.L7:
	mov	rcx, QWORD PTR 16[rax]
	movsx	rdx, DWORD PTR 8[rax]
	cmp	QWORD PTR [rax], r8
	jne	.L5
	or	r10, rcx
	or	r9, rdx
.L5:
	mov	rax, QWORD PTR 24[rax]
	or	rcx, rdx
	cmovne	rsi, rdi
	test	rax, rax
	jne	.L7
.L4:
	lea	rdi, alarm_lock[rip]
	mov	QWORD PTR gpio_some_alarms[rip], rsi
	mov	QWORD PTR gpio_pa_high_alarms[rip], r10
	mov	QWORD PTR gpio_pa_low_alarms[rip], r9
	call	spin_unlock_irq@PLT
	xor	eax, eax
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L16:
	.cfi_restore_state
	mov	rax, QWORD PTR 24[rdi]
	mov	QWORD PTR alarmlist[rip], rax
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L8:
	xor	esi, esi
	xor	r9d, r9d
	xor	r10d, r10d
	jmp	.L4
	.cfi_endproc
.LFE0:
	.size	gpio_release, .-gpio_release
	.comm	gpio_some_alarms,8,8
	.comm	gpio_pa_low_alarms,8,8
	.comm	gpio_pa_high_alarms,8,8
	.comm	alarmlist,8,8
	.comm	alarm_lock,4,4
	.comm	GPIO_MINOR_A,8,8
	.comm	CONFIG_ETRAX_VIRTUAL_GPIO_INTERRUPT_PA_PIN,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.c_gpio_release.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	gpio_release, %function
gpio_release:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r1
	ldr	r5, .L18
	ldr	r0, .L18+4
	bl	spin_lock_irq
	ldr	r0, [r4]
	ldr	r3, [r5]
	cmp	r3, r0
	beq	.L16
.L2:
	mov	r2, r3
	ldr	r3, [r3, #12]
	cmp	r3, r0
	bne	.L2
	ldr	r3, [r0, #12]
	str	r3, [r2, #12]
	bl	kfree
	ldr	r3, [r5]
	cmp	r3, #0
	beq	.L8
.L17:
	mov	r2, #0
	mov	lr, r2
	mov	r4, r2
	ldr	r1, .L18+8
	ldr	ip, [r1]
.L7:
	ldr	r1, [r3]
	ldr	r0, [r3, #8]
	cmp	r1, ip
	ldr	r1, [r3, #4]
	ldr	r3, [r3, #12]
	orreq	r4, r4, r0
	orreq	lr, lr, r1
	orrs	r1, r0, r1
	movne	r2, #1
	cmp	r3, #0
	bne	.L7
.L4:
	ldr	r0, .L18+12
	ldr	r1, .L18+16
	ldr	r3, .L18+20
	str	r2, [r0]
	ldr	r0, .L18+4
	str	r4, [r1]
	str	lr, [r3]
	bl	spin_unlock_irq
	mov	r0, #0
	pop	{r4, r5, r6, pc}
.L16:
	ldr	r3, [r0, #12]
	str	r3, [r5]
	bl	kfree
	ldr	r3, [r5]
	cmp	r3, #0
	bne	.L17
.L8:
	mov	r2, r3
	mov	lr, r3
	mov	r4, r3
	b	.L4
.L19:
	.align	2
.L18:
	.word	alarmlist
	.word	alarm_lock
	.word	GPIO_MINOR_A
	.word	gpio_some_alarms
	.word	gpio_pa_high_alarms
	.word	gpio_pa_low_alarms
	.size	gpio_release, .-gpio_release
	.comm	gpio_some_alarms,4,4
	.comm	gpio_pa_low_alarms,4,4
	.comm	gpio_pa_high_alarms,4,4
	.comm	alarmlist,4,4
	.comm	alarm_lock,4,4
	.comm	GPIO_MINOR_A,4,4
	.comm	CONFIG_ETRAX_VIRTUAL_GPIO_INTERRUPT_PA_PIN,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
