	.file	"extr_stb_image.h_stbi__zexpand.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Corrupt PNG"
.LC1:
	.string	"output buffer limit"
.LC2:
	.string	"Out of memory"
.LC3:
	.string	"outofmem"
	.text
	.p2align 4
	.type	stbi__zexpand, @function
stbi__zexpand:
.LFB0:
	.cfi_startproc
	endbr64
	mov	eax, DWORD PTR 24[rdi]
	mov	QWORD PTR [rdi], rsi
	test	eax, eax
	je	.L10
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rdi, QWORD PTR 8[rdi]
	mov	rax, QWORD PTR 16[r12]
	sub	rsi, rdi
	sub	rax, rdi
	add	edx, esi
	mov	rbp, rsi
	mov	ebx, eax
	cmp	eax, edx
	jge	.L3
	.p2align 4,,10
	.p2align 3
.L4:
	add	ebx, ebx
	cmp	ebx, edx
	jl	.L4
.L3:
	mov	esi, ebx
	call	STBI_REALLOC@PLT
	test	rax, rax
	je	.L11
	movsx	rsi, ebp
	movsx	rbx, ebx
	mov	QWORD PTR 8[r12], rax
	add	rbx, rax
	add	rsi, rax
	mov	eax, 1
	mov	QWORD PTR [r12], rsi
	mov	QWORD PTR 16[r12], rbx
	pop	rbx
	.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
.L10:
	.cfi_restore 3
	.cfi_restore 6
	.cfi_restore 12
	lea	rsi, .LC0[rip]
	lea	rdi, .LC1[rip]
	jmp	stbi__err@PLT
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	.cfi_offset 6, -24
	.cfi_offset 12, -16
	pop	rbx
	.cfi_restore 3
	.cfi_def_cfa_offset 24
	lea	rsi, .LC2[rip]
	lea	rdi, .LC3[rip]
	pop	rbp
	.cfi_restore 6
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_restore 12
	.cfi_def_cfa_offset 8
	jmp	stbi__err@PLT
	.cfi_endproc
.LFE0:
	.size	stbi__zexpand, .-stbi__zexpand
	.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_stb_image.h_stbi__zexpand.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Corrupt PNG\000"
	.align	2
.LC1:
	.ascii	"output buffer limit\000"
	.align	2
.LC2:
	.ascii	"Out of memory\000"
	.align	2
.LC3:
	.ascii	"outofmem\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	stbi__zexpand, %function
stbi__zexpand:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, [r0, #12]
	str	r1, [r0]
	cmp	r3, #0
	beq	.L10
	push	{r4, r5, r6, lr}
	mov	r5, r0
	ldmib	r0, {r0, r4}
	sub	r6, r1, r0
	add	r2, r6, r2
	sub	r4, r4, r0
	cmp	r4, r2
	bge	.L3
.L4:
	lsl	r4, r4, #1
	cmp	r4, r2
	blt	.L4
.L3:
	mov	r1, r4
	bl	STBI_REALLOC
	cmp	r0, #0
	beq	.L11
	add	r1, r0, r6
	add	r4, r0, r4
	stmib	r5, {r0, r4}
	str	r1, [r5]
	mov	r0, #1
	pop	{r4, r5, r6, pc}
.L10:
	ldr	r1, .L12
	ldr	r0, .L12+4
	b	stbi__err
.L11:
	ldr	r1, .L12+8
	ldr	r0, .L12+12
	pop	{r4, r5, r6, lr}
	b	stbi__err
.L13:
	.align	2
.L12:
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.size	stbi__zexpand, .-stbi__zexpand
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
