	.file	"extr_ccv_util.c__ccv_sparse_matrix_inc_size.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	_ccv_sparse_matrix_inc_size, @function
_ccv_sparse_matrix_inc_size:
.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
	mov	rbx, rdi
	sub	rsp, 72
	.cfi_def_cfa_offset 128
	mov	esi, DWORD PTR [rdi]
	xor	edi, edi
	test	esi, esi
	sete	dil
	call	assert@PLT
	mov	ebp, DWORD PTR 4[rbx]
	lea	edi, [rbp+rbp]
	call	_ccv_sparse_matrix_index_next_size_over@PLT
	mov	DWORD PTR [rbx], eax
	mov	edi, eax
	mov	DWORD PTR 32[rsp], eax
	call	_ccv_sparse_matrix_size_for_index@PLT
	mov	r8d, DWORD PTR [rbx]
	xor	edi, edi
	mov	DWORD PTR 4[rbx], eax
	mov	r15d, eax
	test	r8d, r8d
	lea	r12d, 0[0+r15*8]
	mov	DWORD PTR 8[rsp], eax
	sete	dil
	call	assert@PLT
	mov	rdi, QWORD PTR 16[rbx]
	mov	esi, r12d
	call	ccrealloc@PLT
	mov	edx, r15d
	xor	esi, esi
	mov	QWORD PTR 16[rbx], rax
	mov	r14, rax
	sub	edx, ebp
	movsx	rax, ebp
	sal	edx, 3
	lea	rdi, [r14+rax*8]
	call	memset@PLT
	mov	rdi, QWORD PTR 8[rbx]
	mov	esi, r12d
	call	ccrealloc@PLT
	mov	QWORD PTR 8[rbx], rax
	test	ebp, ebp
	jle	.L1
	mov	r8, rax
	lea	eax, -1[rbp]
	lea	r15, 8[r14+rax*8]
	mov	rax, r14
	.p2align 4,,10
	.p2align 3
.L3:
	mov	ecx, DWORD PTR [rax]
	xor	edx, edx
	test	ecx, ecx
	setne	dl
	add	rax, 8
	mov	DWORD PTR -8[rax], edx
	cmp	rax, r15
	jne	.L3
	mov	rax, r8
	mov	QWORD PTR [rsp], r8
	mov	r12, r14
	mov	r10, r14
	sub	rax, r14
	mov	r11, r15
	mov	QWORD PTR 16[rsp], rax
	.p2align 4,,10
	.p2align 3
.L17:
	cmp	DWORD PTR [r12], 1
	je	.L28
.L4:
	add	r12, 8
	cmp	r12, r11
	jne	.L17
.L1:
	add	rsp, 72
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	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
.L28:
	.cfi_restore_state
	mov	rax, QWORD PTR 16[rsp]
	mov	edi, DWORD PTR 4[r12]
	mov	QWORD PTR 48[rsp], r11
	mov	ebx, 2
	mov	DWORD PTR [r12], 0
	mov	esi, DWORD PTR 32[rsp]
	add	rax, r12
	mov	QWORD PTR 40[rsp], r10
	mov	ecx, DWORD PTR [rax]
	mov	r13d, DWORD PTR 4[rax]
	mov	DWORD PTR 24[rsp], edi
	mov	DWORD PTR 36[rsp], ecx
	call	_ccv_sparse_matrix_index_for_hash@PLT
	mov	r10, QWORD PTR 40[rsp]
	mov	edi, DWORD PTR 24[rsp]
	mov	QWORD PTR 40[rsp], r12
	mov	ebp, eax
	mov	ecx, DWORD PTR 36[rsp]
	mov	r11, QWORD PTR [rsp]
	mov	eax, r13d
	mov	r12d, DWORD PTR 8[rsp]
	mov	r14, r10
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L31:
	movsx	rsi, ebp
	sal	rsi, 3
	lea	rdx, [r14+rsi]
	mov	r8d, DWORD PTR [rdx]
	test	r8d, r8d
	je	.L29
