	.file	"541121.c"
	.intel_syntax noprefix
	.text
	.globl	A
	.bss
	.align 32
	.type	A, @object
	.size	A, 8388608
A:
	.zero	8388608
	.globl	B
	.align 32
	.type	B, @object
	.size	B, 8388608
B:
	.zero	8388608
	.text
	.globl	access_by_row
	.type	access_by_row, @function
access_by_row:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR -20[rbp], edi
	mov	DWORD PTR -4[rbp], 0
	jmp	.L2
.L3:
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	sal	rax, 10
	add	rax, rdx
	lea	rdx, 0[0+rax*8]
	lea	rax, A[rip]
	movsd	xmm0, QWORD PTR [rdx+rax]
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	sal	rax, 10
	add	rax, rdx
	lea	rdx, 0[0+rax*8]
	lea	rax, B[rip]
	movsd	QWORD PTR [rdx+rax], xmm0
	add	DWORD PTR -4[rbp], 1
.L2:
	cmp	DWORD PTR -4[rbp], 1023
	jle	.L3
	nop
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	access_by_row, .-access_by_row
	.globl	access_by_col
	.type	access_by_col, @function
access_by_col:
.LFB1:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR -20[rbp], edi
	mov	DWORD PTR -4[rbp], 0
	jmp	.L5
