	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_BrushExists                    ## -- Begin function BrushExists
	.p2align	4, 0x90
_BrushExists:                           ## @BrushExists
	.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
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_nummapbrushes@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	testl	%r9d, %r9d
	jle	LBB0_12
## %bb.1:
	movq	_mapbrushes@GOTPCREL(%rip), %rax
	movq	(%rax), %r11
	movq	(%rdi), %r8
	xorl	%r12d, %r12d
	movl	$1, %eax
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	testb	$1, %r14b
	je	LBB0_13
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	incq	%r12
	cmpq	%r9, %r12
	je	LBB0_12
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_6 Depth 2
                                        ##       Child Loop BB0_8 Depth 3
	leaq	(%r12,%r12,2), %rdx
	cmpq	(%r11,%rdx,8), %r8
	jne	LBB0_11
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	8(%rdi), %r13d
	cmpl	8(%r11,%rdx,8), %r13d
	jne	LBB0_11
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	testl	%r13d, %r13d
	jle	LBB0_13
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	16(%rdi), %r10
	movq	16(%r11,%rdx,8), %rdx
	movb	$1, %r14b
	xorl	%r15d, %r15d
LBB0_6:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_8 Depth 3
	movl	(%r10,%r15,4), %ebx
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_8:                                 ##   Parent Loop BB0_2 Depth=1
                                        ##     Parent Loop BB0_6 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movl	(%rdx,%rsi,4), %ecx
	xorl	%ebx, %ecx
	cmpl	$1, %ecx
	jbe	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_8 Depth=3
	incq	%rsi
	cmpq	%rsi, %r13
	jne	LBB0_8
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_6 Depth=2
	incq	%r15
	cmpq	%r13, %r15
	setb	%r14b
	jne	LBB0_6
	jmp	LBB0_13
LBB0_12:
	xorl	%eax, %eax
LBB0_13:
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_nummapbrushes,4,2              ## @nummapbrushes
	.comm	_mapbrushes,8,3                 ## @mapbrushes
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_BrushExists                    ; -- Begin function BrushExists
	.p2align	2
_BrushExists:                           ; @BrushExists
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _nummapbrushes@GOTPAGE
Lloh1:
	ldr	x8, [x8, _nummapbrushes@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, #1
	b.lt	LBB0_13
; %bb.1:
	mov	x9, #0
Lloh3:
	adrp	x10, _mapbrushes@GOTPAGE
Lloh4:
	ldr	x10, [x10, _mapbrushes@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	ldr	x11, [x0]
	mov	w12, #24
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	tbz	w17, #0, LBB0_12
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x9, x9, #1
	cmp	x9, x8
	b.eq	LBB0_13
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_8 Depth 2
                                        ;       Child Loop BB0_9 Depth 3
	mul	x13, x9, x12
	ldr	x13, [x10, x13]
	cmp	x11, x13
	b.ne	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w13, [x0, #8]
	madd	x14, x9, x12, x10
	ldr	w14, [x14, #8]
	cmp	w13, w14
	b.ne	LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	w13, #1
	b.lt	LBB0_12
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x14, #0
	ldr	x15, [x0, #16]
	madd	x16, x9, x12, x10
	ldr	x16, [x16, #16]
	mov	w17, #1
LBB0_8:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_9 Depth 3
	ldr	w1, [x15, x14, lsl #2]
	mov	x2, x13
	mov	x3, x16
LBB0_9:                                 ;   Parent Loop BB0_4 Depth=1
                                        ;     Parent Loop BB0_8 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	ldr	w4, [x3]
	eor	w4, w4, w1
	cmp	w4, #1
	b.ls	LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=3
	add	x3, x3, #4
	subs	x2, x2, #1
	b.ne	LBB0_9
	b	LBB0_2
LBB0_11:                                ;   in Loop: Header=BB0_8 Depth=2
	add	x14, x14, #1
	cmp	x14, x13
	cset	w17, lo
	b.ne	LBB0_8
LBB0_12:
	mov	w0, #1
	ret
LBB0_13:
	mov	w0, #0
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_nummapbrushes,4,2              ; @nummapbrushes
	.comm	_mapbrushes,8,3                 ; @mapbrushes
.subsections_via_symbols
