	.file	"524956.c"
	.intel_syntax noprefix
	.text
	.globl	foo2
	.type	foo2, @function
foo2:
.LFB0:
	.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, 56
	.cfi_offset 3, -24
	mov	DWORD PTR -52[rbp], edi
	mov	QWORD PTR -64[rbp], rsi
	mov	ebx, DWORD PTR -52[rbp]
	movsx	rax, ebx
	sub	rax, 1
	mov	QWORD PTR -32[rbp], rax
	movsx	rax, ebx
	mov	r8, rax
	mov	r9d, 0
	movsx	rdx, ebx
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	mov	rax, QWORD PTR -64[rbp]
	add	rax, rdx
	mov	QWORD PTR -24[rbp], rax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 52
	mov	eax, DWORD PTR [rax]
	cmp	eax, 23
	sete	al
	movzx	eax, al
	mov	edi, eax
	mov	eax, 0
	call	assert@PLT
	movsx	rax, ebx
	imul	rdx, rax, 116
	mov	rax, QWORD PTR -64[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR 28[rax]
	mov	DWORD PTR -40[rbp], eax
	cmp	DWORD PTR -40[rbp], 23
	sete	al
	movzx	eax, al
	mov	edi, eax
	mov	eax, 0
	call	assert@PLT
	movsx	rdx, ebx
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	mov	rax, QWORD PTR -64[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR 52[rax]
	mov	DWORD PTR -36[rbp], eax
	cmp	DWORD PTR -36[rbp], 23
	sete	al
	movzx	eax, al
	mov	edi, eax
	mov	eax, 0
	call	assert@PLT
	nop
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	foo2, .-foo2
	.globl	main
	.type	main, @function
main:
.LFB1:
	.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, 4096
	or	QWORD PTR [rsp], 0
	sub	rsp, 2376
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	mov	rbx, QWORD PTR fs:40
	mov	QWORD PTR -56[rbp], rbx
	xor	ebx, ebx
	mov	rcx, rsp
	mov	r15, rcx
	mov	DWORD PTR -6500[rbp], 40
	mov	ecx, DWORD PTR -6500[rbp]
	mov	ebx, DWORD PTR -6500[rbp]
	movsx	r12, ecx
	sub	r12, 1
	mov	QWORD PTR -6488[rbp], r12
	movsx	r12, ecx
	mov	r13, r12
	mov	r14d, 0
	movsx	r12, ecx
	sal	r12, 2
	movsx	r13, ebx
	sub	r13, 1
	mov	QWORD PTR -6480[rbp], r13
	movsx	r13, ecx
	mov	r10, r13
	mov	r11d, 0
	movsx	r13, ebx
	mov	rax, r13
	mov	edx, 0
	mov	r14, r11
	imul	r14, rax
	mov	r13, rdx
	imul	r13, r10
	add	r13, r14
	mul	r10
	lea	r10, 0[r13+rdx]
	mov	rdx, r10
	movsx	rax, ecx
	mov	r8, rax
	mov	r9d, 0
	movsx	rax, ebx
	mov	rsi, rax
	mov	edi, 0
	mov	rdx, r9
	imul	rdx, rsi
	mov	rax, rdi
	imul	rax, r8
	lea	r10, [rdx+rax]
	mov	rax, r8
	mul	rsi
	lea	rsi, [r10+rdx]
	mov	rdx, rsi
	movsx	rdx, ecx
	movsx	rax, ebx
	imul	rax, rdx
	lea	rdx, 0[0+rax*4]
	mov	eax, 16
	sub	rax, 1
	add	rax, rdx
	mov	edi, 16
	mov	edx, 0
	div	rdi
	imul	rax, rax, 16
	mov	rcx, rax
	and	rcx, -4096
	mov	rdx, rsp
	sub	rdx, rcx
.L4:
	cmp	rsp, rdx
	je	.L5
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	jmp	.L4
.L5:
	mov	rdx, rax
	and	edx, 4095
	sub	rsp, rdx
	mov	rdx, rax
	and	edx, 4095
	test	rdx, rdx
	je	.L6
	and	eax, 4095
	sub	rax, 8
	add	rax, rsp
	or	QWORD PTR [rax], 0
.L6:
	mov	rax, rsp
	add	rax, 3
	shr	rax, 2
	sal	rax, 2
	mov	QWORD PTR -6472[rbp], rax
	mov	DWORD PTR -6492[rbp], 0
	jmp	.L7
.L10:
	mov	DWORD PTR -6496[rbp], 0
	jmp	.L8
.L9:
	mov	eax, DWORD PTR -6496[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -6492[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 3
	add	rax, rcx
	mov	DWORD PTR -6464[rbp+rax*4], 0
	mov	rcx, r12
	shr	rcx, 2
	mov	rax, QWORD PTR -6472[rbp]
	mov	edx, DWORD PTR -6496[rbp]
	movsx	rsi, edx
	mov	edx, DWORD PTR -6492[rbp]
	movsx	rdx, edx
	imul	rdx, rcx
	add	rdx, rsi
	mov	DWORD PTR [rax+rdx*4], 0
	add	DWORD PTR -6496[rbp], 1
.L8:
	cmp	DWORD PTR -6496[rbp], 39
	jle	.L9
	add	DWORD PTR -6492[rbp], 1
.L7:
	cmp	DWORD PTR -6492[rbp], 39
	jle	.L10
	mov	DWORD PTR -5292[rbp], 23
	mov	rdx, r12
	shr	rdx, 2
	mov	rcx, QWORD PTR -6472[rbp]
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	sal	rax, 2
	add	rax, rcx
	add	rax, 52
	mov	DWORD PTR [rax], 23
	lea	rax, -6464[rbp]
	mov	rsi, rax
	mov	edi, 40
	call	foo2
	mov	rax, QWORD PTR -6472[rbp]
	mov	rsi, rax
	mov	edi, 40
	call	foo2
	mov	eax, 0
	mov	rsp, r15
	mov	rdi, QWORD PTR -56[rbp]
	sub	rdi, QWORD PTR fs:40
	je	.L12
	call	__stack_chk_fail@PLT
.L12:
	lea	rsp, -40[rbp]
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	r15
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.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	"524956.c"
	.text
	.align	2
	.global	foo2
	.syntax unified
	.arm
	.fpu softvfp
	.type	foo2, %function
foo2:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #28
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	ldr	r4, [fp, #-32]
	sub	r3, r4, #1
	str	r3, [fp, #-28]
	mov	r3, r4
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #5
	orr	r3, r3, r0, lsr #27
	lsl	r2, r0, #5
	mov	r2, r4
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #2
	mov	r2, r3
	ldr	r3, [fp, #-36]
	add	r3, r3, r2
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-24]
	add	r3, r3, #52
	ldr	r3, [r3]
	cmp	r3, #23
	moveq	r3, #1
	movne	r3, #0
	and	r3, r3, #255
	mov	r0, r3
	bl	assert
	mov	r2, r4
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	mov	r2, r3
	ldr	r3, [fp, #-36]
	add	r3, r3, r2
	ldr	r3, [r3, #28]
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmp	r3, #23
	moveq	r3, #1
	movne	r3, #0
	and	r3, r3, #255
	mov	r0, r3
	bl	assert
	mov	r2, r4
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #2
	mov	r2, r3
	ldr	r3, [fp, #-36]
	add	r3, r3, r2
	ldr	r3, [r3, #52]
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #23
	moveq	r3, #1
	movne	r3, #0
	and	r3, r3, #255
	mov	r0, r3
	bl	assert
	nop
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
	.size	foo2, .-foo2
	.section	.rodata
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 6432
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, fp, lr}
	add	fp, sp, #24
	sub	sp, sp, #6400
	sub	sp, sp, #36
	ldr	r3, .L10
	ldr	r3, [r3]
	str	r3, [fp, #-32]
	mov	r3,#0
	mov	r3, sp
	mov	r8, r3
	sub	r3, fp, #4096
	sub	r3, r3, #28
	mov	r2, r3
	mov	r3, #40
	str	r3, [r2, #-2332]
	sub	r3, fp, #4096
	sub	r3, r3, #28
	ldr	ip, [r3, #-2332]
	sub	r3, fp, #4096
	sub	r3, r3, #28
	ldr	lr, [r3, #-2332]
	sub	r3, ip, #1
	sub	r2, fp, #4096
	sub	r2, r2, #28
	str	r3, [r2, #-2320]
	mov	r3, ip
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #5
	orr	r3, r3, r0, lsr #27
	lsl	r2, r0, #5
	mov	r3, ip
	lsl	r6, r3, #2
	sub	r3, lr, #1
	sub	r2, fp, #4096
	sub	r2, r2, #28
	str	r3, [r2, #-2316]
	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, #5
	orr	r1, r1, r2, lsr #27
	lsl	r0, r2, #5
	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, #5
	orr	r1, r1, r2, lsr #27
	lsl	r0, r2, #5
	mov	r3, ip
	mov	r2, lr
	mul	r3, r2, r3
	lsl	r3, r3, #2
	sub	r2, fp, #4096
	sub	r2, r2, #28
	add	r3, r3, #7
	lsr	r3, r3, #3
	lsl	r3, r3, #3
	sub	sp, sp, r3
	mov	r3, sp
	add	r3, r3, #3
	lsr	r3, r3, #2
	lsl	r3, r3, #2
	str	r3, [r2, #-2312]
	sub	r3, fp, #4096
	sub	r3, r3, #28
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-2324]
	b	.L4
.L7:
	sub	r3, fp, #4096
	sub	r3, r3, #28
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-2328]
	b	.L5
.L6:
	sub	r3, fp, #4096
	sub	r3, r3, #28
	mov	r1, r3
	sub	r3, fp, #4096
	sub	r3, r3, #28
	ldr	r2, [r3, #-2324]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #3
	sub	r2, fp, #4096
	sub	r2, r2, #28
	ldr	r2, [r2, #-2328]
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	mov	r2, #0
	str	r2, [r3, #-2308]
	lsr	r2, r6, #2
	sub	r3, fp, #4096
	sub	r3, r3, #28
	ldr	r3, [r3, #-2312]
	sub	r1, fp, #4096
	sub	r1, r1, #28
	ldr	r1, [r1, #-2324]
	mul	r1, r2, r1
	sub	r2, fp, #4096
	sub	r2, r2, #28
	ldr	r2, [r2, #-2328]
	add	r2, r1, r2
	mov	r1, #0
	str	r1, [r3, r2, lsl #2]
	sub	r3, fp, #4096
	sub	r3, r3, #28
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #28
	ldr	r3, [r3, #-2328]
	add	r3, r3, #1
	str	r3, [r2, #-2328]
.L5:
	sub	r3, fp, #4096
	sub	r3, r3, #28
	ldr	r3, [r3, #-2328]
	cmp	r3, #39
	ble	.L6
	sub	r3, fp, #4096
	sub	r3, r3, #28
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #28
	ldr	r3, [r3, #-2324]
	add	r3, r3, #1
	str	r3, [r2, #-2324]
.L4:
	sub	r3, fp, #4096
	sub	r3, r3, #28
	ldr	r3, [r3, #-2324]
	cmp	r3, #39
	ble	.L7
	sub	r3, fp, #4096
	sub	r3, r3, #28
	mov	r2, r3
	mov	r3, #23
	str	r3, [r2, #-1136]
	lsr	r2, r6, #2
	sub	r3, fp, #4096
	sub	r3, r3, #28
	ldr	r1, [r3, #-2312]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	add	r3, r3, #52
	mov	r2, #23
	str	r2, [r3]
	sub	r3, fp, #6400
	sub	r3, r3, #28
	sub	r3, r3, #4
	mov	r1, r3
	mov	r0, #40
	bl	foo2
	sub	r3, fp, #4096
	sub	r3, r3, #28
	ldr	r1, [r3, #-2312]
	mov	r0, #40
	bl	foo2
	mov	r3, #0
	mov	sp, r8
	ldr	r2, .L10
	ldr	r1, [r2]
	ldr	r2, [fp, #-32]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L9
	bl	__stack_chk_fail
.L9:
	mov	r0, r3
	sub	sp, fp, #24
	@ sp needed
	pop	{r4, r5, r6, r7, r8, fp, pc}
.L11:
	.align	2
.L10:
	.word	.LC0
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
