	.file	"extr_lodepng.c_lodepng_inspect.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	lodepng_inspect
	.type	lodepng_inspect, @function
lodepng_inspect:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	lea	r15, 8[rdx]
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14, rdi
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rsi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, r8
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rcx
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rdx
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	test	r8, r8
	je	.L14
	test	rcx, rcx
	je	.L14
.L2:
	cmp	r12, 28
	jbe	.L24
.L4:
	mov	rdi, r15
	call	lodepng_info_cleanup@PLT
	mov	rdi, r15
	call	lodepng_info_init@PLT
	cmp	BYTE PTR 0[rbp], -119
	jne	.L5
	cmp	BYTE PTR 1[rbp], 80
	je	.L25
.L5:
	mov	edi, DWORD PTR [rbx]
	mov	esi, 28
	call	CERROR_RETURN_ERROR@PLT
.L6:
	cmp	BYTE PTR 12[rbp], 73
	jne	.L7
	cmp	BYTE PTR 13[rbp], 72
	je	.L26
.L7:
	mov	edi, DWORD PTR [rbx]
	mov	esi, 29
	call	CERROR_RETURN_ERROR@PLT
.L8:
	lea	rdi, 16[rbp]
	call	lodepng_read32bitInt@PLT
	lea	rdi, 20[rbp]
	mov	DWORD PTR [r14], eax
	call	lodepng_read32bitInt@PLT
	mov	DWORD PTR 0[r13], eax
	movzx	eax, BYTE PTR 24[rbp]
	mov	BYTE PTR 16[rbx], al
	movzx	eax, BYTE PTR 25[rbp]
	mov	QWORD PTR 24[rbx], rax
	movzx	eax, BYTE PTR 26[rbp]
	mov	BYTE PTR 8[rbx], al
	movzx	edx, BYTE PTR 27[rbp]
	mov	BYTE PTR 9[rbx], dl
	movzx	edx, BYTE PTR 28[rbp]
	mov	BYTE PTR 10[rbx], dl
	mov	edx, DWORD PTR 4[rbx]
	test	edx, edx
	je	.L27
.L9:
	test	al, al
	jne	.L28
.L11:
	cmp	BYTE PTR 9[rbx], 0
	jne	.L29
.L12:
	cmp	BYTE PTR 10[rbx], 1
	jbe	.L13
	mov	edi, DWORD PTR [rbx]
	mov	esi, 34
	call	CERROR_RETURN_ERROR@PLT
.L13:
	movzx	esi, BYTE PTR 16[rbx]
	mov	rdi, QWORD PTR 24[rbx]
	call	checkColorValidity@PLT
	mov	DWORD PTR [rbx], eax
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L29:
	.cfi_restore_state
	mov	edi, DWORD PTR [rbx]
	mov	esi, 33
	call	CERROR_RETURN_ERROR@PLT
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L28:
	mov	edi, DWORD PTR [rbx]
	mov	esi, 32
	call	CERROR_RETURN_ERROR@PLT
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L27:
	lea	rdi, 29[rbp]
	call	lodepng_read32bitInt@PLT
	lea	rdi, 12[rbp]
	mov	esi, 17
	mov	r12d, eax
	call	lodepng_crc32@PLT
	cmp	r12d, eax
	jne	.L10
	movzx	eax, BYTE PTR 8[rbx]
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L24:
	mov	edi, DWORD PTR [rbx]
	mov	esi, 27
	call	CERROR_RETURN_ERROR@PLT
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L14:
	mov	edi, DWORD PTR [rbx]
	mov	esi, 48
	call	CERROR_RETURN_ERROR@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L26:
	cmp	BYTE PTR 14[rbp], 68
	jne	.L7
	cmp	BYTE PTR 15[rbp], 82
	jne	.L7
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L25:
	cmp	BYTE PTR 2[rbp], 78
	jne	.L5
	cmp	BYTE PTR 3[rbp], 71
	jne	.L5
	cmp	BYTE PTR 4[rbp], 13
	jne	.L5
	cmp	BYTE PTR 5[rbp], 10
	jne	.L5
	cmp	BYTE PTR 6[rbp], 26
	jne	.L5
	cmp	BYTE PTR 7[rbp], 10
	jne	.L5
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L10:
	mov	edi, DWORD PTR [rbx]
	mov	esi, 57
	call	CERROR_RETURN_ERROR@PLT
	movzx	eax, BYTE PTR 8[rbx]
	jmp	.L9
	.cfi_endproc
.LFE0:
	.size	lodepng_inspect, .-lodepng_inspect
	.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_lodepng.c_lodepng_inspect.c"
	.text
	.align	2
	.global	lodepng_inspect
	.syntax unified
	.arm
	.fpu softvfp
	.type	lodepng_inspect, %function
