	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CM_StoreBrushes                ## -- Begin function CM_StoreBrushes
	.p2align	4, 0x90
_CM_StoreBrushes:                       ## @CM_StoreBrushes
	.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	%rbx
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	notl	%esi
	movq	_cm@GOTPCREL(%rip), %r8
	movq	40(%r8), %rax
	movslq	%esi, %rdx
	shlq	$4, %rdx
	movl	(%rax,%rdx), %ecx
	testl	%ecx, %ecx
	jle	LBB0_13
## %bb.1:
	movslq	4(%rax,%rdx), %rdx
	movq	8(%r8), %r10
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	incq	%rdx
	decq	%rcx
	je	LBB0_13
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r8), %rsi
	movq	32(%r8), %rax
	movslq	(%rsi,%rdx,4), %rsi
	shlq	$4, %rsi
	cmpq	%r10, (%rax,%rsi)
	je	LBB0_12
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	leaq	(%rax,%rsi), %r9
	movq	%r10, (%r9)
	movq	8(%rax,%rsi), %rbx
	movq	(%rbx), %r14
	movq	(%rdi), %rax
	movq	8(%rax), %r15
	movq	(%r14), %rsi
	cmpq	(%r15), %rsi
	jge	LBB0_12
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%rbx), %r11
	movq	(%r11), %rsi
	movq	(%rax), %rbx
	cmpq	(%rbx), %rsi
	jle	LBB0_12
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%r14), %rax
	cmpq	8(%r15), %rax
	jge	LBB0_12
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%r11), %rax
	cmpq	8(%rbx), %rax
	jle	LBB0_12
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	16(%r14), %rax
	cmpq	16(%r15), %rax
	jge	LBB0_12
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	16(%r11), %rax
	cmpq	16(%rbx), %rax
	jle	LBB0_12
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%rdi), %rax
	cmpq	16(%rdi), %rax
	jge	LBB0_10
## %bb.11:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	24(%rdi), %rsi
	leaq	1(%rax), %rbx
	movq	%rbx, 8(%rdi)
	movq	%r9, (%rsi,%rax,8)
	jmp	LBB0_12
LBB0_10:
	movq	_qtrue@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%rdi)
LBB0_13:
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_cm,48,3                        ## @cm
	.comm	_qtrue,4,2                      ## @qtrue
	.comm	_patch,4,2                      ## @patch
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CM_StoreBrushes                ; -- Begin function CM_StoreBrushes
	.p2align	2
_CM_StoreBrushes:                       ; @CM_StoreBrushes
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _cm@GOTPAGE
Lloh1:
	ldr	x8, [x8, _cm@GOTPAGEOFF]
	mvn	w11, w1
	ldr	x10, [x8, #40]
	sbfiz	x9, x11, #4, #32
	ldr	w9, [x10, x9]
	cmp	w9, #1
	b.lt	LBB0_12
; %bb.1:
	sxtw	x11, w11
	add	x10, x10, x11, lsl #4
	ldrsw	x11, [x10, #4]
	ldr	x10, [x8, #8]
	lsl	x11, x11, #2
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x11, x11, #4
	subs	x9, x9, #1
	b.eq	LBB0_12
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x12, [x8]
	ldrsw	x12, [x12, x11]
	ldr	x13, [x8, #32]
	add	x12, x13, x12, lsl #4
	ldr	x13, [x12]
	cmp	x13, x10
	b.eq	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	str	x10, [x12]
	ldr	x15, [x12, #8]
	ldr	x13, [x15]
	ldr	x16, [x0]
	ldr	x14, [x16, #8]
	ldr	x17, [x13]
	ldr	x1, [x14]
	cmp	x17, x1
	b.ge	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x15, [x15, #8]
	ldr	x17, [x15]
	ldr	x16, [x16]
	ldr	x1, [x16]
	cmp	x17, x1
	b.le	LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x17, [x13, #8]
	ldr	x1, [x14, #8]
	cmp	x17, x1
	b.ge	LBB0_2
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x17, [x15, #8]
	ldr	x1, [x16, #8]
	cmp	x17, x1
	b.le	LBB0_2
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x13, [x13, #16]
	ldr	x14, [x14, #16]
	cmp	x13, x14
	b.ge	LBB0_2
; %bb.9:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x13, [x15, #16]
	ldr	x14, [x16, #16]
	cmp	x13, x14
	b.le	LBB0_2
; %bb.10:                               ;   in Loop: Header=BB0_3 Depth=1
	ldp	x13, x14, [x0, #8]
	cmp	x13, x14
	b.ge	LBB0_13
; %bb.11:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	x14, [x0, #24]
	add	x15, x13, #1
	str	x15, [x0, #8]
	str	x12, [x14, x13, lsl #3]
	b	LBB0_2
LBB0_12:
	ret
LBB0_13:
Lloh2:
	adrp	x8, _qtrue@GOTPAGE
Lloh3:
	ldr	x8, [x8, _qtrue@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	str	w8, [x0, #32]
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_cm,48,3                        ; @cm
	.comm	_qtrue,4,2                      ; @qtrue
	.comm	_patch,4,2                      ; @patch
.subsections_via_symbols
