	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_BotSetBrushModelTypes          ## -- Begin function BotSetBrushModelTypes
	.p2align	4, 0x90
_BotSetBrushModelTypes:                 ## @BotSetBrushModelTypes
	.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	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_MAX_EPAIRKEY@GOTPCREL(%rip), %r13
	movl	(%r13), %ebx
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r15
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r14
	movq	_modeltypes@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	_MAX_MODELS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	shll	$2, %edx
	xorl	%esi, %esi
	callq	_Com_Memset
	xorl	%edi, %edi
	callq	_AAS_NextBSPEntity
	testl	%eax, %eax
	je	LBB0_20
## %bb.1:
	movl	%eax, %ebx
	movq	%r14, %rax
	incq	%rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	_PRT_MESSAGE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdx
	movq	_botimport@GOTPCREL(%rip), %rax
	callq	*(%rax)
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	%ebx, %edi
	callq	_AAS_NextBSPEntity
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_20
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r13), %ecx
	movl	%ebx, %edi
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdx
	callq	_AAS_ValueForBSPEpairKey
	testl	%eax, %eax
	je	LBB0_19
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r13), %ecx
	movl	%ebx, %edi
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdx
	callq	_AAS_ValueForBSPEpairKey
	testl	%eax, %eax
	je	LBB0_19
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpb	$0, (%r14)
	je	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_atoi
	movl	%eax, %r12d
	testl	%r12d, %r12d
	jns	LBB0_8
	jmp	LBB0_9
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	xorl	%r12d, %r12d
	testl	%r12d, %r12d
	js	LBB0_9
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	_MAX_MODELS@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r12d
	jg	LBB0_9
## %bb.10:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	%r15, %rdi
	leaq	L_.str.3(%rip), %rsi
	callq	_Q_stricmp
	testl	%eax, %eax
	je	LBB0_11
## %bb.12:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	%r15, %rdi
	leaq	L_.str.4(%rip), %rsi
	callq	_Q_stricmp
	testl	%eax, %eax
	je	LBB0_13
## %bb.14:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	%r15, %rdi
	leaq	L_.str.5(%rip), %rsi
	callq	_Q_stricmp
	testl	%eax, %eax
	je	LBB0_15
## %bb.16:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	%r15, %rdi
	leaq	L_.str.6(%rip), %rsi
	callq	_Q_stricmp
	testl	%eax, %eax
	jne	LBB0_19
## %bb.17:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	_MODELTYPE_FUNC_STATIC@GOTPCREL(%rip), %rax
	jmp	LBB0_18
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	_MODELTYPE_FUNC_BOB@GOTPCREL(%rip), %rax
	jmp	LBB0_18
LBB0_13:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	_MODELTYPE_FUNC_PLAT@GOTPCREL(%rip), %rax
	jmp	LBB0_18
LBB0_15:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	_MODELTYPE_FUNC_DOOR@GOTPCREL(%rip), %rax
LBB0_18:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	(%rax), %eax
	movq	_modeltypes@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	%r12d, %edx
	movl	%eax, (%rcx,%rdx,4)
	jmp	LBB0_19
LBB0_20:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_22
## %bb.21:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_22:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_EPAIRKEY,4,2               ## @MAX_EPAIRKEY
	.comm	_modeltypes,8,3                 ## @modeltypes
	.comm	_MAX_MODELS,4,2                 ## @MAX_MODELS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"classname"

L_.str.1:                               ## @.str.1
	.asciz	"model"

	.comm	_botimport,8,3                  ## @botimport
	.comm	_PRT_MESSAGE,4,2                ## @PRT_MESSAGE
L_.str.2:                               ## @.str.2
	.asciz	"entity %s model number out of range\n"

L_.str.3:                               ## @.str.3
	.asciz	"func_bobbing"

	.comm	_MODELTYPE_FUNC_BOB,4,2         ## @MODELTYPE_FUNC_BOB
