	.file	"extr_ccv_tld.c__ccv_tld_nnc_compute_threshold.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	_ccv_tld_nnc_compute_threshold, @function
_ccv_tld_nnc_compute_threshold:
.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, 56
	.cfi_def_cfa_offset 112
	mov	r15, QWORD PTR [rdi]
	mov	QWORD PTR 8[rsp], rdi
	mov	QWORD PTR 16[rsp], rsi
	movss	DWORD PTR 24[rsp], xmm0
	movsd	QWORD PTR [rsp], xmm1
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 40[rsp], rax
	xor	eax, eax
	cmp	r9d, DWORD PTR [r8]
	jge	.L2
	mov	rbp, rdx
	mov	r12, rcx
	mov	r14, r8
	mov	r13d, r9d
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L3:
	add	r13d, 1
	cmp	DWORD PTR [r14], r13d
	jle	.L2
.L8:
	mov	esi, r13d
	mov	rdi, r14
	call	ccv_array_get@PLT
	mov	rsi, r12
	mov	rdi, rbp
	mov	edx, DWORD PTR [rax]
	mov	rbx, rax
	call	_ccv_tld_box_variance@PLT
	comisd	xmm0, QWORD PTR [rsp]
	jbe	.L3
	mov	rdi, r15
	call	dsfmt_genrand_close_open@PLT
	movsd	xmm3, QWORD PTR .LC0[rip]
	comisd	xmm3, xmm0
	jb	.L3
	mov	r8d, DWORD PTR [rbx]
	mov	rbx, QWORD PTR 8[rsp]
	lea	rdx, 32[rsp]
	xor	ecx, ecx
	mov	rsi, QWORD PTR 16[rsp]
	add	r13d, 1
	mov	QWORD PTR 32[rsp], 0
	mov	rdi, rbx
	call	_ccv_tld_fetch_patch@PLT
	mov	rsi, QWORD PTR 32[rsp]
	xor	r9d, r9d
	xor	r8d, r8d
	xor	ecx, ecx
	xor	edx, edx
	mov	rdi, rbx
	call	_ccv_tld_sv_classify@PLT
	mov	rdi, QWORD PTR 32[rsp]
	movss	DWORD PTR 28[rsp], xmm0
	call	ccv_matrix_free@PLT
	movss	xmm0, DWORD PTR 28[rsp]
	maxss	xmm0, DWORD PTR 24[rsp]
	movss	DWORD PTR 24[rsp], xmm0
	cmp	DWORD PTR [r14], r13d
	jg	.L8
	.p2align 4,,10
	.p2align 3
.L2:
	mov	rax, QWORD PTR 40[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L16
	movss	xmm0, DWORD PTR 24[rsp]
	add	rsp, 56
	.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
.L16:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	_ccv_tld_nnc_compute_threshold, .-_ccv_tld_nnc_compute_threshold
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC0:
	.long	2576980378
	.long	1069128089
	.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_tld.c__ccv_tld_nnc_compute_threshold.c"
	.text
	.global	__aeabi_dcmpgt
	.global	__aeabi_dcmple
	.global	__aeabi_fcmpgt
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	_ccv_tld_nnc_compute_threshold, %function
_ccv_tld_nnc_compute_threshold:
	@ args = 24, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r9, r0
	sub	sp, sp, #36
	ldr	r6, [sp, #88]
	mov	r7, r3
	add	fp, sp, #80
	ldmia	fp, {r10-fp}
	ldr	r3, .L17
	ldr	r4, [sp, #92]
	ldr	r0, [r6]
	str	r1, [sp, #16]	@ float
	str	r2, [sp, #20]
	ldr	r3, [r3]
	str	r3, [sp, #28]
	mov	r3,#0
	ldr	r3, [r9]
	cmp	r4, r0
	ldr	r8, [sp, #72]
	str	r3, [sp, #12]
	blt	.L8
	b	.L2
.L3:
	ldr	r3, [r6]
	add	r4, r4, #1
	cmp	r3, r4
	ble	.L2
.L8:
	mov	r1, r4
	mov	r0, r6
	bl	ccv_array_get
	mov	r1, r8
	ldr	r2, [r0]
	mov	r5, r0
	mov	r0, r7
	bl	_ccv_tld_box_variance
	mov	r2, r10
	mov	r3, fp
	bl	__aeabi_dcmpgt
	cmp	r0, #0
	beq	.L3
	ldr	r0, [sp, #12]
	bl	dsfmt_genrand_close_open
	ldr	r2, .L17+4
	ldr	r3, .L17+8
	bl	__aeabi_dcmple
	cmp	r0, #0
	beq	.L3
	mov	r3, #0
	ldr	r2, [r5]
	mov	r5, r3
	ldr	r1, [sp, #20]
	str	r2, [sp]
	mov	r0, r9
	add	r2, sp, #24
	str	r3, [sp, #24]
	bl	_ccv_tld_fetch_patch
	mov	r3, r5
	mov	r2, r5
	ldr	r1, [sp, #24]
	str	r5, [sp, #4]
	str	r5, [sp]
	mov	r0, r9
	bl	_ccv_tld_sv_classify
	mov	r5, r0
	ldr	r0, [sp, #24]
	bl	ccv_matrix_free
	ldr	r1, [sp, #16]	@ float
	mov	r0, r5
	bl	__aeabi_fcmpgt
	ldr	r3, [r6]
	cmp	r0, #0
	add	r4, r4, #1
	strne	r5, [sp, #16]	@ float
	cmp	r3, r4
	bgt	.L8
.L2:
	ldr	r3, .L17
	ldr	r2, [r3]
	ldr	r3, [sp, #28]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L16
	ldr	r0, [sp, #16]	@ float
	add	sp, sp, #36
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L16:
	bl	__stack_chk_fail
.L18:
	.align	2
.L17:
	.word	.LC0
	.word	-1717986918
	.word	1069128089
	.size	_ccv_tld_nnc_compute_threshold, .-_ccv_tld_nnc_compute_threshold
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
