	.file	"712455.c"
	.intel_syntax noprefix
	.text
	.data
	.align 4
	.type	mode, @object
	.size	mode, 4
mode:
	.long	1
	.text
	.type	zalloc, @function
zalloc:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	rdx, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	rax, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	zalloc, .-zalloc
	.type	foo, @function
foo:
.LFB1:
	.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
	lea	rax, bar.1[rip]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	foo, .-foo
	.type	foo2, @function
foo2:
.LFB2:
	.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
	lea	rax, bar.0[rip]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	foo2, .-foo2
	.globl	main
	.type	main, @function
main:
.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	eax, DWORD PTR mode[rip]
	test	eax, eax
	jne	.L8
	mov	rax, QWORD PTR malloc@GOTPCREL[rip]
	mov	QWORD PTR -16[rbp], rax
	jmp	.L9
.L8:
	mov	eax, DWORD PTR mode[rip]
	cmp	eax, 1
	jne	.L10
	lea	rax, zalloc[rip]
	mov	QWORD PTR -16[rbp], rax
	jmp	.L9
.L10:
	mov	eax, DWORD PTR mode[rip]
	cmp	eax, 2
	jne	.L11
	lea	rax, foo[rip]
	mov	QWORD PTR -16[rbp], rax
	jmp	.L9
.L11:
	lea	rax, foo2[rip]
	mov	QWORD PTR -16[rbp], rax
.L9:
	mov	rax, QWORD PTR -16[rbp]
	mov	edi, 4
	call	rax
	mov	QWORD PTR -8[rbp], rax
	mov	eax, DWORD PTR mode[rip]
	cmp	eax, 1
	jne	.L12
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	sete	al
	movzx	eax, al
	mov	edi, eax
	mov	eax, 0
	call	test_assert@PLT
	jmp	.L13
.L12:
	mov	eax, DWORD PTR mode[rip]
	cmp	eax, 2
	jne	.L14
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR [rax]
	cmp	eax, 65261
	sete	al
	movzx	eax, al
	mov	edi, eax
	mov	eax, 0
	call	test_assert@PLT
	jmp	.L13
.L14:
	mov	eax, DWORD PTR mode[rip]
	cmp	eax, 2
	jle	.L13
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR [rax]
	cmp	eax, 3054
	sete	al
	movzx	eax, al
	mov	edi, eax
	mov	eax, 0
	call	test_assert@PLT
.L13:
	mov	eax, DWORD PTR mode[rip]
	cmp	eax, 1
	jg	.L15
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	free@PLT
.L15:
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.size	main, .-main
	.data
	.align 4
	.type	bar.1, @object
	.size	bar.1, 4
bar.1:
	.long	65261
	.align 4
	.type	bar.0, @object
	.size	bar.0, 4
bar.0:
	.long	3054
	.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	"712455.c"
	.text
	.data
	.align	2
	.type	mode, %object
	.size	mode, 4
mode:
	.word	1
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	zalloc, %function
zalloc:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	ldr	r0, [fp, #-16]
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r2, [fp, #-16]
	mov	r1, #0
	ldr	r0, [fp, #-8]
	bl	memset
	ldr	r3, [fp, #-8]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	zalloc, .-zalloc
	.align	2
	.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]
	ldr	r3, .L5
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L6:
	.align	2
.L5:
	.word	bar.4205
	.size	foo, .-foo
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	foo2, %function
foo2:
	@ 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]
	ldr	r3, .L9
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L10:
	.align	2
.L9:
	.word	bar.4209
	.size	foo2, .-foo2
	.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
	ldr	r3, .L21
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L12
	ldr	r3, .L21+4
	str	r3, [fp, #-12]
	b	.L13
.L12:
	ldr	r3, .L21
	ldr	r3, [r3]
	cmp	r3, #1
	bne	.L14
	ldr	r3, .L21+8
	str	r3, [fp, #-12]
	b	.L13
.L14:
	ldr	r3, .L21
	ldr	r3, [r3]
	cmp	r3, #2
	bne	.L15
	ldr	r3, .L21+12
	str	r3, [fp, #-12]
	b	.L13
.L15:
	ldr	r3, .L21+16
	str	r3, [fp, #-12]
.L13:
	ldr	r3, [fp, #-12]
	mov	r0, #4
	blx	r3
	str	r0, [fp, #-8]
	ldr	r3, .L21
	ldr	r3, [r3]
	cmp	r3, #1
	bne	.L16
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	cmp	r3, #0
	moveq	r3, #1
	movne	r3, #0
	and	r3, r3, #255
	mov	r0, r3
	bl	test_assert
	b	.L17
.L16:
	ldr	r3, .L21
	ldr	r3, [r3]
	cmp	r3, #2
	bne	.L18
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	ldr	r2, .L21+20
	cmp	r3, r2
	moveq	r3, #1
	movne	r3, #0
	and	r3, r3, #255
	mov	r0, r3
	bl	test_assert
	b	.L17
.L18:
	ldr	r3, .L21
	ldr	r3, [r3]
	cmp	r3, #2
	ble	.L17
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	ldr	r2, .L21+24
	cmp	r3, r2
	moveq	r3, #1
	movne	r3, #0
	and	r3, r3, #255
	mov	r0, r3
	bl	test_assert
.L17:
	ldr	r3, .L21
	ldr	r3, [r3]
	cmp	r3, #1
	bgt	.L19
	ldr	r0, [fp, #-8]
	bl	free
.L19:
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L22:
	.align	2
.L21:
	.word	mode
	.word	malloc
	.word	zalloc
	.word	foo
	.word	foo2
	.word	65261
	.word	3054
	.size	main, .-main
	.data
	.align	2
	.type	bar.4205, %object
	.size	bar.4205, 4
bar.4205:
	.word	65261
	.align	2
	.type	bar.4209, %object
	.size	bar.4209, 4
bar.4209:
	.word	3054
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