lodepng_inspect:
	@ args = 4, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r9, [sp, #32]
	mov	r4, r2
	cmp	r3, #0
	cmpne	r9, #0
	mov	r7, r0
	mov	r6, r1
	mov	r5, r3
	add	r8, r2, #8
	beq	.L31
.L2:
	cmp	r9, #28
	bls	.L32
.L3:
	mov	r0, r8
	bl	lodepng_info_cleanup
	mov	r0, r8
	bl	lodepng_info_init
	ldrb	r3, [r5]	@ zero_extendqisi2
	cmp	r3, #137
	bne	.L4
	ldrb	r3, [r5, #1]	@ zero_extendqisi2
	cmp	r3, #80
	beq	.L33
.L4:
	mov	r1, #28
	ldr	r0, [r4]
	bl	CERROR_RETURN_ERROR
.L5:
	ldrb	r3, [r5, #12]	@ zero_extendqisi2
	cmp	r3, #73
	bne	.L6
	ldrb	r3, [r5, #13]	@ zero_extendqisi2
	cmp	r3, #72
	beq	.L34
.L6:
	mov	r1, #29
	ldr	r0, [r4]
	bl	CERROR_RETURN_ERROR
.L7:
	add	r0, r5, #16
	bl	lodepng_read32bitInt
	str	r0, [r7]
	add	r0, r5, #20
	bl	lodepng_read32bitInt
	str	r0, [r6]
	ldrb	r3, [r5, #24]	@ zero_extendqisi2
	ldr	r2, [r4, #4]
	strb	r3, [r4, #12]
	ldrb	r3, [r5, #25]	@ zero_extendqisi2
	cmp	r2, #0
	str	r3, [r4, #16]
	ldrb	r3, [r5, #26]	@ zero_extendqisi2
	strb	r3, [r4, #8]
	ldrb	r2, [r5, #27]	@ zero_extendqisi2
	strb	r2, [r4, #9]
	ldrb	r2, [r5, #28]	@ zero_extendqisi2
	strb	r2, [r4, #10]
	beq	.L35
.L8:
	cmp	r3, #0
	bne	.L36
.L10:
	ldrb	r3, [r4, #9]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L37
.L11:
	ldrb	r3, [r4, #10]	@ zero_extendqisi2
	cmp	r3, #1
	bls	.L12
	mov	r1, #34
	ldr	r0, [r4]
	bl	CERROR_RETURN_ERROR
.L12:
	ldrb	r1, [r4, #12]	@ zero_extendqisi2
	ldr	r0, [r4, #16]
	bl	checkColorValidity
	str	r0, [r4]
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L37:
	mov	r1, #33
	ldr	r0, [r4]
	bl	CERROR_RETURN_ERROR
	b	.L11
.L36:
	mov	r1, #32
	ldr	r0, [r4]
	bl	CERROR_RETURN_ERROR
	b	.L10
.L35:
	add	r0, r5, #29
	bl	lodepng_read32bitInt
	mov	r3, r0
	mov	r1, #17
	add	r0, r5, #12
	mov	r5, r3
	bl	lodepng_crc32
	cmp	r5, r0
	bne	.L9
	ldrb	r3, [r4, #8]	@ zero_extendqisi2
	b	.L8
.L32:
	mov	r1, #27
	ldr	r0, [r4]
	bl	CERROR_RETURN_ERROR
	b	.L3
.L31:
	mov	r1, #48
	ldr	r0, [r2]
	bl	CERROR_RETURN_ERROR
	b	.L2
.L34:
	ldrb	r3, [r5, #14]	@ zero_extendqisi2
	cmp	r3, #68
	bne	.L6
	ldrb	r3, [r5, #15]	@ zero_extendqisi2
	cmp	r3, #82
	bne	.L6
	b	.L7
.L33:
	ldrb	r3, [r5, #2]	@ zero_extendqisi2
	cmp	r3, #78
	bne	.L4
	ldrb	r3, [r5, #3]	@ zero_extendqisi2
	cmp	r3, #71
	bne	.L4
	ldrb	r3, [r5, #4]	@ zero_extendqisi2
	cmp	r3, #13
	bne	.L4
	ldrb	r3, [r5, #5]	@ zero_extendqisi2
	cmp	r3, #10
	bne	.L4
	ldrb	r3, [r5, #6]	@ zero_extendqisi2
	cmp	r3, #26
	bne	.L4
	ldrb	r3, [r5, #7]	@ zero_extendqisi2
	cmp	r3, #10
	bne	.L4
	b	.L5
.L9:
	mov	r1, #57
	ldr	r0, [r4]
	bl	CERROR_RETURN_ERROR
	ldrb	r3, [r4, #8]	@ zero_extendqisi2
	b	.L8
	.size	lodepng_inspect, .-lodepng_inspect
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
