	.file	"58462.c"
	.intel_syntax noprefix
	.text
	.globl	a
	.bss
	.align 8
	.type	a, @object
	.size	a, 8
a:
	.zero	8
	.globl	b
	.align 8
	.type	b, @object
	.size	b, 8
b:
	.zero	8
	.globl	n
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.zero	4
	.text
	.globl	foo
	.type	foo, @function
foo:
.LFB6:
	.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 -4[rbp], 0
	jmp	.L2
.L3:
	mov	rdx, QWORD PTR a[rip]
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	DWORD PTR [rax], -1
	add	DWORD PTR -4[rbp], 1
.L2:
	mov	eax, DWORD PTR n[rip]
	cmp	DWORD PTR -4[rbp], eax
	jl	.L3
	mov	DWORD PTR -4[rbp], 0
	jmp	.L4
.L5:
	mov	rdx, QWORD PTR b[rip]
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	DWORD PTR [rax], -1
	add	DWORD PTR -4[rbp], 1
.L4:
	cmp	DWORD PTR -4[rbp], 126
	jle	.L5
	nop
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	foo, .-foo
	.globl	main
	.type	main, @function
main:
.LFB7:
	.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 n[rip], 128
	mov	eax, DWORD PTR n[rip]
	cdqe
	sal	rax, 2
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR a[rip], rax
	mov	rax, QWORD PTR a[rip]
	test	rax, rax
	setne	al
	movzx	eax, al
	mov	edi, eax
	mov	eax, 0
	call	__ESBMC_assume@PLT
	mov	eax, DWORD PTR n[rip]
	cdqe
	sal	rax, 2
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR b[rip], rax
	mov	rax, QWORD PTR b[rip]
	test	rax, rax
	setne	al
	movzx	eax, al
	mov	edi, eax
	mov	eax, 0
	call	__ESBMC_assume@PLT
	mov	rax, QWORD PTR b[rip]
	lea	rdx, 4[rax]
	mov	QWORD PTR b[rip], rdx
	mov	DWORD PTR [rax], 0
	mov	rax, QWORD PTR b[rip]
	sub	rax, 8
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	je	.L7
	mov	rax, QWORD PTR a[rip]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR b[rip]
	sub	rax, 4
	mov	rdi, rax
	call	free@PLT
	jmp	.L8
.L7:
	mov	rax, QWORD PTR a[rip]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR b[rip]
	sub	rax, 4
	mov	rdi, rax
	call	free@PLT
.L8:
	mov	eax, 0
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.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	"58462.c"
	.text
	.comm	a,4,4
	.comm	b,4,4
	.comm	n,4,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
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L2
.L3:
	ldr	r3, .L6
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	add	r3, r2, r3
	mvn	r2, #0
	str	r2, [r3]
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L2:
	ldr	r3, .L6+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	blt	.L3
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L4
.L5:
	ldr	r3, .L6+8
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	add	r3, r2, r3
	mvn	r2, #0
	str	r2, [r3]
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L4:
	ldr	r3, [fp, #-8]
	cmp	r3, #126
	ble	.L5
	nop
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L7:
	.align	2
.L6:
	.word	a
	.word	n
	.word	b
	.size	foo, .-foo
	.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
	ldr	r3, .L12
	mov	r2, #128
	str	r2, [r3]
	ldr	r3, .L12
	ldr	r3, [r3]
	lsl	r3, r3, #2
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L12+4
	str	r2, [r3]
	ldr	r3, .L12+4
	ldr	r3, [r3]
	cmp	r3, #0
	movne	r3, #1
	moveq	r3, #0
	and	r3, r3, #255
	mov	r0, r3
	bl	__ESBMC_assume
	ldr	r3, .L12
	ldr	r3, [r3]
	lsl	r3, r3, #2
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L12+8
	str	r2, [r3]
	ldr	r3, .L12+8
	ldr	r3, [r3]
	cmp	r3, #0
	movne	r3, #1
	moveq	r3, #0
	and	r3, r3, #255
	mov	r0, r3
	bl	__ESBMC_assume
	ldr	r3, .L12+8
	ldr	r3, [r3]
	add	r2, r3, #4
	ldr	r1, .L12+8
	str	r2, [r1]
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L12+8
	ldr	r3, [r3]
	sub	r3, r3, #8
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L9
	ldr	r3, .L12+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	free
	ldr	r3, .L12+8
	ldr	r3, [r3]
	sub	r3, r3, #4
	mov	r0, r3
	bl	free
	b	.L10
.L9:
	ldr	r3, .L12+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	free
	ldr	r3, .L12+8
	ldr	r3, [r3]
	sub	r3, r3, #4
	mov	r0, r3
	bl	free
.L10:
	mov	r3, #0
	mov	r0, r3
	pop	{fp, pc}
.L13:
	.align	2
.L12:
	.word	n
	.word	a
	.word	b
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
