	.file	"extr_ccv_memory.c_ccv_array_new.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	ccv_array_new
	.type	ccv_array_new, @function
ccv_array_new:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13d, esi
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdx
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	ebx, edi
	sub	rsp, 24
	.cfi_def_cfa_offset 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	cmp	QWORD PTR ccv_cache_opt[rip], 0
	je	.L2
	test	rdx, rdx
	jne	.L17
.L2:
	mov	edi, 48
	call	ccmalloc@PLT
	mov	esi, 2
	mov	edi, r13d
	mov	r12, rax
	mov	QWORD PTR 40[rax], rbp
	mov	eax, DWORD PTR CCV_GARBAGE[rip]
	mov	QWORD PTR 32[r12], 0
	not	eax
	and	eax, DWORD PTR CCV_REUSABLE[rip]
	mov	DWORD PTR 8[r12], ebx
	mov	DWORD PTR [r12], eax
	call	ccv_max@PLT
	movsx	rdi, ebx
	mov	QWORD PTR 16[r12], rax
	imul	rdi, rax
	call	ccmalloc@PLT
	mov	QWORD PTR 24[r12], rax
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L18
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rax, r12
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L17:
	.cfi_restore_state
	lea	rdx, 4[rsp]
	mov	rsi, rbp
	lea	rdi, ccv_cache[rip]
	call	ccv_cache_out@PLT
	test	rax, rax
	je	.L2
	xor	edi, edi
	cmp	DWORD PTR 4[rsp], 1
	mov	r12, rax
	sete	dil
	call	assert@PLT
	mov	eax, DWORD PTR CCV_GARBAGE[rip]
	or	DWORD PTR [r12], eax
	mov	DWORD PTR 4[r12], 1
	jmp	.L1
.L18:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	ccv_array_new, .-ccv_array_new
	.comm	ccv_cache_opt,8,8
	.comm	ccv_cache,4,4
	.comm	CCV_REUSABLE,4,4
	.comm	CCV_GARBAGE,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_ccv_memory.c_ccv_array_new.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	ccv_array_new
	.syntax unified
	.arm
	.fpu softvfp
	.type	ccv_array_new, %function
ccv_array_new:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L16
	push	{r4, r5, r6, r7, lr}
	ldr	r3, [r3]
	sub	sp, sp, #12
	cmp	r3, #0
	cmpne	r2, #0
	ldr	r3, .L16+4
	mov	r6, r0
	mov	r7, r1
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	mov	r5, r2
	bne	.L14
.L2:
	mov	r0, #28
	bl	ccmalloc
	mov	r2, #0
	mov	r4, r0
	ldr	r1, .L16+8
	ldr	r3, .L16+12
	ldr	r1, [r1]
	ldr	r3, [r3]
	str	r5, [r0, #24]
	bic	r3, r3, r1
	str	r6, [r0, #8]
	mov	r1, #2
	str	r3, [r4]
	str	r2, [r4, #20]
	mov	r0, r7
	bl	ccv_max
	str	r0, [r4, #12]
	mul	r0, r6, r0
	bl	ccmalloc
	str	r0, [r4, #16]
.L1:
	ldr	r3, .L16+4
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L15
	mov	r0, r4
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L14:
	mov	r2, sp
	mov	r1, r5
	ldr	r0, .L16+16
	bl	ccv_cache_out
	subs	r4, r0, #0
	beq	.L2
	ldr	r0, [sp]
	sub	r0, r0, #1
	clz	r0, r0
	lsr	r0, r0, #5
	bl	assert
	mov	r1, #1
	ldr	r2, .L16+8
	ldr	r3, [r4]
	ldr	r2, [r2]
	str	r1, [r4, #4]
	orr	r3, r3, r2
	str	r3, [r4]
	b	.L1
.L15:
	bl	__stack_chk_fail
.L17:
	.align	2
.L16:
	.word	ccv_cache_opt
	.word	.LC0
	.word	CCV_GARBAGE
	.word	CCV_REUSABLE
	.word	ccv_cache
	.size	ccv_array_new, .-ccv_array_new
	.comm	ccv_cache_opt,4,4
	.comm	ccv_cache,4,4
	.comm	CCV_REUSABLE,4,4
	.comm	CCV_GARBAGE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
