	.file	"extr_pngrutil.c_png_handle_cHRM.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"in png_handle_cHRM"
.LC1:
	.string	"missing IHDR"
.LC2:
	.string	"out of place"
.LC3:
	.string	"invalid"
.LC4:
	.string	"invalid values"
.LC5:
	.string	"duplicate"
	.text
	.p2align 4
	.globl	png_handle_cHRM
	.type	png_handle_cHRM, @function
png_handle_cHRM:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13d, esi
	lea	rsi, .LC0[rip]
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12d, edx
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	mov	edi, 1
	sub	rsp, 208
	.cfi_def_cfa_offset 240
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 200[rsp], rax
	xor	eax, eax
	call	png_debug@PLT
	mov	edx, DWORD PTR 0[rbp]
	test	DWORD PTR PNG_HAVE_IHDR[rip], edx
	je	.L18
	mov	eax, DWORD PTR PNG_HAVE_IDAT[rip]
	or	eax, DWORD PTR PNG_HAVE_PLTE[rip]
	test	eax, edx
	jne	.L19
.L3:
	cmp	r12d, 32
	je	.L5
	mov	esi, r12d
	mov	rdi, rbp
	call	png_crc_finish@PLT
	lea	rsi, .LC3[rip]
	mov	rdi, rbp
	call	png_chunk_benign_error@PLT
