	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function addChunk_tRNS
_addChunk_tRNS:                         ## @addChunk_tRNS
	.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
	movq	%rsi, %r12
	movq	%rdi, %r14
	leaq	-48(%rbp), %rdi
	callq	_ucvector_init
	movq	(%r12), %rax
	movq	_LCT_PALETTE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.1:
	movq	8(%r12), %rbx
	testq	%rbx, %rbx
	je	LBB0_13
## %bb.2:
	movq	16(%r12), %rax
	movq	%rbx, %rcx
	shlq	$4, %rcx
	addq	%rcx, %rax
	addq	$-4, %rax
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	$255, (%rax)
	jne	LBB0_4
## %bb.14:                              ##   in Loop: Header=BB0_3 Depth=1
	addq	$-16, %rax
	decq	%rbx
	jne	LBB0_3
	jmp	LBB0_13
LBB0_6:
	movq	_LCT_GREY@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_9
## %bb.7:
	cmpq	$0, 40(%r12)
	je	LBB0_13
## %bb.8:
	addq	$24, %r12
	jmp	LBB0_12
LBB0_9:
	movq	_LCT_RGB@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_13
## %bb.10:
	cmpq	$0, 40(%r12)
	je	LBB0_13
## %bb.11:
	movl	24(%r12), %eax
	leal	255(%rax), %ecx
	testl	%eax, %eax
	cmovnsl	%eax, %ecx
	movzbl	%ch, %esi
	leaq	-48(%rbp), %r15
	movq	%r15, %rdi
	callq	_ucvector_push_back
	movzbl	24(%r12), %esi
	movq	%r15, %rdi
	callq	_ucvector_push_back
	movl	28(%r12), %eax
	leal	255(%rax), %ecx
	testl	%eax, %eax
	cmovnsl	%eax, %ecx
	movzbl	%ch, %esi
	movq	%r15, %rdi
	callq	_ucvector_push_back
	movzbl	28(%r12), %esi
	movq	%r15, %rdi
	callq	_ucvector_push_back
	addq	$32, %r12
LBB0_12:
	movl	(%r12), %eax
	leal	255(%rax), %ecx
	testl	%eax, %eax
	cmovnsl	%eax, %ecx
	movzbl	%ch, %esi
	leaq	-48(%rbp), %r15
	movq	%r15, %rdi
	callq	_ucvector_push_back
	movzbl	(%r12), %esi
	movq	%r15, %rdi
	callq	_ucvector_push_back
	jmp	LBB0_13
LBB0_4:
	movl	$12, %r13d
	leaq	-48(%rbp), %r15
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%r12), %rax
	movzbl	(%rax,%r13), %esi
	movq	%r15, %rdi
	callq	_ucvector_push_back
	addq	$16, %r13
	decq	%rbx
	jne	LBB0_5
LBB0_13:
	movl	-48(%rbp), %ecx
	movl	-44(%rbp), %edx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_addChunk
	movl	%eax, %ebx
	leaq	-48(%rbp), %rdi
	callq	_ucvector_cleanup
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LCT_PALETTE,8,3                ## @LCT_PALETTE
	.comm	_LCT_GREY,8,3                   ## @LCT_GREY
	.comm	_LCT_RGB,8,3                    ## @LCT_RGB
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"tRNS"

	.no_dead_strip	_addChunk_tRNS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function addChunk_tRNS
_addChunk_tRNS:                         ; @addChunk_tRNS
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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, x1
	mov	x19, x0
	add	x0, sp, #8
	bl	_ucvector_init
	ldr	x8, [x20]
Lloh0:
	adrp	x9, _LCT_PALETTE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _LCT_PALETTE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.1:
	ldr	x21, [x20, #8]
	cbz	x21, LBB0_14
; %bb.2:
	ldr	x8, [x20, #16]
	add	x8, x8, x21, lsl #4
	sub	x8, x8, #4
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w9, [x8]
	cmp	w9, #255
	b.ne	LBB0_12
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	sub	x8, x8, #16
	sub	x21, x21, #1
	cbnz	x21, LBB0_3
	b	LBB0_14
LBB0_5:
Lloh3:
	adrp	x9, _LCT_GREY@GOTPAGE
Lloh4:
	ldr	x9, [x9, _LCT_GREY@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.6:
	ldr	x8, [x20, #40]
	cbz	x8, LBB0_14
; %bb.7:
	add	x20, x20, #24
	b	LBB0_11
LBB0_8:
Lloh6:
	adrp	x9, _LCT_RGB@GOTPAGE
Lloh7:
	ldr	x9, [x9, _LCT_RGB@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_14
; %bb.9:
	ldr	x8, [x20, #40]
	cbz	x8, LBB0_14
; %bb.10:
	ldr	w8, [x20, #24]
	add	w9, w8, #255
	cmp	w8, #0
	csel	w8, w9, w8, lt
	ubfx	w1, w8, #8, #8
	add	x0, sp, #8
	bl	_ucvector_push_back
	ldrb	w1, [x20, #24]
	add	x0, sp, #8
	bl	_ucvector_push_back
	ldr	w8, [x20, #28]
	add	w9, w8, #255
	cmp	w8, #0
	csel	w8, w9, w8, lt
	ubfx	w1, w8, #8, #8
	add	x0, sp, #8
	bl	_ucvector_push_back
	ldrb	w1, [x20, #28]
	add	x0, sp, #8
	bl	_ucvector_push_back
	add	x20, x20, #32
LBB0_11:
	ldr	w8, [x20]
	add	w9, w8, #255
	cmp	w8, #0
	csel	w8, w9, w8, lt
	ubfx	w1, w8, #8, #8
	add	x0, sp, #8
	bl	_ucvector_push_back
	ldrb	w1, [x20]
	add	x0, sp, #8
	bl	_ucvector_push_back
	b	LBB0_14
LBB0_12:
	mov	w22, #12
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #16]
	ldrb	w1, [x8, x22]
	add	x0, sp, #8
	bl	_ucvector_push_back
	add	x22, x22, #16
	subs	x21, x21, #1
	b.ne	LBB0_13
LBB0_14:
	ldp	w3, w2, [sp, #8]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_addChunk
	mov	x19, x0
	add	x0, sp, #8
	bl	_ucvector_cleanup
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_LCT_PALETTE,8,3                ; @LCT_PALETTE
	.comm	_LCT_GREY,8,3                   ; @LCT_GREY
	.comm	_LCT_RGB,8,3                    ; @LCT_RGB
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"tRNS"

	.no_dead_strip	_addChunk_tRNS
.subsections_via_symbols
