	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_AAS_AddMapBrushSide            ## -- Begin function AAS_AddMapBrushSide
	.p2align	4, 0x90
_AAS_AddMapBrushSide:                   ## @AAS_AddMapBrushSide
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movq	_nummapbrushsides@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	movq	_MAX_MAPFILE_BRUSHSIDES@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jl	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	callq	_Error
LBB0_2:
	movq	8(%rbx), %rax
	movslq	(%rbx), %rcx
	leaq	(%rcx,%rcx,2), %rdx
	shlq	$4, %rdx
	xorps	%xmm0, %xmm0
	movups	%xmm0, 32(%rax,%rdx)
	movl	4(%rbx), %esi
	movl	%esi, 24(%rax,%rdx)
	movq	_SFL_BEVEL@GOTPCREL(%rip), %rsi
	movq	_SFL_VISIBLE@GOTPCREL(%rip), %rdi
	movl	(%rdi), %edi
	orl	(%rsi), %edi
	notl	%edi
	andl	%edi, (%rax,%rdx)
	movl	%r14d, 4(%rax,%rdx)
	movups	%xmm0, 8(%rax,%rdx)
	incq	(%r15)
	leal	1(%rcx), %eax
	movl	%eax, (%rbx)
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_nummapbrushsides,8,3           ## @nummapbrushsides
	.comm	_MAX_MAPFILE_BRUSHSIDES,8,3     ## @MAX_MAPFILE_BRUSHSIDES
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"MAX_MAPFILE_BRUSHSIDES"

	.comm	_SFL_BEVEL,4,2                  ## @SFL_BEVEL
	.comm	_SFL_VISIBLE,4,2                ## @SFL_VISIBLE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_AAS_AddMapBrushSide            ; -- Begin function AAS_AddMapBrushSide
	.p2align	2
_AAS_AddMapBrushSide:                   ; @AAS_AddMapBrushSide
	.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	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x21, _nummapbrushsides@GOTPAGE
Lloh1:
	ldr	x21, [x21, _nummapbrushsides@GOTPAGEOFF]
	ldr	x8, [x21]
Lloh2:
	adrp	x9, _MAX_MAPFILE_BRUSHSIDES@GOTPAGE
Lloh3:
	ldr	x9, [x9, _MAX_MAPFILE_BRUSHSIDES@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.lt	LBB0_2
; %bb.1:
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	bl	_Error
LBB0_2:
	ldr	x8, [x19, #8]
	ldrsw	x9, [x19]
	mov	w10, #48
	madd	x8, x9, x10, x8
	stp	xzr, xzr, [x8, #32]
	ldr	w10, [x19, #4]
	str	w10, [x8, #24]
Lloh7:
	adrp	x10, _SFL_BEVEL@GOTPAGE
Lloh8:
	ldr	x10, [x10, _SFL_BEVEL@GOTPAGEOFF]
Lloh9:
	ldr	w10, [x10]
Lloh10:
	adrp	x11, _SFL_VISIBLE@GOTPAGE
Lloh11:
	ldr	x11, [x11, _SFL_VISIBLE@GOTPAGEOFF]
Lloh12:
	ldr	w11, [x11]
	orr	w10, w11, w10
	ldr	w11, [x8]
	bic	w10, w11, w10
	stp	w10, w20, [x8]
	stp	xzr, xzr, [x8, #8]
	ldr	x8, [x21]
	add	x8, x8, #1
	str	x8, [x21]
	add	w8, w9, #1
	str	w8, [x19]
	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 AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_nummapbrushsides,8,3           ; @nummapbrushsides
	.comm	_MAX_MAPFILE_BRUSHSIDES,8,3     ; @MAX_MAPFILE_BRUSHSIDES
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"MAX_MAPFILE_BRUSHSIDES"

	.comm	_SFL_BEVEL,4,2                  ; @SFL_BEVEL
	.comm	_SFL_VISIBLE,4,2                ; @SFL_VISIBLE
.subsections_via_symbols
