	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_png_handle_zTXt                ## -- Begin function png_handle_zTXt
	.p2align	4, 0x90
_png_handle_zTXt:                       ## @png_handle_zTXt
	.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
	subq	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r12
	movl	%esi, %r14d
	movq	%rdi, %r15
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	callq	_png_debug
	movl	4(%r15), %eax
	movq	_PNG_HAVE_IHDR@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_2
## %bb.1:
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	callq	_png_chunk_error
	movl	4(%r15), %eax
LBB0_2:
	movq	_PNG_HAVE_IDAT@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_4
## %bb.3:
	movq	_PNG_AFTER_IDAT@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, 4(%r15)
LBB0_4:
	movq	%r15, %rdi
	movq	%r12, %rsi
	movl	$2, %edx
	callq	_png_read_buffer
	testq	%rax, %rax
	je	LBB0_22
## %bb.5:
	movq	%rax, %r13
	movq	%r15, %rdi
	movq	%rax, %rsi
	movq	%r12, %rdx
	callq	_png_crc_read
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_png_crc_finish
	testq	%rax, %rax
	jne	LBB0_21
## %bb.6:
	leaq	L_.str.3(%rip), %rsi
	testq	%r12, %r12
	je	LBB0_20
## %bb.7:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	$0, (%r13,%rbx,8)
	je	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	incq	%rbx
	cmpq	%rbx, %r12
	jne	LBB0_8
## %bb.10:
	movq	%r12, %rbx
LBB0_11:
	leaq	-80(%rbx), %rax
	cmpq	$-79, %rax
	jb	LBB0_20
## %bb.12:
	leaq	3(%rbx), %rax
	cmpq	%r12, %rax
	jbe	LBB0_14
## %bb.13:
	leaq	L_.str.4(%rip), %rsi
	jmp	LBB0_20
LBB0_22:
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_png_crc_finish
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdi
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_png_chunk_benign_error         ## TAILCALL
LBB0_14:
	movq	8(%r13,%rbx,8), %rax
	movq	_PNG_COMPRESSION_TYPE_BASE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_15
## %bb.16:
	movq	_PNG_SIZE_MAX@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	leaq	2(%rbx), %r13
	leaq	-48(%rbp), %rcx
	movq	%r15, %rdi
	movq	%r12, %rsi
	movq	%r13, %rdx
	movl	$1, %r8d
	callq	_png_decompress_chunk
	movq	_Z_STREAM_END@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_19
## %bb.17:
	movq	16(%r15), %rax
	addq	-48(%rbp), %r13
	movq	$0, (%rax,%r13,8)
	movq	_PNG_TEXT_COMPRESSION_zTXt@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, -56(%rbp)
	movq	%rax, -64(%rbp)
	leaq	16(%rax,%rbx,8), %rax
	movq	%rax, -72(%rbp)
	movq	-48(%rbp), %rax
	movq	%rax, -104(%rbp)
	xorps	%xmm0, %xmm0
	movups	%xmm0, -96(%rbp)
	movq	$0, -80(%rbp)
	leaq	-104(%rbp), %rdx
	movq	%r15, %rdi
	movl	%r14d, %esi
	movl	$1, %ecx
	callq	_png_set_text_2
	testq	%rax, %rax
	je	LBB0_21
## %bb.18:
	leaq	L_.str.6(%rip), %rsi
	jmp	LBB0_20
LBB0_15:
	leaq	L_.str.5(%rip), %rsi
	jmp	LBB0_20
LBB0_19:
	movq	8(%r15), %rsi
	testq	%rsi, %rsi
	je	LBB0_21
LBB0_20:
	movq	%r15, %rdi
	callq	_png_chunk_benign_error
LBB0_21:
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"in png_handle_zTXt"

	.comm	_PNG_HAVE_IHDR,4,2              ## @PNG_HAVE_IHDR
L_.str.1:                               ## @.str.1
	.asciz	"missing IHDR"

	.comm	_PNG_HAVE_IDAT,4,2              ## @PNG_HAVE_IDAT
	.comm	_PNG_AFTER_IDAT,4,2             ## @PNG_AFTER_IDAT
L_.str.2:                               ## @.str.2
	.asciz	"out of memory"

L_.str.3:                               ## @.str.3
	.asciz	"bad keyword"

L_.str.4:                               ## @.str.4
	.asciz	"truncated"

	.comm	_PNG_COMPRESSION_TYPE_BASE,8,3  ## @PNG_COMPRESSION_TYPE_BASE
L_.str.5:                               ## @.str.5
	.asciz	"unknown compression type"

	.comm	_PNG_SIZE_MAX,8,3               ## @PNG_SIZE_MAX
	.comm	_Z_STREAM_END,8,3               ## @Z_STREAM_END
	.comm	_PNG_TEXT_COMPRESSION_zTXt,4,2  ## @PNG_TEXT_COMPRESSION_zTXt
L_.str.6:                               ## @.str.6
	.asciz	"insufficient memory"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_png_handle_zTXt                ; -- Begin function png_handle_zTXt
	.p2align	2
