	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function expandColorTrigrams
_expandColorTrigrams:                   ## @expandColorTrigrams
	.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	$104, %rsp
	.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
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movl	$1, -136(%rbp)
	leaq	-120(%rbp), %rax
	movq	%rax, -128(%rbp)
	movq	_TRGMHDRSIZE@GOTPCREL(%rip), %rax
	movslq	(%r14), %rsi
	shlq	$2, %rsi
	addq	(%rax), %rsi
	movl	%ebx, %edi
	callq	_MemoryContextAllocZero
	movq	%rax, %rbx
	movq	_ARRKEY@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%ecx, (%rbx)
	movl	(%rax), %edi
	movl	(%r14), %esi
	callq	_CALCGTSIZE
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_SET_VARSIZE
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_GETARR
	movl	4(%r14), %r8d
	testl	%r8d, %r8d
	jle	LBB0_20
## %bb.1:
	movq	%rax, %rbx
	xorl	%edi, %edi
	leaq	-136(%rbp), %r9
	leaq	-64(%rbp), %r12
	movq	%r14, -80(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	-80(%rbp), %r14                 ## 8-byte Reload
	movl	4(%r14), %r8d
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	leaq	-136(%rbp), %r9
LBB0_19:                                ##   in Loop: Header=BB0_2 Depth=1
	incq	%rdi
	movslq	%r8d, %rcx
	cmpq	%rcx, %rdi
	jge	LBB0_20
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_11 Depth 2
                                        ##       Child Loop BB0_13 Depth 3
                                        ##         Child Loop BB0_15 Depth 4
	movq	16(%r14), %rcx
	movq	%rdi, %rdx
	shlq	$4, %rdx
	cmpl	$0, 8(%rcx,%rdx)
	je	LBB0_19
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	(%rcx,%rdx), %rdx
	movq	_COLOR_BLANK@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r10
	movq	(%rdx), %rax
	movq	%r9, %rsi
	cmpq	%r10, %rax
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	shlq	$4, %rax
	addq	8(%r14), %rax
	movq	%rax, %rsi
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%rdx), %rax
	movq	%r9, %rcx
	cmpq	%r10, %rax
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	shlq	$4, %rax
	addq	8(%r14), %rax
	movq	%rax, %rcx
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	16(%rdx), %rdx
	movq	%r9, %r13
	cmpq	%r10, %rdx
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	shlq	$4, %rdx
	addq	8(%r14), %rdx
	movq	%rdx, %r13
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$0, (%rsi)
	movq	%rsi, -96(%rbp)                 ## 8-byte Spill
	movq	%rcx, -112(%rbp)                ## 8-byte Spill
	jle	LBB0_19
## %bb.10:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	%rdi, -88(%rbp)                 ## 8-byte Spill
	xorl	%edx, %edx
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_11 Depth=2
	movq	-104(%rbp), %rdx                ## 8-byte Reload
	incq	%rdx
	movq	-96(%rbp), %rsi                 ## 8-byte Reload
	movslq	(%rsi), %rax
	cmpq	%rax, %rdx
	jge	LBB0_18
LBB0_11:                                ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_13 Depth 3
                                        ##         Child Loop BB0_15 Depth 4
	movq	8(%rsi), %rax
	movq	%rdx, -104(%rbp)                ## 8-byte Spill
	movl	(%rax,%rdx,4), %eax
	movl	%eax, -64(%rbp)
	cmpl	$0, (%rcx)
	jle	LBB0_17
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=2
	xorl	%r14d, %r14d
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_13 Depth=3
	incq	%r14
	movq	-112(%rbp), %rcx                ## 8-byte Reload
	movslq	(%rcx), %rax
	cmpq	%rax, %r14
	jge	LBB0_17
LBB0_13:                                ##   Parent Loop BB0_2 Depth=1
                                        ##     Parent Loop BB0_11 Depth=2
                                        ## =>    This Loop Header: Depth=3
                                        ##         Child Loop BB0_15 Depth 4
	movq	8(%rcx), %rax
	movl	(%rax,%r14,4), %eax
	movl	%eax, -60(%rbp)
	cmpl	$0, (%r13)
	jle	LBB0_16
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=3
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_15:                                ##   Parent Loop BB0_2 Depth=1
                                        ##     Parent Loop BB0_11 Depth=2
                                        ##       Parent Loop BB0_13 Depth=3
                                        ## =>      This Inner Loop Header: Depth=4
	movq	8(%r13), %rax
	movl	(%rax,%r15,4), %eax
	movl	%eax, -56(%rbp)
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_fillTrgm
	addq	$4, %rbx
	incq	%r15
	movslq	(%r13), %rax
	cmpq	%rax, %r15
	jl	LBB0_15
	jmp	LBB0_16
