	.file	"173577135.c"
	.intel_syntax noprefix
	.text
	.globl	enzyme_dup
	.bss
	.align 4
	.type	enzyme_dup, @object
	.size	enzyme_dup, 4
enzyme_dup:
	.zero	4
	.section	.rodata
.LC0:
	.string	"%f "
	.text
	.globl	print_matrix
	.type	print_matrix, @function
print_matrix:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 40
	.cfi_offset 3, -24
	mov	DWORD PTR -36[rbp], edi
	mov	DWORD PTR -40[rbp], esi
	mov	QWORD PTR -48[rbp], rdx
	mov	ebx, DWORD PTR -40[rbp]
	movsx	rax, ebx
	sub	rax, 1
	mov	QWORD PTR -24[rbp], rax
	movsx	rax, ebx
	mov	r8, rax
	mov	r9d, 0
	mov	DWORD PTR -28[rbp], 0
	jmp	.L2
.L5:
	mov	DWORD PTR -32[rbp], 0
	jmp	.L3
.L4:
	mov	eax, DWORD PTR -28[rbp]
	movsx	rdx, eax
	movsx	rax, ebx
	imul	rax, rdx
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -48[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -32[rbp]
	cdqe
	mov	rax, QWORD PTR [rdx+rax*8]
	movq	xmm0, rax
	lea	rdi, .LC0[rip]
	mov	eax, 1
	call	printf@PLT
	add	DWORD PTR -32[rbp], 1
.L3:
	mov	eax, DWORD PTR -32[rbp]
	cmp	eax, DWORD PTR -40[rbp]
	jl	.L4
	mov	edi, 10
	call	putchar@PLT
	add	DWORD PTR -28[rbp], 1
.L2:
	mov	eax, DWORD PTR -28[rbp]
	cmp	eax, DWORD PTR -36[rbp]
	jl	.L5
	mov	edi, 10
	call	putchar@PLT
	nop
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	print_matrix, .-print_matrix
	.globl	mat_mat
	.type	mat_mat, @function
mat_mat:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -8[rbp], rdi
	mov	QWORD PTR -16[rbp], rsi
	mov	rax, QWORD PTR -16[rbp]
	add	rax, 16
	movsd	xmm1, QWORD PTR [rax]
	mov	rax, QWORD PTR -16[rbp]
	add	rax, 24
	movsd	xmm0, QWORD PTR [rax]
	mulsd	xmm1, xmm0
	mov	rax, QWORD PTR -16[rbp]
	movsd	xmm2, QWORD PTR [rax]
	mov	rax, QWORD PTR -16[rbp]
	movsd	xmm0, QWORD PTR [rax]
	mulsd	xmm0, xmm2
	addsd	xmm0, xmm1
	mov	rax, QWORD PTR -8[rbp]
	movsd	QWORD PTR [rax], xmm0
	mov	rax, QWORD PTR -16[rbp]
	add	rax, 8
	movsd	xmm1, QWORD PTR [rax]
	movsd	xmm0, QWORD PTR .LC1[rip]
	mulsd	xmm1, xmm0
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 8
	movsd	xmm0, QWORD PTR .LC2[rip]
	addsd	xmm0, xmm1
	movsd	QWORD PTR [rax], xmm0
	mov	rax, QWORD PTR -16[rbp]
	add	rax, 24
	movsd	xmm1, QWORD PTR [rax]
	mov	rax, QWORD PTR -16[rbp]
	add	rax, 24
	movsd	xmm0, QWORD PTR [rax]
	mulsd	xmm1, xmm0
	mov	rax, QWORD PTR -16[rbp]
	add	rax, 24
	movsd	xmm0, QWORD PTR [rax]
	mulsd	xmm1, xmm0
	mov	rax, QWORD PTR -16[rbp]
	movsd	xmm0, QWORD PTR [rax]
	movapd	xmm2, xmm0
	addsd	xmm2, xmm0
	mov	rax, QWORD PTR -16[rbp]
	add	rax, 16
	movsd	xmm0, QWORD PTR [rax]
	mulsd	xmm0, xmm2
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 16
	addsd	xmm0, xmm1
	movsd	QWORD PTR [rax], xmm0
	mov	rax, QWORD PTR -16[rbp]
	movsd	xmm1, QWORD PTR [rax]
	movsd	xmm0, QWORD PTR .LC3[rip]
	mulsd	xmm1, xmm0
	mov	rax, QWORD PTR -16[rbp]
	add	rax, 24
	movsd	xmm2, QWORD PTR [rax]
	movsd	xmm0, QWORD PTR .LC1[rip]
	mulsd	xmm0, xmm2
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 24
	addsd	xmm0, xmm1
	movsd	QWORD PTR [rax], xmm0
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	mat_mat, .-mat_mat
	.globl	mat2tensor
	.type	mat2tensor, @function
mat2tensor:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r15
	push	r14
	push	r13
	push	r12
	push	rbx
	sub	rsp, 64
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	mov	DWORD PTR -116[rbp], edi
	mov	DWORD PTR -120[rbp], esi
	mov	DWORD PTR -124[rbp], edx
	mov	DWORD PTR -128[rbp], ecx
	mov	QWORD PTR -136[rbp], r8
	mov	QWORD PTR -144[rbp], r9
	mov	edx, DWORD PTR -120[rbp]
	mov	eax, DWORD PTR -128[rbp]
	lea	r13d, [rdx+rax]
	movsx	rax, r13d
	sub	rax, 1
	mov	QWORD PTR -80[rbp], rax
	movsx	rax, r13d
	mov	r10, rax
	mov	r11d, 0
	mov	r11d, DWORD PTR -128[rbp]
	movsx	rax, r11d
	sub	rax, 1
	mov	QWORD PTR -72[rbp], rax
	movsx	rax, r11d
	mov	QWORD PTR -224[rbp], rax
	mov	QWORD PTR -216[rbp], 0
	movsx	rax, r11d
	lea	r12, 0[0+rax*8]
	mov	ebx, DWORD PTR -124[rbp]
	movsx	rax, ebx
	sub	rax, 1
	mov	QWORD PTR -64[rbp], rax
	movsx	rax, r11d
	mov	QWORD PTR -176[rbp], rax
	mov	QWORD PTR -168[rbp], 0
	movsx	rax, ebx
	mov	QWORD PTR -192[rbp], rax
	mov	QWORD PTR -184[rbp], 0
	mov	rsi, QWORD PTR -176[rbp]
	mov	rdi, QWORD PTR -168[rbp]
	mov	rdx, rdi
	mov	r8, QWORD PTR -192[rbp]
	mov	r9, QWORD PTR -184[rbp]
	imul	rdx, r8
	mov	rax, r9
	imul	rax, rsi
	lea	rcx, [rdx+rax]
	mov	rax, rsi
	mul	r8
	add	rcx, rdx
	mov	rdx, rcx
	movsx	rdx, r11d
	movsx	rax, ebx
	imul	rax, rdx
	lea	r8, 0[0+rax*8]
	mov	ecx, DWORD PTR -120[rbp]
	movsx	rax, ecx
	sub	rax, 1
	mov	QWORD PTR -56[rbp], rax
	movsx	rax, r11d
	mov	QWORD PTR -208[rbp], rax
	mov	QWORD PTR -200[rbp], 0
	movsx	rax, ebx
	mov	QWORD PTR -160[rbp], rax
	mov	QWORD PTR -152[rbp], 0
	mov	rsi, QWORD PTR -208[rbp]
	mov	rdi, QWORD PTR -200[rbp]
	mov	rdx, rdi
	mov	r9, QWORD PTR -160[rbp]
	mov	r10, QWORD PTR -152[rbp]
	imul	rdx, r9
	mov	QWORD PTR -160[rbp], r9
	mov	QWORD PTR -152[rbp], r10
	mov	rax, r10
	mov	r9, rsi
	mov	r10, rdi
	imul	rax, r9
	lea	rsi, [rdx+rax]
	mov	rax, r9
	mul	QWORD PTR -160[rbp]
	add	rsi, rdx
	mov	rdx, rsi
	movsx	rsi, ecx
	mov	r14, rsi
	mov	r15d, 0
	mov	rdi, rdx
	imul	rdi, r14
	mov	rsi, r15
	imul	rsi, rax
	add	rsi, rdi
	mul	r14
	add	rsi, rdx
	mov	rdx, rsi
	mov	DWORD PTR -84[rbp], 0
	mov	DWORD PTR -88[rbp], 0
	jmp	.L8
.L15:
	mov	DWORD PTR -92[rbp], 0
	jmp	.L9
.L14:
	mov	DWORD PTR -96[rbp], 0
	mov	DWORD PTR -100[rbp], 0
	jmp	.L10
.L13:
	mov	DWORD PTR -104[rbp], 0
	jmp	.L11
.L12:
	mov	eax, DWORD PTR -84[rbp]
	movsx	rdx, eax
	movsx	rax, r13d
	imul	rax, rdx
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -136[rbp]
	lea	rsi, [rdx+rax]
	mov	r10, r8
	shr	r10, 3
	mov	r9, r12
	shr	r9, 3
	mov	eax, DWORD PTR -88[rbp]
	movsx	rdx, eax
	movsx	rdi, r11d
	movsx	rax, ebx
	imul	rdi, rax
	movsx	rax, ecx
	imul	rax, rdi
	imul	rax, rdx
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -144[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -96[rbp]
	cdqe
	movsd	xmm0, QWORD PTR [rsi+rax*8]
	mov	eax, DWORD PTR -104[rbp]
	movsx	rdi, eax
	mov	eax, DWORD PTR -92[rbp]
	cdqe
	imul	rax, r10
	mov	rsi, rax
	mov	eax, DWORD PTR -100[rbp]
	cdqe
	imul	rax, r9
	add	rsi, rdi
	add	rax, rsi
	movsd	QWORD PTR [rdx+rax*8], xmm0
	add	DWORD PTR -96[rbp], 1
	add	DWORD PTR -104[rbp], 1
.L11:
	mov	eax, DWORD PTR -104[rbp]
	cmp	eax, DWORD PTR -128[rbp]
	jl	.L12
	add	DWORD PTR -100[rbp], 1
.L10:
	mov	eax, DWORD PTR -100[rbp]
	cmp	eax, DWORD PTR -124[rbp]
	jl	.L13
	add	DWORD PTR -84[rbp], 1
	add	DWORD PTR -92[rbp], 1
.L9:
	mov	eax, DWORD PTR -92[rbp]
	cmp	eax, DWORD PTR -120[rbp]
	jl	.L14
	add	DWORD PTR -88[rbp], 1
.L8:
	mov	eax, DWORD PTR -88[rbp]
	cmp	eax, DWORD PTR -116[rbp]
	jl	.L15
	nop
	nop
	add	rsp, 64
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	r15
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	mat2tensor, .-mat2tensor
	.globl	get_grad
	.type	get_grad, @function
get_grad:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 112
	mov	QWORD PTR -104[rbp], rdi
	mov	QWORD PTR -112[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -80[rbp], 0
	mov	QWORD PTR -72[rbp], 0
	mov	QWORD PTR -64[rbp], 0
	mov	QWORD PTR -56[rbp], 0
	mov	DWORD PTR -84[rbp], 0
	jmp	.L17
.L18:
	mov	QWORD PTR -48[rbp], 0
	mov	QWORD PTR -40[rbp], 0
	mov	QWORD PTR -32[rbp], 0
	mov	QWORD PTR -24[rbp], 0
	mov	eax, DWORD PTR -84[rbp]
	cdqe
	movsd	xmm0, QWORD PTR .LC4[rip]
	movsd	QWORD PTR -48[rbp+rax*8], xmm0
	mov	eax, DWORD PTR -84[rbp]
	cdqe
	sal	rax, 5
	mov	rdx, rax
	mov	rax, QWORD PTR -112[rbp]
	lea	rsi, [rdx+rax]
	mov	edi, DWORD PTR enzyme_dup[rip]
	mov	eax, DWORD PTR enzyme_dup[rip]
	mov	r8, QWORD PTR -104[rbp]
	lea	rcx, -48[rbp]
	lea	rdx, -80[rbp]
	sub	rsp, 8
	push	rsi
	mov	r9, r8
	mov	r8d, edi
	mov	esi, eax
	lea	rdi, mat_mat[rip]
	mov	eax, 0
	call	__enzyme_autodiff@PLT
	add	rsp, 16
	add	DWORD PTR -84[rbp], 1
.L17:
	cmp	DWORD PTR -84[rbp], 3
	jle	.L18
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L19
	call	__stack_chk_fail@PLT
.L19:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	get_grad, .-get_grad
	.globl	main
	.type	main, @function
main:
.LFB10:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 304
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	movsd	xmm0, QWORD PTR .LC3[rip]
	movsd	QWORD PTR -304[rbp], xmm0
	movsd	xmm0, QWORD PTR .LC5[rip]
	movsd	QWORD PTR -296[rbp], xmm0
	movsd	xmm0, QWORD PTR .LC4[rip]
	movsd	QWORD PTR -288[rbp], xmm0
	movsd	xmm0, QWORD PTR .LC6[rip]
	movsd	QWORD PTR -280[rbp], xmm0
	lea	rdx, -272[rbp]
	mov	eax, 0
	mov	ecx, 16
	mov	rdi, rdx
	rep stosq
	lea	rdx, -272[rbp]
	lea	rax, -304[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	get_grad
	lea	rax, -272[rbp]
	mov	rdx, rax
	mov	esi, 4
	mov	edi, 4
	call	print_matrix
	lea	rdx, -144[rbp]
	mov	eax, 0
	mov	ecx, 16
	mov	rdi, rdx
	rep stosq
	lea	rdx, -144[rbp]
	lea	rax, -272[rbp]
	mov	r9, rdx
	mov	r8, rax
	mov	ecx, 2
	mov	edx, 2
	mov	esi, 2
	mov	edi, 2
	call	mat2tensor
	lea	rax, -144[rbp]
	mov	rdx, rax
	mov	esi, 2
	mov	edi, 2
	call	print_matrix
	lea	rax, -144[rbp]
	add	rax, 32
	mov	rdx, rax
	mov	esi, 2
	mov	edi, 2
	call	print_matrix
	lea	rax, -144[rbp]
	add	rax, 64
	mov	rdx, rax
	mov	esi, 2
	mov	edi, 2
	call	print_matrix
	lea	rax, -144[rbp]
	add	rax, 96
	mov	rdx, rax
	mov	esi, 2
	mov	edi, 2
	call	print_matrix
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L22
	call	__stack_chk_fail@PLT
.L22:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC1:
	.long	0
	.long	1074790400
	.align 8
.LC2:
	.long	0
	.long	1076756480
	.align 8
.LC3:
	.long	0
	.long	1074266112
	.align 8
.LC4:
	.long	0
	.long	1072693248
	.align 8
.LC5:
	.long	0
	.long	1075052544
	.align 8
.LC6:
	.long	0
	.long	1075576832
	.ident	"GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.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, 6
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"173577135.c"
	.text
	.comm	enzyme_dup,4,4
	.section	.rodata
	.align	2
.LC1:
	.ascii	"%f \000"
	.text
	.align	2
	.global	print_matrix
	.syntax unified
	.arm
	.fpu softvfp
	.type	print_matrix, %function
print_matrix:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #36
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	str	r2, [fp, #-40]
	ldr	r4, [fp, #-36]
	sub	r3, r4, #1
	str	r3, [fp, #-16]
	mov	r3, r4
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #6
	orr	r3, r3, r0, lsr #26
	lsl	r2, r0, #6
	mov	r3, #0
	str	r3, [fp, #-20]
	b	.L2
.L5:
	mov	r3, #0
	str	r3, [fp, #-24]
	b	.L3
.L4:
	mov	r2, r4
	ldr	r3, [fp, #-20]
	mul	r3, r2, r3
	lsl	r3, r3, #3
	ldr	r2, [fp, #-40]
	add	r2, r2, r3
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldmia	r3, {r2-r3}
	ldr	r0, .L6
	bl	printf
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
.L3:
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-36]
	cmp	r2, r3
	blt	.L4
	mov	r0, #10
	bl	putchar
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L2:
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-32]
	cmp	r2, r3
	blt	.L5
	mov	r0, #10
	bl	putchar
	nop
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L7:
	.align	2
.L6:
	.word	.LC1
	.size	print_matrix, .-print_matrix
	.global	__aeabi_dmul
	.global	__aeabi_dadd
	.align	2
	.global	mat_mat
	.syntax unified
	.arm
	.fpu softvfp
	.type	mat_mat, %function
mat_mat:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, fp, lr}
	add	fp, sp, #20
	sub	sp, sp, #8
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	ldr	r3, [fp, #-28]
	add	r3, r3, #16
	ldmia	r3, {r0-r1}
	ldr	r3, [fp, #-28]
	add	r3, r3, #24
	ldmia	r3, {r2-r3}
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r4, r2
	mov	r5, r3
	ldr	r3, [fp, #-28]
	ldmia	r3, {r0-r1}
	ldr	r3, [fp, #-28]
	ldmia	r3, {r2-r3}
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	ldr	r1, [fp, #-24]
	stm	r1, {r2-r3}
	ldr	r3, [fp, #-28]
	add	r3, r3, #8
	ldmia	r3, {r0-r1}
	mov	r2, #0
	ldr	r3, .L9
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	ldr	r3, [fp, #-24]
	add	r4, r3, #8
	mov	r2, #0
	ldr	r3, .L9+4
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	stm	r4, {r2-r3}
	ldr	r3, [fp, #-28]
	add	r3, r3, #24
	ldmia	r3, {r0-r1}
	ldr	r3, [fp, #-28]
	add	r3, r3, #24
	ldmia	r3, {r2-r3}
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	ldr	r3, [fp, #-28]
	add	r3, r3, #24
	ldmia	r3, {r2-r3}
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r6, r2
	mov	r7, r3
	ldr	r3, [fp, #-28]
	ldmia	r3, {r0-r1}
	mov	r2, r0
	mov	r3, r1
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	ldr	r3, [fp, #-28]
	add	r3, r3, #16
	ldmia	r3, {r2-r3}
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	ldr	r3, [fp, #-24]
	add	r4, r3, #16
	mov	r2, r0
	mov	r3, r1
	mov	r0, r6
	mov	r1, r7
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	stm	r4, {r2-r3}
	ldr	r3, [fp, #-28]
	ldmia	r3, {r0-r1}
	mov	r2, #0
	ldr	r3, .L9+8
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r6, r2
	mov	r7, r3
	ldr	r3, [fp, #-28]
	add	r3, r3, #24
	ldmia	r3, {r0-r1}
	mov	r2, #0
	ldr	r3, .L9
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	ldr	r3, [fp, #-24]
	add	r4, r3, #24
	mov	r2, r0
	mov	r3, r1
	mov	r0, r6
	mov	r1, r7
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	stm	r4, {r2-r3}
	nop
	sub	sp, fp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, fp, pc}
.L10:
	.align	2
.L9:
	.word	1074790400
	.word	1076756480
	.word	1074266112
	.size	mat_mat, .-mat_mat
	.align	2
	.global	mat2tensor
	.syntax unified
	.arm
	.fpu softvfp
	.type	mat2tensor, %function
mat2tensor:
	@ args = 8, pretend = 0, frame = 56
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	add	fp, sp, #32
	sub	sp, sp, #60
	str	r0, [fp, #-80]
	str	r1, [fp, #-84]
	str	r2, [fp, #-88]
	str	r3, [fp, #-92]
	ldr	r2, [fp, #-84]
	ldr	r3, [fp, #-92]
	add	r6, r2, r3
	sub	r3, r6, #1
	str	r3, [fp, #-52]
	mov	r3, r6
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #6
	orr	r3, r3, r0, lsr #26
	lsl	r2, r0, #6
	ldr	ip, [fp, #-92]
	sub	r3, ip, #1
	str	r3, [fp, #-48]
	mov	r3, ip
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #6
	orr	r3, r3, r0, lsr #26
	lsl	r2, r0, #6
	mov	r3, ip
	lsl	r8, r3, #3
	ldr	lr, [fp, #-88]
	sub	r3, lr, #1
	str	r3, [fp, #-44]
	mov	r3, ip
	mov	r4, r3
	mov	r5, #0
	mov	r3, lr
	mov	r0, r3
	mov	r1, #0
	mul	r2, r0, r5
	mul	r3, r4, r1
	add	r7, r2, r3
	umull	r2, r3, r4, r0
	add	r1, r7, r3
	mov	r3, r1
	mov	r0, #0
	mov	r1, #0
	lsl	r1, r3, #6
	orr	r1, r1, r2, lsr #26
	lsl	r0, r2, #6
	mov	r3, ip
	mov	r2, lr
	mul	r3, r2, r3
	lsl	r9, r3, #3
	ldr	r7, [fp, #-84]
	sub	r3, r7, #1
	str	r3, [fp, #-40]
	mov	r3, ip
	mov	r4, r3
	mov	r5, #0
	mov	r3, lr
	mov	r2, r3
	mov	r3, #0
	mul	r0, r2, r5
	mul	r1, r4, r3
	add	r10, r0, r1
	umull	r0, r1, r4, r2
	add	r3, r10, r1
	mov	r1, r3
	mov	r3, r7
	mov	r4, r3
	mov	r5, #0
	mul	r2, r4, r1
	mul	r3, r0, r5
	add	r10, r2, r3
	umull	r2, r3, r0, r4
	add	r1, r10, r3
	mov	r3, r1
	mov	r0, #0
	mov	r1, #0
	lsl	r1, r3, #6
	orr	r1, r1, r2, lsr #26
	lsl	r0, r2, #6
	mov	r3, #0
	str	r3, [fp, #-56]
	mov	r3, #0
	str	r3, [fp, #-60]
	b	.L12
.L19:
	mov	r3, #0
	str	r3, [fp, #-64]
	b	.L13
.L18:
	mov	r3, #0
	str	r3, [fp, #-68]
	mov	r3, #0
	str	r3, [fp, #-72]
	b	.L14
.L17:
	mov	r3, #0
	str	r3, [fp, #-76]
	b	.L15
.L16:
	mov	r2, r6
	ldr	r3, [fp, #-56]
	mul	r3, r2, r3
	lsl	r3, r3, #3
	ldr	r2, [fp, #4]
	add	r2, r2, r3
	lsr	r1, r9, #3
	lsr	r4, r8, #3
	mov	r3, ip
	mov	r0, lr
	mul	r3, r0, r3
	mov	r0, r7
	mul	r3, r0, r3
	ldr	r0, [fp, #-60]
	mul	r3, r0, r3
	lsl	r3, r3, #3
	ldr	r0, [fp, #8]
	add	r0, r0, r3
	ldr	r3, [fp, #-68]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldmia	r3, {r2-r3}
	ldr	r5, [fp, #-72]
	mul	r4, r5, r4
	ldr	r5, [fp, #-64]
	mul	r1, r5, r1
	add	r4, r4, r1
	ldr	r1, [fp, #-76]
	add	r1, r4, r1
	lsl	r1, r1, #3
	add	r1, r0, r1
	stm	r1, {r2-r3}
	ldr	r3, [fp, #-68]
	add	r3, r3, #1
	str	r3, [fp, #-68]
	ldr	r3, [fp, #-76]
	add	r3, r3, #1
	str	r3, [fp, #-76]
.L15:
	ldr	r2, [fp, #-76]
	ldr	r3, [fp, #-92]
	cmp	r2, r3
	blt	.L16
	ldr	r3, [fp, #-72]
	add	r3, r3, #1
	str	r3, [fp, #-72]
.L14:
	ldr	r2, [fp, #-72]
	ldr	r3, [fp, #-88]
	cmp	r2, r3
	blt	.L17
	ldr	r3, [fp, #-56]
	add	r3, r3, #1
	str	r3, [fp, #-56]
	ldr	r3, [fp, #-64]
	add	r3, r3, #1
	str	r3, [fp, #-64]
.L13:
	ldr	r2, [fp, #-64]
	ldr	r3, [fp, #-84]
	cmp	r2, r3
	blt	.L18
	ldr	r3, [fp, #-60]
	add	r3, r3, #1
	str	r3, [fp, #-60]
.L12:
	ldr	r2, [fp, #-60]
	ldr	r3, [fp, #-80]
	cmp	r2, r3
	blt	.L19
	nop
	nop
	sub	sp, fp, #32
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
	.size	mat2tensor, .-mat2tensor
	.section	.rodata
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	get_grad
	.syntax unified
	.arm
	.fpu softvfp
	.type	get_grad, %function
get_grad:
	@ args = 0, pretend = 0, frame = 88
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #104
	str	r0, [fp, #-88]
	str	r1, [fp, #-92]
	ldr	r3, .L24
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #76
	mov	r2, #32
	mov	r1, #0
	mov	r0, r3
	bl	memset
	mov	r3, #0
	str	r3, [fp, #-80]
	b	.L21
.L22:
	sub	r3, fp, #44
	mov	r2, #32
	mov	r1, #0
	mov	r0, r3
	bl	memset
	ldr	r3, [fp, #-80]
	lsl	r3, r3, #3
	sub	r2, fp, #4
	add	r3, r2, r3
	sub	r1, r3, #40
	mov	r2, #0
	ldr	r3, .L24+4
	stm	r1, {r2-r3}
	ldr	r3, .L24+8
	ldr	r0, [r3]
	ldr	r3, .L24+8
	ldr	r3, [r3]
	ldr	r2, [fp, #-80]
	lsl	r2, r2, #5
	ldr	r1, [fp, #-92]
	add	r2, r1, r2
	sub	ip, fp, #44
	sub	r1, fp, #76
	str	r2, [sp, #8]
	ldr	r2, [fp, #-88]
	str	r2, [sp, #4]
	str	r3, [sp]
	mov	r3, ip
	mov	r2, r1
	mov	r1, r0
	ldr	r0, .L24+12
	bl	__enzyme_autodiff
	ldr	r3, [fp, #-80]
	add	r3, r3, #1
	str	r3, [fp, #-80]
.L21:
	ldr	r3, [fp, #-80]
	cmp	r3, #3
	ble	.L22
	nop
	ldr	r3, .L24
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L23
	bl	__stack_chk_fail
.L23:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L25:
	.align	2
.L24:
	.word	.LC2
	.word	1072693248
	.word	enzyme_dup
	.word	mat_mat
	.size	get_grad, .-get_grad
	.section	.rodata
	.align	3
.LC0:
	.word	0
	.word	1074266112
	.word	0
	.word	1075052544
	.word	0
	.word	1072693248
	.word	0
	.word	1075576832
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 296
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #304
	ldr	r3, .L29
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, .L29+4
	sub	ip, fp, #300
	mov	lr, 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}
	sub	r3, fp, #268
	mov	r2, #128
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r2, fp, #268
	sub	r3, fp, #300
	mov	r1, r2
	mov	r0, r3
	bl	get_grad
	sub	r3, fp, #268
	mov	r2, r3
	mov	r1, #4
	mov	r0, #4
	bl	print_matrix
	sub	r3, fp, #140
	mov	r2, #128
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r3, fp, #140
	str	r3, [sp, #4]
	sub	r3, fp, #268
	str	r3, [sp]
	mov	r3, #2
	mov	r2, #2
	mov	r1, #2
	mov	r0, #2
	bl	mat2tensor
	sub	r3, fp, #140
	mov	r2, r3
	mov	r1, #2
	mov	r0, #2
	bl	print_matrix
	sub	r3, fp, #140
	add	r3, r3, #32
	mov	r2, r3
	mov	r1, #2
	mov	r0, #2
	bl	print_matrix
	sub	r3, fp, #140
	add	r3, r3, #64
	mov	r2, r3
	mov	r1, #2
	mov	r0, #2
	bl	print_matrix
	sub	r3, fp, #140
	add	r3, r3, #96
	mov	r2, r3
	mov	r1, #2
	mov	r0, #2
	bl	print_matrix
	mov	r3, #0
	ldr	r2, .L29
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L28
	bl	__stack_chk_fail
.L28:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L30:
	.align	2
.L29:
	.word	.LC3
	.word	.LC0
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
