	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function filter_color
LCPI0_0:
	.space	16
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_filter_color:                          ## @filter_color
	.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	$440, %rsp                      ## imm = 0x1B8
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, -352(%rbp)                ## 4-byte Spill
	movl	%edx, %r15d
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	16(%rdi), %rbx
	movq	(%rdi), %rax
	movq	8(%rdi), %rcx
	movq	(%rcx), %r12
	movq	(%rax), %rax
	movq	%rax, -384(%rbp)                ## 8-byte Spill
	movq	16(%rsi), %rax
	movq	%rax, -440(%rbp)                ## 8-byte Spill
	movq	8(%rsi), %rax
	movq	%rax, -456(%rbp)                ## 8-byte Spill
	movl	(%rsi), %r13d
	movl	4(%rsi), %r14d
	movl	40(%rbx), %esi
	movl	44(%rbx), %edi
	callq	_FFMAX
	movl	%eax, %edi
	movl	(%rbx), %r8d
	movl	(%r12), %eax
	movl	4(%r12), %ecx
	movl	%r13d, -336(%rbp)               ## 4-byte Spill
	subl	%r13d, %eax
	leal	(%r8,%r8), %edx
	leal	(%rdx,%rdx,4), %esi
	cltd
	movl	%esi, -364(%rbp)                ## 4-byte Spill
	idivl	%esi
	movl	%eax, %esi
	movl	%r14d, -332(%rbp)               ## 4-byte Spill
	subl	%r14d, %ecx
	movq	%rdi, -376(%rbp)                ## 8-byte Spill
	leal	(,%rdi,4), %eax
	leal	(%rax,%rax,2), %edi
	movl	%ecx, %eax
	cltd
	movl	%edi, -360(%rbp)                ## 4-byte Spill
	idivl	%edi
	movl	-352(%rbp), %edi                ## 4-byte Reload
	movl	%eax, %ecx
	leal	1(%r15), %eax
	imull	%esi, %eax
	cltd
	idivl	%edi
	movl	%eax, -340(%rbp)                ## 4-byte Spill
	testl	%ecx, %ecx
	jle	LBB0_11
## %bb.1:
	imull	%r15d, %esi
	movl	%esi, %eax
	cltd
	idivl	%edi
	leaq	24(%rbx), %r9
	sarl	$2, %r8d
	movslq	%r8d, %rsi
	shlq	$2, %rsi
	movq	%rsi, -416(%rbp)                ## 8-byte Spill
	addl	$2, -336(%rbp)                  ## 4-byte Folded Spill
	addl	$2, -332(%rbp)                  ## 4-byte Folded Spill
	movl	%eax, -356(%rbp)                ## 4-byte Spill
	cltq
	movq	%rax, -400(%rbp)                ## 8-byte Spill
	movl	%ecx, %eax
	movq	%rax, -408(%rbp)                ## 8-byte Spill
	movl	-376(%rbp), %eax                ## 4-byte Reload
	movq	%rax, -424(%rbp)                ## 8-byte Spill
	xorl	%edi, %edi
	leaq	-328(%rbp), %rsi
	movq	%rbx, -432(%rbp)                ## 8-byte Spill
	movq	%r9, -352(%rbp)                 ## 8-byte Spill
	movq	-424(%rbp), %r12                ## 8-byte Reload
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	incq	%rdi
	movl	-360(%rbp), %eax                ## 4-byte Reload
	addl	%eax, -332(%rbp)                ## 4-byte Folded Spill
	cmpq	-408(%rbp), %rdi                ## 8-byte Folded Reload
	je	LBB0_11
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
                                        ##       Child Loop BB0_8 Depth 3
	movq	8(%rbx), %rax
	addq	%rdi, %rax
	movq	-384(%rbp), %rcx                ## 8-byte Reload
	movslq	4(%rcx), %rcx
	cmpq	%rcx, %rax
	jge	LBB0_11
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	-356(%rbp), %eax                ## 4-byte Reload
	cmpl	-340(%rbp), %eax                ## 4-byte Folded Reload
	jge	LBB0_10
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-400(%rbp), %rdx                ## 8-byte Reload
	movq	%rdi, -448(%rbp)                ## 8-byte Spill
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_5 Depth=2
	movq	-392(%rbp), %rdx                ## 8-byte Reload
	incq	%rdx
	cmpl	%edx, -340(%rbp)                ## 4-byte Folded Reload
	movq	-432(%rbp), %rbx                ## 8-byte Reload
	movq	-352(%rbp), %r9                 ## 8-byte Reload
	movq	-448(%rbp), %rdi                ## 8-byte Reload
	leaq	-328(%rbp), %rsi
	je	LBB0_10
