	.file	"extr_darknet.c_rescale_net.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	rescale_net
	.type	rescale_net, @function
rescale_net:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12, rdx
	xor	edx, edx
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	DWORD PTR gpu_index[rip], -1
	call	load_network@PLT
	mov	edx, DWORD PTR [rax]
	mov	rbp, rax
	test	edx, edx
	jle	.L2
	mov	rax, QWORD PTR 8[rax]
	sub	edx, 1
	mov	rdi, QWORD PTR CONVOLUTIONAL[rip]
	lea	rdx, 8[rax+rdx*8]
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L3:
	add	rax, 8
	cmp	rax, rdx
	je	.L2
.L4:
	cmp	rdi, QWORD PTR [rax]
	jne	.L3
	movsd	xmm0, QWORD PTR .LC0[rip]
	mov	esi, 2
	call	rescale_weights@PLT
.L2:
	add	rsp, 8
	.cfi_def_cfa_offset 24
	mov	rsi, r12
	mov	rdi, rbp
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	save_weights@PLT
	.cfi_endproc
.LFE0:
	.size	rescale_net, .-rescale_net
	.comm	gpu_index,4,4
	.comm	CONVOLUTIONAL,8,8
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC0:
	.long	0
	.long	-1075838976
	.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_darknet.c_rescale_net.c"
	.text
	.align	2
	.global	rescale_net
	.syntax unified
	.arm
	.fpu softvfp
	.type	rescale_net, %function
rescale_net:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	mvn	ip, #0
	ldr	r3, .L8
	push	{r4, r5, r6, lr}
	mov	r5, r2
	mov	r2, #0
	str	ip, [r3]
	bl	load_network
	ldr	lr, [r0]
	mov	r4, r0
	cmp	lr, #0
	ble	.L2
	ldr	r1, [r0, #4]
	ldr	r2, .L8+4
	mov	r3, #0
	ldr	r0, [r2]
	sub	r1, r1, #4
	b	.L4
.L3:
	cmp	r3, lr
	beq	.L2
.L4:
	ldr	ip, [r1, #4]!
	add	r3, r3, #1
	cmp	r0, ip
	bne	.L3
	mov	r2, #0
	mov	r1, #2
	ldr	r3, .L8+8
	bl	rescale_weights
.L2:
	mov	r1, r5
	mov	r0, r4
	pop	{r4, r5, r6, lr}
	b	save_weights
.L9:
	.align	2
.L8:
	.word	gpu_index
	.word	CONVOLUTIONAL
	.word	-1075838976
	.size	rescale_net, .-rescale_net
	.comm	gpu_index,4,4
	.comm	CONVOLUTIONAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