.L6:
	cmp	r8d, ebx
	jge	.L20
	add	rsi, r11
	mov	DWORD PTR [rdx], ebx
	mov	r15d, DWORD PTR 4[rdx]
	mov	DWORD PTR 4[rdx], edi
	mov	r13d, DWORD PTR [rsi]
	mov	edx, DWORD PTR 4[rsi]
	mov	DWORD PTR [rsi], ecx
	mov	DWORD PTR 4[rsi], eax
	cmp	r8d, 1
	je	.L30
	lea	ebx, 1[r8]
	add	ebp, 1
	cmp	ebx, 254
	jg	.L25
.L8:
	mov	eax, edx
	mov	ecx, r13d
	mov	edi, r15d
.L10:
	cmp	r12d, ebp
	jg	.L31
	mov	rdx, r14
	xor	esi, esi
	xor	ebp, ebp
	mov	r8d, DWORD PTR [rdx]
	test	r8d, r8d
	jne	.L6
.L29:
	mov	r13d, eax
	mov	rax, rsi
	add	rax, QWORD PTR [rsp]
	mov	DWORD PTR [rdx], ebx
	mov	r12, QWORD PTR 40[rsp]
	mov	r11, QWORD PTR 48[rsp]
	mov	DWORD PTR 4[rdx], edi
	mov	r10, r14
	mov	DWORD PTR [rax], ecx
	mov	DWORD PTR 4[rax], r13d
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L20:
	mov	r8d, ebx
	mov	edx, eax
	mov	r13d, ecx
	mov	r15d, edi
	lea	ebx, 1[r8]
	add	ebp, 1
	cmp	ebx, 254
	jle	.L8
.L25:
	mov	rax, QWORD PTR 40[rsp]
	mov	r10, r14
	mov	r11d, r15d
	mov	ecx, ebx
	mov	r14d, r12d
	mov	r8d, edx
	mov	r15d, r13d
	mov	ebx, ebp
	mov	QWORD PTR 56[rsp], rax
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L35:
	movsx	rbp, ebx
	sal	rbp, 3
	lea	r12, [r10+rbp]
	mov	r13d, DWORD PTR [r12]
	test	r13d, r13d
	je	.L32
.L12:
	cmp	r13d, 255
	je	.L33
.L13:
	cmp	ecx, r13d
	jle	.L34
	cmp	ecx, 255
	mov	eax, 255
	cmovg	ecx, eax
	mov	rax, QWORD PTR [rsp]
	add	rax, rbp
	mov	DWORD PTR [r12], ecx
	mov	ecx, DWORD PTR 4[r12]
	mov	DWORD PTR 4[r12], r11d
	mov	r12d, DWORD PTR [rax]
	mov	ebp, DWORD PTR 4[rax]
	mov	DWORD PTR [rax], r15d
	mov	DWORD PTR 4[rax], r8d
	cmp	r13d, 1
	je	.L16
	add	ebx, 1
	mov	r8d, ebp
	mov	r15d, r12d
	mov	r11d, ecx
.L15:
	lea	ecx, 1[r13]
.L9:
	cmp	r14d, ebx
	jg	.L35
	mov	r12, r10
	xor	ebp, ebp
	xor	ebx, ebx
	mov	r13d, DWORD PTR [r12]
	test	r13d, r13d
	jne	.L12
.L32:
	mov	ebx, ecx
	mov	eax, 255
	mov	rcx, r12
	mov	DWORD PTR 8[rsp], r14d
	cmp	ebx, 255
	mov	r14d, r11d
	mov	edx, r15d
	mov	r12, QWORD PTR 56[rsp]
	cmovg	ebx, eax
	mov	rax, QWORD PTR [rsp]
	mov	r11, QWORD PTR 48[rsp]
	mov	DWORD PTR 4[rcx], r14d
	add	rax, rbp
	mov	DWORD PTR [rcx], ebx
	mov	DWORD PTR [rax], edx
	mov	DWORD PTR 4[rax], r8d
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L30:
	mov	esi, DWORD PTR 32[rsp]
	mov	edi, r15d
	mov	DWORD PTR 36[rsp], edx
	mov	ebx, 2
	mov	QWORD PTR 24[rsp], r11
	call	_ccv_sparse_matrix_index_for_hash@PLT
	mov	r11, QWORD PTR 24[rsp]
	mov	edx, DWORD PTR 36[rsp]
	mov	ebp, eax
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L34:
	add	ebx, 1
	mov	r13d, ecx
	jmp	.L15
	.p2align 4,,10
	.p2align 3