LBB0_5:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_8 Depth 3
	movq	16(%rbx), %rcx
	addq	%rdx, %rcx
	movq	-384(%rbp), %rax                ## 8-byte Reload
	movslq	(%rax), %rax
	cmpq	%rax, %rcx
	jge	LBB0_10
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=2
	movq	%rdx, -392(%rbp)                ## 8-byte Spill
	movl	$0, -328(%rbp)
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -64(%rbp)
	movq	8(%rbx), %r8
	addq	%rdi, %r8
	movq	%r9, %rdi
	movq	-440(%rbp), %rdx                ## 8-byte Reload
	leaq	-64(%rbp), %r9
	callq	*32(%rbx)
	cmpl	$0, -376(%rbp)                  ## 4-byte Folded Reload
	leaq	-320(%rbp), %r15
	jle	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=2
	movq	-416(%rbp), %rax                ## 8-byte Reload
	leaq	l_reltable.filter_color(%rip), %rcx
	movslq	(%rax,%rcx), %rax
	addq	%rcx, %rax
	movq	%rax, -464(%rbp)                ## 8-byte Spill
	movl	-364(%rbp), %r14d               ## 4-byte Reload
	imull	-392(%rbp), %r14d               ## 4-byte Folded Reload
	addl	-336(%rbp), %r14d               ## 4-byte Folded Reload
	movl	-332(%rbp), %ebx                ## 4-byte Reload
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_8:                                 ##   Parent Loop BB0_2 Depth=1
                                        ##     Parent Loop BB0_5 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movl	-64(%rbp,%r13,4), %ecx
	movq	%r15, %rdi
	movl	$256, %esi                      ## imm = 0x100
	movq	-464(%rbp), %rdx                ## 8-byte Reload
	callq	_snprintf
	movl	$0, (%rsp)
	movq	-352(%rbp), %rdi                ## 8-byte Reload
	movq	-456(%rbp), %rsi                ## 8-byte Reload
	leaq	-328(%rbp), %rdx
	movl	%r14d, %ecx
	movl	%ebx, %r8d
	movq	%r15, %r9
	callq	_draw_text
	incq	%r13
	addl	$10, %ebx
	cmpq	%r13, %r12
	jne	LBB0_8
	jmp	LBB0_9
LBB0_11:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_13
## %bb.12:
	xorl	%eax, %eax
	addq	$440, %rsp                      ## imm = 0x1B8
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%02X\n"

L_.str.1:                               ## @.str.1
	.asciz	"%04X\n"

	.section	__TEXT,__const
	.p2align	2                               ## @reltable.filter_color
