	.file	"extr_instance-segmenter.c_train_isegmenter.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"%d\n"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC2:
	.string	"Learning Rate: %g, Momentum: %g, Decay: %g\n"
	.section	.rodata.str1.1
.LC3:
	.string	"/backup/"
.LC4:
	.string	"backup"
.LC5:
	.string	"data/train.list"
.LC6:
	.string	"train"
.LC7:
	.string	"Loaded: %lf seconds\n"
.LC8:
	.string	"embed"
.LC9:
	.string	"input"
.LC10:
	.string	"pred"
.LC11:
	.string	"truth"
	.section	.rodata.str1.8
	.align 8
.LC14:
	.string	"%ld, %.3f: %f, %f avg, %f rate, %lf seconds, %ld images\n"
	.section	.rodata.str1.1
.LC15:
	.string	"%s/%s_%d.weights"
.LC16:
	.string	"%s/%s.backup"
.LC17:
	.string	"%s/%s.weights"
	.text
	.p2align 4
	.globl	train_isegmenter
	.type	train_isegmenter, @function
train_isegmenter:
.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
	mov	r14d, r9d
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rdx
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	ebx, r8d
	sub	rsp, 552
	.cfi_def_cfa_offset 608
	mov	QWORD PTR 16[rsp], rdi
	mov	rdi, rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 536[rsp], rax
	xor	eax, eax
	call	basecfg@PLT
	mov	rdi, rax
	mov	QWORD PTR 48[rsp], rax
	call	puts@PLT
	mov	esi, ebx
	lea	rdi, .LC1[rip]
	xor	eax, eax
	call	printf@PLT
	mov	esi, 8
	mov	edi, ebx
	call	calloc@PLT
	xor	edi, edi
	mov	QWORD PTR 8[rsp], rax
	mov	r15, rax
	call	time@PLT
	mov	edi, eax
	call	srand@PLT
	xor	eax, eax
	call	rand@PLT
	test	ebx, ebx
	jle	.L2
	mov	r12d, eax
	lea	eax, -1[rbx]
	lea	rax, 8[r15+rax*8]
	mov	QWORD PTR [rsp], rax
	mov	eax, r14d
	mov	r14, r13
	mov	r13, rbp
	mov	rbp, r15
	mov	r15d, eax
	.p2align 4,,10
	.p2align 3
.L3:
	mov	edi, r12d
	add	rbp, 8
	call	srand@PLT
	mov	edx, r15d
	mov	rsi, r14
	mov	rdi, r13
	call	load_network@PLT
	mov	edx, DWORD PTR [rax]
	mov	QWORD PTR -8[rbp], rax
	imul	edx, ebx
	mov	DWORD PTR [rax], edx
	cmp	QWORD PTR [rsp], rbp
	jne	.L3
