	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Q2_SetBrushModelNumbers        ## -- Begin function Q2_SetBrushModelNumbers
	.p2align	4, 0x90
_Q2_SetBrushModelNumbers:               ## @Q2_SetBrushModelNumbers
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	xorl	%eax, %eax
	callq	_Q2_InitNodeStack
	movq	_dmodels@GOTPCREL(%rip), %rcx
	movq	(%r14), %rax
	shlq	$2, %rax
	addq	(%rcx), %rax
	movq	_dnodes@GOTPCREL(%rip), %r12
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_1 Depth=1
	callq	_Q2_PushNodeStack
	movq	(%r12), %rax
	movq	(%rax,%r15,8), %rax
LBB0_1:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
	movl	(%rax), %r15d
	movl	%r15d, %edi
	testl	%r15d, %r15d
	jns	LBB0_8
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	notl	%edi
	movq	(%r14), %rsi
	callq	_Q2_SetLeafBrushesModelNumbers
	xorl	%eax, %eax
	callq	_Q2_PopNodeStack
	testl	%eax, %eax
	js	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	%eax, %r13d
	.p2align	4, 0x90
LBB0_4:                                 ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%r12), %rax
	movl	%r13d, %ebx
	movq	(%rax,%rbx,8), %rax
	cmpl	%r15d, (%rax)
	je	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=2
	xorl	%eax, %eax
	callq	_Q2_PopNodeStack
	movl	%r13d, %r15d
	movl	%eax, %r13d
	testl	%eax, %eax
	jns	LBB0_4
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	%r13d, %edi
	callq	_Q2_PushNodeStack
	movq	(%r12), %rax
	movq	(%rax,%rbx,8), %rax
	addq	$4, %rax
	jmp	LBB0_1
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_dmodels,8,3                    ## @dmodels
	.comm	_dnodes,8,3                     ## @dnodes
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Q2_SetBrushModelNumbers        ; -- Begin function Q2_SetBrushModelNumbers
	.p2align	2
_Q2_SetBrushModelNumbers:               ; @Q2_SetBrushModelNumbers
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
	bl	_Q2_InitNodeStack
Lloh0:
	adrp	x8, _dmodels@GOTPAGE
Lloh1:
	ldr	x8, [x8, _dmodels@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	x9, [x19]
	add	x8, x8, x9, lsl #2
Lloh3:
	adrp	x22, _dnodes@GOTPAGE
Lloh4:
	ldr	x22, [x22, _dnodes@GOTPAGEOFF]
	ldr	w20, [x8]
	tbnz	w20, #31, LBB0_2
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_Q2_PushNodeStack
	ldr	x8, [x22]
	ldr	x8, [x8, x20, lsl #3]
	ldr	w20, [x8]
	tbz	w20, #31, LBB0_1
LBB0_2:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_4 Depth 2
	mvn	w0, w20
	ldr	x1, [x19]
	bl	_Q2_SetLeafBrushesModelNumbers
	bl	_Q2_PopNodeStack
	tbnz	w0, #31, LBB0_7
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x21, x0
LBB0_4:                                 ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x22]
	ldr	x8, [x8, w21, uxtw #3]
	ldr	w8, [x8]
	cmp	w8, w20
	b.eq	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=2
	bl	_Q2_PopNodeStack
	mov	x20, x21
	mov	x21, x0
	tbz	w0, #31, LBB0_4
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x21
	bl	_Q2_PushNodeStack
	ldr	x8, [x22]
	ldr	x8, [x8, w21, uxtw #3]
	add	x8, x8, #4
	ldr	w20, [x8]
	tbz	w20, #31, LBB0_1
	b	LBB0_2
LBB0_7:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_dmodels,8,3                    ; @dmodels
	.comm	_dnodes,8,3                     ; @dnodes
.subsections_via_symbols