l_reltable.filter_color:
	.long	L_.str-l_reltable.filter_color
	.long	L_.str.1-l_reltable.filter_color

	.no_dead_strip	_filter_color
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function filter_color
_filter_color:                          ; @filter_color
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #480
	.cfi_def_cfa_offset 480
	stp	x28, x27, [sp, #384]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #400]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #416]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #432]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #448]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #464]            ; 16-byte Folded Spill
	add	x29, sp, #464
	.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	x22, x3
	mov	x23, x2
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-96]
	ldp	x8, x26, [x0, #8]
	ldr	x9, [x0]
	ldr	x24, [x8]
	ldr	x8, [x9]
	str	x8, [sp, #80]                   ; 8-byte Folded Spill
	ldp	x20, x8, [x1, #8]
	str	x8, [sp, #64]                   ; 8-byte Folded Spill
	ldp	w19, w21, [x1]
	ldp	w1, w0, [x26, #40]
	bl	_FFMAX
	ldr	w8, [x24, #4]
	sub	w8, w8, w21
	str	w0, [sp, #72]                   ; 4-byte Folded Spill
	add	w9, w0, w0, lsl #1
	lsl	w9, w9, #2
	str	w9, [sp, #20]                   ; 4-byte Folded Spill
	sdiv	w8, w8, w9
	str	x8, [sp, #8]                    ; 8-byte Folded Spill
	cmp	w8, #1
	b.lt	LBB0_11
; %bb.1:
	mov	x28, #0
	ldr	w8, [x26]
	ldr	w9, [x24]
	sub	w9, w9, w19
	add	w10, w8, w8, lsl #2
	lsl	w10, w10, #1
	str	w10, [sp, #56]                  ; 4-byte Folded Spill
	sdiv	w9, w9, w10
	madd	w10, w9, w23, w9
	sdiv	w10, w10, w22
	str	w10, [sp, #76]                  ; 4-byte Folded Spill
	mul	w9, w9, w23
	sdiv	w9, w9, w22
	add	x22, x26, #24
	sbfx	x8, x8, #2, #30
	str	x8, [sp, #48]                   ; 8-byte Folded Spill
	add	w8, w19, #2
	str	w8, [sp, #44]                   ; 4-byte Folded Spill
	add	w8, w21, #2
	str	w8, [sp, #60]                   ; 4-byte Folded Spill
	sxtw	x10, w9
	ldr	w8, [sp, #72]                   ; 4-byte Folded Reload
	mov	w8, w8
	stp	x10, x8, [sp, #24]              ; 16-byte Folded Spill
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x28, x28, #1
	ldr	w8, [sp, #20]                   ; 4-byte Folded Reload
	ldr	w9, [sp, #60]                   ; 4-byte Folded Reload
	add	w9, w9, w8
	str	w9, [sp, #60]                   ; 4-byte Folded Spill
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	cmp	x28, x8
	b.eq	LBB0_11
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
                                        ;       Child Loop BB0_10 Depth 3
	ldr	x8, [x26, #8]
	ldr	x9, [sp, #80]                   ; 8-byte Folded Reload
	ldrsw	x9, [x9, #4]
	add	x8, x8, x28
	cmp	x8, x9
	b.ge	LBB0_11
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [sp, #76]                   ; 4-byte Folded Reload
	ldr	x9, [sp, #24]                   ; 8-byte Folded Reload
	cmp	w9, w8
	b.ge	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x27, [sp, #24]                  ; 8-byte Folded Reload
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=2
	add	x27, x27, #1
	ldr	w8, [sp, #76]                   ; 4-byte Folded Reload
	cmp	w8, w27
	b.eq	LBB0_2
LBB0_7:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_10 Depth 3
	ldr	x8, [x26, #16]
	ldr	x9, [sp, #80]                   ; 8-byte Folded Reload
	ldrsw	x9, [x9]
	add	x3, x8, x27
	cmp	x3, x9
	b.ge	LBB0_2
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=2
	str	wzr, [sp, #88]
	stp	xzr, xzr, [x29, #-112]
	ldr	x8, [x26, #32]
	ldr	x9, [x26, #8]
	add	x4, x9, x28
	add	x1, sp, #88
	sub	x5, x29, #112
	mov	x0, x22
	ldr	x2, [sp, #64]                   ; 8-byte Folded Reload
	blr	x8
	ldr	w8, [sp, #72]                   ; 4-byte Folded Reload
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=2
	ldr	x8, [sp, #48]                   ; 8-byte Folded Reload
Lloh3:
	adrp	x9, l___const.filter_color.format@PAGE
Lloh4:
	add	x9, x9, l___const.filter_color.format@PAGEOFF
	ldr	x23, [x9, x8, lsl #3]
	ldp	w8, w25, [sp, #56]              ; 8-byte Folded Reload
	ldr	w9, [sp, #44]                   ; 4-byte Folded Reload
	madd	w24, w8, w27, w9
	sub	x19, x29, #112
	ldr	x21, [sp, #32]                  ; 8-byte Folded Reload
LBB0_10:                                ;   Parent Loop BB0_3 Depth=1
                                        ;     Parent Loop BB0_7 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	ldr	w3, [x19], #4
	add	x0, sp, #96
	mov	w1, #256
	mov	x2, x23
	bl	_snprintf
	add	x2, sp, #88
	add	x5, sp, #96
	mov	x0, x22
	mov	x1, x20
	mov	x3, x24
	mov	x4, x25
	mov	w6, #0
	bl	_draw_text
	add	w25, w25, #10
	subs	x21, x21, #1
	b.ne	LBB0_10
	b	LBB0_6
LBB0_11:
	ldur	x8, [x29, #-96]
Lloh5:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh6:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_13
; %bb.12:
	mov	w0, #0
	ldp	x29, x30, [sp, #464]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #448]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #432]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #416]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #400]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #384]            ; 16-byte Folded Reload
	add	sp, sp, #480
	ret
LBB0_13:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%02X\n"

l_.str.1:                               ; @.str.1
	.asciz	"%04X\n"

	.section	__DATA,__const
	.p2align	3                               ; @__const.filter_color.format
l___const.filter_color.format:
	.quad	l_.str
	.quad	l_.str.1

	.no_dead_strip	_filter_color
.subsections_via_symbols
