	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_AllocDrawSurf                  ## -- Begin function AllocDrawSurf
	.p2align	4, 0x90
_AllocDrawSurf:                         ## @AllocDrawSurf
	.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	_numMapDrawSurfs@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rcx
	movq	_MAX_MAP_DRAW_SURFS@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rcx
	jb	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	callq	_Error
	movq	(%rbx), %rcx
LBB0_2:
	movq	_mapDrawSurfs@GOTPCREL(%rip), %rdx
	leaq	(,%rcx,4), %rax
	addq	(%rdx), %rax
	incq	%rcx
	movq	%rcx, (%rbx)
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_numMapDrawSurfs,8,3            ## @numMapDrawSurfs
	.comm	_MAX_MAP_DRAW_SURFS,8,3         ## @MAX_MAP_DRAW_SURFS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"MAX_MAP_DRAW_SURFS"

	.comm	_mapDrawSurfs,8,3               ## @mapDrawSurfs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_AllocDrawSurf                  ; -- Begin function AllocDrawSurf
	.p2align	2
_AllocDrawSurf:                         ; @AllocDrawSurf
	.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	x19, _numMapDrawSurfs@GOTPAGE
Lloh1:
	ldr	x19, [x19, _numMapDrawSurfs@GOTPAGEOFF]
	ldr	x8, [x19]
Lloh2:
	adrp	x9, _MAX_MAP_DRAW_SURFS@GOTPAGE
Lloh3:
	ldr	x9, [x9, _MAX_MAP_DRAW_SURFS@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.lo	LBB0_2
; %bb.1:
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	bl	_Error
	ldr	x8, [x19]
LBB0_2:
Lloh7:
	adrp	x9, _mapDrawSurfs@GOTPAGE
Lloh8:
	ldr	x9, [x9, _mapDrawSurfs@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	add	x0, x9, x8, lsl #2
	add	x8, x8, #1
	str	x8, [x19]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_numMapDrawSurfs,8,3            ; @numMapDrawSurfs
	.comm	_MAX_MAP_DRAW_SURFS,8,3         ; @MAX_MAP_DRAW_SURFS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"MAX_MAP_DRAW_SURFS"

	.comm	_mapDrawSurfs,8,3               ; @mapDrawSurfs
.subsections_via_symbols
