	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function readChunk_zTXt
_readChunk_zTXt:                        ## @readChunk_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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r12
	movq	%rdx, %rbx
	movq	%rsi, -80(%rbp)                 ## 8-byte Spill
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	leaq	-64(%rbp), %rdi
	callq	_ucvector_init
	xorl	%r15d, %r15d
	testq	%r12, %r12
	je	LBB0_3
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	cmpb	$0, (%rbx,%r15)
	je	LBB0_3
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	incl	%r15d
	cmpq	%r12, %r15
	jb	LBB0_1
LBB0_3:
	movl	%r15d, %r14d
	addl	$2, %r15d
	cmpq	%r12, %r15
	jb	LBB0_5
## %bb.4:
	xorl	%edi, %edi
	movl	$75, %esi
	callq	_CERROR_BREAK
LBB0_5:
	leal	-80(%r14), %eax
	cmpl	$-80, %eax
	ja	LBB0_7
## %bb.6:
	xorl	%edi, %edi
	movl	$89, %esi
	callq	_CERROR_BREAK
LBB0_7:
	leal	1(%r14), %edi
	movl	%edi, -44(%rbp)                 ## 4-byte Spill
	callq	_lodepng_malloc
	movq	%rax, %r13
	testq	%rax, %rax
	jne	LBB0_9
## %bb.8:
	xorl	%edi, %edi
	movl	$83, %esi
	callq	_CERROR_BREAK
LBB0_9:
	movb	$0, (%r13,%r14)
	testq	%r14, %r14
	je	LBB0_30
## %bb.10:
	xorl	%eax, %eax
	cmpl	$8, %r14d
	jb	LBB0_26
## %bb.11:
	movq	%r13, %rcx
	subq	%rbx, %rcx
	cmpq	$32, %rcx
	jb	LBB0_26
## %bb.12:
	cmpl	$32, %r14d
	jae	LBB0_14
## %bb.13:
	xorl	%eax, %eax
	jmp	LBB0_23
LBB0_14:
	movl	%r14d, %eax
	andl	$-32, %eax
	leaq	-32(%rax), %rsi
	movq	%rsi, %rdx
	shrq	$5, %rdx
	incq	%rdx
	movl	%edx, %ecx
	andl	$3, %ecx
	cmpq	$96, %rsi
	jae	LBB0_16
## %bb.15:
	xorl	%esi, %esi
	jmp	LBB0_18
LBB0_16:
	andq	$-4, %rdx
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_17:                                ## =>This Inner Loop Header: Depth=1
	movups	(%rbx,%rsi), %xmm0
	movups	16(%rbx,%rsi), %xmm1
	movups	%xmm0, (%r13,%rsi)
	movups	%xmm1, 16(%r13,%rsi)
	movups	32(%rbx,%rsi), %xmm0
	movups	48(%rbx,%rsi), %xmm1
	movups	%xmm0, 32(%r13,%rsi)
	movups	%xmm1, 48(%r13,%rsi)
	movups	64(%rbx,%rsi), %xmm0
	movups	80(%rbx,%rsi), %xmm1
	movups	%xmm0, 64(%r13,%rsi)
	movups	%xmm1, 80(%r13,%rsi)
	movups	96(%rbx,%rsi), %xmm0
	movups	112(%rbx,%rsi), %xmm1
	movups	%xmm0, 96(%r13,%rsi)
	movups	%xmm1, 112(%r13,%rsi)
	subq	$-128, %rsi
	addq	$-4, %rdx
	jne	LBB0_17
LBB0_18:
	testq	%rcx, %rcx
	je	LBB0_21
## %bb.19:
	leaq	(%rsi,%r13), %rdx
	addq	$16, %rdx
	addq	%rbx, %rsi
	addq	$16, %rsi
	shlq	$5, %rcx
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_20:                                ## =>This Inner Loop Header: Depth=1
	movups	-16(%rsi,%rdi), %xmm0
	movups	(%rsi,%rdi), %xmm1
	movups	%xmm0, -16(%rdx,%rdi)
	movups	%xmm1, (%rdx,%rdi)
	addq	$32, %rdi
	cmpq	%rdi, %rcx
	jne	LBB0_20
LBB0_21:
	cmpq	%r14, %rax
	je	LBB0_30
## %bb.22:
	testb	$24, %r14b
	je	LBB0_26
LBB0_23:
	movq	%rax, %rcx
	movl	%r14d, %eax
	andl	$-8, %eax
	.p2align	4, 0x90
LBB0_24:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rbx,%rcx), %rdx
	movq	%rdx, (%r13,%rcx)
	addq	$8, %rcx
	cmpq	%rcx, %rax
	jne	LBB0_24
## %bb.25:
	cmpq	%r14, %rax
	je	LBB0_30
LBB0_26:
	movq	%rax, %rsi
	notq	%rsi
	addq	%r14, %rsi
	movq	%r14, %rdx
	andq	$3, %rdx
	je	LBB0_28
	.p2align	4, 0x90
LBB0_27:                                ## =>This Inner Loop Header: Depth=1
	movzbl	(%rbx,%rax), %ecx
	movb	%cl, (%r13,%rax)
	incq	%rax
	decq	%rdx
	jne	LBB0_27
LBB0_28:
	cmpq	$3, %rsi
	jb	LBB0_30
	.p2align	4, 0x90
LBB0_29:                                ## =>This Inner Loop Header: Depth=1
	movzbl	(%rbx,%rax), %ecx
	movb	%cl, (%r13,%rax)
	movzbl	1(%rbx,%rax), %ecx
	movb	%cl, 1(%r13,%rax)
	movzbl	2(%rbx,%rax), %ecx
	movb	%cl, 2(%r13,%rax)
	movzbl	3(%rbx,%rax), %ecx
	movb	%cl, 3(%r13,%rax)
	addq	$4, %rax
	cmpq	%rax, %r14
	jne	LBB0_29
