	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_EV_DoPlat                      ## -- Begin function EV_DoPlat
	.p2align	4, 0x90
_EV_DoPlat:                             ## @EV_DoPlat
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r12d
	movl	%esi, %r14d
	movq	%rdi, %r15
	cmpl	$130, %esi
	jne	LBB0_2
## %bb.1:
	movl	8(%r15), %edi
	callq	_P_ActivateInStasis
LBB0_2:
	movl	$-1, %ebx
	movq	%r14, -80(%rbp)                 ## 8-byte Spill
	leal	-128(%r14), %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movslq	%r12d, %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_P_FindSectorFromLineTag
	testl	%eax, %eax
	js	LBB0_16
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	%eax, %ebx
	movq	_sectors@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	movl	%ebx, %r14d
	movq	%r14, %rax
	shlq	$5, %rax
	cmpq	$0, 24(%r12,%rax)
	jne	LBB0_3
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	addq	%r12, %rax
	addq	$24, %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	shlq	$5, %r14
	leaq	(%r12,%r14), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	_PU_LEVSPEC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$64, %edi
	xorl	%edx, %edx
	callq	_Z_Malloc
	movq	%rax, %r13
	leaq	48(%rax), %rdi
	callq	_P_AddThinker
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movl	%eax, (%r13)
	movq	%rdi, 56(%r13)
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	%r13, (%rax)
	movq	_T_PlatRaise@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 48(%r13)
	movl	$0, 4(%r13)
	movl	8(%r15), %eax
	movl	%eax, 40(%r13)
	cmpl	$4, -56(%rbp)                   ## 4-byte Folded Reload
	ja	LBB0_15
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	_PLATSPEED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, %ecx
	shrl	$31, %ecx
	addl	%eax, %ecx
	sarl	%ecx
	movl	%ecx, 8(%r13)
	movq	_sides@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%r15), %rcx
	movq	(%rcx), %rcx
	movq	(%rax,%rcx,8), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r12,%r14)
	movq	8(%r12,%r14), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_P_FindNextHighestFloor
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%rax, 24(%r13)
	movl	$0, 12(%r13)
	movq	_up@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r13)
	movl	$0, 20(%r12,%r14)
	movq	_sfx_stnmov@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	_PLATSPEED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, %ecx
	shrl	$31, %ecx
	addl	%eax, %ecx
	sarl	%ecx
	movl	%ecx, 8(%r13)
	movq	_sides@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%r15), %rcx
	movq	(%rcx), %rcx
	movq	(%rax,%rcx,8), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r12,%r14)
	movq	_FRACUNIT@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	imulq	-64(%rbp), %rax                 ## 8-byte Folded Reload
	addq	8(%r12,%r14), %rax
	movq	%rax, 24(%r13)
	movl	$0, 12(%r13)
	movq	_up@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r13)
	movq	_sfx_stnmov@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_12:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	_PLATSPEED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r13)
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_P_FindLowestFloorSurrounding
	movq	8(%r12,%r14), %rcx
	cmpq	%rcx, %rax
	cmovaq	%rcx, %rax
	movq	%rax, 32(%r13)
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_P_FindHighestFloorSurrounding
	movq	8(%r12,%r14), %rcx
	cmpq	%rcx, %rax
	cmovbq	%rcx, %rax
	movq	%rax, 24(%r13)
	movq	_PLATWAIT@GOTPCREL(%rip), %rax
	imull	$35, (%rax), %eax
	movl	%eax, 12(%r13)
	xorl	%eax, %eax
	callq	_P_Random
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	andl	$1, %eax
	jmp	LBB0_13
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	_PLATSPEED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shll	$2, %eax
	jmp	LBB0_10
LBB0_11:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	_PLATSPEED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shll	$3, %eax
LBB0_10:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	%eax, 8(%r13)
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_P_FindLowestFloorSurrounding
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	8(%r12,%r14), %rcx
	cmpq	%rcx, %rax
	cmovaq	%rcx, %rax
	movq	%rax, 32(%r13)
	movq	8(%r12,%r14), %rax
	movq	%rax, 24(%r13)
	movq	_PLATWAIT@GOTPCREL(%rip), %rax
	imull	$35, (%rax), %eax
	movl	%eax, 12(%r13)
	movq	_down@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_13:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	%eax, 16(%r13)
	movq	_sfx_pstart@GOTPCREL(%rip), %rax
LBB0_14:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	(%rax), %esi
	callq	_S_StartSound
LBB0_15:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	%r13, %rdi
	callq	_P_AddActivePlat
	movl	$1, %r13d
	jmp	LBB0_3
LBB0_16:
	movl	%r13d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