LBB0_20:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_22
## %bb.21:
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_22:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_TRGMHDRSIZE,8,3                ## @TRGMHDRSIZE
	.comm	_ARRKEY,4,2                     ## @ARRKEY
	.comm	_COLOR_BLANK,8,3                ## @COLOR_BLANK
	.no_dead_strip	_expandColorTrigrams
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function expandColorTrigrams
_expandColorTrigrams:                   ; @expandColorTrigrams
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #56]
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	mov	w8, #1
	str	w8, [sp, #24]
	add	x8, sp, #16
	str	x8, [sp, #32]
Lloh3:
	adrp	x8, _TRGMHDRSIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TRGMHDRSIZE@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	ldrsw	x9, [x19]
	add	x1, x8, x9, lsl #2
	mov	x0, x20
	bl	_MemoryContextAllocZero
	mov	x20, x0
Lloh6:
	adrp	x8, _ARRKEY@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ARRKEY@GOTPAGEOFF]
	ldr	w9, [x8]
	str	w9, [x0]
	ldr	w0, [x8]
	ldr	w1, [x19]
	bl	_CALCGTSIZE
	mov	x1, x0
	mov	x0, x20
	bl	_SET_VARSIZE
	str	x20, [sp, #8]                   ; 8-byte Folded Spill
	mov	x0, x20
	bl	_GETARR
	ldr	w8, [x19, #4]
	cmp	w8, #1
	b.lt	LBB0_23
; %bb.1:
	mov	x21, x0
	mov	x22, #0
Lloh8:
	adrp	x23, _COLOR_BLANK@GOTPAGE
Lloh9:
	ldr	x23, [x23, _COLOR_BLANK@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x19, #4]
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x22, x22, #1
	cmp	x22, w8, sxtw
	b.ge	LBB0_23
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_17 Depth 2
                                        ;       Child Loop BB0_20 Depth 3
                                        ;         Child Loop BB0_22 Depth 4
	ldr	x9, [x19, #16]
	add	x10, x9, x22, lsl #4
	ldr	w10, [x10, #8]
	cbz	w10, LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	lsl	x10, x22, #4
	ldr	x9, [x9, x10]
	ldr	x10, [x23]
	ldr	x11, [x9]
	cmp	x11, x10
	b.ne	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x24, sp, #24
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x12, [x19, #8]
	add	x24, x12, x11, lsl #4
LBB0_8:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x11, [x9, #8]
	cmp	x11, x10
	b.ne	LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x25, sp, #24
	b	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x12, [x19, #8]
	add	x25, x12, x11, lsl #4
LBB0_11:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x9, [x9, #16]
	cmp	x9, x10
	b.ne	LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_4 Depth=1
	add	x26, sp, #24
	b	LBB0_14
LBB0_13:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x10, [x19, #8]
	add	x26, x10, x9, lsl #4
LBB0_14:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w9, [x24]
	cmp	w9, #0
	b.le	LBB0_3
; %bb.15:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	x27, #0
	b	LBB0_17
LBB0_16:                                ;   in Loop: Header=BB0_17 Depth=2
	add	x27, x27, #1
	ldrsw	x8, [x24]
	cmp	x27, x8
	b.ge	LBB0_2
LBB0_17:                                ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_20 Depth 3
                                        ;         Child Loop BB0_22 Depth 4
	ldr	x8, [x24, #8]
	ldr	w8, [x8, x27, lsl #2]
	str	w8, [sp, #40]
	ldr	w8, [x25]
	cmp	w8, #1
	b.lt	LBB0_16
; %bb.18:                               ;   in Loop: Header=BB0_17 Depth=2
	mov	x28, #0
	b	LBB0_20
LBB0_19:                                ;   in Loop: Header=BB0_20 Depth=3
	add	x28, x28, #1
	ldrsw	x8, [x25]
	cmp	x28, x8
	b.ge	LBB0_16
LBB0_20:                                ;   Parent Loop BB0_4 Depth=1
                                        ;     Parent Loop BB0_17 Depth=2
                                        ; =>    This Loop Header: Depth=3
                                        ;         Child Loop BB0_22 Depth 4
	ldr	x8, [x25, #8]
	ldr	w8, [x8, x28, lsl #2]
	str	w8, [sp, #44]
	ldr	w8, [x26]
	cmp	w8, #1
	b.lt	LBB0_19
; %bb.21:                               ;   in Loop: Header=BB0_20 Depth=3
	mov	x20, #0
LBB0_22:                                ;   Parent Loop BB0_4 Depth=1
                                        ;     Parent Loop BB0_17 Depth=2
                                        ;       Parent Loop BB0_20 Depth=3
                                        ; =>      This Inner Loop Header: Depth=4
	ldr	x8, [x26, #8]
	ldr	w8, [x8, x20, lsl #2]
	str	w8, [sp, #48]
	add	x1, sp, #40
	mov	x0, x21
	bl	_fillTrgm
	add	x21, x21, #4
	add	x20, x20, #1
	ldrsw	x8, [x26]
	cmp	x20, x8
	b.lt	LBB0_22
	b	LBB0_19
LBB0_23:
	ldr	x8, [sp, #56]
Lloh10:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh11:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_25
; %bb.24:
	ldr	x0, [sp, #8]                    ; 8-byte Folded Reload
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
LBB0_25:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_TRGMHDRSIZE,8,3                ; @TRGMHDRSIZE
	.comm	_ARRKEY,4,2                     ; @ARRKEY
	.comm	_COLOR_BLANK,8,3                ; @COLOR_BLANK
	.no_dead_strip	_expandColorTrigrams
.subsections_via_symbols