.L2:
	xor	edi, edi
	call	time@PLT
	mov	edi, eax
	call	srand@PLT
	mov	rax, QWORD PTR 8[rsp]
	mov	rbp, QWORD PTR [rax]
	mov	rdi, rbp
	call	get_network_image@PLT
	mov	esi, DWORD PTR 4[rbp]
	xor	edi, edi
	sar	rax, 32
	mov	rcx, rdx
	mov	DWORD PTR 136[rsp], edx
	mov	r12, rdx
	mov	rdx, rax
	sar	r12, 32
	mov	DWORD PTR 120[rsp], eax
	sal	rdx, 32
	mov	DWORD PTR 128[rsp], r12d
	or	rdx, 3
	mov	QWORD PTR 64[rsp], rdx
	mov	edx, r12d
	imul	edx, ecx
	lea	edx, [rdx+rdx*4]
	sal	edx, 4
	add	eax, edx
	mov	DWORD PTR 112[rsp], eax
	mov	eax, esi
	cdq
	idiv	ecx
	imul	ecx, eax
	mov	r14d, eax
	mov	DWORD PTR 140[rsp], eax
	cmp	ecx, esi
	sete	dil
	imul	r12d, r14d
	call	assert@PLT
	xor	edi, edi
	cmp	r12d, DWORD PTR 8[rbp]
	sete	dil
	call	assert@PLT
	mov	r8d, DWORD PTR 12[rbp]
	mov	esi, DWORD PTR 0[rbp]
	mov	eax, 2
	imul	r8d, DWORD PTR 16[rbp]
	movsd	xmm0, QWORD PTR 24[rbp]
	lea	rdi, .LC2[rip]
	movsd	xmm1, QWORD PTR 32[rbp]
	imul	ebx, r8d
	call	printf@PLT
	mov	rdi, QWORD PTR 16[rsp]
	call	read_data_cfg@PLT
	lea	rdx, .LC3[rip]
	lea	rsi, .LC4[rip]
	mov	r12, rax
	mov	rdi, rax
	call	option_find_str@PLT
	lea	rdx, .LC5[rip]
	lea	rsi, .LC6[rip]
	mov	rdi, r12
	mov	QWORD PTR 56[rsp], rax
	call	option_find_str@PLT
	mov	rdi, rax
	call	get_paths@PLT
	mov	r15, rax
	mov	rdi, rax
	mov	QWORD PTR 144[rsp], rax
	call	list_to_array@PLT
	mov	esi, DWORD PTR [r15]
	lea	rdi, .LC1[rip]
	mov	QWORD PTR 152[rsp], rax
	mov	r13, rax
	xor	eax, eax
	call	printf@PLT
	mov	rdx, QWORD PTR 4[rbp]
	mov	eax, DWORD PTR 4[rbp]
	pxor	xmm0, xmm0
	mov	ecx, DWORD PTR [r15]
	movups	XMMWORD PTR 200[rsp], xmm0
	mov	QWORD PTR 176[rsp], rdx
	mov	edx, DWORD PTR 56[rbp]
	mov	DWORD PTR 196[rsp], eax
	mov	eax, DWORD PTR ISEG_DATA[rip]
	mov	DWORD PTR 236[rsp], edx
	mov	rdx, QWORD PTR 60[rbp]
	mov	DWORD PTR 232[rsp], eax
	lea	rax, 160[rsp]
	mov	QWORD PTR 240[rsp], rdx
	mov	rdx, QWORD PTR 68[rbp]
	mov	QWORD PTR 264[rsp], 0
	mov	QWORD PTR 248[rsp], rdx
	mov	rdx, QWORD PTR 76[rbp]
	mov	DWORD PTR 16[rsp], ecx
	mov	QWORD PTR 256[rsp], rdx
	mov	DWORD PTR 216[rsp], ebx
	mov	ebx, ecx
	mov	DWORD PTR 220[rsp], ecx
	mov	QWORD PTR 224[rsp], rax
	mov	DWORD PTR 184[rsp], 32
	mov	DWORD PTR 188[rsp], r14d
	mov	DWORD PTR 192[rsp], 90
	mov	DWORD PTR 200[rsp], 80
	mov	QWORD PTR 208[rsp], r13
	push	QWORD PTR 264[rsp]
	.cfi_def_cfa_offset 616
	push	QWORD PTR 264[rsp]
	.cfi_def_cfa_offset 624
	push	QWORD PTR 264[rsp]
	.cfi_def_cfa_offset 632
	push	QWORD PTR 264[rsp]
	.cfi_def_cfa_offset 640
	push	QWORD PTR 264[rsp]
	.cfi_def_cfa_offset 648
	push	QWORD PTR 264[rsp]
	.cfi_def_cfa_offset 656
	push	QWORD PTR 264[rsp]
	.cfi_def_cfa_offset 664
	push	QWORD PTR 264[rsp]
	.cfi_def_cfa_offset 672
	push	QWORD PTR 264[rsp]
	.cfi_def_cfa_offset 680
	push	QWORD PTR 264[rsp]
	.cfi_def_cfa_offset 688
	push	QWORD PTR 264[rsp]
	.cfi_def_cfa_offset 696
	push	QWORD PTR 264[rsp]
	.cfi_def_cfa_offset 704
	call	load_data@PLT
	mov	DWORD PTR 104[rsp], eax
	mov	rax, QWORD PTR 40[rbp]
	mov	eax, DWORD PTR [rax]
	cdq
	idiv	ebx
	mov	DWORD PTR 200[rsp], eax
	add	rsp, 96
	.cfi_def_cfa_offset 608
	lea	rbx, 272[rsp]
	mov	DWORD PTR [rsp], 0xbf800000
	.p2align 4,,10
	.p2align 3
.L4:
	mov	rdi, rbp
	call	get_current_batch@PLT
	mov	r8d, eax
	mov	eax, DWORD PTR 48[rbp]
	cmp	r8d, eax
	jl	.L10
	test	eax, eax
	jne	.L19
