	.file	"extr_node.c_tipc_nl_peer_rm.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	tipc_nl_peer_rm
	.type	tipc_nl_peer_rm, @function
tipc_nl_peer_rm:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r15
	push	r14
	push	r13
	push	r12
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	mov	r12, rsi
	sub	rsp, 16
	mov	edi, DWORD PTR [rdi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -40[rbp], rax
	xor	eax, eax
	call	sock_net@PLT
	mov	esi, DWORD PTR tipc_net_id[rip]
	mov	rdi, rax
	mov	r13, rax
	call	net_generic@PLT
	mov	esi, DWORD PTR TIPC_NLA_NET_MAX[rip]
	mov	rcx, rsp
	mov	r14, rax
	lea	eax, 1[rsi]
	cdqe
	lea	rax, 15[0+rax*8]
	mov	rdx, rax
	and	rax, -4096
	sub	rcx, rax
	and	rdx, -16
	mov	rax, rcx
	cmp	rsp, rax
	je	.L3
.L19:
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	cmp	rsp, rax
	jne	.L19
.L3:
	and	edx, 4095
	sub	rsp, rdx
	test	rdx, rdx
	jne	.L20
.L4:
	mov	rax, QWORD PTR 8[r12]
	mov	rdx, QWORD PTR TIPC_NLA_NET[rip]
	mov	r15, rsp
	mov	edx, DWORD PTR [rax+rdx*4]
	test	edx, edx
	jne	.L5
.L17:
	mov	r12d, DWORD PTR EINVAL[rip]
	neg	r12d
.L1:
	mov	rax, QWORD PTR -40[rbp]
	xor	rax, QWORD PTR fs:40
	jne	.L21
	lea	rsp, -32[rbp]
	mov	eax, r12d
	pop	r12
	pop	r13
	pop	r14
	pop	r15
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	mov	r8d, DWORD PTR [r12]
	mov	ecx, DWORD PTR tipc_nl_net_policy[rip]
	mov	rdi, r15
	call	nla_parse_nested_deprecated@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L1
	mov	rax, QWORD PTR TIPC_NLA_NET_ADDR[rip]
	mov	rdi, QWORD PTR [r15+rax*8]
	test	rdi, rdi
	je	.L17
	call	nla_get_u32@PLT
	mov	rdi, r13
	mov	esi, eax
	mov	r15d, eax
	call	in_own_node@PLT
	test	rax, rax
	je	.L8
	mov	r12d, DWORD PTR ENOTSUPP[rip]
	neg	r12d
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L20:
	or	QWORD PTR -8[rsp+rdx], 0
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L8:
	mov	rdi, r14
	call	spin_lock_bh@PLT
	mov	rdi, r13
	mov	esi, r15d
	call	tipc_node_find@PLT
	mov	r13, rax
	test	rax, rax
	je	.L22
	mov	rdi, rax
	call	tipc_node_write_lock@PLT
	mov	rax, QWORD PTR 0[r13]
	cmp	rax, QWORD PTR SELF_DOWN_PEER_DOWN[rip]
	mov	rdi, r13
	je	.L10
	cmp	rax, QWORD PTR SELF_DOWN_PEER_LEAVING[rip]
	jne	.L23
.L10:
	call	tipc_node_clear_links@PLT
	mov	rdi, r13
	call	tipc_node_write_unlock@PLT
	mov	rdi, r13
	call	tipc_node_delete@PLT
.L11:
	mov	rdi, r13
	call	tipc_node_put@PLT
	mov	rdi, r14
	call	spin_unlock_bh@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L23:
	call	tipc_node_write_unlock@PLT
	mov	r12d, DWORD PTR EBUSY[rip]
	neg	r12d
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L22:
	mov	rdi, r14
	call	spin_unlock_bh@PLT
	mov	r12d, DWORD PTR ENXIO[rip]
	neg	r12d
	jmp	.L1
.L21:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	tipc_nl_peer_rm, .-tipc_nl_peer_rm
	.comm	tipc_nl_net_policy,4,4
	.comm	tipc_net_id,4,4
	.comm	TIPC_NLA_NET_MAX,4,4
	.comm	TIPC_NLA_NET_ADDR,8,8
	.comm	TIPC_NLA_NET,8,8
	.comm	SELF_DOWN_PEER_LEAVING,8,8
	.comm	SELF_DOWN_PEER_DOWN,8,8
	.comm	ENXIO,4,4
	.comm	ENOTSUPP,4,4
	.comm	EINVAL,4,4
	.comm	EBUSY,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_node.c_tipc_nl_peer_rm.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	tipc_nl_peer_rm
	.syntax unified
	.arm
	.fpu softvfp
	.type	tipc_nl_peer_rm, %function
tipc_nl_peer_rm:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, fp, lr}
	add	fp, sp, #20
	sub	sp, sp, #16
	ldr	r3, .L16
	ldr	r0, [r0]
	mov	r4, r1
	ldr	r3, [r3]
	str	r3, [fp, #-24]
	mov	r3,#0
	bl	sock_net
	ldr	r3, .L16+4
	mov	r5, r0
	ldr	r1, [r3]
	bl	net_generic
	ldr	r2, .L16+8
	ldr	r3, .L16+12
	ldr	r1, [r2]
	ldr	ip, [r3]
	ldr	r2, [r4, #4]
	lsl	r3, r1, #2
	ldr	r2, [r2, ip, lsl #2]
	add	r3, r3, #11
	bic	r3, r3, #7
	cmp	r2, #0
	sub	sp, sp, r3
	bne	.L2
.L11:
	ldr	r3, .L16+16
	ldr	r4, [r3]
	rsb	r4, r4, #0
.L1:
	ldr	r3, .L16
	ldr	r2, [r3]
	ldr	r3, [fp, #-24]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L13
	mov	r0, r4
	sub	sp, fp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, fp, pc}
.L2:
	mov	r6, r0
	ldr	r0, [r4]
	ldr	r3, .L16+20
	str	r0, [sp]
	add	r7, sp, #8
	mov	r0, r7
	ldr	r3, [r3]
	bl	nla_parse_nested_deprecated
	subs	r4, r0, #0
	bne	.L1
	ldr	r3, .L16+24
	ldr	r3, [r3]
	ldr	r0, [r7, r3, lsl #2]
	cmp	r0, #0
	beq	.L11
	bl	nla_get_u32
	mov	r7, r0
	mov	r0, r5
	mov	r1, r7
	bl	in_own_node
	subs	r4, r0, #0
	ldrne	r3, .L16+28
	ldrne	r4, [r3]
	rsbne	r4, r4, #0
	bne	.L1
.L5:
	mov	r0, r6
	bl	spin_lock_bh
	mov	r0, r5
	mov	r1, r7
	bl	tipc_node_find
	subs	r5, r0, #0
	beq	.L14
	bl	tipc_node_write_lock
	ldr	r2, .L16+32
	ldr	r3, [r5]
	ldr	r2, [r2]
	mov	r0, r5
	cmp	r3, r2
	beq	.L7
	ldr	r2, .L16+36
	ldr	r2, [r2]
	cmp	r3, r2
	bne	.L15
.L7:
	bl	tipc_node_clear_links
	mov	r0, r5
	bl	tipc_node_write_unlock
	mov	r0, r5
	bl	tipc_node_delete
.L8:
	mov	r0, r5
	bl	tipc_node_put
	mov	r0, r6
	bl	spin_unlock_bh
	b	.L1
.L15:
	bl	tipc_node_write_unlock
	ldr	r3, .L16+40
	ldr	r4, [r3]
	rsb	r4, r4, #0
	b	.L8
.L14:
	mov	r0, r6
	bl	spin_unlock_bh
	ldr	r3, .L16+44
	ldr	r4, [r3]
	rsb	r4, r4, #0
	b	.L1
.L13:
	bl	__stack_chk_fail
.L17:
	.align	2
.L16:
	.word	.LC0
	.word	tipc_net_id
	.word	TIPC_NLA_NET_MAX
	.word	TIPC_NLA_NET
	.word	EINVAL
	.word	tipc_nl_net_policy
	.word	TIPC_NLA_NET_ADDR
	.word	ENOTSUPP
	.word	SELF_DOWN_PEER_DOWN
	.word	SELF_DOWN_PEER_LEAVING
	.word	EBUSY
	.word	ENXIO
	.size	tipc_nl_peer_rm, .-tipc_nl_peer_rm
	.comm	tipc_nl_net_policy,4,4
	.comm	tipc_net_id,4,4
	.comm	TIPC_NLA_NET_MAX,4,4
	.comm	TIPC_NLA_NET_ADDR,4,4
	.comm	TIPC_NLA_NET,4,4
	.comm	SELF_DOWN_PEER_LEAVING,4,4
	.comm	SELF_DOWN_PEER_DOWN,4,4
	.comm	ENXIO,4,4
	.comm	ENOTSUPP,4,4
	.comm	EINVAL,4,4
	.comm	EBUSY,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
