	.file	"591787.c"
	.intel_syntax noprefix
	.text
	.globl	foo
	.bss
	.align 4
	.type	foo, @object
	.size	foo, 4
foo:
	.zero	4
	.globl	bar
	.align 8
	.type	bar, @object
	.size	bar, 8
bar:
	.zero	8
	.globl	baz
	.data
	.align 4
	.type	baz, @object
	.size	baz, 4
baz:
	.long	100
	.text
	.globl	pure_alloc
	.type	pure_alloc, @function
pure_alloc:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
.L4:
	mov	rdx, QWORD PTR bar[rip]
	mov	eax, DWORD PTR foo[rip]
	cdqe
	add	rax, rdx
	mov	eax, eax
	and	eax, 4294967294
	mov	QWORD PTR -8[rbp], rax
	mov	eax, DWORD PTR foo[rip]
	add	eax, 2
	mov	DWORD PTR foo[rip], eax
	mov	eax, DWORD PTR foo[rip]
	mov	edx, eax
	mov	eax, DWORD PTR baz[rip]
	cmp	edx, eax
	jnb	.L2
	mov	rax, QWORD PTR -8[rbp]
	jmp	.L5
.L2:
	mov	DWORD PTR foo[rip], 0
	jmp	.L4
.L5:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	pure_alloc, .-pure_alloc
	.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
	mov	eax, 0
	call	pure_alloc
	mov	eax, DWORD PTR foo[rip]
	test	eax, eax
	jne	.L7
	call	abort@PLT
.L7:
	mov	eax, 0
	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	"591787.c"
	.text
	.global	foo
	.bss
	.align	2
	.type	foo, %object
	.size	foo, 4
foo:
	.space	4
	.global	bar
	.align	2
	.type	bar, %object
	.size	bar, 4
bar:
	.space	4
	.global	baz
	.data
	.align	2
	.type	baz, %object
	.size	baz, 4
baz:
	.word	100
	.text
	.align	2
	.global	pure_alloc
	.syntax unified
	.arm
	.fpu softvfp
	.type	pure_alloc, %function
pure_alloc:
	@ 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
.L4:
	ldr	r3, .L6
	ldr	r3, [r3]
	ldr	r2, .L6+4
	ldr	r2, [r2]
	add	r3, r3, r2
	bic	r3, r3, #1
	str	r3, [fp, #-8]
	ldr	r3, .L6+4
	ldr	r3, [r3]
	add	r3, r3, #2
	ldr	r2, .L6+4
	str	r3, [r2]
	ldr	r3, .L6+4
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r3, .L6+8
	ldr	r3, [r3]
	cmp	r2, r3
	bcs	.L2
	ldr	r3, [fp, #-8]
	b	.L5
.L2:
	ldr	r3, .L6+4
	mov	r2, #0
	str	r2, [r3]
	b	.L4
.L5:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L7:
	.align	2
.L6:
	.word	bar
	.word	foo
	.word	baz
	.size	pure_alloc, .-pure_alloc
	.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	pure_alloc
	ldr	r3, .L11
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L9
	bl	abort
.L9:
	mov	r3, #0
	mov	r0, r3
	pop	{fp, pc}
.L12:
	.align	2
.L11:
	.word	foo
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
