	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_T_MoveCeiling                  ## -- Begin function T_MoveCeiling
	.p2align	4, 0x90
_T_MoveCeiling:                         ## @T_MoveCeiling
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movl	(%rdi), %eax
	cmpl	$-1, %eax
	je	LBB0_12
## %bb.1:
	cmpl	$1, %eax
	jne	LBB0_25
## %bb.2:
	movq	16(%rbx), %rdi
	movl	4(%rbx), %esi
	movl	28(%rbx), %edx
	xorl	%ecx, %ecx
	movl	$1, %r8d
	movl	$1, %r9d
	callq	_T_MovePlane
	movl	%eax, %r14d
	movq	_leveltime@GOTPCREL(%rip), %rax
	testb	$7, (%rax)
	jne	LBB0_5
## %bb.3:
	cmpl	$128, 12(%rbx)
	je	LBB0_5
## %bb.4:
	movq	16(%rbx), %rdi
	movq	_sfx_stnmov@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_S_StartSound
LBB0_5:
	movq	_pastdest@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r14d
	jne	LBB0_25
## %bb.6:
	movl	12(%rbx), %eax
	leal	-132(%rax), %ecx
	cmpl	$2, %ecx
	jb	LBB0_11
## %bb.7:
	cmpl	$128, %eax
	je	LBB0_10
## %bb.8:
	cmpl	$129, %eax
	je	LBB0_9
	jmp	LBB0_25
LBB0_12:
	movq	16(%rbx), %rdi
	movl	24(%rbx), %edx
	movl	4(%rbx), %esi
	movl	8(%rbx), %ecx
	movl	$1, %r8d
	movl	$-1, %r9d
	callq	_T_MovePlane
	movl	%eax, %r14d
	movq	_leveltime@GOTPCREL(%rip), %rax
	testb	$7, (%rax)
	jne	LBB0_15
## %bb.13:
	cmpl	$128, 12(%rbx)
	je	LBB0_15
## %bb.14:
	movq	16(%rbx), %rdi
	movq	_sfx_stnmov@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_S_StartSound
LBB0_15:
	movq	_pastdest@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r14d
	jne	LBB0_21
## %bb.16:
	movl	12(%rbx), %eax
	addl	$-128, %eax
	cmpl	$5, %eax
	ja	LBB0_25
## %bb.17:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_9:
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_P_RemoveActiveCeiling          ## TAILCALL
LBB0_21:
	movq	_crushed@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r14d
	jne	LBB0_25
## %bb.22:
	movl	12(%rbx), %eax
	addl	$-128, %eax
	cmpl	$5, %eax
	ja	LBB0_25
## %bb.23:
	movl	$41, %ecx
	btl	%eax, %ecx
	jae	LBB0_25
## %bb.24:
	movq	_CEILSPEED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leal	7(%rax), %ecx
	testl	%eax, %eax
	cmovnsl	%eax, %ecx
	sarl	$3, %ecx
	movl	%ecx, 4(%rbx)
	jmp	LBB0_25
LBB0_10:
	movq	16(%rbx), %rdi
	movq	_sfx_pstop@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_S_StartSound
LBB0_11:
	movl	$-1, (%rbx)
	jmp	LBB0_25
LBB0_18:
	movq	16(%rbx), %rdi
	movq	_sfx_pstop@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_S_StartSound
LBB0_19:
	movq	_CEILSPEED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%rbx)
LBB0_20:
	movl	$1, (%rbx)
LBB0_25:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_18, LBB0_18-LJTI0_0
.set L0_0_set_25, LBB0_25-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_20, LBB0_20-LJTI0_0
.set L0_0_set_19, LBB0_19-LJTI0_0
LJTI0_0:
	.long	L0_0_set_18
	.long	L0_0_set_25
	.long	L0_0_set_9
	.long	L0_0_set_9
	.long	L0_0_set_20
	.long	L0_0_set_19
	.end_data_region
                                        ## -- End function
	.comm	_leveltime,4,2                  ## @leveltime
	.comm	_sfx_stnmov,4,2                 ## @sfx_stnmov
	.comm	_pastdest,4,2                   ## @pastdest
	.comm	_sfx_pstop,4,2                  ## @sfx_pstop
	.comm	_CEILSPEED,4,2                  ## @CEILSPEED
	.comm	_crushed,4,2                    ## @crushed
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_T_MoveCeiling                  ; -- Begin function T_MoveCeiling
	.p2align	2
_T_MoveCeiling:                         ; @T_MoveCeiling
	.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
	mov	x19, x0
	ldr	w8, [x0]
	cmn	w8, #1
	b.eq	LBB0_9
; %bb.1:
	cmp	w8, #1
	b.ne	LBB0_26
