	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function logerror
_logerror:                              ## @logerror
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r15
	movq	%rdx, %r12
	movq	%rsi, %r13
	movq	%rdi, %rbx
	movq	_stdout@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_fflush
	leaq	8(%rbx), %r14
	cmpq	$0, 24(%rbx)
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	je	LBB0_2
## %bb.1:
	movl	16(%rbx), %r9d
	leaq	L_.str(%rip), %rsi
	movq	%r13, %rdx
	movq	%r12, %rcx
	movq	%r15, %r8
	xorl	%eax, %eax
	callq	_fprintf
	cmpq	$0, (%r14)
	je	LBB0_5
LBB0_4:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%rbx), %rdx
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
	movq	%r14, %rdi
	callq	_png_image_free
LBB0_5:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	leaq	L_.str.1(%rip), %rsi
	movq	%r13, %rdx
	movq	%r12, %rcx
	movq	%r15, %r8
	xorl	%eax, %eax
	callq	_fprintf
	cmpq	$0, (%r14)
	jne	LBB0_4
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.comm	_stdout,4,2                     ## @stdout
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s%s%s: %s\n"

L_.str.1:                               ## @.str.1
	.asciz	"%s%s%s\n"

L_.str.2:                               ## @.str.2
	.asciz	"%s: image opaque pointer non-NULL on error\n"

	.no_dead_strip	_logerror
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function logerror
_logerror:                              ; @logerror
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x23, x3
	mov	x22, x2
	mov	x21, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _stdout@GOTPAGE
Lloh1:
	ldr	x8, [x8, _stdout@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_fflush
	add	x19, x20, #8
	ldr	x8, [x20, #24]
Lloh3:
	adrp	x24, _stderr@GOTPAGE
Lloh4:
	ldr	x24, [x24, _stderr@GOTPAGEOFF]
	ldr	w0, [x24]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	w8, [x20, #16]
	stp	x23, x8, [sp, #8]
	str	x22, [sp]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_3
LBB0_2:
	stp	x22, x23, [sp]
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_3:
	mov	x2, x21
	bl	_fprintf
	ldr	x8, [x19]
	cbz	x8, LBB0_5
; %bb.4:
	ldr	w0, [x24]
	ldr	x2, [x20]
Lloh9:
	adrp	x1, l_.str.2@PAGE
Lloh10:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_fprintf
	mov	x0, x19
	bl	_png_image_free
LBB0_5:
	mov	w0, #0
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_stdout,4,2                     ; @stdout
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s%s%s: %s\n"

l_.str.1:                               ; @.str.1
	.asciz	"%s%s%s\n"

l_.str.2:                               ; @.str.2
	.asciz	"%s: image opaque pointer non-NULL on error\n"

	.no_dead_strip	_logerror
.subsections_via_symbols
