	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_AAS_InitMaxAAS                 ## -- Begin function AAS_InitMaxAAS
	.p2align	4, 0x90
_AAS_InitMaxAAS:                        ## @AAS_InitMaxAAS
	.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
	movq	_tmpaasworld@GOTPCREL(%rip), %rax
	movq	16(%rax), %rdi
	movl	$10, %ecx
	xorl	%esi, %esi
	movl	$10, %edx
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	8(%rdi), %rdi
	incl	%edx
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.6:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	(%rdi), %rbx
	testq	%rbx, %rbx
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_1 Depth=1
	addl	(%rbx), %esi
	jmp	LBB0_8
LBB0_2:
	movq	8(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_5
## %bb.3:
	movl	$10, %ecx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rdi), %rdi
	incl	%ecx
	testq	%rdi, %rdi
	jne	LBB0_4
LBB0_5:
	movq	_AAS_MAX_BBOXES@GOTPCREL(%rip), %rdi
	movl	(%rdi), %edi
	movq	_max_aas@GOTPCREL(%rip), %rbx
	movl	%edi, 76(%rbx)
	incl	%esi
	movl	%esi, (%rbx)
	movq	_nummapplanes@GOTPCREL(%rip), %rdi
	movl	(%rdi), %edi
	movl	%edi, 72(%rbx)
	movl	%esi, 4(%rbx)
	leal	(%rsi,%rsi,2), %esi
	movl	%esi, 8(%rbx)
	movl	%edx, 12(%rbx)
	addl	%edx, %edx
	movl	%edx, 16(%rbx)
	movl	%ecx, 20(%rbx)
	movl	%ecx, 24(%rbx)
	movq	$0, 64(%rbx)
	movl	(%rax), %edi
	callq	_AAS_CountTmpNodes
	addq	$10, %rax
	movq	%rax, 56(%rbx)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 32(%rbx)
	movq	$0, 48(%rbx)
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_tmpaasworld,24,3               ## @tmpaasworld
	.comm	_AAS_MAX_BBOXES,4,2             ## @AAS_MAX_BBOXES
	.comm	_max_aas,80,3                   ## @max_aas
	.comm	_nummapplanes,4,2               ## @nummapplanes
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_AAS_InitMaxAAS                 ; -- Begin function AAS_InitMaxAAS
	.p2align	2
_AAS_InitMaxAAS:                        ; @AAS_InitMaxAAS
	.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
Lloh0:
	adrp	x8, _tmpaasworld@GOTPAGE
Lloh1:
	ldr	x8, [x8, _tmpaasworld@GOTPAGEOFF]
	ldr	x11, [x8, #16]
	cbz	x11, LBB0_5
; %bb.1:
	mov	w10, #0
	mov	w9, #10
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x11, [x11, #8]
	add	w9, w9, #1
	cbz	x11, LBB0_6
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x12, [x11]
	cbz	x12, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w12, [x12]
	add	w10, w10, w12
	b	LBB0_2
LBB0_5:
	mov	w10, #0
	mov	w9, #10
LBB0_6:
	ldr	x12, [x8, #8]
	cbz	x12, LBB0_9
; %bb.7:
	mov	w11, #10
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x12, [x12]
	add	w11, w11, #1
	cbnz	x12, LBB0_8
	b	LBB0_10
LBB0_9:
	mov	w11, #10
LBB0_10:
Lloh2:
	adrp	x12, _AAS_MAX_BBOXES@GOTPAGE
Lloh3:
	ldr	x12, [x12, _AAS_MAX_BBOXES@GOTPAGEOFF]
Lloh4:
	adrp	x19, _max_aas@GOTPAGE
Lloh5:
	ldr	x19, [x19, _max_aas@GOTPAGEOFF]
Lloh6:
	ldr	w12, [x12]
	add	w10, w10, #1
Lloh7:
	adrp	x13, _nummapplanes@GOTPAGE
Lloh8:
	ldr	x13, [x13, _nummapplanes@GOTPAGEOFF]
Lloh9:
	ldr	w13, [x13]
	stp	w13, w12, [x19, #72]
	stp	w10, w10, [x19]
	add	w10, w10, w10, lsl #1
	stp	w10, w9, [x19, #8]
	lsl	w9, w9, #1
	stp	w9, w11, [x19, #16]
	str	w11, [x19, #24]
	str	xzr, [x19, #64]
	ldr	w0, [x8]
	bl	_AAS_CountTmpNodes
	add	x8, x0, #10
	stp	xzr, x8, [x19, #48]
	stp	xzr, xzr, [x19, #32]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_tmpaasworld,24,3               ; @tmpaasworld
	.comm	_AAS_MAX_BBOXES,4,2             ; @AAS_MAX_BBOXES
	.comm	_max_aas,80,3                   ; @max_aas
	.comm	_nummapplanes,4,2               ; @nummapplanes
.subsections_via_symbols
