	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_AllocBrush                     ## -- Begin function AllocBrush
	.p2align	4, 0x90
_AllocBrush:                            ## @AllocBrush
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	callq	_GetMemory
	movq	%rax, %rbx
	movq	%rax, %rdi
	xorl	%esi, %esi
	callq	_memset
	movq	_numthreads@GOTPCREL(%rip), %rax
	cmpl	$1, (%rax)
	jne	LBB0_3
## %bb.1:
	movq	_c_active_brushes@GOTPCREL(%rip), %rax
	incl	(%rax)
	movq	%rbx, %rdi
	callq	_MemorySize
	movq	_c_brushmemory@GOTPCREL(%rip), %rcx
	addq	(%rcx), %rax
	movq	%rax, (%rcx)
	movq	_c_peak_brushmemory@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jle	LBB0_3
## %bb.2:
	movq	%rax, (%rcx)
LBB0_3:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_numthreads,4,2                 ## @numthreads
	.comm	_c_active_brushes,4,2           ## @c_active_brushes
	.comm	_c_brushmemory,8,3              ## @c_brushmemory
	.comm	_c_peak_brushmemory,8,3         ## @c_peak_brushmemory
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_AllocBrush                     ; -- Begin function AllocBrush
	.p2align	2
_AllocBrush:                            ; @AllocBrush
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	bl	_GetMemory
	mov	x19, x0
	mov	w1, #0
	bl	_memset
Lloh0:
	adrp	x8, _numthreads@GOTPAGE
Lloh1:
	ldr	x8, [x8, _numthreads@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, #1
	b.ne	LBB0_3
; %bb.1:
Lloh3:
	adrp	x8, _c_active_brushes@GOTPAGE
Lloh4:
	ldr	x8, [x8, _c_active_brushes@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
	mov	x0, x19
	bl	_MemorySize
Lloh5:
	adrp	x10, _c_brushmemory@GOTPAGE
Lloh6:
	ldr	x10, [x10, _c_brushmemory@GOTPAGEOFF]
	ldr	x9, [x10]
Lloh7:
	adrp	x8, _c_peak_brushmemory@GOTPAGE
Lloh8:
	ldr	x8, [x8, _c_peak_brushmemory@GOTPAGEOFF]
	ldr	x11, [x8]
	add	x9, x9, x0
	cmp	x9, x11
	str	x9, [x10]
	b.le	LBB0_3
; %bb.2:
	str	x9, [x8]
LBB0_3:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_numthreads,4,2                 ; @numthreads
	.comm	_c_active_brushes,4,2           ; @c_active_brushes
	.comm	_c_brushmemory,8,3              ; @c_brushmemory
	.comm	_c_peak_brushmemory,8,3         ; @c_peak_brushmemory
.subsections_via_symbols
