	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Q2_SetLeafBrushesModelNumbers  ## -- Begin function Q2_SetLeafBrushesModelNumbers
	.p2align	4, 0x90
_Q2_SetLeafBrushesModelNumbers:         ## @Q2_SetLeafBrushesModelNumbers
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_dleafs@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	%edi, %rcx
	cmpl	$0, (%rax,%rcx,8)
	jle	LBB0_3
## %bb.1:
	movq	_dleafbrushes@GOTPCREL(%rip), %rdx
	movq	(%rdx), %r8
	movq	_brushmodelnumbers@GOTPCREL(%rip), %rdx
	movq	(%rdx), %r9
	movq	_dbrushleafnums@GOTPCREL(%rip), %rdx
	movq	(%rdx), %r10
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movslq	4(%rax,%rcx,8), %rdx
	addq	%rdi, %rdx
	movslq	(%r8,%rdx,4), %rdx
	movl	%esi, (%r9,%rdx,4)
	movl	%ecx, (%r10,%rdx,4)
	incq	%rdi
	cmpl	(%rax,%rcx,8), %edi
	jl	LBB0_2
LBB0_3:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_dleafs,8,3                     ## @dleafs
	.comm	_dleafbrushes,8,3               ## @dleafbrushes
	.comm	_brushmodelnumbers,8,3          ## @brushmodelnumbers
	.comm	_dbrushleafnums,8,3             ## @dbrushleafnums
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Q2_SetLeafBrushesModelNumbers  ; -- Begin function Q2_SetLeafBrushesModelNumbers
	.p2align	2
_Q2_SetLeafBrushesModelNumbers:         ; @Q2_SetLeafBrushesModelNumbers
	.cfi_startproc
; %bb.0:
                                        ; kill: def $w0 killed $w0 def $x0
Lloh0:
	adrp	x8, _dleafs@GOTPAGE
Lloh1:
	ldr	x8, [x8, _dleafs@GOTPAGEOFF]
Lloh2:
	ldr	x11, [x8]
	add	x8, x11, w0, sxtw #3
	ldr	w9, [x8]
	cmp	w9, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x9, #0
	sxtw	x12, w0
Lloh3:
	adrp	x10, _dleafbrushes@GOTPAGE
Lloh4:
	ldr	x10, [x10, _dleafbrushes@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	add	x11, x11, x12, lsl #3
	add	x11, x11, #4
Lloh6:
	adrp	x12, _brushmodelnumbers@GOTPAGE
Lloh7:
	ldr	x12, [x12, _brushmodelnumbers@GOTPAGEOFF]
Lloh8:
	ldr	x12, [x12]
Lloh9:
	adrp	x13, _dbrushleafnums@GOTPAGE
Lloh10:
	ldr	x13, [x13, _dbrushleafnums@GOTPAGEOFF]
Lloh11:
	ldr	x13, [x13]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldrsw	x14, [x11]
	add	x14, x9, x14
	ldrsw	x14, [x10, x14, lsl #2]
	lsl	x14, x14, #2
	str	w1, [x12, x14]
	str	w0, [x13, x14]
	ldr	w14, [x8]
	add	x9, x9, #1
	cmp	w9, w14
	b.lt	LBB0_2
LBB0_3:
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_dleafs,8,3                     ; @dleafs
	.comm	_dleafbrushes,8,3               ; @dleafbrushes
	.comm	_brushmodelnumbers,8,3          ; @brushmodelnumbers
	.comm	_dbrushleafnums,8,3             ; @dbrushleafnums
.subsections_via_symbols
