	.file	"extr_pngrutil.c_png_handle_sCAL.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"in png_handle_sCAL\n"
.LC1:
	.string	"Missing IHDR before sCAL"
.LC2:
	.string	"Invalid sCAL after IDAT"
.LC3:
	.string	"Duplicate sCAL chunk"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC4:
	.string	"Allocating and reading sCAL chunk data (%lu bytes)\n"
	.align 8
.LC5:
	.string	"Out of memory while processing sCAL chunk"
	.section	.rodata.str1.1
.LC6:
	.string	"Truncated sCAL chunk"
	.text
	.p2align 4
	.globl	png_handle_sCAL
	.type	png_handle_sCAL, @function
png_handle_sCAL:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13, rdx
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12, rsi
	lea	rsi, .LC0[rip]
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	mov	edi, 1
	call	png_debug@PLT
	mov	eax, DWORD PTR 0[rbp]
	test	DWORD PTR PNG_HAVE_IHDR[rip], eax
	je	.L21
	lea	rsi, .LC2[rip]
	test	DWORD PTR PNG_HAVE_IDAT[rip], eax
	jne	.L19
	test	r12, r12
	je	.L3
	mov	eax, DWORD PTR [r12]
	test	DWORD PTR PNG_INFO_sCAL[rip], eax
	jne	.L22
.L3:
	lea	r12, 1[r13]
	lea	rsi, .LC4[rip]
	mov	edi, 2
	mov	rdx, r12
	call	png_debug1@PLT
	mov	rsi, r12
	mov	rdi, rbp
	call	png_malloc_warn@PLT
	mov	r12, rax
	test	rax, rax
	je	.L23
	mov	esi, eax
	mov	rdi, rbp
	mov	rdx, r13
	call	png_crc_read@PLT
	xor	esi, esi
	mov	rdi, rbp
	call	png_crc_finish@PLT
	test	rax, rax
	jne	.L9
	lea	rdx, [r12+r13*4]
	mov	rax, r12
	mov	DWORD PTR [rdx], 0
	mov	esi, DWORD PTR [r12]
	test	esi, esi
	je	.L7
	.p2align 4,,10
	.p2align 3
.L8:
	mov	ecx, DWORD PTR 4[rax]
	add	rax, 4
	test	ecx, ecx
	jne	.L8
.L7:
	add	rax, 4
	cmp	rdx, rax
	jb	.L24
.L9:
	mov	rsi, r12
	mov	rdi, rbp
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	jmp	png_free@PLT
	.p2align 4,,10
	.p2align 3
.L21:
	.cfi_restore_state
	lea	rsi, .LC1[rip]
	mov	rdi, rbp
	call	png_error@PLT
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L23:
	mov	rdi, rbp
	lea	rsi, .LC5[rip]
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	jmp	png_warning@PLT
	.p2align 4,,10
	.p2align 3
.L22:
	.cfi_restore_state
	lea	rsi, .LC3[rip]
.L19:
	mov	rdi, rbp
	call	png_warning@PLT
	mov	rsi, r13
	mov	rdi, rbp
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	jmp	png_crc_finish@PLT
	.p2align 4,,10
	.p2align 3
.L24:
	.cfi_restore_state
	mov	rdi, rbp
	lea	rsi, .LC6[rip]
	call	png_warning@PLT
	mov	rsi, r12
	mov	rdi, rbp
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	jmp	png_free@PLT
	.cfi_endproc
.LFE0:
	.size	png_handle_sCAL, .-png_handle_sCAL
	.comm	PNG_INFO_sCAL,4,4
	.comm	PNG_HAVE_IHDR,4,4
	.comm	PNG_HAVE_IDAT,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_pngrutil.c_png_handle_sCAL.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"in png_handle_sCAL\012\000"
	.align	2
.LC1:
	.ascii	"Missing IHDR before sCAL\000"
	.align	2
.LC2:
	.ascii	"Invalid sCAL after IDAT\000"
	.align	2
.LC3:
	.ascii	"Duplicate sCAL chunk\000"
	.align	2
.LC4:
	.ascii	"Allocating and reading sCAL chunk data (%lu bytes)\012"
	.ascii	"\000"
	.align	2
.LC5:
	.ascii	"Out of memory while processing sCAL chunk\000"
	.align	2
.LC6:
	.ascii	"Truncated sCAL chunk\000"
	.text
	.align	2
	.global	png_handle_sCAL
	.syntax unified
	.arm
	.fpu softvfp
	.type	png_handle_sCAL, %function
png_handle_sCAL:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r0
	mov	r6, r1
	mov	r0, #1
	ldr	r1, .L25
	mov	r5, r2
	bl	png_debug
	ldr	r2, .L25+4
	ldr	r3, [r4]
	ldr	r2, [r2]
	tst	r3, r2
	beq	.L21
	ldr	r2, .L25+8
	ldr	r2, [r2]
	tst	r3, r2
	ldrne	r1, .L25+12
	bne	.L19
	cmp	r6, #0
	beq	.L3
	ldr	r3, .L25+16
	ldr	r2, [r6]
	ldr	r3, [r3]
	tst	r2, r3
	bne	.L22
.L3:
	add	r6, r5, #1
	mov	r2, r6
	ldr	r1, .L25+20
	mov	r0, #2
	bl	png_debug1
	mov	r1, r6
	mov	r0, r4
	bl	png_malloc_warn
	subs	r6, r0, #0
	beq	.L23
	mov	r2, r5
	mov	r1, r6
	mov	r0, r4
	bl	png_crc_read
	mov	r1, #0
	mov	r0, r4
	bl	png_crc_finish
	cmp	r0, #0
	bne	.L9
	str	r0, [r6, r5, lsl #2]
	ldr	r3, [r6]
	add	r5, r6, r5, lsl #2
	cmp	r3, #0
	mov	r3, r6
	beq	.L7
.L8:
	ldr	r1, [r3, #4]!
	cmp	r1, #0
	bne	.L8
.L7:
	add	r3, r3, #4
	cmp	r5, r3
	bcc	.L24
.L9:
	mov	r1, r6
	mov	r0, r4
	pop	{r4, r5, r6, lr}
	b	png_free
.L21:
	mov	r0, r4
	ldr	r1, .L25+24
	bl	png_error
	b	.L3
.L23:
	mov	r0, r4
	pop	{r4, r5, r6, lr}
	ldr	r1, .L25+28
	b	png_warning
.L22:
	ldr	r1, .L25+32
.L19:
	mov	r0, r4
	bl	png_warning
	mov	r1, r5
	mov	r0, r4
	pop	{r4, r5, r6, lr}
	b	png_crc_finish
.L24:
	mov	r0, r4
	ldr	r1, .L25+36
	bl	png_warning
	mov	r1, r6
	mov	r0, r4
	pop	{r4, r5, r6, lr}
	b	png_free
.L26:
	.align	2
.L25:
	.word	.LC0
	.word	PNG_HAVE_IHDR
	.word	PNG_HAVE_IDAT
	.word	.LC2
	.word	PNG_INFO_sCAL
	.word	.LC4
	.word	.LC1
	.word	.LC5
	.word	.LC3
	.word	.LC6
	.size	png_handle_sCAL, .-png_handle_sCAL
	.comm	PNG_INFO_sCAL,4,4
	.comm	PNG_HAVE_IHDR,4,4
	.comm	PNG_HAVE_IDAT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