L_.str.4:                               ## @.str.4
	.asciz	"func_plat"

	.comm	_MODELTYPE_FUNC_PLAT,4,2        ## @MODELTYPE_FUNC_PLAT
L_.str.5:                               ## @.str.5
	.asciz	"func_door"

	.comm	_MODELTYPE_FUNC_DOOR,4,2        ## @MODELTYPE_FUNC_DOOR
L_.str.6:                               ## @.str.6
	.asciz	"func_static"

	.comm	_MODELTYPE_FUNC_STATIC,4,2      ## @MODELTYPE_FUNC_STATIC
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_BotSetBrushModelTypes          ; -- Begin function BotSetBrushModelTypes
	.p2align	2
_BotSetBrushModelTypes:                 ; @BotSetBrushModelTypes
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #16
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x27, _MAX_EPAIRKEY@GOTPAGE
Lloh4:
	ldr	x27, [x27, _MAX_EPAIRKEY@GOTPAGEOFF]
	ldr	w8, [x27]
	mov	x9, x8
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x10, x8, #15
	and	x12, x10, #0x1fffffff0
	sub	x19, x9, x12
	mov	sp, x19
	mov	x9, x8
Lloh7:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh8:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	sub	x20, x8, x12
	mov	sp, x20
Lloh9:
	adrp	x8, _modeltypes@GOTPAGE
Lloh10:
	ldr	x8, [x8, _modeltypes@GOTPAGEOFF]
Lloh11:
	ldr	x0, [x8]
Lloh12:
	adrp	x25, _MAX_MODELS@GOTPAGE
Lloh13:
	ldr	x25, [x25, _MAX_MODELS@GOTPAGEOFF]
	ldr	w8, [x25]
	lsl	w2, w8, #2
	mov	w1, #0
	bl	_Com_Memset
	mov	w0, #0
	bl	_AAS_NextBSPEntity
	cbz	w0, LBB0_19
; %bb.1:
	mov	x21, x0
	add	x22, x20, #1
Lloh14:
	adrp	x23, l_.str@PAGE
Lloh15:
	add	x23, x23, l_.str@PAGEOFF
Lloh16:
	adrp	x24, l_.str.1@PAGE
Lloh17:
	add	x24, x24, l_.str.1@PAGEOFF
Lloh18:
	adrp	x26, l_.str.3@PAGE
Lloh19:
	add	x26, x26, l_.str.3@PAGEOFF
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
Lloh20:
	adrp	x8, _botimport@GOTPAGE
Lloh21:
	ldr	x8, [x8, _botimport@GOTPAGEOFF]
Lloh22:
	ldr	x8, [x8]
Lloh23:
	adrp	x9, _PRT_MESSAGE@GOTPAGE
Lloh24:
	ldr	x9, [x9, _PRT_MESSAGE@GOTPAGEOFF]
Lloh25:
	ldr	w0, [x9]
Lloh26:
	adrp	x1, l_.str.2@PAGE
Lloh27:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x2, x19
	blr	x8
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x21
	bl	_AAS_NextBSPEntity
	mov	x21, x0
	cbz	w0, LBB0_19
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w3, [x27]
	mov	x0, x21
	mov	x1, x23
	mov	x2, x19
	bl	_AAS_ValueForBSPEpairKey
	cbz	w0, LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w3, [x27]
	mov	x0, x21
	mov	x1, x24
	mov	x2, x20
	bl	_AAS_ValueForBSPEpairKey
	cbz	w0, LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldrb	w8, [x20]
	cbz	w8, LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x22
	bl	_atoi
	mov	x28, x0
	tbz	w28, #31, LBB0_9
	b	LBB0_2
LBB0_8:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	w28, #0
	tbnz	w28, #31, LBB0_2
LBB0_9:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x25]
	cmp	w28, w8
	b.gt	LBB0_2
; %bb.10:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x19
	mov	x1, x26
	bl	_Q_stricmp
	cbz	w0, LBB0_15
