	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function checkopaque
_checkopaque:                           ## @checkopaque
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	addq	$8, %rdi
	cmpq	$0, 24(%rbx)
	je	LBB0_2
## %bb.1:
	callq	_png_image_free
	movl	4(%rbx), %esi
	leaq	L_.str(%rip), %rdx
LBB0_9:
	leaq	L_.str.1(%rip), %rcx
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_logerror                       ## TAILCALL
LBB0_2:
	cmpq	$0, (%rdi)
	je	LBB0_5
## %bb.3:
	movl	16(%rbx), %edi
	leaq	L_.str.2(%rip), %rsi
	callq	_strcmp
	movl	(%rbx), %ecx
	testq	%rax, %rax
	je	LBB0_4
## %bb.6:
	movq	_STRICT@GOTPCREL(%rip), %rax
	testl	%ecx, (%rax)
	je	LBB0_5
## %bb.7:
	movq	_GBG_ERROR@GOTPCREL(%rip), %rax
	andl	(%rax), %ecx
	jmp	LBB0_8
LBB0_4:
	movq	_GBG_ERROR@GOTPCREL(%rip), %rax
	andl	(%rax), %ecx
	je	LBB0_5
LBB0_8:
	movl	4(%rbx), %esi
	testl	%ecx, %ecx
	leaq	L_.str.4(%rip), %rax
	leaq	L_.str.3(%rip), %rdx
	cmoveq	%rax, %rdx
	jmp	LBB0_9
LBB0_5:
	movl	$1, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	": opaque not NULL"

L_.str.1:                               ## @.str.1
	.space	1

L_.str.2:                               ## @.str.2
	.asciz	"libpng does not support gamma+background+rgb_to_gray"

	.comm	_GBG_ERROR,4,2                  ## @GBG_ERROR
	.comm	_STRICT,4,2                     ## @STRICT
L_.str.3:                               ## @.str.3
	.asciz	" --fault-gbg-warning"

L_.str.4:                               ## @.str.4
	.asciz	" --strict"

	.no_dead_strip	_checkopaque
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function checkopaque
_checkopaque:                           ; @checkopaque
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	add	x0, x0, #8
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_3
; %bb.1:
	bl	_png_image_free
	ldr	w1, [x19, #4]
Lloh0:
	adrp	x2, l_.str@PAGE
Lloh1:
	add	x2, x2, l_.str@PAGEOFF
LBB0_2:
Lloh2:
	adrp	x3, l_.str.1@PAGE
Lloh3:
	add	x3, x3, l_.str.1@PAGEOFF
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_logerror
LBB0_3:
	ldr	x8, [x0]
	cbz	x8, LBB0_9
; %bb.4:
	ldr	w0, [x19, #16]
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_strcmp
	ldr	w8, [x19]
	cbz	x0, LBB0_7
; %bb.5:
Lloh6:
	adrp	x9, _STRICT@GOTPAGE
Lloh7:
	ldr	x9, [x9, _STRICT@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_9
; %bb.6:
Lloh9:
	adrp	x9, _GBG_ERROR@GOTPAGE
Lloh10:
	ldr	x9, [x9, _GBG_ERROR@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	and	w8, w9, w8
	b	LBB0_8
LBB0_7:
Lloh12:
	adrp	x9, _GBG_ERROR@GOTPAGE
Lloh13:
	ldr	x9, [x9, _GBG_ERROR@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	ands	w8, w9, w8
	b.eq	LBB0_9
LBB0_8:
	ldr	w1, [x19, #4]
Lloh15:
	adrp	x9, l_.str.3@PAGE
Lloh16:
	add	x9, x9, l_.str.3@PAGEOFF
Lloh17:
	adrp	x10, l_.str.4@PAGE
Lloh18:
	add	x10, x10, l_.str.4@PAGEOFF
	cmp	w8, #0
	csel	x2, x10, x9, eq
	b	LBB0_2
LBB0_9:
	mov	w0, #1
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	": opaque not NULL"

l_.str.1:                               ; @.str.1
	.space	1

l_.str.2:                               ; @.str.2
	.asciz	"libpng does not support gamma+background+rgb_to_gray"

	.comm	_GBG_ERROR,4,2                  ; @GBG_ERROR
	.comm	_STRICT,4,2                     ; @STRICT
l_.str.3:                               ; @.str.3
	.asciz	" --fault-gbg-warning"

l_.str.4:                               ; @.str.4
	.asciz	" --strict"

	.no_dead_strip	_checkopaque
.subsections_via_symbols
