	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fill_colmap
_fill_colmap:                           ## @fill_colmap
	.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
	movl	%r9d, -56(%rbp)                 ## 4-byte Spill
                                        ## kill: def $r8d killed $r8d def $r8
	movq	%r8, -72(%rbp)                  ## 8-byte Spill
	xorl	%r13d, %r13d
	movq	(%rsi), %rax
	movq	%rsi, -96(%rbp)                 ## 8-byte Spill
	movq	8(%rsi), %rsi
	movq	8(%rsi), %rsi
	movq	8(%rsi), %rsi
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movl	(%rax), %r14d
	cmpl	$0, 16(%rbp)
	setne	%bl
	je	LBB0_2
## %bb.1:
	addl	%r14d, %r14d
	addl	$16, %r14d
	movb	$1, %r12b
	jmp	LBB0_3
LBB0_2:
	movq	(%rdi), %rax
	movq	_PICT_FRAME@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rax
	setne	%r12b
LBB0_3:
	movslq	%ecx, %r15
	leaq	(%r15,%r15,2), %rax
	shlq	$6, %rax
	movq	%rdx, %rdi
	addq	%rax, %rdi
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	xorl	%esi, %esi
	movl	$192, %edx
	callq	_memset
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movslq	-56(%rbp), %rdx                 ## 4-byte Folded Reload
	movq	(%rax,%rdx,8), %r10
	cmpl	$0, (%r10,%r15,4)
	jle	LBB0_33
## %bb.4:
	movb	%bl, %r13b
	shll	$4, %r13d
	movl	%r13d, %r11d
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rcx
	movq	%rdx, -80(%rbp)                 ## 8-byte Spill
	movq	(%rcx,%rdx,8), %rcx
	movq	(%rcx,%r15,8), %rdi
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	leal	16(%rax), %ecx
	movq	%rcx, -88(%rbp)                 ## 8-byte Spill
	testl	%eax, %eax
	setne	%al
	andb	%r12b, %al
	movb	%al, -56(%rbp)                  ## 1-byte Spill
	movl	%r14d, %edx
	xorl	%esi, %esi
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_5 Depth=1
	incq	%rsi
	movslq	(%r10,%r15,4), %rcx
	cmpq	%rcx, %rsi
	jge	LBB0_18
LBB0_5:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_11 Depth 2
	movl	(%rdi,%rsi,4), %ebx
	testb	%r12b, %r12b
	je	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	%ebx, %ecx
	notl	%ecx
	testb	$3, %cl
	jne	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	andl	$-4, %ebx
	orl	$1, %ebx
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_5 Depth=1
	orl	$3, %ebx
LBB0_9:                                 ##   in Loop: Header=BB0_5 Depth=1
	cmpl	%r14d, %r13d
	jge	LBB0_17
## %bb.10:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rcx
	movq	(%rcx), %rcx
	movq	%r11, %rax
	shlq	$4, %rax
	leaq	(%rcx,%rax), %r8
	addq	$8, %r8
	movq	%r11, %rcx
	.p2align	4, 0x90
LBB0_11:                                ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%r8), %rax
	movl	16(%rax), %eax
	movl	-8(%r8), %r9d
	andl	$3, %r9d
	leal	(%r9,%rax,4), %eax
	cmpl	%ebx, %eax
	je	LBB0_12
## %bb.16:                              ##   in Loop: Header=BB0_11 Depth=2
	incq	%rcx
	addq	$16, %r8
	cmpq	%rcx, %rdx
	jne	LBB0_11
	jmp	LBB0_17
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_5 Depth=1
	leal	-16(%rcx), %ebx
	xorl	-72(%rbp), %ebx                 ## 4-byte Folded Reload
	cmpl	$0, 16(%rbp)
	cmovel	%ecx, %ebx
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	cmpq	$0, 24(%rax)
	je	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	leal	(%rax,%rsi,2), %eax
	cltq
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movl	%ebx, (%rcx,%rax,4)
LBB0_14:                                ##   in Loop: Header=BB0_5 Depth=1
	cmpb	$0, -56(%rbp)                   ## 1-byte Folded Reload
	jne	LBB0_17
## %bb.15:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	%ebx, (%rax,%rsi,4)
	jmp	LBB0_17
LBB0_18:
	testl	%ecx, %ecx
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	jle	LBB0_33
## %bb.19:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rax
	movq	(%rax,%rcx,8), %rax
	movq	(%rax,%r15,8), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movl	%eax, %ecx
	xorl	$1, %ecx
	addl	$16, %ecx
	movq	%rcx, -104(%rbp)                ## 8-byte Spill
	cmpl	$1, %eax
	setne	%al
	andb	%r12b, %al
	movb	%al, -80(%rbp)                  ## 1-byte Spill
	xorl	%edi, %edi
	movq	%r11, %rax
	shlq	$4, %rax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	jmp	LBB0_20
	.p2align	4, 0x90