; %bb.11:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x19
Lloh28:
	adrp	x1, l_.str.4@PAGE
Lloh29:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_Q_stricmp
	cbz	w0, LBB0_16
; %bb.12:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x19
Lloh30:
	adrp	x1, l_.str.5@PAGE
Lloh31:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_Q_stricmp
	cbz	w0, LBB0_17
; %bb.13:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x19
Lloh32:
	adrp	x1, l_.str.6@PAGE
Lloh33:
	add	x1, x1, l_.str.6@PAGEOFF
	bl	_Q_stricmp
	cbnz	w0, LBB0_3
; %bb.14:                               ;   in Loop: Header=BB0_4 Depth=1
Lloh34:
	adrp	x8, _MODELTYPE_FUNC_STATIC@GOTPAGE
Lloh35:
	ldr	x8, [x8, _MODELTYPE_FUNC_STATIC@GOTPAGEOFF]
	b	LBB0_18
LBB0_15:                                ;   in Loop: Header=BB0_4 Depth=1
Lloh36:
	adrp	x8, _MODELTYPE_FUNC_BOB@GOTPAGE
Lloh37:
	ldr	x8, [x8, _MODELTYPE_FUNC_BOB@GOTPAGEOFF]
	b	LBB0_18
LBB0_16:                                ;   in Loop: Header=BB0_4 Depth=1
Lloh38:
	adrp	x8, _MODELTYPE_FUNC_PLAT@GOTPAGE
Lloh39:
	ldr	x8, [x8, _MODELTYPE_FUNC_PLAT@GOTPAGEOFF]
	b	LBB0_18
LBB0_17:                                ;   in Loop: Header=BB0_4 Depth=1
Lloh40:
	adrp	x8, _MODELTYPE_FUNC_DOOR@GOTPAGE
Lloh41:
	ldr	x8, [x8, _MODELTYPE_FUNC_DOOR@GOTPAGEOFF]
LBB0_18:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x8]
Lloh42:
	adrp	x9, _modeltypes@GOTPAGE
Lloh43:
	ldr	x9, [x9, _modeltypes@GOTPAGEOFF]
Lloh44:
	ldr	x9, [x9]
	str	w8, [x9, w28, uxtw #2]
	b	LBB0_3
LBB0_19:
	ldur	x8, [x29, #-88]
Lloh45:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh46:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh47:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_21
; %bb.20:
	sub	sp, x29, #80
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_21:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh36, Lloh37
	.loh AdrpLdrGot	Lloh38, Lloh39
	.loh AdrpLdrGot	Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_EPAIRKEY,4,2               ; @MAX_EPAIRKEY
	.comm	_modeltypes,8,3                 ; @modeltypes
	.comm	_MAX_MODELS,4,2                 ; @MAX_MODELS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"classname"

l_.str.1:                               ; @.str.1
	.asciz	"model"

	.comm	_botimport,8,3                  ; @botimport
	.comm	_PRT_MESSAGE,4,2                ; @PRT_MESSAGE
l_.str.2:                               ; @.str.2
	.asciz	"entity %s model number out of range\n"

l_.str.3:                               ; @.str.3
	.asciz	"func_bobbing"

	.comm	_MODELTYPE_FUNC_BOB,4,2         ; @MODELTYPE_FUNC_BOB
l_.str.4:                               ; @.str.4
	.asciz	"func_plat"

	.comm	_MODELTYPE_FUNC_PLAT,4,2        ; @MODELTYPE_FUNC_PLAT
l_.str.5:                               ; @.str.5
	.asciz	"func_door"

	.comm	_MODELTYPE_FUNC_DOOR,4,2        ; @MODELTYPE_FUNC_DOOR
l_.str.6:                               ; @.str.6
	.asciz	"func_static"

	.comm	_MODELTYPE_FUNC_STATIC,4,2      ; @MODELTYPE_FUNC_STATIC
.subsections_via_symbols