.L10:
	xor	eax, eax
	call	what_time_is_it_now@PLT
	mov	edi, DWORD PTR 8[rsp]
	xor	esi, esi
	movsd	QWORD PTR 24[rsp], xmm0
	call	pthread_join@PLT
	mov	r13, QWORD PTR 160[rsp]
	mov	r12, QWORD PTR 168[rsp]
	push	QWORD PTR 264[rsp]
	.cfi_def_cfa_offset 616
	push	QWORD PTR 264[rsp]
	.cfi_def_cfa_offset 624
	push	QWORD PTR 264[rsp]
	.cfi_def_cfa_offset 632
	push	QWORD PTR 264[rsp]
	.cfi_def_cfa_offset 640
	push	QWORD PTR 264[rsp]
	.cfi_def_cfa_offset 648
	push	QWORD PTR 264[rsp]
	.cfi_def_cfa_offset 656
	push	QWORD PTR 264[rsp]
	.cfi_def_cfa_offset 664
	push	QWORD PTR 264[rsp]
	.cfi_def_cfa_offset 672
	push	QWORD PTR 264[rsp]
	.cfi_def_cfa_offset 680
	push	QWORD PTR 264[rsp]
	.cfi_def_cfa_offset 688
	push	QWORD PTR 264[rsp]
	.cfi_def_cfa_offset 696
	push	QWORD PTR 264[rsp]
	.cfi_def_cfa_offset 704
	call	load_data@PLT
	mov	DWORD PTR 104[rsp], eax
	add	rsp, 96
	.cfi_def_cfa_offset 608
	xor	eax, eax
	call	what_time_is_it_now@PLT
	subsd	xmm0, QWORD PTR 24[rsp]
	mov	eax, 1
	lea	rdi, .LC7[rip]
	call	printf@PLT
	xor	eax, eax
	call	what_time_is_it_now@PLT
	mov	rsi, r13
	mov	rdx, r12
	mov	rdi, rbp
	movsd	QWORD PTR 24[rsp], xmm0
	call	train_network@PLT
	mov	eax, DWORD PTR 608[rsp]
	movaps	xmm1, xmm0
	test	eax, eax
	jne	.L20
.L5:
	movss	xmm5, DWORD PTR [rsp]
	ucomiss	xmm5, DWORD PTR .LC0[rip]
	jp	.L6
	movd	eax, xmm1
	movd	ecx, xmm5
	cmovne	eax, ecx
	mov	DWORD PTR [rsp], eax
.L6:
	pxor	xmm0, xmm0
	cvtss2sd	xmm1, xmm1
	mov	rax, QWORD PTR 40[rbp]
	movsd	xmm2, QWORD PTR .LC13[rip]
	cvtss2sd	xmm0, DWORD PTR [rsp]
	pxor	xmm4, xmm4
	movsd	QWORD PTR 40[rsp], xmm1
	mulsd	xmm2, xmm1
	mov	r15d, DWORD PTR [rax]
	xor	eax, eax
	mulsd	xmm0, QWORD PTR .LC12[rip]
	addsd	xmm0, xmm2
	cvtsd2ss	xmm4, xmm0
	movss	DWORD PTR [rsp], xmm4
	call	what_time_is_it_now@PLT
	mov	rdi, rbp
	movapd	xmm3, xmm0
	subsd	xmm3, QWORD PTR 24[rsp]
	movsd	QWORD PTR 32[rsp], xmm3
	call	get_current_rate@PLT
	pxor	xmm0, xmm0
	pxor	xmm2, xmm2
	mov	rdi, rbp
	mov	r14d, eax
	mov	rax, QWORD PTR 40[rbp]
	cvtsi2ss	xmm2, DWORD PTR 16[rsp]
	cvtsi2ss	xmm0, DWORD PTR [rax]
	divss	xmm0, xmm2
	cvtss2sd	xmm0, xmm0
	movsd	QWORD PTR 24[rsp], xmm0
	call	get_current_batch@PLT
	mov	edx, r14d
	mov	ecx, r15d
	pxor	xmm2, xmm2
	movsd	xmm3, QWORD PTR 32[rsp]
	movsd	xmm1, QWORD PTR 40[rsp]
	mov	esi, eax
	lea	rdi, .LC14[rip]
	movsd	xmm0, QWORD PTR 24[rsp]
	mov	eax, 4
	cvtss2sd	xmm2, DWORD PTR [rsp]
	call	printf@PLT
	mov	rsi, r12
	mov	rdi, r13
	call	free_data@PLT
	mov	rax, QWORD PTR 40[rbp]
	mov	eax, DWORD PTR [rax]
	cdq
	idiv	DWORD PTR 16[rsp]
	mov	r12d, eax
	cmp	eax, DWORD PTR 104[rsp]
	jg	.L21