LBB0_32:                                ##   in Loop: Header=BB0_20 Depth=1
	incq	%rdi
	movslq	(%r10,%r15,4), %rax
	cmpq	%rax, %rdi
	jge	LBB0_33
LBB0_20:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_26 Depth 2
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax,%rdi,4), %ebx
	testb	%r12b, %r12b
	je	LBB0_21
## %bb.22:                              ##   in Loop: Header=BB0_20 Depth=1
	movl	%ebx, %ecx
	notl	%ecx
	testb	$3, %cl
	jne	LBB0_24
## %bb.23:                              ##   in Loop: Header=BB0_20 Depth=1
	andl	$-4, %ebx
	orl	$2, %ebx
	jmp	LBB0_24
	.p2align	4, 0x90
LBB0_21:                                ##   in Loop: Header=BB0_20 Depth=1
	orl	$3, %ebx
LBB0_24:                                ##   in Loop: Header=BB0_20 Depth=1
	cmpl	%r14d, %r13d
	jge	LBB0_32
## %bb.25:                              ##   in Loop: Header=BB0_20 Depth=1
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rcx
	movq	(%rcx), %rcx
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rcx,%rax), %r9
	addq	$8, %r9
	movq	%r11, %rcx
	.p2align	4, 0x90
LBB0_26:                                ##   Parent Loop BB0_20 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%r9), %r8
	movl	16(%r8), %eax
	movl	-8(%r9), %esi
	andl	$3, %esi
	leal	(%rsi,%rax,4), %eax
	cmpl	%ebx, %eax
	je	LBB0_28
## %bb.27:                              ##   in Loop: Header=BB0_26 Depth=2
	incq	%rcx
	addq	$16, %r9
	cmpq	%rcx, %rdx
	jne	LBB0_26
	jmp	LBB0_32
	.p2align	4, 0x90
LBB0_28:                                ##   in Loop: Header=BB0_20 Depth=1
	leal	-16(%rcx), %ebx
	xorl	-72(%rbp), %ebx                 ## 4-byte Folded Reload
	cmpl	$0, 16(%rbp)
	cmovel	%ecx, %ebx
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	cmpq	$0, 24(%rax)
	je	LBB0_30
## %bb.29:                              ##   in Loop: Header=BB0_20 Depth=1
	movq	-104(%rbp), %rax                ## 8-byte Reload
	leal	(%rax,%rdi,2), %eax
	cltq
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movl	%ebx, (%rcx,%rax,4)
LBB0_30:                                ##   in Loop: Header=BB0_20 Depth=1
	cmpb	$0, -80(%rbp)                   ## 1-byte Folded Reload
	jne	LBB0_32
## %bb.31:                              ##   in Loop: Header=BB0_20 Depth=1
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	%ebx, (%rax,%rdi,4)
	jmp	LBB0_32
