	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function addChunk_iTXt
_addChunk_iTXt:                         ## @addChunk_iTXt
	.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	%r8, %r13
	movq	%rcx, %r14
	movq	%rdx, %r12
	movl	%esi, -60(%rbp)                 ## 4-byte Spill
	movq	%rdi, %r15
	movq	%r9, -104(%rbp)                 ## 8-byte Spill
	movq	%r9, %rdi
	callq	_strlen
	movq	%rax, %rbx
	leaq	-56(%rbp), %rdi
	callq	_ucvector_init
	movb	(%r12), %cl
	movl	$89, %eax
	testb	%cl, %cl
	je	LBB0_21
## %bb.1:
	movq	%rbx, -88(%rbp)                 ## 8-byte Spill
	movq	%r15, -96(%rbp)                 ## 8-byte Spill
	movq	$-1, %rbx
	leaq	-56(%rbp), %r15
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	%cl, %esi
	movq	%r15, %rdi
	callq	_ucvector_push_back
	movzbl	2(%r12,%rbx), %ecx
	incq	%rbx
	testb	%cl, %cl
	jne	LBB0_2
## %bb.3:
	cmpq	$78, %rbx
	movl	$89, %eax
	ja	LBB0_21
## %bb.4:
	leaq	-56(%rbp), %r15
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_ucvector_push_back
	xorl	%esi, %esi
	movl	-60(%rbp), %r12d                ## 4-byte Reload
	testl	%r12d, %r12d
	setne	%sil
	movq	%r15, %rdi
	callq	_ucvector_push_back
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_ucvector_push_back
	movb	(%r14), %al
	testb	%al, %al
	je	LBB0_7
## %bb.5:
	incq	%r14
	leaq	-56(%rbp), %r15
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	%al, %esi
	movq	%r15, %rdi
	callq	_ucvector_push_back
	movzbl	(%r14), %eax
	incq	%r14
	testb	%al, %al
	jne	LBB0_6
LBB0_7:
	leaq	-56(%rbp), %rdi
	xorl	%esi, %esi
	callq	_ucvector_push_back
	movb	(%r13), %al
	testb	%al, %al
	movq	-104(%rbp), %rbx                ## 8-byte Reload
	je	LBB0_10
## %bb.8:
	incq	%r13
	leaq	-56(%rbp), %r14
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	%al, %esi
	movq	%r14, %rdi
	callq	_ucvector_push_back
	movzbl	(%r13), %eax
	incq	%r13
	testb	%al, %al
	jne	LBB0_9
LBB0_10:
	leaq	-56(%rbp), %rdi
	xorl	%esi, %esi
	callq	_ucvector_push_back
	testl	%r12d, %r12d
	movq	-96(%rbp), %r15                 ## 8-byte Reload
	je	LBB0_11
## %bb.14:
	leaq	-80(%rbp), %r14
	movq	%r14, %rdi
	callq	_ucvector_init
	leaq	-72(%rbp), %rsi
	movq	%r14, %rdi
	movq	%rbx, %rdx
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	movq	16(%rbp), %r8
	callq	_zlib_compress
	testl	%eax, %eax
	je	LBB0_15
## %bb.22:
	movl	%eax, %ebx
	leaq	-80(%rbp), %rdi
	callq	_ucvector_cleanup
	jmp	LBB0_20
LBB0_11:
	movb	(%rbx), %al
	testb	%al, %al
	je	LBB0_19
## %bb.12:
	incq	%rbx
	leaq	-56(%rbp), %r14
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movzbl	%al, %esi
	movq	%r14, %rdi
	callq	_ucvector_push_back
	movzbl	(%rbx), %eax
	incq	%rbx
	testb	%al, %al
	jne	LBB0_13
	jmp	LBB0_19
LBB0_15:
	cmpq	$0, -72(%rbp)
	je	LBB0_18
## %bb.16:
	xorl	%ebx, %ebx
	leaq	-56(%rbp), %r14
	.p2align	4, 0x90
LBB0_17:                                ## =>This Inner Loop Header: Depth=1
	movq	-80(%rbp), %rax
	movzbl	(%rax,%rbx), %esi
	movq	%r14, %rdi
	callq	_ucvector_push_back
	incq	%rbx
	cmpq	-72(%rbp), %rbx
	jb	LBB0_17
