	.file	"extr_pngwutil.c_png_write_IDAT.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"in png_write_IDAT\n"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"Invalid zlib compression method or flags in IDAT"
	.text
	.p2align 4
	.globl	png_write_IDAT
	.type	png_write_IDAT, @function
png_write_IDAT:
.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	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, rdi
	mov	edi, 1
	call	png_debug@PLT
	mov	eax, DWORD PTR [rbx]
	test	DWORD PTR PNG_HAVE_IDAT[rip], eax
	jne	.L2
	mov	rax, QWORD PTR PNG_COMPRESSION_TYPE_BASE[rip]
	cmp	QWORD PTR 8[rbx], rax
	je	.L19
.L2:
	mov	esi, DWORD PTR png_IDAT[rip]
	mov	ecx, r13d
	mov	rdx, r12
	mov	rdi, rbx
	call	png_write_chunk@PLT
	mov	eax, DWORD PTR PNG_HAVE_IDAT[rip]
	or	DWORD PTR [rbx], eax
	pop	rbx
	.cfi_remember_state
	.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
.L19:
	.cfi_restore_state
	mov	eax, DWORD PTR [r12]
	mov	edx, eax
	and	edx, 15
	cmp	edx, 8
	jne	.L3
	mov	edx, eax
	and	edx, 240
	cmp	edx, 112
	ja	.L3
	cmp	r13d, 1
	jle	.L2
	mov	ecx, DWORD PTR 16[rbx]
	cmp	ecx, 16383
	jg	.L2
	mov	edx, DWORD PTR 20[rbx]
	cmp	edx, 16383
	jg	.L2
	imul	edx, DWORD PTR 24[rbx]
	mov	esi, eax
	imul	edx, DWORD PTR 28[rbx]
	shr	esi, 4
	lea	edi, 15[rdx]
	mov	edx, 1
	sar	edi, 3
	imul	edi, ecx
	lea	ecx, 7[rsi]
	sal	edx, cl
	cmp	edx, 255
	jbe	.L4
	cmp	edi, edx
	jbe	.L5
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L20:
	cmp	edx, 255
	jbe	.L4
.L5:
	shr	edx
	sub	esi, 1
	cmp	edi, edx
	jbe	.L20
.L4:
	sal	esi, 4
	or	esi, 8
	cmp	eax, esi
	je	.L2
	mov	ecx, DWORD PTR 4[r12]
	mov	DWORD PTR [r12], esi
	sal	esi, 8
	and	ecx, 224
	lea	edx, [rsi+rcx]
	mov	rax, rdx
	imul	rdx, rdx, 138547333
	sub	ecx, eax
	mov	rsi, rdx
	mov	edx, eax
	shr	rsi, 32
	sub	edx, esi
	shr	edx
	add	edx, esi
	shr	edx, 4
	mov	esi, edx
	sal	esi, 5
	sub	esi, edx
	lea	eax, 31[rcx+rsi]
	mov	DWORD PTR 4[r12], eax
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L3:
	lea	rsi, .LC1[rip]
	mov	rdi, rbx
	call	png_error@PLT
	jmp	.L2
	.cfi_endproc
.LFE0:
	.size	png_write_IDAT, .-png_write_IDAT
	.comm	png_IDAT,4,4
	.comm	PNG_IDAT,4,4
	.comm	PNG_HAVE_IDAT,4,4
	.comm	PNG_COMPRESSION_TYPE_BASE,8,8
	.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_pngwutil.c_png_write_IDAT.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"in png_write_IDAT\012\000"
	.align	2
.LC1:
	.ascii	"Invalid zlib compression method or flags in IDAT\000"
	.text
	.align	2
	.global	png_write_IDAT
	.syntax unified
	.arm
	.fpu softvfp
	.type	png_write_IDAT, %function
png_write_IDAT:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r0
	ldr	r7, .L13
	mov	r5, r1
	mov	r0, #1
	ldr	r1, .L13+4
	mov	r6, r2
	bl	png_debug
	ldr	r2, [r4]
	ldr	r3, [r7]
	tst	r2, r3
	bne	.L2
	ldr	r3, .L13+8
	ldr	r2, [r4, #4]
	ldr	r3, [r3]
	cmp	r2, r3
	beq	.L12
.L2:
	ldr	r1, .L13+12
	mov	r3, r6
	mov	r2, r5
	mov	r0, r4
	ldr	r1, [r1]
	bl	png_write_chunk
	ldr	r2, [r7]
	ldr	r3, [r4]
	orr	r3, r3, r2
	str	r3, [r4]
	pop	{r4, r5, r6, r7, r8, pc}
.L12:
	ldr	r3, [r5]
	and	r2, r3, #15
	cmp	r2, #8
	bne	.L3
	and	r2, r3, #240
	cmp	r2, #112
	bhi	.L3
	cmp	r6, #1
	ble	.L2
	ldr	r0, [r4, #8]
	cmp	r0, #16384
	bge	.L2
	ldr	r1, [r4, #12]
	cmp	r1, #16384
	bge	.L2
	mov	r2, #1
	ldr	lr, [r4, #16]
	ldr	ip, [r4, #20]
	mul	r1, lr, r1
	mul	r1, ip, r1
	add	r1, r1, #15
	asr	r1, r1, #3
	mul	r1, r0, r1
	lsr	r0, r3, #4
	add	ip, r0, #7
	lsl	r2, r2, ip
	cmp	r2, #255
	movhi	ip, #1
	movls	ip, #0
	cmp	r1, r2
	movhi	ip, #0
	cmp	ip, #0
	beq	.L4
.L5:
	lsr	r2, r2, #1
	cmp	r1, r2
	movls	ip, #1
	movhi	ip, #0
	cmp	r2, #255
	movls	ip, #0
	cmp	ip, #0
	sub	r0, r0, #1
	bne	.L5
.L4:
	lsl	r2, r0, #4
	orr	r2, r2, #8
	cmp	r3, r2
	beq	.L2
	ldr	r1, [r5, #4]
	ldr	r3, .L13+16
	and	r1, r1, #224
	add	r0, r1, r2, lsl #8
	umull	ip, r3, r0, r3
	sub	ip, r0, r3
	add	r3, r3, ip, lsr #1
	lsr	r3, r3, #4
	rsb	r3, r3, r3, lsl #5
	add	r1, r1, #31
	sub	r3, r0, r3
	sub	r3, r1, r3
	stm	r5, {r2, r3}
	b	.L2
.L3:
	mov	r0, r4
	ldr	r1, .L13+20
	bl	png_error
	b	.L2
.L14:
	.align	2
.L13:
	.word	PNG_HAVE_IDAT
	.word	.LC0
	.word	PNG_COMPRESSION_TYPE_BASE
	.word	png_IDAT
	.word	138547333
	.word	.LC1
	.size	png_write_IDAT, .-png_write_IDAT
	.comm	png_IDAT,4,4
	.comm	PNG_IDAT,4,4
	.comm	PNG_HAVE_IDAT,4,4
	.comm	PNG_COMPRESSION_TYPE_BASE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