LBB0_33:
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PICT_FRAME,8,3                 ## @PICT_FRAME
	.no_dead_strip	_fill_colmap
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fill_colmap
_fill_colmap:                           ; @fill_colmap
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x6
	mov	x23, x5
	mov	x20, x4
	mov	x24, x3
	mov	x21, x2
	mov	x22, x1
	cmp	w6, #0
	cset	w28, ne
	ldp	x9, x8, [x1]
	ldr	x8, [x8, #8]
	ldr	x25, [x8, #8]
	ldr	w26, [x9]
	cbz	w6, LBB0_2
; %bb.1:
	lsl	w8, w26, #1
	add	w26, w8, #16
	mov	w27, #1
	b	LBB0_3
LBB0_2:
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _PICT_FRAME@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PICT_FRAME@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w27, ne
LBB0_3:
	mov	w8, #192
	smaddl	x0, w24, w8, x21
	mov	w1, #0
	mov	w2, #192
	bl	_memset
	ldr	x8, [x25]
	ldr	x8, [x8, w23, sxtw #3]
	ldr	w9, [x8, w24, sxtw #2]
	cmp	w9, #1
	b.lt	LBB0_25
; %bb.4:
	mov	x13, #0
	lsl	w9, w28, #4
	sxtw	x10, w24
	sxtw	x12, w23
	ldr	x11, [x25, #8]
	ldr	x11, [x11, x12, lsl #3]
	ldr	x14, [x11, x10, lsl #3]
	add	w15, w20, #16
	cmp	w20, #0
	cset	w11, ne
	and	w16, w11, w27
	mov	w11, w26
	sub	x11, x11, x9
	mov	w17, #192
	madd	x0, x10, x17, x21
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x13, x13, #1
	ldrsw	x1, [x8, x10, lsl #2]
	cmp	x13, x1
	b.ge	LBB0_14
LBB0_6:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_8 Depth 2
	ldr	w1, [x14, x13, lsl #2]
	mvn	w2, w1
	tst	w2, #0x3
	and	w2, w1, #0xfffffffc
	orr	w2, w2, #0x1
	csel	w2, w1, w2, ne
	orr	w1, w1, #0x3
	tst	w27, #0x1
	csel	w1, w2, w1, ne
	cmp	w9, w26
	b.ge	LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x2, [x22, #8]
	ldr	x2, [x2]
	add	x2, x2, x9, lsl #4
	add	x3, x2, #8
	mov	x4, x11
	mov	x2, x9
LBB0_8:                                 ;   Parent Loop BB0_6 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x5, [x3]
	ldr	w5, [x5, #16]
	ldur	w6, [x3, #-8]
	bfi	w6, w5, #2, #30
	cmp	w6, w1
	b.eq	LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=2
	add	w2, w2, #1
	add	x3, x3, #16
	subs	x4, x4, #1
	b.ne	LBB0_8
	b	LBB0_5
LBB0_10:                                ;   in Loop: Header=BB0_6 Depth=1
	sub	w1, w2, #16
	eor	w1, w1, w20
	cmp	w19, #0
	csel	w1, w2, w1, eq
	ldr	x2, [x25, #24]
	cbz	x2, LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_6 Depth=1
	add	w2, w15, w13, lsl #1
	madd	x3, x10, x17, x21
	str	w1, [x3, w2, sxtw #2]
LBB0_12:                                ;   in Loop: Header=BB0_6 Depth=1
	tbnz	w16, #0, LBB0_5
; %bb.13:                               ;   in Loop: Header=BB0_6 Depth=1
	str	w1, [x0, x13, lsl #2]
	b	LBB0_5
LBB0_14:
	cmp	w1, #1
	b.lt	LBB0_25
; %bb.15:
	mov	x13, #0
	ldr	x14, [x25, #8]
	ldr	x12, [x14, x12, lsl #3]
	ldr	x12, [x12, x10, lsl #3]
	eor	w14, w20, #0x1
	add	w14, w14, #16
	cmp	w20, #1
	cset	w15, ne
	and	w15, w15, w27
	mov	w16, #192
	madd	x17, x10, x16, x21
	b	LBB0_17
LBB0_16:                                ;   in Loop: Header=BB0_17 Depth=1
	add	x13, x13, #1
	ldrsw	x0, [x8, x10, lsl #2]
	cmp	x13, x0
	b.ge	LBB0_25
LBB0_17:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_19 Depth 2
	ldr	w0, [x12, x13, lsl #2]
	mvn	w1, w0
	tst	w1, #0x3
	and	w1, w0, #0xfffffffc
	orr	w1, w1, #0x2
	csel	w1, w0, w1, ne
	orr	w0, w0, #0x3
	tst	w27, #0x1
	csel	w0, w1, w0, ne
	cmp	w9, w26
	b.ge	LBB0_16
; %bb.18:                               ;   in Loop: Header=BB0_17 Depth=1
	ldr	x1, [x22, #8]
	ldr	x1, [x1]
	add	x1, x1, x9, lsl #4
	add	x2, x1, #8
	mov	x3, x11
	mov	x1, x9
LBB0_19:                                ;   Parent Loop BB0_17 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x4, [x2]
	ldr	w4, [x4, #16]
	ldur	w5, [x2, #-8]
	bfi	w5, w4, #2, #30
	cmp	w5, w0
	b.eq	LBB0_21
; %bb.20:                               ;   in Loop: Header=BB0_19 Depth=2
	add	w1, w1, #1
	add	x2, x2, #16
	subs	x3, x3, #1
	b.ne	LBB0_19
	b	LBB0_16
LBB0_21:                                ;   in Loop: Header=BB0_17 Depth=1
	sub	w0, w1, #16
	eor	w0, w0, w20
	cmp	w19, #0
	csel	w0, w1, w0, eq
	ldr	x1, [x25, #24]
	cbz	x1, LBB0_23
; %bb.22:                               ;   in Loop: Header=BB0_17 Depth=1
	add	w1, w14, w13, lsl #1
	madd	x2, x10, x16, x21
	str	w0, [x2, w1, sxtw #2]
LBB0_23:                                ;   in Loop: Header=BB0_17 Depth=1
	tbnz	w15, #0, LBB0_16
; %bb.24:                               ;   in Loop: Header=BB0_17 Depth=1
	str	w0, [x17, x13, lsl #2]
	b	LBB0_16
LBB0_25:
	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
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_PICT_FRAME,8,3                 ; @PICT_FRAME
	.no_dead_strip	_fill_colmap
.subsections_via_symbols
