	.file	"extr_nodemanager.c_o2nm_node_local_store.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	o2nm_node_local_store, @function
o2nm_node_local_store:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13, rdx
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	sub	rsp, 16
	.cfi_def_cfa_offset 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	call	to_o2nm_node@PLT
	mov	rdi, rbp
	mov	rsi, rsp
	xor	edx, edx
	mov	QWORD PTR [rsp], rbp
	mov	rbx, rax
	call	simple_strtoul@PLT
	mov	rbp, rax
	mov	rax, QWORD PTR [rsp]
	test	rax, rax
	je	.L6
	movzx	eax, BYTE PTR [rax]
	test	al, al
	je	.L3
	cmp	al, 10
	je	.L3
.L6:
	mov	r12, QWORD PTR EINVAL[rip]
	neg	r12
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L34
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	mov	rax, r12
	pop	rbx
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	lea	r12, 16[rbx]
	mov	edi, DWORD PTR O2NM_NODE_ATTR_ADDRESS[rip]
	mov	rsi, r12
	call	test_bit@PLT
	test	eax, eax
	je	.L6
	mov	edi, DWORD PTR O2NM_NODE_ATTR_NUM[rip]
	mov	rsi, r12
	call	test_bit@PLT
	test	eax, eax
	je	.L6
	mov	edi, DWORD PTR O2NM_NODE_ATTR_PORT[rip]
	mov	rsi, r12
	call	test_bit@PLT
	test	eax, eax
	je	.L6
	xor	eax, eax
	call	o2nm_lock_subsystem@PLT
	mov	rdi, rbx
	call	to_o2nm_cluster_from_node@PLT
	mov	r12, QWORD PTR EINVAL[rip]
	mov	r14, rax
	neg	r12
	test	rax, rax
	je	.L8
	mov	rax, QWORD PTR [rax]
	test	rbp, rbp
	jne	.L35
	test	rax, rax
	je	.L13
	mov	rax, QWORD PTR [rbx]
	cmp	QWORD PTR 8[r14], rax
	je	.L36
.L13:
	mov	QWORD PTR 8[rbx], 0
	mov	r12, r13
.L8:
	xor	eax, eax
	call	o2nm_unlock_subsystem@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L35:
	cmp	rax, 1
	je	.L37
	test	rax, rax
	je	.L12
.L32:
	mov	rax, QWORD PTR [rbx]
.L11:
	mov	QWORD PTR 8[rbx], 1
	mov	r12, r13
	mov	QWORD PTR [r14], 1
	mov	QWORD PTR 8[r14], rax
	jmp	.L8
.L37:
	mov	rax, QWORD PTR [rbx]
	cmp	QWORD PTR 8[r14], rax
	je	.L11
	mov	r12, QWORD PTR EBUSY[rip]
	neg	r12
	jmp	.L8
.L12:
	mov	rdi, rbx
	call	o2net_start_listening@PLT
	mov	r12, rax
	test	rax, rax
	je	.L32
	jmp	.L8
.L36:
	mov	rdi, rbx
	call	o2net_stop_listening@PLT
	mov	rax, QWORD PTR O2NM_INVALID_NODE_NUM[rip]
	mov	QWORD PTR 8[r14], rax
	jmp	.L13
.L34:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	o2nm_node_local_store, .-o2nm_node_local_store
	.comm	O2NM_NODE_ATTR_PORT,4,4
	.comm	O2NM_NODE_ATTR_NUM,4,4
	.comm	O2NM_NODE_ATTR_ADDRESS,4,4
	.comm	O2NM_INVALID_NODE_NUM,8,8
	.comm	EINVAL,8,8
	.comm	EBUSY,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_nodemanager.c_o2nm_node_local_store.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	o2nm_node_local_store, %function
o2nm_node_local_store:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	ldr	r3, .L33
	sub	sp, sp, #12
	mov	r4, r1
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	mov	r5, r2
	bl	to_o2nm_node
	mov	r2, #0
	mov	r6, r0
	mov	r1, sp
	mov	r0, r4
	str	r4, [sp]
	bl	simple_strtoul
	ldr	r3, [sp]
	cmp	r3, #0
	beq	.L6
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	cmpne	r3, #10
	beq	.L3
.L6:
	ldr	r3, .L33+4
	ldr	r4, [r3]
	rsb	r4, r4, #0
.L1:
	ldr	r3, .L33
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L28
	mov	r0, r4
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L3:
	ldr	r3, .L33+8
	add	r7, r6, #8
	mov	r4, r0
	mov	r1, r7
	ldr	r0, [r3]
	bl	test_bit
	cmp	r0, #0
	beq	.L6
	ldr	r3, .L33+12
	mov	r1, r7
	ldr	r0, [r3]
	bl	test_bit
	cmp	r0, #0
	beq	.L6
	ldr	r3, .L33+16
	mov	r1, r7
	ldr	r0, [r3]
	bl	test_bit
	cmp	r0, #0
	beq	.L6
	bl	o2nm_lock_subsystem
	mov	r0, r6
	bl	to_o2nm_cluster_from_node
	subs	r7, r0, #0
	beq	.L29
	cmp	r4, #0
	ldr	r3, [r7]
	bne	.L30
	cmp	r3, #0
	beq	.L13
	ldr	r2, [r7, #4]
	ldr	r3, [r6]
	cmp	r2, r3
	beq	.L31
.L13:
	mov	r3, #0
	mov	r4, r5
	str	r3, [r6, #4]
.L8:
	bl	o2nm_unlock_subsystem
	b	.L1
.L30:
	cmp	r3, #1
	beq	.L32
	cmp	r3, #0
	beq	.L12
.L26:
	ldr	r2, [r6]
.L11:
	mov	r3, #1
	mov	r4, r5
	str	r3, [r6, #4]
	str	r3, [r7]
	str	r2, [r7, #4]
	b	.L8
.L29:
	ldr	r3, .L33+4
	ldr	r4, [r3]
	rsb	r4, r4, #0
	b	.L8
.L32:
	ldr	r2, [r6]
	ldr	r3, [r7, #4]
	cmp	r3, r2
	beq	.L11
	ldr	r3, .L33+20
	ldr	r4, [r3]
	rsb	r4, r4, #0
	b	.L8
.L12:
	mov	r0, r6
	bl	o2net_start_listening
	subs	r4, r0, #0
	beq	.L26
	b	.L8
.L31:
	mov	r0, r6
	bl	o2net_stop_listening
	ldr	r3, .L33+24
	ldr	r3, [r3]
	str	r3, [r7, #4]
	b	.L13
.L28:
	bl	__stack_chk_fail
.L34:
	.align	2
.L33:
	.word	.LC0
	.word	EINVAL
	.word	O2NM_NODE_ATTR_ADDRESS
	.word	O2NM_NODE_ATTR_NUM
	.word	O2NM_NODE_ATTR_PORT
	.word	EBUSY
	.word	O2NM_INVALID_NODE_NUM
	.size	o2nm_node_local_store, .-o2nm_node_local_store
	.comm	O2NM_NODE_ATTR_PORT,4,4
	.comm	O2NM_NODE_ATTR_NUM,4,4
	.comm	O2NM_NODE_ATTR_ADDRESS,4,4
	.comm	O2NM_INVALID_NODE_NUM,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
