	.file	"extr_rtree.c_rtree_node_init.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	rtree_node_init, @function
rtree_node_init:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	r14, rcx
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13, rsi
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	ebx, edx
	call	malloc_mutex_lock@PLT
	mov	esi, DWORD PTR ATOMIC_RELAXED[rip]
	mov	rdi, r14
	call	atomic_load_p@PLT
	mov	r12, rax
	test	rax, rax
	je	.L8
.L2:
	mov	rsi, r13
	mov	rdi, rbp
	call	malloc_mutex_unlock@PLT
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rax, r12
	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
.L8:
	.cfi_restore_state
	mov	edi, 1
	call	ZU@PLT
	mov	rdx, QWORD PTR rtree_levels[rip]
	mov	rsi, r13
	mov	rdi, rbp
	mov	ecx, DWORD PTR [rdx+rbx*4]
	sal	eax, cl
	mov	edx, eax
	call	rtree_node_alloc@PLT
	mov	r12, rax
	test	rax, rax
	je	.L2
	mov	edx, DWORD PTR ATOMIC_RELEASE[rip]
	mov	rsi, rax
	mov	rdi, r14
	call	atomic_store_p@PLT
	jmp	.L2
	.cfi_endproc
.LFE0:
	.size	rtree_node_init, .-rtree_node_init
	.comm	rtree_levels,8,8
	.comm	ATOMIC_RELEASE,4,4
	.comm	ATOMIC_RELAXED,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_rtree.c_rtree_node_init.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	rtree_node_init, %function
rtree_node_init:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r7, r3
	mov	r8, r2
	mov	r6, r1
	mov	r5, r0
	bl	malloc_mutex_lock
	ldr	r1, .L8
	mov	r0, r7
	ldr	r1, [r1]
	bl	atomic_load_p
	subs	r4, r0, #0
	beq	.L7
.L2:
	mov	r1, r6
	mov	r0, r5
	bl	malloc_mutex_unlock
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L7:
	mov	r0, #1
	bl	ZU
	mov	r2, r0
	ldr	r3, .L8+4
	mov	r1, r6
	ldr	r3, [r3]
	mov	r0, r5
	ldr	r3, [r3, r8, lsl #2]
	lsl	r2, r2, r3
	bl	rtree_node_alloc
	subs	r4, r0, #0
	beq	.L2
	ldr	r3, .L8+8
	mov	r0, r7
	mov	r1, r4
	ldr	r2, [r3]
	bl	atomic_store_p
	b	.L2
.L9:
	.align	2
.L8:
	.word	ATOMIC_RELAXED
	.word	rtree_levels
	.word	ATOMIC_RELEASE
	.size	rtree_node_init, .-rtree_node_init
	.comm	rtree_levels,4,4
	.comm	ATOMIC_RELEASE,4,4
	.comm	ATOMIC_RELAXED,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
