	.file	"extr_ax25_iface.c_ax25_protocol_release.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	ax25_protocol_release
	.type	ax25_protocol_release, @function
ax25_protocol_release:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	mov	ebx, edi
	lea	rdi, protocol_list_lock[rip]
	call	write_lock_bh@PLT
	mov	rcx, QWORD PTR protocol_list[rip]
	test	rcx, rcx
	je	.L2
	mov	rax, QWORD PTR 8[rcx]
	cmp	DWORD PTR [rcx], ebx
	jne	.L3
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L4:
	mov	rdx, QWORD PTR 8[rax]
	cmp	DWORD PTR [rax], ebx
	je	.L13
	mov	rcx, rax
	mov	rax, rdx
.L3:
	test	rax, rax
	jne	.L4
.L2:
	lea	rdi, protocol_list_lock[rip]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	jmp	write_unlock_bh@PLT
	.p2align 4,,10
	.p2align 3
.L13:
	.cfi_restore_state
	mov	QWORD PTR 8[rcx], rdx
	lea	rdi, protocol_list_lock[rip]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	jmp	write_unlock_bh@PLT
	.p2align 4,,10
	.p2align 3
.L12:
	.cfi_restore_state
	lea	rdi, protocol_list_lock[rip]
	pop	rbx
	.cfi_def_cfa_offset 8
	mov	QWORD PTR protocol_list[rip], rax
	jmp	write_unlock_bh@PLT
	.cfi_endproc
.LFE0:
	.size	ax25_protocol_release, .-ax25_protocol_release
	.comm	protocol_list_lock,4,4
	.comm	protocol_list,8,8
	.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_ax25_iface.c_ax25_protocol_release.c"
	.text
	.align	2
	.global	ax25_protocol_release
	.syntax unified
	.arm
	.fpu softvfp
	.type	ax25_protocol_release, %function
ax25_protocol_release:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, lr}
	mov	r4, r0
	ldr	r0, .L13
	bl	write_lock_bh
	ldr	r2, .L13+4
	ldr	r0, [r2]
	cmp	r0, #0
	beq	.L2
	ldm	r0, {r1, r3}
	cmp	r1, r4
	streq	r3, [r2]
	bne	.L3
	b	.L2
.L4:
	ldm	r3, {r1, r2}
	cmp	r1, r4
	beq	.L12
	mov	r0, r3
	mov	r3, r2
.L3:
	cmp	r3, #0
	bne	.L4
.L2:
	ldr	r0, .L13
	pop	{r4, lr}
	b	write_unlock_bh
.L12:
	str	r2, [r0, #4]
	pop	{r4, lr}
	ldr	r0, .L13
	b	write_unlock_bh
.L14:
	.align	2
.L13:
	.word	protocol_list_lock
	.word	protocol_list
	.size	ax25_protocol_release, .-ax25_protocol_release
	.comm	protocol_list_lock,4,4
	.comm	protocol_list,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