.L6:
	mov	eax, DWORD PTR -20[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	sal	rax, 10
	add	rax, rdx
	lea	rdx, 0[0+rax*8]
	lea	rax, A[rip]
	movsd	xmm0, QWORD PTR [rdx+rax]
	mov	eax, DWORD PTR -20[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	sal	rax, 10
	add	rax, rdx
	lea	rdx, 0[0+rax*8]
	lea	rax, B[rip]
	movsd	QWORD PTR [rdx+rax], xmm0
	add	DWORD PTR -4[rbp], 1
.L5:
	cmp	DWORD PTR -4[rbp], 1023
	jle	.L6
	nop
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	access_by_col, .-access_by_col
	.globl	recursive_factorial
	.type	recursive_factorial, @function
recursive_factorial:
.LFB2:
	.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, 24
	.cfi_offset 3, -24
	mov	DWORD PTR -20[rbp], edi
	cmp	DWORD PTR -20[rbp], 0
	je	.L8
	cmp	DWORD PTR -20[rbp], 1
	jne	.L9
.L8:
	mov	eax, 1
	jmp	.L10
.L9:
	mov	eax, DWORD PTR -20[rbp]
	movsx	rbx, eax
	mov	eax, DWORD PTR -20[rbp]
	sub	eax, 1
	mov	edi, eax
	call	recursive_factorial
	imul	rax, rbx
.L10:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	recursive_factorial, .-recursive_factorial
	.globl	do_task
	.type	do_task, @function
do_task:
.LFB3:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	DWORD PTR -12[rbp], 0
	mov	QWORD PTR -8[rbp], 0
	jmp	.L12
.L13:
	mov	eax, DWORD PTR -12[rbp]
	cdq
	shr	edx, 22
	add	eax, edx
	and	eax, 1023
	sub	eax, edx
	mov	edi, eax
	call	access_by_row
	mov	eax, DWORD PTR -12[rbp]
	cdq
	shr	edx, 22
	add	eax, edx
	and	eax, 1023
	sub	eax, edx
	mov	edi, eax
	call	access_by_col
	mov	edi, 1024
	call	recursive_factorial
	mov	QWORD PTR -8[rbp], rax
	add	DWORD PTR -12[rbp], 1
.L12:
	cmp	DWORD PTR -12[rbp], 102399
	jle	.L13
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.size	do_task, .-do_task
	.globl	main
	.type	main, @function
main:
.LFB4:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	eax, 0
	call	do_task
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE4:
	.size	main, .-main
	.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	"541121.c"
	.text
	.comm	A,8388608,8
	.comm	B,8388608,8
	.align	2
	.global	access_by_row
	.syntax unified
	.arm
	.fpu softvfp
	.type	access_by_row, %function
access_by_row:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	str	r0, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L2
.L3:
	ldr	r1, .L4
	ldr	r3, [fp, #-16]
	lsl	r2, r3, #10
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	lsl	r3, r3, #3
	add	r3, r1, r3
	ldmia	r3, {r2-r3}
	ldr	ip, .L4+4
	ldr	r1, [fp, #-16]
	lsl	r0, r1, #10
	ldr	r1, [fp, #-8]
	add	r1, r0, r1
	lsl	r1, r1, #3
	add	r1, ip, r1
	stm	r1, {r2-r3}
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L2:
	ldr	r3, [fp, #-8]
	cmp	r3, #1024
	blt	.L3
	nop
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L5:
	.align	2
.L4:
	.word	A
	.word	B
	.size	access_by_row, .-access_by_row
	.align	2
	.global	access_by_col
	.syntax unified
	.arm
	.fpu softvfp
	.type	access_by_col, %function
access_by_col:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	str	r0, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L7
.L8:
	ldr	r1, .L9
	ldr	r3, [fp, #-8]
	lsl	r2, r3, #10
	ldr	r3, [fp, #-16]
	add	r3, r2, r3
	lsl	r3, r3, #3
	add	r3, r1, r3
	ldmia	r3, {r2-r3}
	ldr	ip, .L9+4
	ldr	r1, [fp, #-8]
	lsl	r0, r1, #10
	ldr	r1, [fp, #-16]
	add	r1, r0, r1
	lsl	r1, r1, #3
	add	r1, ip, r1
	stm	r1, {r2-r3}
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L7:
	ldr	r3, [fp, #-8]
	cmp	r3, #1024
	blt	.L8
	nop
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L10:
	.align	2
.L9:
	.word	A
	.word	B
	.size	access_by_col, .-access_by_col
	.align	2
	.global	recursive_factorial
	.syntax unified
	.arm
	.fpu softvfp
	.type	recursive_factorial, %function
recursive_factorial:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #8
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	beq	.L12
	ldr	r3, [fp, #-16]
	cmp	r3, #1
	bne	.L13
.L12:
	mov	r0, #1
	mov	r1, #0
	b	.L14
.L13:
	ldr	r3, [fp, #-16]
	mov	r4, r3
	asr	r5, r4, #31
	ldr	r3, [fp, #-16]
	sub	r3, r3, #1
	mov	r0, r3
	bl	recursive_factorial
	mov	r2, r0
	mov	r3, r1
	mul	r0, r2, r5
	mul	r1, r4, r3
	add	ip, r0, r1
	umull	r0, r1, r4, r2
	add	r3, ip, r1
	mov	r1, r3
.L14:
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
	.size	recursive_factorial, .-recursive_factorial
	.align	2
	.global	do_task
	.syntax unified
	.arm
	.fpu softvfp
	.type	do_task, %function
do_task:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	mov	r3, #0
	str	r3, [fp, #-16]
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-12]
	str	r3, [fp, #-8]
	b	.L16
.L17:
	ldr	r3, [fp, #-16]
	rsbs	r2, r3, #0
	lsl	r3, r3, #22
	lsr	r3, r3, #22
	lsl	r2, r2, #22
	lsr	r2, r2, #22
	rsbpl	r3, r2, #0
	mov	r0, r3
	bl	access_by_row
	ldr	r3, [fp, #-16]
	rsbs	r2, r3, #0
	lsl	r3, r3, #22
	lsr	r3, r3, #22
	lsl	r2, r2, #22
	lsr	r2, r2, #22
	rsbpl	r3, r2, #0
	mov	r0, r3
	bl	access_by_col
	mov	r0, #1024
	bl	recursive_factorial
	str	r0, [fp, #-12]
	str	r1, [fp, #-8]
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L16:
	ldr	r3, [fp, #-16]
	cmp	r3, #102400
	blt	.L17
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	do_task, .-do_task
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	bl	do_task
	nop
	pop	{fp, pc}
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