LJTI0_0:
	.long	L0_0_set_7
	.long	L0_0_set_8
	.long	L0_0_set_12
	.long	L0_0_set_9
	.long	L0_0_set_11
	.end_data_region
                                        ## -- End function
	.comm	_sectors,8,3                    ## @sectors
	.comm	_PU_LEVSPEC,4,2                 ## @PU_LEVSPEC
	.comm	_T_PlatRaise,8,3                ## @T_PlatRaise
	.comm	_PLATSPEED,4,2                  ## @PLATSPEED
	.comm	_sides,8,3                      ## @sides
	.comm	_up,8,3                         ## @up
	.comm	_sfx_stnmov,4,2                 ## @sfx_stnmov
	.comm	_FRACUNIT,4,2                   ## @FRACUNIT
	.comm	_PLATWAIT,4,2                   ## @PLATWAIT
	.comm	_down,8,3                       ## @down
	.comm	_sfx_pstart,4,2                 ## @sfx_pstart
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_EV_DoPlat                      ; -- Begin function EV_DoPlat
	.p2align	2
_EV_DoPlat:                             ; @EV_DoPlat
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x23, x2
	mov	x19, x1
	mov	x20, x0
	cmp	w1, #130
	b.ne	LBB0_2
; %bb.1:
	ldr	w0, [x20, #8]
	bl	_P_ActivateInStasis
LBB0_2:
	mov	w22, #0
Lloh0:
	adrp	x24, _sectors@GOTPAGE
Lloh1:
	ldr	x24, [x24, _sectors@GOTPAGEOFF]
	mov	w21, #-1
	sub	w27, w19, #128
	sxtw	x8, w23
	str	x8, [sp, #8]                    ; 8-byte Folded Spill
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	x1, x21
	bl	_P_FindSectorFromLineTag
	tbnz	w0, #31, LBB0_17
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x21, x0
	ldr	x25, [x24]
	mov	w26, w0
	add	x28, x25, x26, lsl #5
	ldr	x8, [x28, #24]!
	cbnz	x8, LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x22, x25, x26, lsl #5
Lloh2:
	adrp	x8, _PU_LEVSPEC@GOTPAGE
Lloh3:
	ldr	x8, [x8, _PU_LEVSPEC@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	w0, #64
	mov	w2, #0
	bl	_Z_Malloc
	mov	x23, x0
	add	x0, x0, #48
	bl	_P_AddThinker
	str	x23, [x28]
Lloh5:
	adrp	x8, _T_PlatRaise@GOTPAGE
Lloh6:
	ldr	x8, [x8, _T_PlatRaise@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	stp	x8, x22, [x23, #48]
	stp	w19, wzr, [x23]
	ldr	w8, [x20, #8]
	str	w8, [x23, #40]
	cmp	w27, #4
	b.hi	LBB0_16
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
Lloh8:
	adrp	x10, lJTI0_0@PAGE
Lloh9:
	add	x10, x10, lJTI0_0@PAGEOFF
	adr	x8, LBB0_7
	ldrb	w9, [x10, x27]
	add	x8, x8, x9, lsl #2
	br	x8
LBB0_7:                                 ;   in Loop: Header=BB0_3 Depth=1
Lloh10:
	adrp	x8, _PLATSPEED@GOTPAGE
Lloh11:
	ldr	x8, [x8, _PLATSPEED@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	cmp	w8, #0
	cinc	w8, w8, lt
	asr	w8, w8, #1
	str	w8, [x23, #8]
Lloh13:
	adrp	x8, _sides@GOTPAGE
Lloh14:
	ldr	x8, [x8, _sides@GOTPAGEOFF]
Lloh15:
	ldr	x8, [x8]
	ldr	x9, [x20]
	ldr	x9, [x9]
	ldr	x8, [x8, x9, lsl #3]
	ldr	w8, [x8]
	add	x25, x25, x26, lsl #5
	str	w8, [x25, #16]
	ldr	x1, [x25, #8]
	mov	x0, x22
	bl	_P_FindNextHighestFloor
	str	x0, [x23, #24]
Lloh16:
	adrp	x8, _up@GOTPAGE
Lloh17:
	ldr	x8, [x8, _up@GOTPAGEOFF]
Lloh18:
	ldr	x8, [x8]
	stp	wzr, w8, [x23, #12]
	str	wzr, [x25, #20]
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_3 Depth=1
Lloh19:
	adrp	x8, _sides@GOTPAGE
Lloh20:
	ldr	x8, [x8, _sides@GOTPAGEOFF]
Lloh21:
	ldr	x8, [x8]
	ldr	x9, [x20]
	ldr	x9, [x9]
	ldr	x8, [x8, x9, lsl #3]
Lloh22:
	adrp	x9, _PLATSPEED@GOTPAGE
Lloh23:
	ldr	x9, [x9, _PLATSPEED@GOTPAGEOFF]
Lloh24:
	ldr	w9, [x9]
	cmp	w9, #0
	cinc	w9, w9, lt
	asr	w9, w9, #1
	ldr	w8, [x8]
	add	x10, x25, x26, lsl #5
	str	w8, [x10, #16]
	ldr	x8, [x10, #8]
Lloh25:
	adrp	x10, _FRACUNIT@GOTPAGE
Lloh26:
	ldr	x10, [x10, _FRACUNIT@GOTPAGEOFF]
Lloh27:
	ldrsw	x10, [x10]
	ldr	x11, [sp, #8]                   ; 8-byte Folded Reload
	madd	x8, x10, x11, x8
	str	x8, [x23, #24]
	stp	w9, wzr, [x23, #8]
Lloh28:
	adrp	x8, _up@GOTPAGE
Lloh29:
	ldr	x8, [x8, _up@GOTPAGEOFF]
Lloh30:
	ldr	x8, [x8]
	str	w8, [x23, #16]
LBB0_9:                                 ;   in Loop: Header=BB0_3 Depth=1
Lloh31:
	adrp	x8, _sfx_stnmov@GOTPAGE
Lloh32:
	ldr	x8, [x8, _sfx_stnmov@GOTPAGEOFF]
	b	LBB0_15
LBB0_10:                                ;   in Loop: Header=BB0_3 Depth=1
Lloh33:
	adrp	x8, _PLATSPEED@GOTPAGE
Lloh34:
	ldr	x8, [x8, _PLATSPEED@GOTPAGEOFF]
Lloh35:
	ldr	w8, [x8]
	str	w8, [x23, #8]
	mov	x0, x22
	bl	_P_FindLowestFloorSurrounding
	add	x25, x25, x26, lsl #5
	ldr	x8, [x25, #8]
	cmp	x0, x8
	csel	x8, x8, x0, hi
	str	x8, [x23, #32]
	mov	x0, x22
	bl	_P_FindHighestFloorSurrounding
	ldr	x8, [x25, #8]
	cmp	x0, x8
	csel	x8, x8, x0, lo
	str	x8, [x23, #24]
Lloh36:
	adrp	x8, _PLATWAIT@GOTPAGE
Lloh37:
	ldr	x8, [x8, _PLATWAIT@GOTPAGEOFF]
Lloh38:
	ldr	w8, [x8]
	mov	w9, #35
	mul	w8, w8, w9
	str	w8, [x23, #12]
	bl	_P_Random
	and	w8, w0, #0x1
	str	w8, [x23, #16]
	b	LBB0_14
LBB0_11:                                ;   in Loop: Header=BB0_3 Depth=1
Lloh39:
	adrp	x8, _PLATSPEED@GOTPAGE
Lloh40:
	ldr	x8, [x8, _PLATSPEED@GOTPAGEOFF]
Lloh41:
	ldr	w8, [x8]
	lsl	w8, w8, #2
	b	LBB0_13
LBB0_12:                                ;   in Loop: Header=BB0_3 Depth=1
Lloh42:
	adrp	x8, _PLATSPEED@GOTPAGE
Lloh43:
	ldr	x8, [x8, _PLATSPEED@GOTPAGEOFF]
Lloh44:
	ldr	w8, [x8]
	lsl	w8, w8, #3
LBB0_13:                                ;   in Loop: Header=BB0_3 Depth=1
	str	w8, [x23, #8]
	mov	x0, x22
	bl	_P_FindLowestFloorSurrounding
	add	x8, x25, x26, lsl #5
	ldr	x9, [x8, #8]
	cmp	x0, x9
	csel	x9, x9, x0, hi
	str	x9, [x23, #32]
	ldr	x8, [x8, #8]
	str	x8, [x23, #24]
Lloh45:
	adrp	x8, _PLATWAIT@GOTPAGE
Lloh46:
	ldr	x8, [x8, _PLATWAIT@GOTPAGEOFF]
Lloh47:
	ldr	w8, [x8]
	mov	w9, #35
	mul	w8, w8, w9
Lloh48:
	adrp	x9, _down@GOTPAGE
Lloh49:
	ldr	x9, [x9, _down@GOTPAGEOFF]
Lloh50:
	ldr	x9, [x9]
	stp	w8, w9, [x23, #12]
LBB0_14:                                ;   in Loop: Header=BB0_3 Depth=1
Lloh51:
	adrp	x8, _sfx_pstart@GOTPAGE
Lloh52:
	ldr	x8, [x8, _sfx_pstart@GOTPAGEOFF]
LBB0_15:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w1, [x8]
	mov	x0, x22
	bl	_S_StartSound
LBB0_16:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x23
	bl	_P_AddActivePlat
	mov	w22, #1
	b	LBB0_3
LBB0_17:
	mov	x0, x22
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGot	Lloh51, Lloh52
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_7-LBB0_7)>>2
	.byte	(LBB0_8-LBB0_7)>>2
	.byte	(LBB0_10-LBB0_7)>>2
	.byte	(LBB0_11-LBB0_7)>>2
	.byte	(LBB0_12-LBB0_7)>>2
                                        ; -- End function
	.comm	_sectors,8,3                    ; @sectors
	.comm	_PU_LEVSPEC,4,2                 ; @PU_LEVSPEC
	.comm	_T_PlatRaise,8,3                ; @T_PlatRaise
	.comm	_PLATSPEED,4,2                  ; @PLATSPEED
	.comm	_sides,8,3                      ; @sides
	.comm	_up,8,3                         ; @up
	.comm	_sfx_stnmov,4,2                 ; @sfx_stnmov
	.comm	_FRACUNIT,4,2                   ; @FRACUNIT
	.comm	_PLATWAIT,4,2                   ; @PLATWAIT
	.comm	_down,8,3                       ; @down
	.comm	_sfx_pstart,4,2                 ; @sfx_pstart
.subsections_via_symbols
