	.file	"extr_necp_client.c_necp_find_client_and_lock.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	necp_find_client_and_lock, @function
necp_find_client_and_lock:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12d, edi
	sub	rsp, 32
	.cfi_def_cfa_offset 48
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	call	NECP_CLIENT_TREE_ASSERT_LOCKED@PLT
	mov	edi, r12d
	call	necp_client_id_is_flow@PLT
	test	rax, rax
	je	.L2
	xor	eax, eax
	call	NECP_FLOW_TREE_LOCK_SHARED@PLT
	mov	edi, DWORD PTR 16[rsp]
	mov	esi, r12d
	call	uuid_copy@PLT
	mov	edi, DWORD PTR _necp_client_flow_global_tree[rip]
	mov	rdx, rsp
	lea	rsi, necp_client_flow_global_tree[rip]
	call	RB_FIND@PLT
	mov	r12, rax
	test	rax, rax
	je	.L12
	mov	r12, QWORD PTR 8[rax]
	xor	eax, eax
	call	NECP_FLOW_TREE_UNLOCK@PLT
	test	r12, r12
	je	.L1
	mov	rdi, r12
	call	NECP_CLIENT_LOCK@PLT
.L1:
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L13
	add	rsp, 32
	.cfi_remember_state
	.cfi_def_cfa_offset 16
	mov	rax, r12
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	edi, DWORD PTR [rsp]
	mov	esi, r12d
	call	uuid_copy@PLT
	mov	edi, DWORD PTR _necp_client_global_tree[rip]
	mov	rdx, rsp
	lea	rsi, necp_client_global_tree[rip]
	call	RB_FIND@PLT
	mov	r12, rax
	test	r12, r12
	je	.L1
	mov	rdi, r12
	call	NECP_CLIENT_LOCK@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L12:
	xor	eax, eax
	call	NECP_FLOW_TREE_UNLOCK@PLT
	jmp	.L1
.L13:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	necp_find_client_and_lock, .-necp_find_client_and_lock
	.comm	necp_client_global_tree,4,4
	.comm	necp_client_flow_global_tree,4,4
	.comm	_necp_client_global_tree,4,4
	.comm	_necp_client_flow_global_tree,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_necp_client.c_necp_find_client_and_lock.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	necp_find_client_and_lock, %function
necp_find_client_and_lock:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, lr}
	mov	r4, r0
	ldr	r3, .L14
	sub	sp, sp, #16
	ldr	r3, [r3]
	str	r3, [sp, #12]
	mov	r3,#0
	bl	NECP_CLIENT_TREE_ASSERT_LOCKED
	mov	r0, r4
	bl	necp_client_id_is_flow
	cmp	r0, #0
	beq	.L2
	bl	NECP_FLOW_TREE_LOCK_SHARED
	mov	r1, r4
	ldr	r0, [sp, #8]
	bl	uuid_copy
	ldr	r3, .L14+4
	mov	r2, sp
	ldr	r0, [r3]
	ldr	r1, .L14+8
	bl	RB_FIND
	subs	r4, r0, #0
	beq	.L12
	ldr	r4, [r4, #4]
	bl	NECP_FLOW_TREE_UNLOCK
	cmp	r4, #0
	beq	.L1
	mov	r0, r4
	bl	NECP_CLIENT_LOCK
.L1:
	ldr	r3, .L14
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L13
	mov	r0, r4
	add	sp, sp, #16
	@ sp needed
	pop	{r4, pc}
.L2:
	mov	r1, r4
	ldr	r0, [sp]
	bl	uuid_copy
	ldr	r3, .L14+12
	mov	r2, sp
	ldr	r0, [r3]
	ldr	r1, .L14+16
	bl	RB_FIND
	mov	r4, r0
	cmp	r4, #0
	beq	.L1
	mov	r0, r4
	bl	NECP_CLIENT_LOCK
	b	.L1
.L12:
	bl	NECP_FLOW_TREE_UNLOCK
	b	.L1
.L13:
	bl	__stack_chk_fail
.L15:
	.align	2
.L14:
	.word	.LC0
	.word	_necp_client_flow_global_tree
	.word	necp_client_flow_global_tree
	.word	_necp_client_global_tree
	.word	necp_client_global_tree
	.size	necp_find_client_and_lock, .-necp_find_client_and_lock
	.comm	necp_client_global_tree,4,4
	.comm	necp_client_flow_global_tree,4,4
	.comm	_necp_client_global_tree,4,4
	.comm	_necp_client_flow_global_tree,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
