	.file	"extr_stb_image.h_stbi__parse_zlib.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	stbi__parse_zlib, @function
stbi__parse_zlib:
.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
	test	esi, esi
	jne	.L2
.L5:
	mov	QWORD PTR 16[rbx], 0
	lea	r12, 4[rbx]
	mov	QWORD PTR 8[rbx], 0
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L6:
	cmp	eax, 3
	je	.L4
	cmp	eax, 1
	je	.L33
	mov	rdi, rbx
	call	stbi__compute_huffman_codes@PLT
	test	eax, eax
	je	.L4
.L10:
	mov	rdi, rbx
	call	stbi__parse_huffman_block@PLT
	test	eax, eax
	je	.L4
.L9:
	test	ebp, ebp
	jne	.L34
.L3:
	mov	esi, 1
	mov	rdi, rbx
	call	stbi__zreceive@PLT
	mov	esi, 2
	mov	rdi, rbx
	mov	ebp, eax
	call	stbi__zreceive@PLT
	test	eax, eax
	jne	.L6
	mov	rdi, rbx
	call	stbi__parse_uncompressed_block@PLT
	test	eax, eax
	jne	.L9
.L4:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L33:
	.cfi_restore_state
	mov	esi, DWORD PTR stbi__zdefault_length[rip]
	mov	edx, 288
	mov	rdi, r12
	call	stbi__zbuild_huffman@PLT
	test	eax, eax
	je	.L4
	mov	esi, DWORD PTR stbi__zdefault_distance[rip]
	mov	edx, 32
	mov	rdi, rbx
	call	stbi__zbuild_huffman@PLT
	test	eax, eax
	jne	.L10
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L2:
	call	stbi__parse_zlib_header@PLT
	test	eax, eax
	jne	.L5
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L34:
	pop	rbx
	.cfi_def_cfa_offset 24
	mov	eax, 1
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	stbi__parse_zlib, .-stbi__parse_zlib
	.comm	stbi__zdefault_length,4,4
	.comm	stbi__zdefault_distance,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_stb_image.h_stbi__parse_zlib.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	stbi__parse_zlib, %function
stbi__parse_zlib:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	cmp	r1, #0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r0
	bne	.L2
.L5:
	mov	r3, #0
	ldr	r6, .L35
	ldr	r7, .L35+4
	str	r3, [r4, #12]
	str	r3, [r4, #8]
	b	.L3
.L6:
	cmp	r3, #3
	beq	.L4
	cmp	r3, #1
	beq	.L33
	mov	r0, r4
	bl	stbi__compute_huffman_codes
	cmp	r0, #0
	beq	.L4
.L10:
	mov	r0, r4
	bl	stbi__parse_huffman_block
	cmp	r0, #0
	beq	.L4
.L9:
	cmp	r5, #0
	bne	.L34
.L3:
	mov	r1, #1
	mov	r0, r4
	bl	stbi__zreceive
	mov	r1, #2
	mov	r5, r0
	mov	r0, r4
	bl	stbi__zreceive
	subs	r3, r0, #0
	bne	.L6
	mov	r0, r4
	bl	stbi__parse_uncompressed_block
	cmp	r0, #0
	bne	.L9
.L4:
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L33:
	mov	r2, #288
	ldr	r1, [r6]
	add	r0, r4, #4
	bl	stbi__zbuild_huffman
	cmp	r0, #0
	beq	.L4
	mov	r2, #32
	mov	r0, r4
	ldr	r1, [r7]
	bl	stbi__zbuild_huffman
	cmp	r0, #0
	bne	.L10
	b	.L4
.L2:
	bl	stbi__parse_zlib_header
	cmp	r0, #0
	bne	.L5
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L34:
	mov	r0, #1
	pop	{r4, r5, r6, r7, r8, pc}
.L36:
	.align	2
.L35:
	.word	stbi__zdefault_length
	.word	stbi__zdefault_distance
	.size	stbi__parse_zlib, .-stbi__parse_zlib
	.comm	stbi__zdefault_length,4,4
	.comm	stbi__zdefault_distance,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
