	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_P_AddActiveCeiling             ## -- Begin function P_AddActiveCeiling
	.p2align	4, 0x90
_P_AddActiveCeiling:                    ## @P_AddActiveCeiling
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_MAXCEILINGS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	jle	LBB0_5
## %bb.1:
	movq	_activeceilings@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	$0, (%rcx,%rdx,8)
	je	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	incq	%rdx
	cmpq	%rdx, %rax
	jne	LBB0_2
LBB0_5:
	popq	%rbp
	retq
LBB0_3:
	movq	%rdi, (%rcx,%rdx,8)
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAXCEILINGS,4,2                ## @MAXCEILINGS
	.comm	_activeceilings,8,3             ## @activeceilings
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_P_AddActiveCeiling             ; -- Begin function P_AddActiveCeiling
	.p2align	2
_P_AddActiveCeiling:                    ; @P_AddActiveCeiling
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _MAXCEILINGS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MAXCEILINGS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, #1
	b.lt	LBB0_4
; %bb.1:
Lloh3:
	adrp	x9, _activeceilings@GOTPAGE
Lloh4:
	ldr	x9, [x9, _activeceilings@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x9]
	cbz	x10, LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x9, x9, #8
	subs	x8, x8, #1
	b.ne	LBB0_2
LBB0_4:
	ret
LBB0_5:
	str	x0, [x9]
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_MAXCEILINGS,4,2                ; @MAXCEILINGS
	.comm	_activeceilings,8,3             ; @activeceilings
.subsections_via_symbols