LBB0_18:
	leaq	-80(%rbp), %rdi
	callq	_ucvector_cleanup
LBB0_19:
	movq	-56(%rbp), %rdx
	movq	-48(%rbp), %rcx
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_addChunk
	movl	%eax, %ebx
LBB0_20:
	leaq	-56(%rbp), %rdi
	callq	_ucvector_cleanup
	movl	%ebx, %eax
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	"iTXt"

	.no_dead_strip	_addChunk_iTXt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function addChunk_iTXt
_addChunk_iTXt:                         ; @addChunk_iTXt
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x21, x6
	mov	x20, x5
	mov	x24, x4
	mov	x25, x3
	mov	x26, x2
	mov	x23, x1
	mov	x19, x0
	mov	x0, x5
	bl	_strlen
	mov	x22, x0
	add	x0, sp, #16
	bl	_ucvector_init
	ldrb	w8, [x26]
	cbz	w8, LBB0_4
; %bb.1:
	mov	w27, #1
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	and	w1, w8, #0xff
	add	x0, sp, #16
	bl	_ucvector_push_back
	ldrb	w8, [x26, x27]
	add	x27, x27, #1
	cbnz	w8, LBB0_2
; %bb.3:
	sub	x8, x27, #2
	cmp	x8, #78
	b.ls	LBB0_5
LBB0_4:
	mov	w20, #89
	b	LBB0_23
LBB0_5:
	add	x0, sp, #16
	mov	w1, #0
	bl	_ucvector_push_back
	cmp	w23, #0
	cset	w1, ne
	add	x0, sp, #16
	bl	_ucvector_push_back
	add	x0, sp, #16
	mov	w1, #0
	bl	_ucvector_push_back
	ldrb	w8, [x25]
	cbz	w8, LBB0_8
; %bb.6:
	add	x25, x25, #1
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	and	w1, w8, #0xff
	add	x0, sp, #16
	bl	_ucvector_push_back
	ldrb	w8, [x25], #1
	cbnz	w8, LBB0_7
LBB0_8:
	add	x0, sp, #16
	mov	w1, #0
	bl	_ucvector_push_back
	ldrb	w8, [x24]
	cbz	w8, LBB0_11
; %bb.9:
	add	x24, x24, #1
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	and	w1, w8, #0xff
	add	x0, sp, #16
	bl	_ucvector_push_back
	ldrb	w8, [x24], #1
	cbnz	w8, LBB0_10
LBB0_11:
	add	x0, sp, #16
	mov	w1, #0
	bl	_ucvector_push_back
	cbz	w23, LBB0_14
; %bb.12:
	mov	x23, sp
	mov	x0, sp
	bl	_ucvector_init
	add	x1, x23, #8
	mov	x0, sp
	mov	x2, x20
	mov	x3, x22
	mov	x4, x21
	bl	_zlib_compress
	cbz	w0, LBB0_17
; %bb.13:
	mov	x20, x0
	mov	x0, sp
	bl	_ucvector_cleanup
	b	LBB0_22
LBB0_14:
	ldrb	w8, [x20]
	cbz	w8, LBB0_21
; %bb.15:
	add	x20, x20, #1
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	and	w1, w8, #0xff
	add	x0, sp, #16
	bl	_ucvector_push_back
	ldrb	w8, [x20], #1
	cbnz	w8, LBB0_16
	b	LBB0_21
LBB0_17:
	ldr	x8, [sp, #8]
	cbz	x8, LBB0_20
; %bb.18:
	mov	x20, #0
LBB0_19:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [sp]
	ldrb	w1, [x8, x20]
	add	x0, sp, #16
	bl	_ucvector_push_back
	add	x20, x20, #1
	ldr	x8, [sp, #8]
	cmp	x20, x8
	b.lo	LBB0_19
LBB0_20:
	mov	x0, sp
	bl	_ucvector_cleanup
LBB0_21:
	ldp	x2, x3, [sp, #16]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_addChunk
	mov	x20, x0
LBB0_22:
	add	x0, sp, #16
	bl	_ucvector_cleanup
LBB0_23:
	mov	x0, x20
	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
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"iTXt"

	.no_dead_strip	_addChunk_iTXt
.subsections_via_symbols