; %bb.2:
	ldr	x0, [x19, #16]
	ldr	w1, [x19, #4]
	ldr	w2, [x19, #28]
	mov	w3, #0
	mov	w4, #1
	mov	w5, #1
	bl	_T_MovePlane
	mov	x20, x0
Lloh0:
	adrp	x8, _leveltime@GOTPAGE
Lloh1:
	ldr	x8, [x8, _leveltime@GOTPAGEOFF]
	ldrb	w8, [x8]
	tst	w8, #0x7
	b.ne	LBB0_5
; %bb.3:
	ldr	w8, [x19, #12]
	cmp	w8, #128
	b.eq	LBB0_5
; %bb.4:
	ldr	x0, [x19, #16]
Lloh2:
	adrp	x8, _sfx_stnmov@GOTPAGE
Lloh3:
	ldr	x8, [x8, _sfx_stnmov@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	bl	_S_StartSound
LBB0_5:
Lloh5:
	adrp	x8, _pastdest@GOTPAGE
Lloh6:
	ldr	x8, [x8, _pastdest@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	cmp	w20, w8
	b.ne	LBB0_26
; %bb.6:
	ldr	w8, [x19, #12]
	sub	w9, w8, #132
	cmp	w9, #2
	b.lo	LBB0_21
; %bb.7:
	cmp	w8, #128
	b.eq	LBB0_20
; %bb.8:
	cmp	w8, #129
	b.eq	LBB0_15
	b	LBB0_26
LBB0_9:
	ldr	x0, [x19, #16]
	ldr	w2, [x19, #24]
	ldp	w1, w3, [x19, #4]
	mov	w4, #1
	mov	w5, #-1
	bl	_T_MovePlane
	mov	x20, x0
Lloh8:
	adrp	x8, _leveltime@GOTPAGE
Lloh9:
	ldr	x8, [x8, _leveltime@GOTPAGEOFF]
	ldrb	w8, [x8]
	tst	w8, #0x7
	b.ne	LBB0_12
; %bb.10:
	ldr	w8, [x19, #12]
	cmp	w8, #128
	b.eq	LBB0_12
; %bb.11:
	ldr	x0, [x19, #16]
Lloh10:
	adrp	x8, _sfx_stnmov@GOTPAGE
Lloh11:
	ldr	x8, [x8, _sfx_stnmov@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	bl	_S_StartSound
LBB0_12:
Lloh13:
	adrp	x8, _pastdest@GOTPAGE
Lloh14:
	ldr	x8, [x8, _pastdest@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	cmp	w20, w8
	b.ne	LBB0_16
; %bb.13:
	ldr	w8, [x19, #12]
	sub	w8, w8, #128
	cmp	w8, #5
	b.hi	LBB0_26
; %bb.14:
Lloh16:
	adrp	x9, lJTI0_0@PAGE
Lloh17:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_15
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_15:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_P_RemoveActiveCeiling
LBB0_16:
Lloh18:
	adrp	x8, _crushed@GOTPAGE
Lloh19:
	ldr	x8, [x8, _crushed@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	cmp	w20, w8
	b.ne	LBB0_26
; %bb.17:
	ldr	w8, [x19, #12]
	sub	w8, w8, #128
	cmp	w8, #5
	b.hi	LBB0_26
; %bb.18:
	mov	w9, #1
	lsl	w8, w9, w8
	mov	w9, #41
	tst	w8, w9
	b.eq	LBB0_26
; %bb.19:
Lloh21:
	adrp	x8, _CEILSPEED@GOTPAGE
Lloh22:
	ldr	x8, [x8, _CEILSPEED@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	add	w9, w8, #7
	cmp	w8, #0
	csel	w8, w9, w8, lt
	asr	w8, w8, #3
	str	w8, [x19, #4]
	b	LBB0_26
LBB0_20:
	ldr	x0, [x19, #16]
Lloh24:
	adrp	x8, _sfx_pstop@GOTPAGE
Lloh25:
	ldr	x8, [x8, _sfx_pstop@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
	bl	_S_StartSound
LBB0_21:
	mov	w8, #-1
	b	LBB0_25
LBB0_22:
	ldr	x0, [x19, #16]
Lloh27:
	adrp	x8, _sfx_pstop@GOTPAGE
Lloh28:
	ldr	x8, [x8, _sfx_pstop@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
	bl	_S_StartSound
LBB0_23:
Lloh30:
	adrp	x8, _CEILSPEED@GOTPAGE
Lloh31:
	ldr	x8, [x8, _CEILSPEED@GOTPAGEOFF]
Lloh32:
	ldr	w8, [x8]
	str	w8, [x19, #4]
LBB0_24:
	mov	w8, #1
LBB0_25:
	str	w8, [x19]
LBB0_26:
	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	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_22-LBB0_15)>>2
	.byte	(LBB0_26-LBB0_15)>>2
	.byte	(LBB0_15-LBB0_15)>>2
	.byte	(LBB0_15-LBB0_15)>>2
	.byte	(LBB0_24-LBB0_15)>>2
	.byte	(LBB0_23-LBB0_15)>>2
                                        ; -- End function
	.comm	_leveltime,4,2                  ; @leveltime
	.comm	_sfx_stnmov,4,2                 ; @sfx_stnmov
	.comm	_pastdest,4,2                   ; @pastdest
	.comm	_sfx_pstop,4,2                  ; @sfx_pstop
	.comm	_CEILSPEED,4,2                  ; @CEILSPEED
	.comm	_crushed,4,2                    ; @crushed
.subsections_via_symbols
