	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ASE_GetCurrentMesh
_ASE_GetCurrentMesh:                    ## @ASE_GetCurrentMesh
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_ase@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	_MAX_ASE_OBJECTS@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jae	LBB0_1
## %bb.3:
	movq	8(%rax), %rdx
	shlq	$4, %rcx
	movq	(%rdx,%rcx), %rax
	movq	_MAX_ASE_ANIMATION_FRAMES@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rax
	jae	LBB0_4
## %bb.5:
	shlq	$2, %rax
	addq	8(%rdx,%rcx), %rax
	popq	%rbp
	retq
LBB0_1:
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_2
LBB0_4:
	leaq	L_.str.1(%rip), %rdi
LBB0_2:
	callq	_Error
	xorl	%eax, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ase,16,3                       ## @ase
	.comm	_MAX_ASE_OBJECTS,8,3            ## @MAX_ASE_OBJECTS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Too many GEOMOBJECTs"

	.comm	_MAX_ASE_ANIMATION_FRAMES,8,3   ## @MAX_ASE_ANIMATION_FRAMES
L_.str.1:                               ## @.str.1
	.asciz	"Too many MESHes"

	.no_dead_strip	_ASE_GetCurrentMesh
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ASE_GetCurrentMesh
_ASE_GetCurrentMesh:                    ; @ASE_GetCurrentMesh
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
Lloh0:
	adrp	x9, _ase@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ase@GOTPAGEOFF]
	ldr	x8, [x9]
Lloh2:
	adrp	x10, _MAX_ASE_OBJECTS@GOTPAGE
Lloh3:
	ldr	x10, [x10, _MAX_ASE_OBJECTS@GOTPAGEOFF]
Lloh4:
	ldr	x10, [x10]
	cmp	x8, x10
	b.hs	LBB0_3
; %bb.1:
	ldr	x9, [x9, #8]
	lsl	x10, x8, #4
	ldr	x10, [x9, x10]
Lloh5:
	adrp	x11, _MAX_ASE_ANIMATION_FRAMES@GOTPAGE
Lloh6:
	ldr	x11, [x11, _MAX_ASE_ANIMATION_FRAMES@GOTPAGEOFF]
Lloh7:
	ldr	x11, [x11]
	cmp	x10, x11
	b.hs	LBB0_4
; %bb.2:
	add	x8, x9, x8, lsl #4
	ldr	x8, [x8, #8]
	add	x0, x8, x10, lsl #2
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_3:
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_5
LBB0_4:
Lloh10:
	adrp	x0, l_.str.1@PAGE
Lloh11:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_5:
	bl	_Error
	mov	x0, #0
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_ase,16,3                       ; @ase
	.comm	_MAX_ASE_OBJECTS,8,3            ; @MAX_ASE_OBJECTS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Too many GEOMOBJECTs"

	.comm	_MAX_ASE_ANIMATION_FRAMES,8,3   ; @MAX_ASE_ANIMATION_FRAMES
l_.str.1:                               ; @.str.1
	.asciz	"Too many MESHes"

	.no_dead_strip	_ASE_GetCurrentMesh
.subsections_via_symbols
