	.file	"extr_network.c_train_network_sgd.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	train_network_sgd
	.type	train_network_sgd, @function
train_network_sgd:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13d, edx
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	sub	rsp, 16
	.cfi_def_cfa_offset 64
	mov	r12d, DWORD PTR [rdi]
	test	edx, edx
	jle	.L4
	mov	rbx, rdi
	mov	r14d, esi
	pxor	xmm1, xmm1
	xor	ebp, ebp
	.p2align 4,,10
	.p2align 3
.L3:
	mov	ecx, DWORD PTR 4[rbx]
	mov	edx, DWORD PTR 8[rbx]
	mov	esi, r12d
	mov	edi, r14d
	movss	DWORD PTR 12[rsp], xmm1
	add	ebp, 1
	call	get_random_batch@PLT
	mov	rdi, rbx
	call	train_network_datum@PLT
	movss	xmm1, DWORD PTR 12[rsp]
	addss	xmm1, xmm0
	cmp	r13d, ebp
	jne	.L3
.L2:
	imul	r12d, r13d
	pxor	xmm0, xmm0
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	pop	rbx
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	cvtsi2ss	xmm0, r12d
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	divss	xmm1, xmm0
	movaps	xmm0, xmm1
	ret
	.p2align 4,,10
	.p2align 3
.L4:
	.cfi_restore_state
	pxor	xmm1, xmm1
	jmp	.L2
	.cfi_endproc
.LFE0:
	.size	train_network_sgd, .-train_network_sgd
	.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_network.c_train_network_sgd.c"
	.text
	.global	__aeabi_fadd
	.global	__aeabi_i2f
	.global	__aeabi_fdiv
	.align	2
	.global	train_network_sgd
	.syntax unified
	.arm
	.fpu softvfp
	.type	train_network_sgd, %function
train_network_sgd:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	subs	r7, r2, #0
	ldr	r9, [r0]
	ble	.L4
	mov	r5, r0
	mov	r8, r1
	mov	r6, #0
	mov	r4, #0
.L3:
	mov	r1, r9
	ldr	r3, [r5, #4]
	ldr	r2, [r5, #8]
	mov	r0, r8
	bl	get_random_batch
	mov	r0, r5
	bl	train_network_datum
	mov	r1, r0
	mov	r0, r4
	bl	__aeabi_fadd
	add	r6, r6, #1
	cmp	r7, r6
	mov	r4, r0
	bne	.L3
.L2:
	mul	r0, r7, r9
	bl	__aeabi_i2f
	mov	r1, r0
	mov	r0, r4
	bl	__aeabi_fdiv
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L4:
	mov	r4, #0
	b	.L2
	.size	train_network_sgd, .-train_network_sgd
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
