	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function png_rtran_ok
_png_rtran_ok:                          ## @png_rtran_ok
	.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
	xorl	%ebx, %ebx
	testq	%rdi, %rdi
	je	LBB0_8
## %bb.1:
	movl	(%rdi), %eax
	movq	_PNG_FLAG_ROW_INIT@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_3
## %bb.2:
	leaq	L_.str(%rip), %rsi
LBB0_7:
	callq	_png_app_error
	jmp	LBB0_8
LBB0_3:
	testl	%esi, %esi
	je	LBB0_5
## %bb.4:
	movq	_PNG_HAVE_IHDR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, 4(%rdi)
	je	LBB0_6
LBB0_5:
	movq	_PNG_FLAG_DETECT_UNINITIALIZED@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, (%rdi)
	movl	$1, %ebx
LBB0_8:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_6:
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_PNG_FLAG_ROW_INIT,4,2          ## @PNG_FLAG_ROW_INIT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"invalid after png_start_read_image or png_read_update_info"

	.comm	_PNG_HAVE_IHDR,4,2              ## @PNG_HAVE_IHDR
L_.str.1:                               ## @.str.1
	.asciz	"invalid before the PNG header has been read"

	.comm	_PNG_FLAG_DETECT_UNINITIALIZED,4,2 ## @PNG_FLAG_DETECT_UNINITIALIZED
	.no_dead_strip	_png_rtran_ok
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function png_rtran_ok
_png_rtran_ok:                          ; @png_rtran_ok
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	cbz	x0, LBB0_7
; %bb.1:
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _PNG_FLAG_ROW_INIT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PNG_FLAG_ROW_INIT@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.2:
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
LBB0_3:
	bl	_png_app_error
	mov	w0, #0
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_4:
	cbz	w1, LBB0_6
; %bb.5:
	ldr	w9, [x0, #4]
Lloh5:
	adrp	x10, _PNG_HAVE_IHDR@GOTPAGE
Lloh6:
	ldr	x10, [x10, _PNG_HAVE_IHDR@GOTPAGEOFF]
Lloh7:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_8
LBB0_6:
Lloh8:
	adrp	x9, _PNG_FLAG_DETECT_UNINITIALIZED@GOTPAGE
Lloh9:
	ldr	x9, [x9, _PNG_FLAG_DETECT_UNINITIALIZED@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [x0]
	mov	w0, #1
LBB0_7:
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_8:
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_PNG_FLAG_ROW_INIT,4,2          ; @PNG_FLAG_ROW_INIT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"invalid after png_start_read_image or png_read_update_info"

	.comm	_PNG_HAVE_IHDR,4,2              ; @PNG_HAVE_IHDR
l_.str.1:                               ; @.str.1
	.asciz	"invalid before the PNG header has been read"

	.comm	_PNG_FLAG_DETECT_UNINITIALIZED,4,2 ; @PNG_FLAG_DETECT_UNINITIALIZED
	.no_dead_strip	_png_rtran_ok
.subsections_via_symbols
