	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function standard_text_validate
_standard_text_validate:                ## @standard_text_validate
	.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	%rbx
	subq	$88, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r14d
	movl	%esi, %ebx
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	movq	$0, -104(%rbp)
	leaq	-104(%rbp), %rax
	movl	%esi, %edi
	movl	%edx, %esi
	movq	%rax, %rdx
	xorl	%ecx, %ecx
	callq	_png_get_text
	cmpl	$2, %eax
	jne	LBB0_4
## %bb.1:
	movq	-104(%rbp), %rsi
	testq	%rsi, %rsi
	je	LBB0_4
## %bb.2:
	movq	(%r15), %rax
	movq	(%rax), %rax
	movq	(%rax), %rcx
	leaq	L_.str(%rip), %rdx
	movl	%ebx, %edi
	callq	_standard_check_text
	testl	%r14d, %r14d
	je	LBB0_5
## %bb.3:
	movq	-104(%rbp), %rsi
	addq	$4, %rsi
	leaq	L_.str.1(%rip), %rdx
	leaq	L_.str.2(%rip), %rcx
	movl	%ebx, %edi
	callq	_standard_check_text
	jmp	LBB0_5
LBB0_4:
	movslq	%eax, %rdx
	leaq	L_.str.3(%rip), %rsi
	leaq	-96(%rbp), %r14
	movq	%r14, %rdi
	callq	_sprintf
	movl	%ebx, %edi
	movq	%r14, %rsi
	callq	_png_error
LBB0_5:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-32(%rbp), %rax
	jne	LBB0_7
## %bb.6:
	addq	$88, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"image name"

L_.str.1:                               ## @.str.1
	.asciz	"end marker"

L_.str.2:                               ## @.str.2
	.asciz	"end"

L_.str.3:                               ## @.str.3
	.asciz	"expected two text items, got %lu"

	.no_dead_strip	_standard_text_validate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function standard_text_validate
_standard_text_validate:                ; @standard_text_validate
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	mov	x20, x3
	mov	x8, x2
	mov	x19, x1
	mov	x21, x0
Lloh0:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	stur	x9, [x29, #-40]
	str	xzr, [sp]
	mov	x2, sp
	mov	x0, x1
	mov	x1, x8
	mov	x3, #0
	bl	_png_get_text
                                        ; kill: def $w0 killed $w0 def $x0
	ldr	x1, [sp]
	cmp	w0, #2
	ccmp	x1, #0, #4, eq
	b.ne	LBB0_2
; %bb.1:
	sxtw	x2, w0
Lloh3:
	adrp	x1, l_.str.3@PAGE
Lloh4:
	add	x1, x1, l_.str.3@PAGEOFF
	add	x0, sp, #8
	bl	_sprintf
	add	x1, sp, #8
	mov	x0, x19
	bl	_png_error
	b	LBB0_4
LBB0_2:
	ldr	x8, [x21]
	ldr	x8, [x8]
	ldr	x3, [x8]
Lloh5:
	adrp	x2, l_.str@PAGE
Lloh6:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	bl	_standard_check_text
	cbz	w20, LBB0_4
; %bb.3:
	ldr	x8, [sp]
	add	x1, x8, #4
Lloh7:
	adrp	x2, l_.str.1@PAGE
Lloh8:
	add	x2, x2, l_.str.1@PAGEOFF
Lloh9:
	adrp	x3, l_.str.2@PAGE
Lloh10:
	add	x3, x3, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_standard_check_text
LBB0_4:
	ldur	x8, [x29, #-40]
Lloh11:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh12:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_6
; %bb.5:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_6:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"image name"

l_.str.1:                               ; @.str.1
	.asciz	"end marker"

l_.str.2:                               ; @.str.2
	.asciz	"end"

l_.str.3:                               ; @.str.3
	.asciz	"expected two text items, got %lu"

	.no_dead_strip	_standard_text_validate
.subsections_via_symbols
