	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_EV_VerticalDoor                ## -- Begin function EV_VerticalDoor
	.p2align	4, 0x90
_EV_VerticalDoor:                       ## @EV_VerticalDoor
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	(%rsi), %rax
	movl	(%rdi), %ecx
	cmpq	$34, %rcx
	ja	LBB0_15
## %bb.1:
	movabsq	$4362076160, %rdx               ## imm = 0x104000000
	btq	%rcx, %rdx
	jb	LBB0_8
## %bb.2:
	movabsq	$8858370048, %rdx               ## imm = 0x210000000
	btq	%rcx, %rdx
	jb	LBB0_12
## %bb.3:
	movabsq	$17314086912, %rdx              ## imm = 0x408000000
	btq	%rcx, %rdx
	jae	LBB0_15
## %bb.4:
	testq	%rax, %rax
	je	LBB0_38
## %bb.5:
	movq	8(%rax), %rdx
	movq	_it_yellowcard@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rsi
	cmpl	$0, (%rdx,%rsi,4)
	jne	LBB0_15
## %bb.6:
	movq	_it_yellowskull@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rsi
	cmpl	$0, (%rdx,%rsi,4)
	jne	LBB0_15
## %bb.7:
	movq	_PD_YELLOWK@GOTPCREL(%rip), %rcx
	jmp	LBB0_44
LBB0_8:
	testq	%rax, %rax
	je	LBB0_38
## %bb.9:
	movq	8(%rax), %rdx
	movq	_it_bluecard@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rsi
	cmpl	$0, (%rdx,%rsi,4)
	jne	LBB0_15
## %bb.10:
	movq	_it_blueskull@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rsi
	cmpl	$0, (%rdx,%rsi,4)
	jne	LBB0_15
## %bb.11:
	movq	_PD_BLUEK@GOTPCREL(%rip), %rcx
	jmp	LBB0_44
LBB0_12:
	testq	%rax, %rax
	je	LBB0_38
## %bb.13:
	movq	8(%rax), %rdx
	movq	_it_redcard@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rsi
	cmpl	$0, (%rdx,%rsi,4)
	jne	LBB0_15
## %bb.14:
	movq	_it_redskull@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rsi
	cmpl	$0, (%rdx,%rsi,4)
	je	LBB0_43
LBB0_15:
	movq	_sides@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	8(%r14), %rsi
	movq	8(%rsi), %rsi
	movq	(%rdx,%rsi,8), %r15
	movq	(%r15), %rdx
	testq	%rdx, %rdx
	je	LBB0_19
## %bb.16:
	cmpl	$30, %ecx
	jg	LBB0_22
## %bb.17:
	leal	-26(%rcx), %esi
	cmpl	$3, %esi
	jb	LBB0_25
## %bb.18:
	cmpl	$1, %ecx
	je	LBB0_25
	jmp	LBB0_28
LBB0_19:
	leal	-117(%rcx), %eax
	cmpl	$2, %eax
	jb	LBB0_31
## %bb.20:
	cmpl	$31, %ecx
	je	LBB0_28
## %bb.21:
	cmpl	$1, %ecx
	jmp	LBB0_28
LBB0_22:
	cmpl	$31, %ecx
	je	LBB0_28
## %bb.23:
	cmpl	$118, %ecx
	je	LBB0_31
## %bb.24:
	cmpl	$117, %ecx
	jne	LBB0_28
LBB0_25:
	cmpl	$-1, (%rdx)
	je	LBB0_30
## %bb.26:
	movl	$-1, %ecx
	testq	%rax, %rax
	je	LBB0_38
## %bb.27:
	movl	%ecx, (%rdx)
	jmp	LBB0_38
LBB0_28:
	movq	_sfx_doropn@GOTPCREL(%rip), %rax
	jmp	LBB0_32
LBB0_31:
	movq	_sfx_bdopn@GOTPCREL(%rip), %rax