.L8:
	mov	rdi, rbp
	call	get_current_batch@PLT
	imul	eax, eax, -1030792151
	add	eax, 85899344
	ror	eax, 2
	cmp	eax, 42949672
	ja	.L4
	mov	rcx, QWORD PTR 48[rsp]
	mov	rdx, QWORD PTR 56[rsp]
	mov	rdi, rbx
	xor	eax, eax
	lea	rsi, .LC16[rip]
	call	sprintf@PLT
	mov	rsi, rbx
	mov	rdi, rbp
	call	save_weights@PLT
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L21:
	mov	rcx, QWORD PTR 48[rsp]
	mov	rdx, QWORD PTR 56[rsp]
	mov	r8d, eax
	mov	rdi, rbx
	lea	rsi, .LC15[rip]
	xor	eax, eax
	call	sprintf@PLT
	mov	rsi, rbx
	mov	rdi, rbp
	call	save_weights@PLT
	mov	DWORD PTR 104[rsp], r12d
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L20:
	mov	eax, DWORD PTR 16[rbp]
	mov	edi, DWORD PTR 140[rsp]
	movss	DWORD PTR 108[rsp], xmm0
	sub	eax, 1
	imul	eax, DWORD PTR 12[rbp]
	cdqe
	mov	ecx, DWORD PTR [r12+rax*4]
	mov	eax, DWORD PTR 8[rbp]
	cdq
	idiv	edi
	mov	esi, eax
	mov	eax, DWORD PTR 4[rbp]
	cdq
	idiv	edi
	mov	edx, 80
	mov	edi, eax
	call	float_to_image@PLT
	mov	esi, DWORD PTR 8[rbp]
	mov	edi, DWORD PTR 4[rbp]
	mov	r15, rax
	mov	eax, DWORD PTR 16[rbp]
	mov	r14, rdx
	mov	edx, DWORD PTR 52[rbp]
	sub	eax, 1
	imul	eax, DWORD PTR 12[rbp]
	cdqe
	mov	ecx, DWORD PTR 0[r13+rax*4]
	call	float_to_image@PLT
	mov	rsi, r14
	mov	rdi, r15
	mov	QWORD PTR 96[rsp], rax
	mov	QWORD PTR 32[rsp], rdx
	call	mask_to_rgb@PLT
	mov	r14d, DWORD PTR 136[rsp]
	mov	rdi, QWORD PTR 120[rsp]
	mov	r15, QWORD PTR 128[rsp]
	mov	QWORD PTR 88[rsp], rax
	mov	rax, r14
	sal	rdi, 32
	mov	QWORD PTR 40[rsp], rdx
	sal	r15, 32
	or	rdi, 80
	or	rax, r15
	mov	rsi, rax
	call	mask_to_rgb@PLT
	mov	QWORD PTR 80[rsp], rax
	mov	rax, QWORD PTR 112[rsp]
	mov	QWORD PTR 72[rsp], rdx
	mov	edx, DWORD PTR 64[rsp]
	sal	rax, 32
	or	rdx, rax
	mov	rax, r14
	or	rax, r15
	mov	rdi, rdx
	mov	QWORD PTR 64[rsp], rdx
	mov	rsi, rax
	call	copy_image@PLT
	mov	r14, rdx
	mov	r15, rax
	mov	rsi, rdx
	mov	rdi, rax
	call	normalize_image2@PLT
	mov	ecx, 1
	mov	rdi, r15
	mov	rsi, r14
	lea	rdx, .LC8[rip]
	call	show_image@PLT
	mov	rdi, r15
	mov	rsi, r14
	call	free_image@PLT
	mov	r10, QWORD PTR 96[rsp]
	mov	rsi, QWORD PTR 32[rsp]
	mov	ecx, 1
	lea	rdx, .LC9[rip]
	mov	rdi, r10
	call	show_image@PLT
	mov	r8, QWORD PTR 80[rsp]
	mov	r15, QWORD PTR 72[rsp]
	mov	ecx, 1
	lea	rdx, .LC10[rip]
	mov	rdi, r8
	mov	rsi, r15
	mov	QWORD PTR 72[rsp], r8
	call	show_image@PLT
	mov	r9, QWORD PTR 88[rsp]
	mov	r14, QWORD PTR 40[rsp]
	mov	ecx, 100
	lea	rdx, .LC11[rip]
	mov	rdi, r9
	mov	rsi, r14
	mov	QWORD PTR 32[rsp], r9
	call	show_image@PLT
	mov	r9, QWORD PTR 32[rsp]
	mov	rsi, r14
	mov	rdi, r9
	call	free_image@PLT
	mov	r8, QWORD PTR 72[rsp]
	mov	rsi, r15
	mov	rdi, r8
	call	free_image@PLT
	movss	xmm1, DWORD PTR 108[rsp]
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L19:
	mov	r15, QWORD PTR 48[rsp]
	mov	rdx, QWORD PTR 56[rsp]
	mov	rdi, rbx
	xor	eax, eax
	lea	rsi, .LC17[rip]
	mov	rcx, r15
	call	sprintf@PLT
	mov	rsi, rbx
	mov	rdi, rbp
	call	save_weights@PLT
	mov	rdi, rbp
	call	free_network@PLT
	mov	rbx, QWORD PTR 144[rsp]
	mov	rdi, QWORD PTR 152[rsp]
	mov	esi, DWORD PTR [rbx]
	call	free_ptrs@PLT
	mov	rdi, rbx
	call	free_list@PLT
	mov	rdi, r15
	call	free@PLT
	mov	rax, QWORD PTR 536[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L22
	add	rsp, 552
	.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
.L22:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	train_isegmenter, .-train_isegmenter
	.comm	ISEG_DATA,4,4
	.section	.rodata.cst4,"aM",@progbits,4
	.align 4
.LC0:
	.long	3212836864
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC12:
	.long	3435973837
	.long	1072483532
	.align 8
.LC13:
	.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_instance-segmenter.c_train_isegmenter.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"%d\012\000"
	.global	__aeabi_idiv
	.align	2
.LC1:
	.ascii	"Learning Rate: %g, Momentum: %g, Decay: %g\012\000"
	.align	2
.LC2:
	.ascii	"/backup/\000"
	.align	2
.LC3:
	.ascii	"backup\000"
	.align	2
.LC4:
	.ascii	"data/train.list\000"
	.align	2
.LC5:
	.ascii	"train\000"
	.global	__aeabi_dsub
	.align	2
.LC6:
	.ascii	"Loaded: %lf seconds\012\000"
	.align	2
.LC7:
	.ascii	"embed\000"
	.align	2
.LC8:
	.ascii	"input\000"
	.align	2
.LC9:
	.ascii	"pred\000"
	.align	2
.LC10:
	.ascii	"truth\000"
	.global	__aeabi_fcmpeq
	.global	__aeabi_f2d
	.global	__aeabi_dmul
	.global	__aeabi_dadd
	.global	__aeabi_d2f
	.global	__aeabi_i2f
	.global	__aeabi_fdiv
	.align	2
.LC11:
	.ascii	"%ld, %.3f: %f, %f avg, %f rate, %lf seconds, %ld im"
	.ascii	"ages\012\000"
	.align	2
.LC12:
	.ascii	"%s/%s_%d.weights\000"
	.align	2
.LC13:
	.ascii	"%s/%s.backup\000"
	.align	2
.LC14:
	.ascii	"%s/%s.weights\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC15:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	train_isegmenter
	.syntax unified
	.arm
	.fpu softvfp
	.type	train_isegmenter, %function
train_isegmenter:
	@ args = 12, pretend = 0, frame = 528
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r9, r0
	sub	sp, sp, #596
	ldr	r3, .L23
	mov	r0, r1
	str	r9, [sp, #64]
	mov	r7, r2
	ldr	r3, [r3]
	str	r3, [sp, #588]
	mov	r3,#0
	ldr	r4, [sp, #632]
	mov	r5, r1
	ldr	r10, [sp, #636]
	bl	basecfg
	str	r0, [sp, #88]
	bl	puts
	mov	r1, r4
	ldr	r0, .L23+4
	bl	printf
	mov	r1, #4
	mov	r0, r4
	bl	calloc
	mov	fp, r0
	mov	r0, #0
	bl	time
	bl	srand
	bl	rand
	cmp	r4, #0
	ble	.L2
	mov	r6, r0
	add	r8, fp, r4, lsl #2
	sub	r8, r8, #4
	sub	r9, fp, #4
.L3:
	mov	r0, r6
	bl	srand
	mov	r2, r10
	mov	r1, r7
	mov	r0, r5
	bl	load_network
	ldr	r3, [r0]
	str	r0, [r9, #4]!
	mul	r3, r4, r3
	cmp	r8, r9
	str	r3, [r0]
	bne	.L3
.L2:
	mov	r0, #0
	bl	time
	bl	srand
	ldr	r10, [fp]
	add	r0, sp, #140
	mov	r1, r10
	bl	get_network_image
	ldr	r6, [sp, #148]
	mov	r2, #3
	mov	r3, r6
	ldr	r7, [sp, #152]
	ldr	ip, [sp, #144]
	mul	r3, r7, r3
	ldr	r5, [r10, #4]
	add	r3, r3, r3, lsl #2
	add	r3, ip, r3, lsl #4
	mov	r1, r6
	mov	r0, r5
	str	ip, [sp, #104]
	str	ip, [sp, #160]
	str	r2, [sp, #156]
	str	r3, [sp, #100]
	str	r6, [sp, #96]
	str	r7, [sp, #84]
	str	r6, [sp, #164]
	str	r7, [sp, #168]
	bl	__aeabi_idiv
	mov	fp, r0
	str	r0, [sp, #108]
	mul	r0, r6, r0
	sub	r0, r0, r5
	clz	r0, r0
	lsr	r0, r0, #5
	bl	assert
	mov	r0, fp
	mul	r0, r7, r0
	ldr	r3, [r10, #8]
	mov	r5, #0
	sub	r0, r0, r3
	clz	r0, r0
	lsr	r0, r0, #5
	bl	assert
	add	r3, r10, #24
	ldmia	r3, {r2-r3}
	add	r9, r10, #32
	ldmia	r9, {r8-r9}
	ldr	r0, [r10, #16]
	ldr	r6, [r10, #12]
	ldr	r1, [r10]
	mul	r6, r0, r6
	stm	sp, {r8-r9}
	ldr	r0, .L23+8
	bl	printf
	ldr	r0, [sp, #64]
	bl	read_data_cfg
	ldr	r2, .L23+12
	ldr	r1, .L23+16
	mul	r6, r4, r6
	mov	r4, r0
	bl	option_find_str
	mov	r3, r0
	ldr	r2, .L23+20
	ldr	r1, .L23+24
	mov	r0, r4
	str	r3, [sp, #92]
	bl	option_find_str
	bl	get_paths
	mov	r7, r0
	str	r0, [sp, #112]
	bl	list_to_array
	mov	r3, r0
	mov	r4, #80
	mov	r8, r3
	ldr	r1, [r7]
	ldr	r0, .L23+4
	str	r3, [sp, #116]
	bl	printf
	mov	r1, #32
	mov	r2, #90
	mov	ip, sp
	ldr	r9, [r7]
	str	r5, [sp, #328]
	ldr	r7, [r10, #8]
	ldr	r5, [r10, #76]
	str	r4, [sp, #276]
	ldr	r0, .L23+28
	ldr	r4, [r10, #72]
	ldr	r3, [r10, #4]
	ldr	r0, [r0]
	str	r8, [sp, #280]
	str	r6, [sp, #284]
	ldr	r8, [r10, #64]
	ldr	r6, [r10, #68]
	str	r7, [sp, #256]
	str	r5, [sp, #324]
	ldr	r7, [r10, #60]
	ldr	r5, [r10, #56]
	str	r4, [sp, #320]
	ldr	r4, [r10, #52]
	str	r3, [sp, #252]
	str	r3, [sp, #272]
	add	lr, sp, #268
	add	r3, sp, #132
	str	fp, [sp, #264]
	str	r9, [sp, #68]
	str	r9, [sp, #288]
	str	r6, [sp, #316]
	str	r8, [sp, #312]
	str	r7, [sp, #308]
	str	r5, [sp, #304]
	str	r4, [sp, #300]
	str	r0, [sp, #296]
	str	r1, [sp, #260]
	str	r2, [sp, #268]
	str	r3, [sp, #292]
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldm	lr, {r0, r1, r2, r3}
	stm	ip, {r0, r1, r2, r3}
	add	r3, sp, #252
	ldm	r3, {r0, r1, r2, r3}
	bl	load_data
	mov	r3, r0
	ldr	r2, [r10, #40]
	mov	r1, r9
	ldr	r0, [r2]
	str	r3, [sp, #64]
	bl	__aeabi_idiv
	ldr	fp, .L23+32
	str	r0, [sp, #80]
.L4:
	mov	r0, r10
	bl	get_current_batch
	ldr	r2, [r10, #44]
	clz	r3, r2
	lsr	r3, r3, #5
	cmp	r0, r2
	orrlt	r3, r3, #1
	cmp	r3, #0
	beq	.L19
	bl	what_time_is_it_now
	mov	r4, r0
	mov	r5, r1
	ldr	r0, [sp, #64]
	mov	r1, #0
	bl	pthread_join
	mov	ip, sp
	add	lr, sp, #268
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldm	lr, {r0, r1, r2, r3}
	ldr	r6, [sp, #132]
	ldr	r7, [sp, #136]
	stm	ip, {r0, r1, r2, r3}
	add	r3, sp, #252
	ldm	r3, {r0, r1, r2, r3}
	bl	load_data
	str	r0, [sp, #64]
	bl	what_time_is_it_now
	mov	r2, r4
	mov	r3, r5
	bl	__aeabi_dsub
	mov	r2, r0
	mov	r3, r1
	ldr	r0, .L23+36
	bl	printf
	bl	what_time_is_it_now
	mov	r5, r1
	mov	r4, r0
	add	r3, sp, #124
	str	r6, [sp, #124]
	str	r7, [sp, #128]
	ldm	r3, {r1, r2}
	mov	r0, r10
	str	r4, [sp, #72]
	str	r5, [sp, #76]
	bl	train_network
	ldr	r3, [sp, #640]
	mov	r5, r0
	cmp	r3, #0
	bne	.L20
.L5:
	mov	r0, fp
	ldr	r1, .L23+32
	bl	__aeabi_fcmpeq
	cmp	r0, #0
	mov	r0, r5
	movne	fp, r5
	bl	__aeabi_f2d
	mov	r4, r0
	mov	r0, fp
	mov	r5, r1
	bl	__aeabi_f2d
	ldr	r2, .L23+40
	ldr	r3, .L23+44
	bl	__aeabi_dmul
	ldr	r2, .L23+48
	mov	r6, r0
	mov	r7, r1
	mov	r0, r4
	ldr	r3, .L23+52
	mov	r1, r5
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, r6
	mov	r1, r7
	bl	__aeabi_dadd
	bl	__aeabi_d2f
	mov	fp, r0
	mov	r0, r10
	bl	get_current_batch
	ldr	r3, [r10, #40]
	mov	r8, r0
	ldr	r0, [r3]
	bl	__aeabi_i2f
	mov	r6, r0
	ldr	r0, [sp, #68]
	bl	__aeabi_i2f
	mov	r1, r0
	mov	r0, r6
	bl	__aeabi_fdiv
	bl	__aeabi_f2d
	mov	r6, r0
	mov	r0, r10
	mov	r7, r1
	bl	get_current_rate
	mov	r9, r0
	bl	what_time_is_it_now
	add	r3, sp, #72
	ldmia	r3, {r2-r3}
	ldr	ip, [r10, #40]
	ldr	ip, [ip]
	str	ip, [sp, #32]
	bl	__aeabi_dsub
	mov	r2, r0
	mov	r3, r1
	mov	r0, fp
	str	r2, [sp, #24]
	str	r3, [sp, #28]
	str	r9, [sp, #16]
	bl	__aeabi_f2d
	mov	r2, r6
	str	r0, [sp, #8]
	str	r1, [sp, #12]
	mov	r3, r7
	mov	r1, r8
	stm	sp, {r4-r5}
	ldr	r0, .L23+56
	bl	printf
	add	r3, sp, #124
	ldm	r3, {r0, r1}
	bl	free_data
	ldr	r3, [r10, #40]
	ldr	r1, [sp, #68]
	ldr	r0, [r3]
	bl	__aeabi_idiv
	ldr	r3, [sp, #80]
	mov	r4, r0
	cmp	r0, r3
	bgt	.L21
.L8:
	mov	r0, r10
	bl	get_current_batch
	ldr	r1, .L23+60
	ldr	r2, .L23+64
	ldr	r3, .L23+68
	mla	r0, r1, r0, r2
	cmp	r3, r0, ror #2
	bcc	.L4
	ldr	r3, [sp, #88]
	ldr	r2, [sp, #92]
	ldr	r1, .L23+72
	add	r0, sp, #332
	bl	sprintf
	mov	r0, r10
	add	r1, sp, #332
	bl	save_weights
	b	.L4
.L21:
	str	r0, [sp]
	ldr	r3, [sp, #88]
	ldr	r2, [sp, #92]
	ldr	r1, .L23+76
	add	r0, sp, #332
	bl	sprintf
	mov	r0, r10
	add	r1, sp, #332
	str	r4, [sp, #80]
	bl	save_weights
	b	.L8
.L20:
	ldr	r4, [sp, #108]
	ldr	r0, [r10, #8]
	mov	r1, r4
	bl	__aeabi_idiv
	mov	r1, r4
	mov	r8, r0
	ldr	r0, [r10, #4]
	bl	__aeabi_idiv
	ldr	r3, [r10, #16]
	ldr	r2, [r10, #12]
	sub	r3, r3, #1
	mul	r3, r2, r3
	ldr	r3, [r7, r3, lsl #2]
	add	r4, sp, #172
	mov	r1, r0
	mov	r2, r8
	mov	r0, r4
	str	r3, [sp]
	mov	r3, #80
	bl	float_to_image
	ldr	r2, [r10, #16]
	ldr	r3, [r10, #12]
	sub	r2, r2, #1
	mul	r2, r3, r2
	ldr	r0, [r6, r2, lsl #2]
	add	r8, sp, #188
	ldr	r3, [r10, #48]
	ldmib	r10, {r1, r2}
	str	r0, [sp]
	mov	r0, r8
	bl	float_to_image
	ldm	r4, {r1, r2, r3}
	ldr	r0, [sp, #184]
	add	r7, sp, #204
	str	r0, [sp]
	mov	r0, r7
	bl	mask_to_rgb
	mov	r3, #80
	mov	r9, #1
	ldr	r2, [sp, #104]
	ldr	ip, [sp, #84]
	str	r2, [sp, #144]
	ldr	r2, [sp, #96]
	str	r3, [sp, #140]
	add	r6, sp, #220
	str	ip, [sp]
	str	r2, [sp, #148]
	add	r3, sp, #140
	ldm	r3, {r1, r2, r3}
	mov	r0, r6
	str	ip, [sp, #152]
	bl	mask_to_rgb
	ldr	ip, [sp, #84]
	ldr	r3, [sp, #100]
	ldr	r2, [sp, #96]
	add	r4, sp, #236
	str	ip, [sp]
	str	r3, [sp, #160]
	str	r2, [sp, #164]
	add	r3, sp, #156
	mov	r0, r4
	ldm	r3, {r1, r2, r3}
	str	ip, [sp, #168]
	bl	copy_image
	ldm	r4, {r0, r1, r2, r3}
	bl	normalize_image2
	ldm	r4, {r0, r1, r2, r3}
	ldr	ip, .L23+80
	str	r9, [sp, #4]
	str	ip, [sp]
	bl	show_image
	ldm	r4, {r0, r1, r2, r3}
	bl	free_image
	ldm	r8, {r0, r1, r2, r3}
	ldr	ip, .L23+84
	str	r9, [sp, #4]
	str	ip, [sp]
	bl	show_image
	ldm	r6, {r0, r1, r2, r3}
	ldr	ip, .L23+88
	str	r9, [sp, #4]
	str	ip, [sp]
	bl	show_image
	ldm	r7, {r0, r1, r2, r3}
	mov	lr, #100
	ldr	ip, .L23+92
	stm	sp, {ip, lr}
	bl	show_image
	ldm	r7, {r0, r1, r2, r3}
	bl	free_image
	ldm	r6, {r0, r1, r2, r3}
	bl	free_image
	b	.L5
.L19:
	ldr	r5, [sp, #88]
	ldr	r2, [sp, #92]
	mov	r3, r5
	ldr	r1, .L23+96
	add	r0, sp, #332
	bl	sprintf
	add	r1, sp, #332
	mov	r0, r10
	bl	save_weights
	mov	r0, r10
	bl	free_network
	ldr	r4, [sp, #112]
	ldr	r0, [sp, #116]
	ldr	r1, [r4]
	bl	free_ptrs
	mov	r0, r4
	bl	free_list
	mov	r0, r5
	bl	free
	ldr	r3, .L23
	ldr	r2, [r3]
	ldr	r3, [sp, #588]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L22
	add	sp, sp, #596
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L22:
	bl	__stack_chk_fail
.L24:
	.align	2
.L23:
	.word	.LC15
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	ISEG_DATA
	.word	-1082130432
	.word	.LC6
	.word	-858993459
	.word	1072483532
	.word	-1717986918
	.word	1069128089
	.word	.LC11
	.word	-1030792151
	.word	85899344
	.word	42949672
	.word	.LC13
	.word	.LC12
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC14
	.size	train_isegmenter, .-train_isegmenter
	.comm	ISEG_DATA,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