.L1:
	mov	rax, QWORD PTR 200[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L20
	add	rsp, 208
	.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
.L5:
	.cfi_restore_state
	lea	r12, 64[rsp]
	mov	rdi, rbp
	mov	edx, 32
	mov	rsi, r12
	call	png_crc_read@PLT
	xor	esi, esi
	mov	rdi, rbp
	call	png_crc_finish@PLT
	test	rax, rax
	jne	.L1
	mov	rsi, r12
	xor	edi, edi
	call	png_get_fixed_point@PLT
	lea	rsi, 80[rsp]
	xor	edi, edi
	mov	QWORD PTR [rsp], rax
	call	png_get_fixed_point@PLT
	lea	rsi, 96[rsp]
	xor	edi, edi
	mov	QWORD PTR 8[rsp], rax
	call	png_get_fixed_point@PLT
	lea	rsi, 112[rsp]
	xor	edi, edi
	mov	QWORD PTR 16[rsp], rax
	call	png_get_fixed_point@PLT
	lea	rsi, 128[rsp]
	xor	edi, edi
	mov	QWORD PTR 24[rsp], rax
	call	png_get_fixed_point@PLT
	lea	rsi, 144[rsp]
	xor	edi, edi
	mov	QWORD PTR 32[rsp], rax
	call	png_get_fixed_point@PLT
	lea	rsi, 160[rsp]
	xor	edi, edi
	mov	QWORD PTR 40[rsp], rax
	call	png_get_fixed_point@PLT
	lea	rsi, 176[rsp]
	xor	edi, edi
	mov	QWORD PTR 48[rsp], rax
	call	png_get_fixed_point@PLT
	mov	rdx, QWORD PTR PNG_FIXED_ERROR[rip]
	mov	QWORD PTR 56[rsp], rax
	cmp	QWORD PTR [rsp], rdx
	je	.L7
	cmp	rdx, QWORD PTR 8[rsp]
	je	.L7
	cmp	rdx, QWORD PTR 16[rsp]
	je	.L7
	cmp	rdx, QWORD PTR 24[rsp]
	je	.L7
	cmp	rdx, QWORD PTR 32[rsp]
	je	.L7
	cmp	rdx, QWORD PTR 40[rsp]
	je	.L7
	cmp	QWORD PTR 48[rsp], rdx
	je	.L7
	cmp	rax, rdx
	je	.L7
	mov	eax, DWORD PTR 4[rbp]
	mov	edx, DWORD PTR PNG_COLORSPACE_INVALID[rip]
	test	eax, edx
	jne	.L1
	mov	ecx, DWORD PTR PNG_COLORSPACE_FROM_cHRM[rip]
	test	eax, ecx
	jne	.L21
	or	eax, ecx
	lea	rsi, 4[rbp]
	mov	rdi, rbp
	mov	rdx, rsp
	mov	DWORD PTR 4[rbp], eax
	mov	ecx, 1
	call	png_colorspace_set_chromaticities@PLT
	mov	esi, r13d
	mov	rdi, rbp
	call	png_colorspace_sync@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L18:
	lea	rsi, .LC1[rip]
	mov	rdi, rbp
	call	png_chunk_error@PLT
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L7:
	lea	rsi, .LC4[rip]
	mov	rdi, rbp
	call	png_chunk_benign_error@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L19:
	mov	esi, r12d
	mov	rdi, rbp
	call	png_crc_finish@PLT
	lea	rsi, .LC2[rip]
	mov	rdi, rbp
	call	png_chunk_benign_error@PLT
	jmp	.L1
.L21:
	or	eax, edx
	mov	esi, r13d
	mov	rdi, rbp
	mov	DWORD PTR 4[rbp], eax
	call	png_colorspace_sync@PLT
	lea	rsi, .LC5[rip]
	mov	rdi, rbp
	call	png_chunk_benign_error@PLT
	jmp	.L1
.L20:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	png_handle_cHRM, .-png_handle_cHRM
	.comm	PNG_HAVE_PLTE,4,4
	.comm	PNG_HAVE_IHDR,4,4
	.comm	PNG_HAVE_IDAT,4,4
	.comm	PNG_FIXED_ERROR,8,8
	.comm	PNG_COLORSPACE_INVALID,4,4
	.comm	PNG_COLORSPACE_FROM_cHRM,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_cHRM.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"in png_handle_cHRM\000"
	.align	2
.LC1:
	.ascii	"missing IHDR\000"
	.align	2
.LC2:
	.ascii	"out of place\000"
	.align	2
.LC3:
	.ascii	"invalid\000"
	.align	2
.LC4:
	.ascii	"invalid values\000"
	.align	2
.LC5:
	.ascii	"duplicate\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC6:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	png_handle_cHRM
	.syntax unified
	.arm
	.fpu softvfp
	.type	png_handle_cHRM, %function
png_handle_cHRM:
	@ args = 0, pretend = 0, frame = 168
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r0
	ldr	r3, .L21
	sub	sp, sp, #168
	mov	r6, r1
	mov	r0, #1
	ldr	r1, .L21+4
	mov	r5, r2
	ldr	r3, [r3]
	str	r3, [sp, #164]
	mov	r3,#0
	bl	png_debug
	ldr	r3, .L21+8
	ldr	r2, [r4]
	ldr	r3, [r3]
	tst	r2, r3
	beq	.L17
	ldr	r3, .L21+12
	ldr	r1, .L21+16
	ldr	r3, [r3]
	ldr	r1, [r1]
	orr	r3, r3, r1
	tst	r3, r2
	bne	.L18
.L3:
	cmp	r5, #32
	beq	.L5
	mov	r1, r5
	mov	r0, r4
	bl	png_crc_finish
	mov	r0, r4
	ldr	r1, .L21+20
	bl	png_chunk_benign_error
.L1:
	ldr	r3, .L21
	ldr	r2, [r3]
	ldr	r3, [sp, #164]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L19
	add	sp, sp, #168
	@ sp needed
	pop	{r4, r5, r6, pc}
.L5:
	mov	r2, r5
	add	r1, sp, #36
	mov	r0, r4
	bl	png_crc_read
	mov	r1, #0
	mov	r0, r4
	bl	png_crc_finish
	subs	r5, r0, #0
	bne	.L1
	add	r1, sp, #36
	bl	png_get_fixed_point
	mov	r3, r0
	add	r1, sp, #52
	mov	r0, r5
	str	r3, [sp, #4]
	bl	png_get_fixed_point
	mov	r3, r0
	add	r1, sp, #68
	mov	r0, r5
	str	r3, [sp, #8]
	bl	png_get_fixed_point
	mov	r3, r0
	add	r1, sp, #84
	mov	r0, r5
	str	r3, [sp, #12]
	bl	png_get_fixed_point
	mov	r3, r0
	add	r1, sp, #100
	mov	r0, r5
	str	r3, [sp, #16]
	bl	png_get_fixed_point
	mov	r3, r0
	add	r1, sp, #116
	mov	r0, r5
	str	r3, [sp, #20]
	bl	png_get_fixed_point
	mov	r3, r0
	add	r1, sp, #132
	mov	r0, r5
	str	r3, [sp, #24]
	bl	png_get_fixed_point
	mov	r3, r0
	add	r1, sp, #148
	mov	r0, r5
	str	r3, [sp, #28]
	bl	png_get_fixed_point
	ldr	r3, .L21+24
	ldr	r2, [sp, #4]
	ldr	r3, [r3]
	str	r0, [sp, #32]
	cmp	r2, r3
	beq	.L7
	ldr	r2, [sp, #8]
	cmp	r3, r2
	beq	.L7
	ldr	r2, [sp, #12]
	cmp	r3, r2
	beq	.L7
	ldr	r2, [sp, #16]
	cmp	r3, r2
	beq	.L7
	ldr	r2, [sp, #20]
	cmp	r3, r2
	beq	.L7
	ldr	r2, [sp, #24]
	cmp	r3, r2
	beq	.L7
	ldr	r2, [sp, #28]
	cmp	r0, r3
	cmpne	r2, r3
	beq	.L7
	ldr	r2, .L21+28
	ldr	r3, [r4, #4]
	ldr	r2, [r2]
	tst	r3, r2
	bne	.L1
	ldr	r1, .L21+32
	ldr	r0, [r1]
	tst	r3, r0
	bne	.L20
	mov	r1, r4
	orr	r3, r3, r0
	str	r3, [r1, #4]!
	mov	r0, r4
	mov	r3, #1
	add	r2, sp, #4
	bl	png_colorspace_set_chromaticities
	mov	r1, r6
	mov	r0, r4
	bl	png_colorspace_sync
	b	.L1
.L17:
	mov	r0, r4
	ldr	r1, .L21+36
	bl	png_chunk_error
	b	.L3
.L7:
	mov	r0, r4
	ldr	r1, .L21+40
	bl	png_chunk_benign_error
	b	.L1
.L18:
	mov	r1, r5
	mov	r0, r4
	bl	png_crc_finish
	mov	r0, r4
	ldr	r1, .L21+44
	bl	png_chunk_benign_error
	b	.L1
.L20:
	orr	r3, r3, r2
	mov	r1, r6
	mov	r0, r4
	str	r3, [r4, #4]
	bl	png_colorspace_sync
	mov	r0, r4
	ldr	r1, .L21+48
	bl	png_chunk_benign_error
	b	.L1
.L19:
	bl	__stack_chk_fail
.L22:
	.align	2
.L21:
	.word	.LC6
	.word	.LC0
	.word	PNG_HAVE_IHDR
	.word	PNG_HAVE_IDAT
	.word	PNG_HAVE_PLTE
	.word	.LC3
	.word	PNG_FIXED_ERROR
	.word	PNG_COLORSPACE_INVALID
	.word	PNG_COLORSPACE_FROM_cHRM
	.word	.LC1
	.word	.LC4
	.word	.LC2
	.word	.LC5
	.size	png_handle_cHRM, .-png_handle_cHRM
	.comm	PNG_HAVE_PLTE,4,4
	.comm	PNG_HAVE_IHDR,4,4
	.comm	PNG_HAVE_IDAT,4,4
	.comm	PNG_FIXED_ERROR,4,4
	.comm	PNG_COLORSPACE_INVALID,4,4
	.comm	PNG_COLORSPACE_FROM_cHRM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