LBB0_32:
	leaq	8(%r15), %rdi
	movl	(%rax), %esi
	callq	_S_StartSound
	movq	_PU_LEVSPEC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$40, %edi
	xorl	%edx, %edx
	callq	_Z_Malloc
	movq	%rax, %rbx
	leaq	32(%rax), %rdi
	callq	_P_AddThinker
	movq	%rbx, (%r15)
	movq	_T_VerticalDoor@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 32(%rbx)
	movq	%r15, 24(%rbx)
	movl	$1, (%rbx)
	movq	_VDOORSPEED@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%ecx, 4(%rbx)
	movq	_VDOORWAIT@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movl	%edx, 16(%rbx)
	movl	(%r14), %edx
	cmpq	$34, %rdx
	ja	LBB0_39
## %bb.33:
	movl	$469762050, %esi                ## imm = 0x1C000002
	btq	%rdx, %rsi
	jb	LBB0_36
## %bb.34:
	movabsq	$32212254720, %rsi              ## imm = 0x780000000
	btq	%rdx, %rsi
	jae	LBB0_39
## %bb.35:
	movq	_open@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%rbx)
	movl	$0, (%r14)
	jmp	LBB0_37
LBB0_36:
	movq	_normal@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%rbx)
LBB0_37:
	movq	%r15, %rdi
	callq	_P_FindLowestCeilingSurrounding
	movq	_FRACUNIT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	shll	$2, %ecx
	subl	%ecx, %eax
	movl	%eax, 8(%rbx)
LBB0_38:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_39:
	cmpl	$117, %edx
	je	LBB0_42
## %bb.40:
	cmpl	$118, %edx
	jne	LBB0_37
## %bb.41:
	movq	_blazeOpen@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 12(%rbx)
	movl	$0, (%r14)
	movl	(%rax), %eax
	shll	$2, %eax
	movl	%eax, 4(%rbx)
	jmp	LBB0_37
LBB0_30:
	movl	$1, %ecx
	movl	%ecx, (%rdx)
	jmp	LBB0_38
LBB0_42:
	movq	_blazeRaise@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%rbx)
	shll	$2, %ecx
	movl	%ecx, 4(%rbx)
	jmp	LBB0_37
LBB0_43:
	movq	_PD_REDK@GOTPCREL(%rip), %rcx
LBB0_44:
	movl	(%rcx), %ecx
	movl	%ecx, (%rax)
	movq	_sfx_oof@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edi, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_S_StartSound                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_it_bluecard,8,3                ## @it_bluecard
	.comm	_it_blueskull,8,3               ## @it_blueskull
	.comm	_PD_BLUEK,4,2                   ## @PD_BLUEK
	.comm	_sfx_oof,4,2                    ## @sfx_oof
	.comm	_it_yellowcard,8,3              ## @it_yellowcard
	.comm	_it_yellowskull,8,3             ## @it_yellowskull
	.comm	_PD_YELLOWK,4,2                 ## @PD_YELLOWK
	.comm	_it_redcard,8,3                 ## @it_redcard
	.comm	_it_redskull,8,3                ## @it_redskull
	.comm	_PD_REDK,4,2                    ## @PD_REDK
	.comm	_sides,8,3                      ## @sides
	.comm	_sectors,8,3                    ## @sectors
	.comm	_sfx_bdopn,4,2                  ## @sfx_bdopn
	.comm	_sfx_doropn,4,2                 ## @sfx_doropn
	.comm	_PU_LEVSPEC,4,2                 ## @PU_LEVSPEC
	.comm	_T_VerticalDoor,8,3             ## @T_VerticalDoor
	.comm	_VDOORSPEED,4,2                 ## @VDOORSPEED
	.comm	_VDOORWAIT,4,2                  ## @VDOORWAIT
	.comm	_normal,4,2                     ## @normal
	.comm	_open,4,2                       ## @open
	.comm	_blazeRaise,4,2                 ## @blazeRaise
	.comm	_blazeOpen,4,2                  ## @blazeOpen
	.comm	_FRACUNIT,4,2                   ## @FRACUNIT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_EV_VerticalDoor                ; -- Begin function EV_VerticalDoor
	.p2align	2