LBB0_30:
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	cmpb	$0, (%rbx,%rax)
	je	LBB0_32
## %bb.31:
	xorl	%edi, %edi
	movl	$72, %esi
	callq	_CERROR_BREAK
LBB0_32:
	cmpq	%r12, %r15
	jbe	LBB0_34
## %bb.33:
	xorl	%edi, %edi
	movl	$75, %esi
	callq	_CERROR_BREAK
LBB0_34:
	subl	%r15d, %r12d
	leaq	-56(%rbp), %rsi
	addq	%r15, %rbx
	leaq	-64(%rbp), %rdi
	movq	%rbx, %rdx
	movl	%r12d, %ecx
	movq	-80(%rbp), %r8                  ## 8-byte Reload
	callq	_zlib_decompress
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_36
## %bb.35:
	leaq	-64(%rbp), %rdi
	xorl	%esi, %esi
	callq	_ucvector_push_back
	movq	-64(%rbp), %rdx
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rsi
	callq	_lodepng_add_text
	movl	%eax, %ebx
LBB0_36:
	movq	%r13, %rdi
	callq	_lodepng_free
	leaq	-64(%rbp), %rdi
	callq	_ucvector_cleanup
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_readChunk_zTXt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function readChunk_zTXt
_readChunk_zTXt:                        ; @readChunk_zTXt
	.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	x22, x3
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
	mov	x0, sp
	bl	_ucvector_init
	cbz	x22, LBB0_4
; %bb.1:
	mov	x8, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w9, [x21, x8]
	cbz	w9, LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	w8, w8, #1
	cmp	x8, x22
	b.lo	LBB0_2
	b	LBB0_5
LBB0_4:
	mov	w8, #0
LBB0_5:
	mov	w26, w8
	add	w25, w8, #2
	cmp	x25, x22
	b.lo	LBB0_7
; %bb.6:
	mov	w0, #0
	mov	w1, #75
	bl	_CERROR_BREAK
LBB0_7:
	sub	w8, w26, #80
	cmn	w8, #80
	b.hi	LBB0_9
; %bb.8:
	mov	w0, #0
	mov	w1, #89
	bl	_CERROR_BREAK
LBB0_9:
	add	w24, w26, #1
	mov	x0, x24
	bl	_lodepng_malloc
	mov	x23, x0
	cbnz	x0, LBB0_11
; %bb.10:
	mov	w1, #83
	bl	_CERROR_BREAK
LBB0_11:
	strb	wzr, [x23, x26]
	cbz	w26, LBB0_25
; %bb.12:
	mov	x8, #0
	cmp	w26, #8
	b.lo	LBB0_23
; %bb.13:
	sub	x9, x23, x21
	cmp	x9, #64
	b.lo	LBB0_23
; %bb.14:
	cmp	w26, #64
	b.hs	LBB0_16
; %bb.15:
	mov	x8, #0
	b	LBB0_20
LBB0_16:
	and	x8, x26, #0xffffffc0
	add	x9, x23, #32
	add	x10, x21, #32
	mov	x11, x8
LBB0_17:                                ; =>This Inner Loop Header: Depth=1
	ldp	q0, q1, [x10, #-32]
	ldp	q2, q3, [x10], #64
	stp	q0, q1, [x9, #-32]
	stp	q2, q3, [x9], #64
	subs	x11, x11, #64
	b.ne	LBB0_17
; %bb.18:
	cmp	x8, x26
	b.eq	LBB0_25
; %bb.19:
	tst	x26, #0x38
	b.eq	LBB0_23
LBB0_20:
	mov	x11, x8
	and	x8, x26, #0xfffffff8
	add	x9, x21, x11
	add	x10, x23, x11
	sub	x11, x11, x8
LBB0_21:                                ; =>This Inner Loop Header: Depth=1
	ldr	d0, [x9], #8
	str	d0, [x10], #8
	adds	x11, x11, #8
	b.ne	LBB0_21
; %bb.22:
	cmp	x8, x26
	b.eq	LBB0_25
LBB0_23:
	add	x9, x21, x8
	add	x10, x23, x8
	sub	x8, x26, x8
LBB0_24:                                ; =>This Inner Loop Header: Depth=1
	ldrb	w11, [x9], #1
	strb	w11, [x10], #1
	subs	x8, x8, #1
	b.ne	LBB0_24
LBB0_25:
	ldrb	w8, [x21, w24, uxtw]
	cbz	w8, LBB0_27
; %bb.26:
	mov	w0, #0
	mov	w1, #72
	bl	_CERROR_BREAK
LBB0_27:
	cmp	x25, x22
	b.ls	LBB0_29
; %bb.28:
	mov	w0, #0
	mov	w1, #75
	bl	_CERROR_BREAK
LBB0_29:
	sub	w3, w22, w25
	mov	x8, sp
	add	x1, x8, #8
	add	x2, x21, x25
	mov	x0, sp
	mov	x4, x20
	bl	_zlib_decompress
	mov	x20, x0
	cbnz	w0, LBB0_31
; %bb.30:
	mov	x0, sp
	mov	w1, #0
	bl	_ucvector_push_back
	ldr	x2, [sp]
	mov	x0, x19
	mov	x1, x23
	bl	_lodepng_add_text
	mov	x20, x0
LBB0_31:
	mov	x0, x23
	bl	_lodepng_free
	mov	x0, sp
	bl	_ucvector_cleanup
	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
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_readChunk_zTXt
.subsections_via_symbols
