	.file	"extr_pngstest.c_allocbuffer.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"simpletest: out of memory allocating %lu(+32) byte buffer\n"
	.text
	.p2align 4
	.type	allocbuffer, @function
allocbuffer:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, rdi
	mov	esi, DWORD PTR 24[rdi]
	mov	edi, DWORD PTR 28[rdi]
	call	PNG_IMAGE_BUFFER_SIZE@PLT
	mov	r12, QWORD PTR [rbx]
	mov	rbp, rax
	add	rax, 31
	cmp	rax, r12
	jge	.L2
	mov	rdi, QWORD PTR 16[rbx]
.L3:
	mov	rdx, r12
	mov	esi, 95
	call	memset@PLT
	mov	rax, QWORD PTR 16[rbx]
	mov	esi, DWORD PTR BUFFER_INIT8[rip]
	mov	rdx, rbp
	lea	rdi, 64[rax]
	call	memset@PLT
	mov	QWORD PTR 8[rbx], rbp
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	rdi, rbx
	lea	r12, 32[rbp]
	call	freebuffer@PLT
	mov	rdi, r12
	call	malloc@PLT
	mov	edi, DWORD PTR png_bytep[rip]
	mov	esi, eax
	call	voidcast@PLT
	mov	QWORD PTR 16[rbx], rax
	mov	rdi, rax
	test	rax, rax
	je	.L7
.L4:
	mov	QWORD PTR [rbx], r12
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L7:
	mov	edi, DWORD PTR stdout[rip]
	call	fflush@PLT
	mov	edi, DWORD PTR stderr[rip]
	mov	rdx, rbp
	lea	rsi, .LC0[rip]
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
	mov	rdi, QWORD PTR 16[rbx]
	jmp	.L4
	.cfi_endproc
.LFE0:
	.size	allocbuffer, .-allocbuffer
	.comm	stdout,4,4
	.comm	stderr,4,4
	.comm	png_bytep,4,4
	.comm	BUFFER_INIT8,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.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, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_pngstest.c_allocbuffer.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"simpletest: out of memory allocating %lu(+32) byte "
	.ascii	"buffer\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	allocbuffer, %function
allocbuffer:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r1, [r0, #12]
	mov	r4, r0
	ldr	r0, [r0, #16]
	bl	PNG_IMAGE_BUFFER_SIZE
	ldr	r6, [r4]
	add	r3, r0, #31
	cmp	r3, r6
	mov	r5, r0
	bge	.L2
	ldr	r0, [r4, #8]
.L3:
	mov	r2, r6
	mov	r1, #95
	bl	memset
	ldr	r3, .L8
	ldr	r0, [r4, #8]
	mov	r2, r5
	ldr	r1, [r3]
	add	r0, r0, #64
	bl	memset
	str	r5, [r4, #4]
	pop	{r4, r5, r6, r7, r8, pc}
.L2:
	mov	r0, r4
	bl	freebuffer
	add	r6, r5, #32
	ldr	r3, .L8+4
	mov	r0, r6
	ldr	r7, [r3]
	bl	malloc
	mov	r1, r0
	mov	r0, r7
	bl	voidcast
	cmp	r0, #0
	str	r0, [r4, #8]
	beq	.L7
.L4:
	str	r6, [r4]
	b	.L3
.L7:
	ldr	r3, .L8+8
	ldr	r0, [r3]
	bl	fflush
	ldr	r3, .L8+12
	mov	r2, r5
	ldr	r0, [r3]
	ldr	r1, .L8+16
	bl	fprintf
	mov	r0, #1
	bl	exit
	ldr	r0, [r4, #8]
	b	.L4
.L9:
	.align	2
.L8:
	.word	BUFFER_INIT8
	.word	png_bytep
	.word	stdout
	.word	stderr
	.word	.LC0
	.size	allocbuffer, .-allocbuffer
	.comm	stdout,4,4
	.comm	stderr,4,4
	.comm	png_bytep,4,4
	.comm	BUFFER_INIT8,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