_EV_VerticalDoor:                       ; @EV_VerticalDoor
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
	ldr	x8, [x1]
	ldr	w9, [x0]
	cmp	w9, #34
	b.hi	LBB0_15
; %bb.1:
	mov	w10, #1
	lsl	x10, x10, x9
	mov	x11, #67108864
	movk	x11, #1, lsl #32
	tst	x10, x11
	b.ne	LBB0_8
; %bb.2:
	mov	w10, #1
	lsl	x10, x10, x9
	mov	x11, #268435456
	movk	x11, #2, lsl #32
	tst	x10, x11
	b.ne	LBB0_12
; %bb.3:
	mov	w10, #1
	lsl	x10, x10, x9
	mov	x11, #134217728
	movk	x11, #4, lsl #32
	tst	x10, x11
	b.eq	LBB0_15
; %bb.4:
	cbz	x8, LBB0_40
; %bb.5:
	ldr	x10, [x8, #8]
Lloh0:
	adrp	x11, _it_yellowcard@GOTPAGE
Lloh1:
	ldr	x11, [x11, _it_yellowcard@GOTPAGEOFF]
Lloh2:
	ldr	x11, [x11]
	ldr	w11, [x10, x11, lsl #2]
	cbnz	w11, LBB0_15
; %bb.6:
Lloh3:
	adrp	x11, _it_yellowskull@GOTPAGE
Lloh4:
	ldr	x11, [x11, _it_yellowskull@GOTPAGEOFF]
Lloh5:
	ldr	x11, [x11]
	ldr	w10, [x10, x11, lsl #2]
	cbnz	w10, LBB0_15
; %bb.7:
Lloh6:
	adrp	x9, _PD_YELLOWK@GOTPAGE
Lloh7:
	ldr	x9, [x9, _PD_YELLOWK@GOTPAGEOFF]
	b	LBB0_42
LBB0_8:
	cbz	x8, LBB0_40
; %bb.9:
	ldr	x10, [x8, #8]
Lloh8:
	adrp	x11, _it_bluecard@GOTPAGE
Lloh9:
	ldr	x11, [x11, _it_bluecard@GOTPAGEOFF]
Lloh10:
	ldr	x11, [x11]
	ldr	w11, [x10, x11, lsl #2]
	cbnz	w11, LBB0_15
; %bb.10:
Lloh11:
	adrp	x11, _it_blueskull@GOTPAGE
Lloh12:
	ldr	x11, [x11, _it_blueskull@GOTPAGEOFF]
Lloh13:
	ldr	x11, [x11]
	ldr	w10, [x10, x11, lsl #2]
	cbnz	w10, LBB0_15
; %bb.11:
Lloh14:
	adrp	x9, _PD_BLUEK@GOTPAGE
Lloh15:
	ldr	x9, [x9, _PD_BLUEK@GOTPAGEOFF]
	b	LBB0_42
LBB0_12:
	cbz	x8, LBB0_40
; %bb.13:
	ldr	x10, [x8, #8]
Lloh16:
	adrp	x11, _it_redcard@GOTPAGE
Lloh17:
	ldr	x11, [x11, _it_redcard@GOTPAGEOFF]
Lloh18:
	ldr	x11, [x11]
	ldr	w11, [x10, x11, lsl #2]
	cbnz	w11, LBB0_15
; %bb.14:
Lloh19:
	adrp	x11, _it_redskull@GOTPAGE
Lloh20:
	ldr	x11, [x11, _it_redskull@GOTPAGEOFF]
Lloh21:
	ldr	x11, [x11]
	ldr	w10, [x10, x11, lsl #2]
	cbz	w10, LBB0_41
LBB0_15:
Lloh22:
	adrp	x10, _sides@GOTPAGE
Lloh23:
	ldr	x10, [x10, _sides@GOTPAGEOFF]
Lloh24:
	ldr	x10, [x10]
	ldr	x11, [x19, #8]
	ldr	x11, [x11, #8]
	ldr	x20, [x10, x11, lsl #3]
	ldr	x10, [x20]
	cbz	x10, LBB0_18
; %bb.16:
	cmp	w9, #30
	b.gt	LBB0_20
; %bb.17:
	sub	w11, w9, #26
	cmp	w11, #3
	ccmp	w9, #1, #4, hs
	b.eq	LBB0_23
	b	LBB0_26
LBB0_18:
	sub	w8, w9, #117
	cmp	w8, #2
	b.lo	LBB0_27
; %bb.19:
	cmp	w9, #31
	ccmp	w9, #1, #4, ne
	b	LBB0_26
LBB0_20:
	cmp	w9, #31
	b.eq	LBB0_26
; %bb.21:
	cmp	w9, #118
	b.eq	LBB0_27
; %bb.22:
	cmp	w9, #117
	b.ne	LBB0_26
LBB0_23:
	ldr	w9, [x10]
	cmn	w9, #1
	b.eq	LBB0_36
; %bb.24:
	cbz	x8, LBB0_40
; %bb.25:
	mov	w8, #-1
	str	w8, [x10]
	b	LBB0_40
LBB0_26:
Lloh25:
	adrp	x8, _sfx_doropn@GOTPAGE
Lloh26:
	ldr	x8, [x8, _sfx_doropn@GOTPAGEOFF]
	b	LBB0_28
LBB0_27:
Lloh27:
	adrp	x8, _sfx_bdopn@GOTPAGE
Lloh28:
	ldr	x8, [x8, _sfx_bdopn@GOTPAGEOFF]
LBB0_28:
	add	x0, x20, #8
	ldr	w1, [x8]
	bl	_S_StartSound
Lloh29:
	adrp	x8, _PU_LEVSPEC@GOTPAGE
Lloh30:
	ldr	x8, [x8, _PU_LEVSPEC@GOTPAGEOFF]
Lloh31:
	ldr	w1, [x8]
	mov	w0, #40
	mov	w2, #0
	bl	_Z_Malloc
	mov	x21, x0
	add	x0, x0, #32
	bl	_P_AddThinker
	str	x21, [x20]
Lloh32:
	adrp	x8, _T_VerticalDoor@GOTPAGE
Lloh33:
	ldr	x8, [x8, _T_VerticalDoor@GOTPAGEOFF]
Lloh34:
	ldr	x8, [x8]
	stp	x20, x8, [x21, #24]
	mov	w8, #1
	str	w8, [x21]
Lloh35:
	adrp	x8, _VDOORSPEED@GOTPAGE
Lloh36:
	ldr	x8, [x8, _VDOORSPEED@GOTPAGEOFF]
	ldr	w9, [x8]
	str	w9, [x21, #4]
Lloh37:
	adrp	x10, _VDOORWAIT@GOTPAGE
Lloh38:
	ldr	x10, [x10, _VDOORWAIT@GOTPAGEOFF]
Lloh39:
	ldr	w10, [x10]
	str	w10, [x21, #16]
	ldr	w10, [x19]
	cmp	w10, #34
	b.hi	LBB0_33
; %bb.29:
	mov	w11, #1
	lsl	x11, x11, x10
	mov	w12, #2
	movk	w12, #7168, lsl #16
	tst	x11, x12
	b.ne	LBB0_32
; %bb.30:
	mov	w11, #1
	lsl	x11, x11, x10
	tst	x11, #0x780000000
	b.eq	LBB0_33
; %bb.31:
Lloh40:
	adrp	x8, _open@GOTPAGE
Lloh41:
	ldr	x8, [x8, _open@GOTPAGEOFF]
Lloh42:
	ldr	w8, [x8]
	str	w8, [x21, #12]
	str	wzr, [x19]
	b	LBB0_39
LBB0_32:
Lloh43:
	adrp	x8, _normal@GOTPAGE
Lloh44:
	ldr	x8, [x8, _normal@GOTPAGEOFF]
Lloh45:
	ldr	w8, [x8]
	str	w8, [x21, #12]
	b	LBB0_39
LBB0_33:
	cmp	w10, #117
	b.eq	LBB0_37
; %bb.34:
	cmp	w10, #118
	b.ne	LBB0_39
; %bb.35:
Lloh46:
	adrp	x9, _blazeOpen@GOTPAGE
Lloh47:
	ldr	x9, [x9, _blazeOpen@GOTPAGEOFF]
Lloh48:
	ldr	w9, [x9]
	str	w9, [x21, #12]
	str	wzr, [x19]
	ldr	w8, [x8]
	lsl	w8, w8, #2
	b	LBB0_38
LBB0_36:
	mov	w8, #1
	str	w8, [x10]
	b	LBB0_40
LBB0_37:
Lloh49:
	adrp	x8, _blazeRaise@GOTPAGE
Lloh50:
	ldr	x8, [x8, _blazeRaise@GOTPAGEOFF]
Lloh51:
	ldr	w8, [x8]
	str	w8, [x21, #12]
	lsl	w8, w9, #2
LBB0_38:
	str	w8, [x21, #4]
LBB0_39:
	mov	x0, x20
	bl	_P_FindLowestCeilingSurrounding
Lloh52:
	adrp	x8, _FRACUNIT@GOTPAGE
Lloh53:
	ldr	x8, [x8, _FRACUNIT@GOTPAGEOFF]
Lloh54:
	ldr	w8, [x8]
	sub	w8, w0, w8, lsl #2
	str	w8, [x21, #8]
LBB0_40:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_41:
Lloh55:
	adrp	x9, _PD_REDK@GOTPAGE
Lloh56:
	ldr	x9, [x9, _PD_REDK@GOTPAGEOFF]
LBB0_42:
	ldr	w9, [x9]
	str	w9, [x8]
Lloh57:
	adrp	x8, _sfx_oof@GOTPAGE
Lloh58:
	ldr	x8, [x8, _sfx_oof@GOTPAGEOFF]
Lloh59:
	ldr	w1, [x8]
	mov	x0, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_S_StartSound
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGot	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpLdrGot	Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh57, Lloh58, Lloh59
	.cfi_endproc
                                        ; -- End function
	.comm	_it_bluecard,8,3                ; @it_bluecard
	.comm	_it_blueskull,8,3               ; @it_blueskull
	.comm	_PD_BLUEK,4,2                   ; @PD_BLUEK
	.comm	_sfx_oof,4,2                    ; @sfx_oof
	.comm	_it_yellowcard,8,3              ; @it_yellowcard
	.comm	_it_yellowskull,8,3             ; @it_yellowskull
	.comm	_PD_YELLOWK,4,2                 ; @PD_YELLOWK
	.comm	_it_redcard,8,3                 ; @it_redcard
	.comm	_it_redskull,8,3                ; @it_redskull
	.comm	_PD_REDK,4,2                    ; @PD_REDK
	.comm	_sides,8,3                      ; @sides
	.comm	_sectors,8,3                    ; @sectors
	.comm	_sfx_bdopn,4,2                  ; @sfx_bdopn
	.comm	_sfx_doropn,4,2                 ; @sfx_doropn
	.comm	_PU_LEVSPEC,4,2                 ; @PU_LEVSPEC
	.comm	_T_VerticalDoor,8,3             ; @T_VerticalDoor
	.comm	_VDOORSPEED,4,2                 ; @VDOORSPEED
	.comm	_VDOORWAIT,4,2                  ; @VDOORWAIT
	.comm	_normal,4,2                     ; @normal
	.comm	_open,4,2                       ; @open
	.comm	_blazeRaise,4,2                 ; @blazeRaise
	.comm	_blazeOpen,4,2                  ; @blazeOpen
	.comm	_FRACUNIT,4,2                   ; @FRACUNIT
.subsections_via_symbols
