	.file	"extr_png_io.c_createPNGData.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	createPNGData
	.type	createPNGData, @function
createPNGData:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12, rdi
	pxor	xmm0, xmm0
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	rbx, rsi
	sub	rsp, 56
	.cfi_def_cfa_offset 80
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 40[rsp], rax
	xor	eax, eax
	test	rdi, rdi
	movaps	XMMWORD PTR [rsp], xmm0
	setne	dil
	movaps	XMMWORD PTR 16[rsp], xmm0
	movzx	edi, dil
	call	assert@PLT
	xor	edi, edi
	test	rbx, rbx
	setne	dil
	call	assert@PLT
	mov	rdi, r12
	call	createPNGWriteInfo@PLT
	mov	r12, rax
	test	rax, rax
	je	.L1
	mov	edi, DWORD PTR 4[rax]
	mov	rsi, rsp
	xor	ecx, ecx
	lea	rdx, png_append_data[rip]
	call	png_set_write_fn@PLT
	mov	edi, DWORD PTR 4[r12]
	mov	esi, DWORD PTR [r12]
	xor	ecx, ecx
	mov	edx, DWORD PTR PNG_TRANSFORM_IDENTITY[rip]
	call	png_write_png@PLT
	mov	rdi, r12
	call	destroyPNGWriteInfo@PLT
	mov	rax, QWORD PTR [rsp]
	mov	r12, QWORD PTR 8[rsp]
	mov	QWORD PTR [rbx], rax
.L1:
	mov	rax, QWORD PTR 40[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L9
	add	rsp, 56
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	rax, r12
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
.L9:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	createPNGData, .-createPNGData
	.comm	png_append_data,4,4
	.comm	PNG_TRANSFORM_IDENTITY,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_png_io.c_createPNGData.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	createPNGData
	.syntax unified
	.arm
	.fpu softvfp
	.type	createPNGData, %function
createPNGData:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r5, #0
	mov	r6, r1
	mov	r4, r0
	ldr	r3, .L10
	subs	r0, r0, r5
	sub	sp, sp, #24
	movne	r0, #1
	ldr	r3, [r3]
	str	r3, [sp, #20]
	mov	r3,#0
	str	r5, [sp]
	str	r5, [sp, #4]
	str	r5, [sp, #8]
	str	r5, [sp, #12]
	str	r5, [sp, #16]
	bl	assert
	subs	r0, r6, r5
	movne	r0, #1
	bl	assert
	mov	r0, r4
	bl	createPNGWriteInfo
	subs	r4, r0, #0
	beq	.L1
	mov	r1, sp
	mov	r3, r5
	ldr	r2, .L10+4
	ldr	r0, [r4, #4]
	bl	png_set_write_fn
	ldr	r2, .L10+8
	mov	r3, r5
	ldr	r1, [r4]
	ldr	r2, [r2]
	ldr	r0, [r4, #4]
	bl	png_write_png
	mov	r0, r4
	bl	destroyPNGWriteInfo
	ldm	sp, {r3, r4}
	str	r3, [r6]
.L1:
	ldr	r3, .L10
	ldr	r2, [r3]
	ldr	r3, [sp, #20]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L9
	mov	r0, r4
	add	sp, sp, #24
	@ sp needed
	pop	{r4, r5, r6, pc}
.L9:
	bl	__stack_chk_fail
.L11:
	.align	2
.L10:
	.word	.LC0
	.word	png_append_data
	.word	PNG_TRANSFORM_IDENTITY
	.size	createPNGData, .-createPNGData
	.comm	png_append_data,4,4
	.comm	PNG_TRANSFORM_IDENTITY,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
