	.file	"extr_main.c_png2hb.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"CreateDIBitmap failed with %i"
	.text
	.p2align 4
	.type	png2hb, @function
png2hb:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 40
	.cfi_def_cfa_offset 80
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	test	esi, esi
	je	.L17
	mov	esi, 345600
	mov	edi, 1
	call	calloc@PLT
	mov	rbp, rax
	test	rax, rax
	je	.L8
	mov	ebx, 480
.L7:
	mov	edx, DWORD PTR READPNG_24[rip]
	mov	ecx, ebx
	mov	rsi, r12
	mov	rdi, rbp
	mov	r8d, 240
	call	readpng@PLT
	test	eax, eax
	jne	.L18
	mov	r12, rsp
	mov	edx, 24
	xor	esi, esi
	mov	rdi, r12
	call	memset@PLT
	mov	edi, DWORD PTR FrameWnd[rip]
	mov	r13d, DWORD PTR CBM_INIT[rip]
	movabs	rax, 8589934352
	mov	QWORD PTR 8[rsp], rax
	mov	eax, DWORD PTR BI_RGB[rip]
	mov	DWORD PTR [rsp], 24
	mov	DWORD PTR 4[rsp], ebx
	mov	DWORD PTR 16[rsp], 24
	mov	DWORD PTR 20[rsp], eax
	call	GetDC@PLT
	mov	r8, r12
	mov	rsi, r12
	xor	r9d, r9d
	mov	edi, eax
	mov	rcx, rbp
	mov	edx, r13d
	call	CreateDIBitmap@PLT
	mov	r12, rax
	test	rax, rax
	je	.L19
.L6:
	mov	rdi, rbp
	call	free@PLT
.L1:
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L20
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rax, r12
	pop	rbx
	.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
.L17:
	.cfi_restore_state
	mov	esi, 230400
	mov	edi, 1
	mov	ebx, 320
	call	calloc@PLT
	mov	rbp, rax
	test	rax, rax
	jne	.L7
.L8:
	xor	r12d, r12d
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L18:
	mov	rdi, rbp
	xor	r12d, r12d
	call	free@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L19:
	xor	eax, eax
	call	GetLastError@PLT
	lea	rdi, .LC0[rip]
	mov	esi, eax
	call	lprintf@PLT
	jmp	.L6
.L20:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	png2hb, .-png2hb
	.comm	READPNG_24,4,4
	.comm	FrameWnd,4,4
	.comm	CBM_INIT,4,4
	.comm	BI_RGB,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_main.c_png2hb.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"CreateDIBitmap failed with %i\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	png2hb, %function
png2hb:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r3, .L23
	sub	sp, sp, #40
	cmp	r1, #0
	mov	r5, r0
	ldr	r3, [r3]
	str	r3, [sp, #36]
	mov	r3,#0
	beq	.L19
	mov	r0, #1
	ldr	r1, .L23+4
	bl	calloc
	subs	r4, r0, #0
	beq	.L9
	ldr	r3, .L23+8
	mov	r6, #480
	ldr	r2, [r3]
	b	.L7
.L19:
	mov	r1, #230400
	mov	r0, #1
	bl	calloc
	subs	r4, r0, #0
	beq	.L9
	mov	r6, #320
	ldr	r3, .L23+8
	ldr	r2, [r3]
.L7:
	mov	r3, #240
	mov	r1, r5
	str	r3, [sp]
	mov	r0, r4
	mov	r3, r6
	bl	readpng
	subs	r5, r0, #0
	bne	.L20
	mov	r3, #24
	mvn	r1, #239
	mov	r2, #1
	ldr	r0, .L23+12
	str	r3, [sp, #12]
	ldr	ip, [r0]
	ldr	r0, .L23+16
	str	ip, [sp, #32]
	ldr	r0, [r0]
	str	r3, [sp, #28]
	str	r1, [sp, #20]
	str	r2, [sp, #24]
	str	r6, [sp, #16]
	bl	GetDC
	ldr	r3, .L23+20
	str	r5, [sp, #4]
	add	r1, sp, #12
	ldr	r2, [r3]
	mov	r3, r4
	str	r1, [sp]
	bl	CreateDIBitmap
	subs	r5, r0, #0
	beq	.L21
.L6:
	mov	r0, r4
	bl	free
.L1:
	ldr	r3, .L23
	ldr	r2, [r3]
	ldr	r3, [sp, #36]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L22
	mov	r0, r5
	add	sp, sp, #40
	@ sp needed
	pop	{r4, r5, r6, pc}
.L20:
	mov	r0, r4
	bl	free
	mov	r5, #0
	b	.L1
.L21:
	bl	GetLastError
	mov	r1, r0
	ldr	r0, .L23+24
	bl	lprintf
	b	.L6
.L9:
	mov	r5, #0
	b	.L1
.L22:
	bl	__stack_chk_fail
.L24:
	.align	2
.L23:
	.word	.LC1
	.word	345600
	.word	READPNG_24
	.word	BI_RGB
	.word	FrameWnd
	.word	CBM_INIT
	.word	.LC0
	.size	png2hb, .-png2hb
	.comm	READPNG_24,4,4
	.comm	FrameWnd,4,4
	.comm	CBM_INIT,4,4
	.comm	BI_RGB,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
