	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_SubtractBrush                  ## -- Begin function SubtractBrush
	.p2align	4, 0x90
_SubtractBrush:                         ## @SubtractBrush
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	testq	%rdi, %rdi
	setne	%al
	xorl	%r15d, %r15d
	cmpl	$0, (%rsi)
	jle	LBB0_1
## %bb.2:
	movq	%r14, %rbx
	testq	%r14, %r14
	je	LBB0_10
## %bb.3:
	movq	%rsi, %r12
	movl	$1, %r13d
	xorl	%r15d, %r15d
	movq	%r14, %rbx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%r12), %rax
	movl	-4(%rax,%r13,4), %esi
	movq	%rbx, %rdi
	leaq	-56(%rbp), %rdx
	leaq	-48(%rbp), %rcx
	callq	_SplitBrush2
	cmpq	%r14, %rbx
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%rbx, %rdi
	callq	_FreeBrush
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	-56(%rbp), %rax
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%r15, 8(%rax)
	movq	%rax, %r15
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	-48(%rbp), %rbx
	movslq	(%r12), %rcx
	testq	%rbx, %rbx
	setne	%al
	cmpq	%rcx, %r13
	jge	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_4 Depth=1
	incq	%r13
	testq	%rbx, %rbx
	jne	LBB0_4
LBB0_10:
	testb	%al, %al
	je	LBB0_12
LBB0_11:
	movq	%rbx, %rdi
	callq	_FreeBrush
	jmp	LBB0_13
LBB0_1:
	movq	%r14, %rbx
	testb	%al, %al
	jne	LBB0_11
LBB0_12:
	movq	%r15, %rdi
	callq	_FreeBrushList
	movq	%r14, %r15
LBB0_13:
	movq	%r15, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_SubtractBrush                  ; -- Begin function SubtractBrush
	.p2align	2
_SubtractBrush:                         ; @SubtractBrush
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x0
	ldr	w9, [x1]
	cmp	x0, #0
	cset	w8, ne
	cmp	w9, #1
	ccmp	x0, #0, #4, ge
	b.ne	LBB0_4
; %bb.1:
	mov	x20, #0
	mov	x22, x19
LBB0_2:
	cbz	w8, LBB0_10
; %bb.3:
	mov	x0, x22
	bl	_FreeBrush
	b	LBB0_11
LBB0_4:
	mov	x21, x1
	mov	x23, #0
	mov	x20, #0
	mov	x22, x19
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	x22, [sp]
	add	x23, x23, #1
	ldrsw	x9, [x21]
	cmp	x22, #0
	cset	w8, ne
	cmp	x23, x9
	ccmp	x22, #0, #4, lt
	b.eq	LBB0_2
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21, #16]
	ldr	w1, [x8, x23, lsl #2]
	add	x2, sp, #8
	mov	x3, sp
	mov	x0, x22
	bl	_SplitBrush2
	cmp	x22, x19
	b.eq	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x22
	bl	_FreeBrush
LBB0_8:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [sp, #8]
	cbz	x8, LBB0_5
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=1
	str	x20, [x8, #8]
	mov	x20, x8
	b	LBB0_5
LBB0_10:
	mov	x0, x20
	bl	_FreeBrushList
	mov	x20, x19
LBB0_11:
	mov	x0, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
