	.file	"extr_pngrutil.c_png_handle_sRGB.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"in png_handle_sRGB\n"
.LC1:
	.string	"Missing IHDR before sRGB"
.LC2:
	.string	"Invalid sRGB after IDAT"
.LC3:
	.string	"Out of place sRGB chunk"
.LC4:
	.string	"Duplicate sRGB chunk"
.LC5:
	.string	"Incorrect sRGB chunk length"
.LC6:
	.string	"Unknown sRGB intent"
	.text
	.p2align 4
	.globl	png_handle_sRGB
	.type	png_handle_sRGB, @function
png_handle_sRGB:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13d, edx
	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
	sub	rsp, 16
	.cfi_def_cfa_offset 48
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	call	png_debug@PLT
	mov	eax, DWORD PTR 0[rbp]
	test	DWORD PTR PNG_HAVE_IHDR[rip], eax
	je	.L23
	lea	rsi, .LC2[rip]
	test	DWORD PTR PNG_HAVE_IDAT[rip], eax
	jne	.L21
	test	DWORD PTR PNG_HAVE_PLTE[rip], eax
	jne	.L24
.L3:
	test	r12, r12
	je	.L6
	mov	eax, DWORD PTR [r12]
	lea	rsi, .LC4[rip]
	test	DWORD PTR PNG_INFO_sRGB[rip], eax
	jne	.L21
.L6:
	cmp	r13d, 1
	jne	.L25
	lea	rsi, 4[rsp]
	mov	rdi, rbp
	mov	edx, 1
	call	png_crc_read@PLT
	xor	esi, esi
	mov	rdi, rbp
	call	png_crc_finish@PLT
	test	rax, rax
	jne	.L1
	mov	edx, DWORD PTR 4[rsp]
	cmp	DWORD PTR PNG_sRGB_INTENT_LAST[rip], edx
	jle	.L26
	mov	rsi, r12
	mov	rdi, rbp
	call	png_set_sRGB_gAMA_and_cHRM@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L25:
	lea	rsi, .LC5[rip]
.L21:
	mov	rdi, rbp
	call	png_warning@PLT
	mov	esi, r13d
	mov	rdi, rbp
	call	png_crc_finish@PLT
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L27
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L23:
	.cfi_restore_state
	lea	rsi, .LC1[rip]
	mov	rdi, rbp
	call	png_error@PLT
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L24:
	lea	rsi, .LC3[rip]
	mov	rdi, rbp
	call	png_warning@PLT
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L26:
	lea	rsi, .LC6[rip]
	mov	rdi, rbp
	call	png_warning@PLT
	jmp	.L1
.L27:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	png_handle_sRGB, .-png_handle_sRGB
	.comm	stderr,4,4
	.comm	PNG_sRGB_INTENT_LAST,4,4
	.comm	PNG_INFO_sRGB,4,4
	.comm	PNG_INFO_gAMA,4,4
	.comm	PNG_INFO_cHRM,4,4
	.comm	PNG_HAVE_PLTE,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_sRGB.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"in png_handle_sRGB\012\000"
	.align	2
.LC1:
	.ascii	"Missing IHDR before sRGB\000"
	.align	2
.LC2:
	.ascii	"Invalid sRGB after IDAT\000"
	.align	2
.LC3:
	.ascii	"Out of place sRGB chunk\000"
	.align	2
.LC4:
	.ascii	"Duplicate sRGB chunk\000"
	.align	2
.LC5:
	.ascii	"Incorrect sRGB chunk length\000"
	.align	2
.LC6:
	.ascii	"Unknown sRGB intent\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC7:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	png_handle_sRGB
	.syntax unified
	.arm
	.fpu softvfp
	.type	png_handle_sRGB, %function
png_handle_sRGB:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r0
	ldr	r3, .L28
	sub	sp, sp, #8
	mov	r6, r1
	mov	r0, #1
	ldr	r1, .L28+4
	mov	r5, r2
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	bl	png_debug
	ldr	r2, .L28+8
	ldr	r3, [r4]
	ldr	r2, [r2]
	tst	r3, r2
	beq	.L23
	ldr	r2, .L28+12
	ldr	r2, [r2]
	tst	r3, r2
	ldrne	r1, .L28+16
	bne	.L21
	ldr	r2, .L28+20
	ldr	r2, [r2]
	tst	r3, r2
	bne	.L24
.L3:
	cmp	r6, #0
	beq	.L6
	ldr	r3, .L28+24
	ldr	r2, [r6]
	ldr	r3, [r3]
	tst	r2, r3
	ldrne	r1, .L28+28
	bne	.L21
.L6:
	cmp	r5, #1
	bne	.L25
	mov	r2, r5
	mov	r1, sp
	mov	r0, r4
	bl	png_crc_read
	mov	r1, #0
	mov	r0, r4
	bl	png_crc_finish
	cmp	r0, #0
	bne	.L1
	ldr	r3, .L28+32
	ldr	r2, [sp]
	ldr	r3, [r3]
	cmp	r3, r2
	ble	.L26
	mov	r1, r6
	mov	r0, r4
	bl	png_set_sRGB_gAMA_and_cHRM
	b	.L1
.L25:
	ldr	r1, .L28+36
.L21:
	mov	r0, r4
	bl	png_warning
	mov	r1, r5
	mov	r0, r4
	bl	png_crc_finish
.L1:
	ldr	r3, .L28
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L27
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, pc}
.L23:
	mov	r0, r4
	ldr	r1, .L28+40
	bl	png_error
	b	.L3
.L24:
	mov	r0, r4
	ldr	r1, .L28+44
	bl	png_warning
	b	.L3
.L26:
	mov	r0, r4
	ldr	r1, .L28+48
	bl	png_warning
	b	.L1
.L27:
	bl	__stack_chk_fail
.L29:
	.align	2
.L28:
	.word	.LC7
	.word	.LC0
	.word	PNG_HAVE_IHDR
	.word	PNG_HAVE_IDAT
	.word	.LC2
	.word	PNG_HAVE_PLTE
	.word	PNG_INFO_sRGB
	.word	.LC4
	.word	PNG_sRGB_INTENT_LAST
	.word	.LC5
	.word	.LC1
	.word	.LC3
	.word	.LC6
	.size	png_handle_sRGB, .-png_handle_sRGB
	.comm	stderr,4,4
	.comm	PNG_sRGB_INTENT_LAST,4,4
	.comm	PNG_INFO_sRGB,4,4
	.comm	PNG_INFO_gAMA,4,4
	.comm	PNG_INFO_cHRM,4,4
	.comm	PNG_HAVE_PLTE,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
