	.file	"329047.c"
	.intel_syntax noprefix
	.text
	.globl	a
	.bss
	.align 32
	.type	a, @object
	.size	a, 960
a:
	.zero	960
	.text
	.globl	foo
	.type	foo, @function
foo:
.LFB0:
	.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	DWORD PTR -12[rbp], esi
	cmp	DWORD PTR -12[rbp], 0
	jle	.L2
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 192
	mov	DWORD PTR 24[rax], 2
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 240
	mov	DWORD PTR [rax], 2
	jmp	.L4
.L2:
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 384
	mov	DWORD PTR 36[rax], 2
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 288
	mov	DWORD PTR [rax], 2
.L4:
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	foo, .-foo
	.globl	check
	.type	check, @function
check:
.LFB1:
	.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	QWORD PTR -8[rbp], rdi
	mov	DWORD PTR -12[rbp], esi
	cmp	DWORD PTR -12[rbp], 0
	jle	.L6
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 192
	mov	eax, DWORD PTR 24[rax]
	not	eax
	shr	eax, 31
	movzx	eax, al
	mov	edi, eax
	call	__CRAB_assert@PLT
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 192
	mov	eax, DWORD PTR 24[rax]
	cmp	eax, 2
	setle	al
	movzx	eax, al
	mov	edi, eax
	call	__CRAB_assert@PLT
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 240
	mov	eax, DWORD PTR [rax]
	not	eax
	shr	eax, 31
	movzx	eax, al
	mov	edi, eax
	call	__CRAB_assert@PLT
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 240
	mov	eax, DWORD PTR [rax]
	cmp	eax, 2
	setle	al
	movzx	eax, al
	mov	edi, eax
	call	__CRAB_assert@PLT
	jmp	.L8
.L6:
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 384
	mov	eax, DWORD PTR 36[rax]
	not	eax
	shr	eax, 31
	movzx	eax, al
	mov	edi, eax
	call	__CRAB_assert@PLT
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 384
	mov	eax, DWORD PTR 36[rax]
	cmp	eax, 2
	setle	al
	movzx	eax, al
	mov	edi, eax
	call	__CRAB_assert@PLT
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 288
	mov	eax, DWORD PTR [rax]
	not	eax
	shr	eax, 31
	movzx	eax, al
	mov	edi, eax
	call	__CRAB_assert@PLT
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 288
	mov	eax, DWORD PTR [rax]
	cmp	eax, 2
	setle	al
	movzx	eax, al
	mov	edi, eax
	call	__CRAB_assert@PLT
.L8:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	check, .-check
	.globl	main
	.type	main, @function
main:
.LFB2:
	.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 -8[rbp], 0
	jmp	.L10
.L15:
	mov	DWORD PTR -4[rbp], 0
	jmp	.L11
