	.file	"extr_af_x25.c___x25_destroy_socket.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	__x25_destroy_socket, @function
__x25_destroy_socket:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	lea	rbx, 24[r12]
	call	x25_stop_heartbeat@PLT
	mov	rdi, r12
	call	x25_stop_timer@PLT
	mov	rdi, r12
	call	x25_remove_socket@PLT
	mov	rdi, r12
	call	x25_clear_queues@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L4:
	mov	rdi, QWORD PTR 0[rbp]
	cmp	rdi, r12
	je	.L3
	mov	esi, DWORD PTR SOCK_DEAD[rip]
	call	sock_set_flag@PLT
	mov	rdi, QWORD PTR 0[rbp]
	call	x25_start_heartbeat@PLT
	mov	rdi, QWORD PTR 0[rbp]
	call	x25_sk@PLT
	mov	edx, DWORD PTR X25_STATE_0[rip]
	mov	DWORD PTR [rax], edx
.L3:
	mov	rdi, rbp
	call	kfree_skb@PLT
.L2:
	mov	rdi, rbx
	call	skb_dequeue@PLT
	mov	rbp, rax
	test	rax, rax
	jne	.L4
	mov	rdi, r12
	call	sk_has_allocations@PLT
	test	rax, rax
	je	.L5
	mov	eax, DWORD PTR HZ[rip]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	rdi, r12
	pop	rbp
	.cfi_def_cfa_offset 16
	lea	eax, [rax+rax*4]
	add	eax, eax
	cdqe
	add	rax, QWORD PTR jiffies[rip]
	mov	QWORD PTR 16[r12], rax
	mov	eax, DWORD PTR x25_destroy_timer[rip]
	mov	QWORD PTR [r12], r12
	mov	DWORD PTR 8[r12], eax
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	add_timer@PLT
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	pop	rbx
	.cfi_def_cfa_offset 24
	mov	rdi, r12
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	__sock_put@PLT
	.cfi_endproc
.LFE0:
	.size	__x25_destroy_socket, .-__x25_destroy_socket
	.comm	x25_destroy_timer,4,4
	.comm	jiffies,8,8
	.comm	X25_STATE_0,4,4
	.comm	SOCK_DEAD,4,4
	.comm	HZ,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_af_x25.c___x25_destroy_socket.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	__x25_destroy_socket, %function
__x25_destroy_socket:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r5, r0
	bl	x25_stop_heartbeat
	mov	r0, r5
	bl	x25_stop_timer
	mov	r0, r5
	bl	x25_remove_socket
	mov	r0, r5
	bl	x25_clear_queues
	ldr	r8, .L8
	ldr	r7, .L8+4
	add	r6, r5, #12
	b	.L2
.L4:
	ldr	r0, [r4]
	cmp	r0, r5
	beq	.L3
	ldr	r1, [r8]
	bl	sock_set_flag
	ldr	r0, [r4]
	bl	x25_start_heartbeat
	ldr	r0, [r4]
	bl	x25_sk
	ldr	r3, [r7]
	str	r3, [r0]
.L3:
	mov	r0, r4
	bl	kfree_skb
.L2:
	mov	r0, r6
	bl	skb_dequeue
	subs	r4, r0, #0
	bne	.L4
	mov	r0, r5
	bl	sk_has_allocations
	cmp	r0, #0
	beq	.L5
	ldr	r3, .L8+8
	ldr	r2, .L8+12
	ldr	r3, [r3]
	ldr	r1, .L8+16
	ldr	r2, [r2]
	ldr	r1, [r1]
	add	r3, r3, r3, lsl #2
	add	r3, r2, r3, lsl #1
	mov	r0, r5
	stmib	r5, {r1, r3}
	str	r5, [r5]
	pop	{r4, r5, r6, r7, r8, lr}
	b	add_timer
.L5:
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, lr}
	b	__sock_put
.L9:
	.align	2
.L8:
	.word	SOCK_DEAD
	.word	X25_STATE_0
	.word	HZ
	.word	jiffies
	.word	x25_destroy_timer
	.size	__x25_destroy_socket, .-__x25_destroy_socket
	.comm	x25_destroy_timer,4,4
	.comm	jiffies,4,4
	.comm	X25_STATE_0,4,4
	.comm	SOCK_DEAD,4,4
	.comm	HZ,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