_png_handle_zTXt:                       ; @png_handle_zTXt
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_png_debug
	ldr	w8, [x19, #4]
Lloh2:
	adrp	x9, _PNG_HAVE_IHDR@GOTPAGE
Lloh3:
	ldr	x9, [x9, _PNG_HAVE_IHDR@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_2
; %bb.1:
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_png_chunk_error
	ldr	w8, [x19, #4]
LBB0_2:
Lloh7:
	adrp	x9, _PNG_HAVE_IDAT@GOTPAGE
Lloh8:
	ldr	x9, [x9, _PNG_HAVE_IDAT@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.3:
Lloh10:
	adrp	x9, _PNG_AFTER_IDAT@GOTPAGE
Lloh11:
	ldr	x9, [x9, _PNG_AFTER_IDAT@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [x19, #4]
LBB0_4:
	mov	x0, x19
	mov	x1, x21
	mov	w2, #2
	bl	_png_read_buffer
	cbz	x0, LBB0_15
; %bb.5:
	mov	x22, x0
	mov	x0, x19
	mov	x1, x22
	mov	x2, x21
	bl	_png_crc_read
	mov	x0, x19
	mov	x1, #0
	bl	_png_crc_finish
	cbnz	x0, LBB0_14
; %bb.6:
	cbz	x21, LBB0_12
; %bb.7:
	mov	x23, #0
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22, x23, lsl #3]
	cbz	x8, LBB0_11
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	add	x23, x23, #1
	cmp	x21, x23
	b.ne	LBB0_8
; %bb.10:
	mov	x23, x21
LBB0_11:
	sub	x8, x23, #80
	cmn	x8, #79
	b.hs	LBB0_16
LBB0_12:
Lloh13:
	adrp	x1, l_.str.3@PAGE
Lloh14:
	add	x1, x1, l_.str.3@PAGEOFF
LBB0_13:
	mov	x0, x19
	bl	_png_chunk_benign_error
LBB0_14:
	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
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_15:
	mov	x0, x19
	mov	x1, x21
	bl	_png_crc_finish
Lloh15:
	adrp	x1, l_.str.2@PAGE
Lloh16:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	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
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #128
	b	_png_chunk_benign_error
LBB0_16:
	add	x8, x23, #3
	cmp	x8, x21
	b.ls	LBB0_18
; %bb.17:
Lloh17:
	adrp	x1, l_.str.4@PAGE
Lloh18:
	add	x1, x1, l_.str.4@PAGEOFF
	b	LBB0_13
LBB0_18:
	add	x8, x22, x23, lsl #3
	ldr	x8, [x8, #8]
Lloh19:
	adrp	x9, _PNG_COMPRESSION_TYPE_BASE@GOTPAGE
Lloh20:
	ldr	x9, [x9, _PNG_COMPRESSION_TYPE_BASE@GOTPAGEOFF]
Lloh21:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_22
; %bb.19:
Lloh22:
	adrp	x8, _PNG_SIZE_MAX@GOTPAGE
Lloh23:
	ldr	x8, [x8, _PNG_SIZE_MAX@GOTPAGEOFF]
Lloh24:
	ldr	x8, [x8]
	str	x8, [sp, #56]
	add	x22, x23, #2
	add	x3, sp, #56
	mov	x0, x19
	mov	x1, x21
	mov	x2, x22
	mov	w4, #1
	bl	_png_decompress_chunk
Lloh25:
	adrp	x8, _Z_STREAM_END@GOTPAGE
Lloh26:
	ldr	x8, [x8, _Z_STREAM_END@GOTPAGEOFF]
Lloh27:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_23
; %bb.20:
	ldr	x8, [x19, #16]
	ldr	x9, [sp, #56]
	add	x9, x9, x22
	str	xzr, [x8, x9, lsl #3]
Lloh28:
	adrp	x9, _PNG_TEXT_COMPRESSION_zTXt@GOTPAGE
Lloh29:
	ldr	x9, [x9, _PNG_TEXT_COMPRESSION_zTXt@GOTPAGEOFF]
Lloh30:
	ldr	w9, [x9]
	str	w9, [sp, #48]
	add	x9, x8, x23, lsl #3
	add	x9, x9, #16
	stp	x9, x8, [sp, #32]
	ldr	x8, [sp, #56]
	stp	x8, xzr, [sp]
	stp	xzr, xzr, [sp, #16]
	mov	x2, sp
	mov	x0, x19
	mov	x1, x20
	mov	w3, #1
	bl	_png_set_text_2
	cbz	x0, LBB0_14
; %bb.21:
Lloh31:
	adrp	x1, l_.str.6@PAGE
Lloh32:
	add	x1, x1, l_.str.6@PAGEOFF
	b	LBB0_13
LBB0_22:
Lloh33:
	adrp	x1, l_.str.5@PAGE
Lloh34:
	add	x1, x1, l_.str.5@PAGEOFF
	b	LBB0_13
LBB0_23:
	ldr	x1, [x19, #8]
	cbnz	x1, LBB0_13
	b	LBB0_14
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpAdd	Lloh33, Lloh34
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"in png_handle_zTXt"

	.comm	_PNG_HAVE_IHDR,4,2              ; @PNG_HAVE_IHDR
l_.str.1:                               ; @.str.1
	.asciz	"missing IHDR"

	.comm	_PNG_HAVE_IDAT,4,2              ; @PNG_HAVE_IDAT
	.comm	_PNG_AFTER_IDAT,4,2             ; @PNG_AFTER_IDAT
l_.str.2:                               ; @.str.2
	.asciz	"out of memory"

l_.str.3:                               ; @.str.3
	.asciz	"bad keyword"

l_.str.4:                               ; @.str.4
	.asciz	"truncated"

	.comm	_PNG_COMPRESSION_TYPE_BASE,8,3  ; @PNG_COMPRESSION_TYPE_BASE
l_.str.5:                               ; @.str.5
	.asciz	"unknown compression type"

	.comm	_PNG_SIZE_MAX,8,3               ; @PNG_SIZE_MAX
	.comm	_Z_STREAM_END,8,3               ; @Z_STREAM_END
	.comm	_PNG_TEXT_COMPRESSION_zTXt,4,2  ; @PNG_TEXT_COMPRESSION_zTXt
l_.str.6:                               ; @.str.6
	.asciz	"insufficient memory"

.subsections_via_symbols
