	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_valid
_get_valid:                             ## @get_valid
	.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
	movl	%esi, %ebx
	movq	%rdi, %r14
	movl	16(%rdi), %edi
	movq	$-1, %rdx
	callq	_png_get_valid
	movq	%rax, %r15
	movl	16(%r14), %edi
	leaq	-48(%rbp), %rdx
	movl	%ebx, %esi
	xorl	%ecx, %ecx
	callq	_png_get_text
	testq	%rax, %rax
	je	LBB0_10
## %bb.1:
	movq	%rax, %rbx
	movq	_PNG_INFO_iTXt@GOTPCREL(%rip), %r13
	leaq	L_.str(%rip), %r12
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	orq	(%r13), %r15
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	testq	%rbx, %rbx
	je	LBB0_10
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	-48(%rbp), %rax
	movl	-4(%rax,%rbx,4), %r8d
	decq	%rbx
	leal	-1(%r8), %eax
	cmpl	$2, %eax
	jb	LBB0_7
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	testl	%r8d, %r8d
	je	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$-1, %r8d
	jne	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_PNG_INFO_tEXt@GOTPCREL(%rip), %rax
	orq	(%rax), %r15
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	_PNG_INFO_zTXt@GOTPCREL(%rip), %rax
	orq	(%rax), %r15
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%r14), %rdx
	movq	8(%r14), %rcx
	movq	%r12, %rsi
                                        ## kill: def $r8d killed $r8d killed $r8
	callq	_fprintf
	movq	%r14, %rdi
	callq	_display_exit
	jmp	LBB0_9
LBB0_10:
	movq	%r15, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PNG_INFO_tEXt,8,3              ## @PNG_INFO_tEXt
	.comm	_PNG_INFO_zTXt,8,3              ## @PNG_INFO_zTXt
	.comm	_PNG_INFO_iTXt,8,3              ## @PNG_INFO_iTXt
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s(%s): unknown text compression %d\n"

	.no_dead_strip	_get_valid
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_valid
_get_valid:                             ; @get_valid
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x21, x1
	mov	x19, x0
	ldr	w0, [x0, #16]
	mov	x2, #-1
	bl	_png_get_valid
	mov	x20, x0
	ldr	w0, [x19, #16]
	add	x2, sp, #8
	mov	x1, x21
	mov	x3, #0
	bl	_png_get_text
	cbz	x0, LBB0_11
; %bb.1:
	sub	x22, x0, #1
Lloh0:
	adrp	x23, _PNG_INFO_iTXt@GOTPAGE
Lloh1:
	ldr	x23, [x23, _PNG_INFO_iTXt@GOTPAGEOFF]
Lloh2:
	adrp	x24, _PNG_INFO_zTXt@GOTPAGE
Lloh3:
	ldr	x24, [x24, _PNG_INFO_zTXt@GOTPAGEOFF]
Lloh4:
	adrp	x25, _PNG_INFO_tEXt@GOTPAGE
Lloh5:
	ldr	x25, [x25, _PNG_INFO_tEXt@GOTPAGEOFF]
Lloh6:
	adrp	x21, l_.str@PAGE
Lloh7:
	add	x21, x21, l_.str@PAGEOFF
Lloh8:
	adrp	x26, _stderr@GOTPAGE
Lloh9:
	ldr	x26, [x26, _stderr@GOTPAGEOFF]
	b	LBB0_5
LBB0_2:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x23]
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	orr	x20, x8, x20
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	sub	x22, x22, #1
	cmn	x22, #1
	b.eq	LBB0_11
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [sp, #8]
	ldr	w4, [x8, x22, lsl #2]
	sub	w8, w4, #1
	cmp	w8, #2
	b.lo	LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	cbz	w4, LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	cmn	w4, #1
	b.ne	LBB0_10
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x25]
	b	LBB0_3
LBB0_9:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x24]
	b	LBB0_3
LBB0_10:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [x26]
	ldp	x2, x3, [x19]
	mov	x1, x21
	bl	_fprintf
	mov	x0, x19
	bl	_display_exit
	b	LBB0_4
LBB0_11:
	mov	x0, x20
	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
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_PNG_INFO_tEXt,8,3              ; @PNG_INFO_tEXt
	.comm	_PNG_INFO_zTXt,8,3              ; @PNG_INFO_zTXt
	.comm	_PNG_INFO_iTXt,8,3              ; @PNG_INFO_iTXt
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s(%s): unknown text compression %d\n"

	.no_dead_strip	_get_valid
.subsections_via_symbols
