	.file	"extr_uu_avl.c_uu_avl_pool_create.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	uu_avl_pool_create
	.type	uu_avl_pool_create, @function
uu_avl_pool_create:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	test	rdi, rdi
	je	.L4
	mov	rbx, rsi
	mov	esi, DWORD PTR UU_NAME_DOMAIN[rip]
	mov	rbp, rdi
	mov	r13, rdx
	mov	r14, rcx
	mov	r15d, r8d
	call	uu_check_name@PLT
	cmp	eax, -1
	je	.L4
	lea	rax, 4[r13]
	cmp	rax, rbx
	ja	.L4
	test	r14, r14
	je	.L4
	mov	eax, DWORD PTR UU_AVL_POOL_DEBUG[rip]
	not	eax
	test	eax, r15d
	jne	.L16
	mov	edi, 88
	call	uu_zalloc@PLT
	mov	r12, rax
	test	rax, rax
	je	.L17
	mov	edi, DWORD PTR 80[rax]
	mov	edx, 4
	mov	rsi, rbp
	call	strlcpy@PLT
	mov	QWORD PTR [r12], r13
	mov	QWORD PTR 8[r12], rbx
	mov	QWORD PTR 72[r12], r14
	test	DWORD PTR UU_AVL_POOL_DEBUG[rip], r15d
	je	.L7
	mov	DWORD PTR 16[r12], 1
.L7:
	mov	QWORD PTR 64[r12], 0
	xor	esi, esi
	lea	rdi, 56[r12]
	lea	rbp, 40[r12]
	call	pthread_mutex_init@PLT
	mov	rdi, rbp
	call	UU_PTR_ENCODE@PLT
	mov	rdi, rbp
	mov	QWORD PTR 48[r12], rax
	call	UU_PTR_ENCODE@PLT
	lea	rdi, uu_apool_list_lock[rip]
	mov	QWORD PTR 40[r12], rax
	call	pthread_mutex_lock@PLT
	lea	rax, uu_null_apool[rip]
	lea	rdi, uu_apool_list_lock[rip]
	mov	QWORD PTR 24[r12], rax
	mov	rax, QWORD PTR uu_null_apool[rip+32]
	mov	QWORD PTR 32[r12], rax
	mov	QWORD PTR uu_null_apool[rip+32], r12
	mov	QWORD PTR 24[rax], r12
	call	pthread_mutex_unlock@PLT
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	rax, r12
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L4:
	.cfi_restore_state
	mov	edi, DWORD PTR UU_ERROR_INVALID_ARGUMENT[rip]
	xor	r12d, r12d
	call	uu_set_error@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L16:
	mov	edi, DWORD PTR UU_ERROR_UNKNOWN_FLAG[rip]
	xor	r12d, r12d
	call	uu_set_error@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L17:
	mov	edi, DWORD PTR UU_ERROR_NO_MEMORY[rip]
	call	uu_set_error@PLT
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	uu_avl_pool_create, .-uu_avl_pool_create
	.comm	uu_null_apool,88,32
	.comm	uu_apool_list_lock,4,4
	.comm	UU_NAME_DOMAIN,4,4
	.comm	UU_ERROR_UNKNOWN_FLAG,4,4
	.comm	UU_ERROR_NO_MEMORY,4,4
	.comm	UU_ERROR_INVALID_ARGUMENT,4,4
	.comm	UU_AVL_POOL_DEBUG,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_uu_avl.c_uu_avl_pool_create.c"
	.text
	.align	2
	.global	uu_avl_pool_create
	.syntax unified
	.arm
	.fpu softvfp
	.type	uu_avl_pool_create, %function
uu_avl_pool_create:
	@ args = 4, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	subs	r5, r0, #0
	ldr	r9, [sp, #32]
	beq	.L4
	mov	r6, r3
	ldr	r3, .L18
	mov	r7, r1
	ldr	r1, [r3]
	mov	r8, r2
	bl	uu_check_name
	cmn	r0, #1
	beq	.L4
	clz	ip, r6
	add	r4, r8, #4
	lsr	ip, ip, #5
	cmp	r4, r7
	movls	r4, ip
	orrhi	r4, ip, #1
	cmp	r4, #0
	bne	.L4
	ldr	r10, .L18+4
	ldr	r3, [r10]
	bics	r3, r9, r3
	bne	.L16
	mov	r0, #44
	bl	uu_zalloc
	subs	r4, r0, #0
	beq	.L17
	mov	r2, #4
	mov	r1, r5
	ldr	r0, [r4, #40]
	bl	strlcpy
	ldr	r3, [r10]
	mov	r1, #0
	tst	r9, r3
	movne	r3, #1
	str	r1, [r4, #32]
	strne	r3, [r4, #8]
	add	r5, r4, #20
	str	r8, [r4]
	str	r7, [r4, #4]
	str	r6, [r4, #36]
	add	r0, r4, #28
	bl	pthread_mutex_init
	mov	r0, r5
	bl	UU_PTR_ENCODE
	mov	r3, r0
	mov	r0, r5
	str	r3, [r4, #24]
	bl	UU_PTR_ENCODE
	mov	r3, r0
	ldr	r0, .L18+8
	str	r3, [r4, #20]
	bl	pthread_mutex_lock
	ldr	r3, .L18+12
	ldr	r0, .L18+8
	ldr	r2, [r3, #16]
	str	r3, [r4, #12]
	str	r2, [r4, #16]
	str	r4, [r3, #16]
	str	r4, [r2, #12]
	bl	pthread_mutex_unlock
.L1:
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L4:
	mov	r4, #0
	ldr	r3, .L18+16
	ldr	r0, [r3]
	bl	uu_set_error
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L16:
	ldr	r3, .L18+20
	ldr	r0, [r3]
	bl	uu_set_error
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L17:
	ldr	r3, .L18+24
	ldr	r0, [r3]
	bl	uu_set_error
	b	.L1
.L19:
	.align	2
.L18:
	.word	UU_NAME_DOMAIN
	.word	UU_AVL_POOL_DEBUG
	.word	uu_apool_list_lock
	.word	uu_null_apool
	.word	UU_ERROR_INVALID_ARGUMENT
	.word	UU_ERROR_UNKNOWN_FLAG
	.word	UU_ERROR_NO_MEMORY
	.size	uu_avl_pool_create, .-uu_avl_pool_create
	.comm	uu_null_apool,44,4
	.comm	uu_apool_list_lock,4,4
	.comm	UU_NAME_DOMAIN,4,4
	.comm	UU_ERROR_UNKNOWN_FLAG,4,4
	.comm	UU_ERROR_NO_MEMORY,4,4
	.comm	UU_ERROR_INVALID_ARGUMENT,4,4
	.comm	UU_AVL_POOL_DEBUG,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
