	.file	"extr_ccv_convnet.c__ccv_convnet_derive_scale.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	_ccv_convnet_derive_scale, @function
_ccv_convnet_derive_scale:
.LFB0:
	.cfi_startproc
	endbr64
	test	esi, esi
	js	.L7
	mov	rcx, QWORD PTR [rdi]
	movsx	rsi, esi
	mov	r8d, 1
	lea	rax, [rsi+rsi*2]
	lea	rdx, [rcx+rax*4]
	sub	rcx, 12
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L11:
	and	eax, -3
	cmp	eax, 128
	je	.L10
.L5:
	sub	rdx, 12
	cmp	rdx, rcx
	je	.L1
.L6:
	mov	eax, DWORD PTR [rdx]
	cmp	eax, 129
	jne	.L11
	imul	r8d, DWORD PTR 8[rdx]
	sub	rdx, 12
	cmp	rdx, rcx
	jne	.L6
.L1:
	mov	eax, r8d
	ret
	.p2align 4,,10
	.p2align 3
.L10:
	imul	r8d, DWORD PTR 4[rdx]
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L7:
	mov	r8d, 1
	mov	eax, r8d
	ret
	.cfi_endproc
.LFE0:
	.size	_ccv_convnet_derive_scale, .-_ccv_convnet_derive_scale
	.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_convnet.c__ccv_convnet_derive_scale.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	_ccv_convnet_derive_scale, %function
_ccv_convnet_derive_scale:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	@ link register save eliminated.
	cmp	r1, #0
	blt	.L7
	ldr	ip, [r0]
	add	r1, r1, r1, lsl #1
	mov	r0, #1
	add	r3, ip, r1, lsl #2
	b	.L6
.L12:
	cmp	r1, #128
	beq	.L11
.L5:
	cmp	r3, ip
	sub	r3, r3, #12
	bxeq	lr
.L6:
	ldr	r2, [r3]
	cmp	r2, #129
	bic	r1, r2, #2
	bne	.L12
	ldr	r2, [r3, #8]
	mul	r0, r2, r0
	b	.L5
.L11:
	ldr	r2, [r3, #4]
	mul	r0, r2, r0
	b	.L5
.L7:
	mov	r0, #1
	bx	lr
	.size	_ccv_convnet_derive_scale, .-_ccv_convnet_derive_scale
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