.L33:
	mov	edi, DWORD PTR 4[r12]
	mov	esi, DWORD PTR 32[rsp]
	mov	DWORD PTR 40[rsp], ecx
	mov	DWORD PTR 36[rsp], r11d
	add	edi, r14d
	mov	DWORD PTR 24[rsp], r8d
	sub	edi, ebx
	mov	QWORD PTR 8[rsp], r10
	call	_ccv_sparse_matrix_index_for_hash@PLT
	mov	ecx, DWORD PTR 40[rsp]
	mov	r11d, DWORD PTR 36[rsp]
	mov	r8d, DWORD PTR 24[rsp]
	mov	r10, QWORD PTR 8[rsp]
	lea	r13d, 2[rax]
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L16:
	mov	esi, DWORD PTR 32[rsp]
	mov	edi, ecx
	mov	QWORD PTR 24[rsp], r10
	mov	r15d, r12d
	mov	DWORD PTR 8[rsp], ecx
	call	_ccv_sparse_matrix_index_for_hash@PLT
	mov	ecx, DWORD PTR 8[rsp]
	mov	r10, QWORD PTR 24[rsp]
	mov	r8d, ebp
	mov	ebx, eax
	mov	r11d, ecx
	jmp	.L15
	.cfi_endproc
.LFE0:
	.size	_ccv_sparse_matrix_inc_size, .-_ccv_sparse_matrix_inc_size
	.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_util.c__ccv_sparse_matrix_inc_size.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	_ccv_sparse_matrix_inc_size, %function