.L14:
	call	int_nd@PLT
	test	eax, eax
	je	.L12
	mov	eax, DWORD PTR -4[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -8[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	add	rax, rcx
	lea	rdx, 0[0+rax*4]
	lea	rax, a[rip+8]
	mov	DWORD PTR [rdx+rax], 1
.L12:
	call	int_nd@PLT
	test	eax, eax
	je	.L13
	mov	eax, DWORD PTR -8[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 4
	mov	rdx, rax
	lea	rax, a[rip]
	mov	DWORD PTR [rdx+rax], 1
.L13:
	add	DWORD PTR -4[rbp], 1
.L11:
	cmp	DWORD PTR -4[rbp], 9
	jle	.L14
	add	DWORD PTR -8[rbp], 1
.L10:
	cmp	DWORD PTR -8[rbp], 19
	jle	.L15
	call	int_nd@PLT
	mov	esi, eax
	lea	rdi, a[rip]
	call	foo
	call	int_nd@PLT
	mov	esi, eax
	lea	rdi, a[rip]
	call	check
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.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	"329047.c"
	.text
	.comm	a,960,4
	.align	2
	.global	foo
	.syntax unified
	.arm
	.fpu softvfp
	.type	foo, %function
foo:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	ble	.L2
	ldr	r3, [fp, #-8]
	add	r3, r3, #192
	mov	r2, #2
	str	r2, [r3, #24]
	ldr	r3, [fp, #-8]
	add	r3, r3, #240
	mov	r2, #2
	str	r2, [r3]
	b	.L4
.L2:
	ldr	r3, [fp, #-8]
	add	r3, r3, #384
	mov	r2, #2
	str	r2, [r3, #36]
	ldr	r3, [fp, #-8]
	add	r3, r3, #288
	mov	r2, #2
	str	r2, [r3]
.L4:
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	foo, .-foo
	.align	2
	.global	check
	.syntax unified
	.arm
	.fpu softvfp
	.type	check, %function
check:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	ble	.L6
	ldr	r3, [fp, #-8]
	add	r3, r3, #192
	ldr	r3, [r3, #24]
	mvn	r3, r3
	lsr	r3, r3, #31
	and	r3, r3, #255
	mov	r0, r3
	bl	__CRAB_assert
	ldr	r3, [fp, #-8]
	add	r3, r3, #192
	ldr	r3, [r3, #24]
	cmp	r3, #2
	movle	r3, #1
	movgt	r3, #0
	and	r3, r3, #255
	mov	r0, r3
	bl	__CRAB_assert
	ldr	r3, [fp, #-8]
	add	r3, r3, #240
	ldr	r3, [r3]
	mvn	r3, r3
	lsr	r3, r3, #31
	and	r3, r3, #255
	mov	r0, r3
	bl	__CRAB_assert
	ldr	r3, [fp, #-8]
	add	r3, r3, #240
	ldr	r3, [r3]
	cmp	r3, #2
	movle	r3, #1
	movgt	r3, #0
	and	r3, r3, #255
	mov	r0, r3
	bl	__CRAB_assert
	b	.L8
.L6:
	ldr	r3, [fp, #-8]
	add	r3, r3, #384
	ldr	r3, [r3, #36]
	mvn	r3, r3
	lsr	r3, r3, #31
	and	r3, r3, #255
	mov	r0, r3
	bl	__CRAB_assert
	ldr	r3, [fp, #-8]
	add	r3, r3, #384
	ldr	r3, [r3, #36]
	cmp	r3, #2
	movle	r3, #1
	movgt	r3, #0
	and	r3, r3, #255
	mov	r0, r3
	bl	__CRAB_assert
	ldr	r3, [fp, #-8]
	add	r3, r3, #288
	ldr	r3, [r3]
	mvn	r3, r3
	lsr	r3, r3, #31
	and	r3, r3, #255
	mov	r0, r3
	bl	__CRAB_assert
	ldr	r3, [fp, #-8]
	add	r3, r3, #288
	ldr	r3, [r3]
	cmp	r3, #2
	movle	r3, #1
	movgt	r3, #0
	and	r3, r3, #255
	mov	r0, r3
	bl	__CRAB_assert
.L8:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	check, .-check
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L10
.L15:
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L11
.L14:
	bl	int_nd
	mov	r3, r0
	cmp	r3, #0
	beq	.L12
	ldr	r1, .L17
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	ldr	r2, [fp, #-8]
	add	r3, r3, r2
	add	r3, r3, #2
	mov	r2, #1
	str	r2, [r1, r3, lsl #2]
.L12:
	bl	int_nd
	mov	r3, r0
	cmp	r3, #0
	beq	.L13
	ldr	r1, .L17
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #4
	add	r3, r1, r3
	mov	r2, #1
	str	r2, [r3]
.L13:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L11:
	ldr	r3, [fp, #-8]
	cmp	r3, #9
	ble	.L14
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L10:
	ldr	r3, [fp, #-12]
	cmp	r3, #19
	ble	.L15
	bl	int_nd
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L17
	bl	foo
	bl	int_nd
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L17
	bl	check
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L18:
	.align	2
.L17:
	.word	a
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