_ccv_sparse_matrix_inc_size:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r4, r0
	ldr	r0, [r0]
	sub	sp, sp, #36
	clz	r0, r0
	lsr	r0, r0, #5
	bl	assert
	ldr	r5, [r4, #4]
	lsl	r0, r5, #1
	bl	_ccv_sparse_matrix_index_next_size_over
	str	r0, [r4]
	str	r0, [sp, #12]
	bl	_ccv_sparse_matrix_size_for_index
	ldr	r3, [r4]
	mov	r7, r0
	str	r0, [sp, #16]
	clz	r0, r3
	lsl	r6, r7, #3
	str	r7, [r4, #4]
	lsr	r0, r0, #5
	bl	assert
	mov	r1, r6
	ldr	r0, [r4, #12]
	bl	ccrealloc
	sub	r2, r7, r5
	add	r10, r0, r5, lsl #3
	mov	r1, #0
	str	r0, [sp, #8]
	str	r0, [r4, #12]
	lsl	r2, r2, #3
	mov	r8, r0
	mov	r0, r10
	bl	memset
	mov	r1, r6
	ldr	r0, [r4, #8]
	bl	ccrealloc
	cmp	r5, #0
	str	r0, [r4, #8]
	ble	.L1
	mov	r7, r0
	mov	r3, r8
.L3:
	ldr	r2, [r3]
	subs	r2, r2, #0
	movne	r2, #1
	str	r2, [r3], #8
	cmp	r10, r3
	bne	.L3
	ldr	r6, [sp, #8]
	str	r10, [sp, #4]
.L17:
	ldr	r3, [r6]
	cmp	r3, #1
	beq	.L28
.L4:
	ldr	r3, [sp, #4]
	add	r6, r6, #8
	cmp	r3, r6
	bne	.L17
.L1:
	add	sp, sp, #36
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L28:
	mov	r3, #0
	ldr	r9, [sp, #8]
	ldr	r8, [r6, #4]
	sub	r2, r7, r9
	str	r3, [r6]
	add	r3, r2, r6
	ldr	r3, [r3, #4]
	ldr	r2, [r2, r6]
	mov	r0, r8
	ldr	r1, [sp, #12]
	str	r3, [sp, #28]
	str	r2, [sp, #24]
	bl	_ccv_sparse_matrix_index_for_hash
	mov	r5, #2
	mov	r4, r0
	str	r6, [sp, #20]
	mov	r0, r8
	ldr	r6, [sp, #16]
	mov	r8, r9
	ldr	r2, [sp, #24]
	ldr	r3, [sp, #28]
	b	.L10
.L31:
	ldr	r9, [r10, #4]
	str	r5, [r10]
	str	r0, [r10, #4]
	cmp	r1, #1
	ldr	fp, [r7, ip]
	ldr	r10, [lr, #4]
	str	r2, [r7, ip]
	str	r3, [lr, #4]
	beq	.L29
	add	r5, r1, #1
	cmp	r5, #254
	add	r4, r4, #1
	bgt	.L25
.L8:
	mov	r3, r10
	mov	r2, fp
	mov	r0, r9
.L10:
	cmp	r6, r4
	movle	r4, #0
	movle	r10, r8
	movle	ip, r4
	addgt	r10, r8, r4, lsl #3
	ldr	r1, [r10]
	lslgt	ip, r4, #3
	cmp	r1, #0
	add	lr, r7, ip
	beq	.L30
	cmp	r1, r5
	blt	.L31
	mov	r1, r5
	add	r5, r1, #1
	cmp	r5, #254
	mov	r10, r3
	mov	fp, r2
	mov	r9, r0
	add	r4, r4, #1
	ble	.L8
.L25:
	ldr	r1, [sp, #20]
	mov	r3, r9
	mov	r2, r6
	mov	r9, r7
	str	r1, [sp, #24]
	b	.L9
.L13:
	cmp	r5, r6
	movle	r6, r5
	addle	r4, r4, #1
	ble	.L15
	cmp	r5, #255
	movlt	r1, r5
	movge	r1, #255
	ldr	r5, [r8, #4]
	str	r1, [r8]
	str	r3, [r8, #4]
	add	r1, r9, r7
	cmp	r6, #1
	ldr	r8, [r9, r7]
	ldr	r3, [r1, #4]
	str	fp, [r9, r7]
	str	r10, [r1, #4]
	beq	.L16
	mov	r10, r3
	mov	fp, r8
	mov	r3, r5
	add	r4, r4, #1
.L15:
	add	r5, r6, #1
.L9:
	cmp	r2, r4
	movle	r4, #0
	ldrgt	r1, [sp, #8]
	ldrle	r8, [sp, #8]
	addgt	r8, r1, r4, lsl #3
	ldr	r6, [r8]
	movle	r7, r4
	lslgt	r7, r4, #3
	cmp	r6, #0
	beq	.L32
	cmp	r6, #255
	bne	.L13
	ldr	r0, [r8, #4]
	ldr	r1, [sp, #12]
	add	r0, r2, r0
	sub	r0, r0, r4
	str	r3, [sp, #20]
	str	r2, [sp, #16]
	bl	_ccv_sparse_matrix_index_for_hash
	ldr	r3, [sp, #20]
	ldr	r2, [sp, #16]
	add	r6, r0, #2
	b	.L13
.L29:
	mov	r0, r9
	ldr	r1, [sp, #12]
	bl	_ccv_sparse_matrix_index_for_hash
	mov	r5, #2
	mov	r4, r0
	b	.L8
.L30:
	mov	r8, r0
	ldr	r6, [sp, #20]
	stm	r10, {r5, r8}
	str	r2, [r7, ip]
	str	r3, [lr, #4]
	b	.L4
.L16:
	mov	r0, r5
	ldr	r1, [sp, #12]
	str	r2, [sp, #20]
	str	r3, [sp, #16]
	bl	_ccv_sparse_matrix_index_for_hash
	ldr	r3, [sp, #16]
	mov	fp, r8
	mov	r10, r3
	mov	r4, r0
	mov	r3, r5
	ldr	r2, [sp, #20]
	b	.L15
.L32:
	str	r2, [sp, #16]
	cmp	r5, #255
	mov	r2, r7
	mov	r7, r9
	movge	r5, #255
	mov	r9, r3
	add	r1, r7, r2
	stm	r8, {r5, r9}
	ldr	r6, [sp, #24]
	str	fp, [r7, r2]
	str	r10, [r1, #4]
	b	.L4
	.size	_ccv_sparse_matrix_inc_size, .-_ccv_sparse_matrix_inc_size
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
