	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_EV_DoDoor                      ## -- Begin function EV_DoDoor
	.p2align	4, 0x90
_EV_DoDoor:                             ## @EV_DoDoor
	.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
                                        ## kill: def $esi killed $esi def $rsi
	movq	%rdi, %r15
	movl	$-1, %ebx
	movl	$0, -48(%rbp)                   ## 4-byte Folded Spill
	movq	%rsi, %rax
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
	leal	-128(%rsi), %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
LBB0_1:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_2 Depth 2
	movq	_sectors@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_2:                                 ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_P_FindSectorFromLineTag
	testl	%eax, %eax
	js	LBB0_14
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=2
	movl	%eax, %ebx
	movq	(%r13), %r14
	movl	%eax, %r12d
	movq	%r12, %rax
	shlq	$4, %rax
	cmpq	$0, 8(%r14,%rax)
	jne	LBB0_2
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	addq	%r14, %rax
	addq	$8, %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	shlq	$4, %r12
	leaq	(%r14,%r12), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	_PU_LEVSPEC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$40, %edi
	xorl	%edx, %edx
	callq	_Z_Malloc
	movq	%rax, %r13
	leaq	32(%rax), %rdi
	callq	_P_AddThinker
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	%r13, (%rax)
	movq	_T_VerticalDoor@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 32(%r13)
	movq	%rdi, 16(%r13)
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movl	%eax, (%r13)
	movq	_VDOORWAIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%r13)
	movq	_VDOORSPEED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r13)
	movl	$1, -48(%rbp)                   ## 4-byte Folded Spill
	cmpl	$6, -56(%rbp)                   ## 4-byte Folded Reload
	ja	LBB0_1
## %bb.5:                               ##   in Loop: Header=BB0_1 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_11:                                ##   in Loop: Header=BB0_1 Depth=1
	movl	$1, 12(%r13)
	movq	%rdi, %r14
	callq	_P_FindLowestCeilingSurrounding
	movq	_FRACUNIT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	shll	$2, %ecx
	subl	%ecx, %eax
	movl	%eax, 8(%r13)
	cmpl	(%r14), %eax
	je	LBB0_1
## %bb.12:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	16(%r13), %rdi
	addq	$4, %rdi
	movq	_sfx_doropn@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_9:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	$1, 12(%r13)
	movq	%rdi, %r14
	callq	_P_FindLowestCeilingSurrounding
	movq	_FRACUNIT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	shll	$2, %ecx
	subl	%ecx, %eax
	movl	%eax, 8(%r13)
	movq	_VDOORSPEED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	shll	$2, %ecx
	movl	%ecx, 4(%r13)
	cmpl	(%r14), %eax
	je	LBB0_1
## %bb.10:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	16(%r13), %rdi
	addq	$4, %rdi
	movq	_sfx_bdopn@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_8:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	(%rdi), %eax
	movl	%eax, 8(%r13)
	movl	$-1, 12(%r13)
	leaq	(%r14,%r12), %rdi
	addq	$4, %rdi
	movq	_sfx_dorcls@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_7:                                 ##   in Loop: Header=BB0_1 Depth=1
	callq	_P_FindLowestCeilingSurrounding
	movq	_FRACUNIT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	shll	$2, %ecx
	subl	%ecx, %eax
	movl	%eax, 8(%r13)
	movl	$-1, 12(%r13)
	movq	16(%r13), %rdi
	addq	$4, %rdi
	movq	_sfx_dorcls@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_6:                                 ##   in Loop: Header=BB0_1 Depth=1
	callq	_P_FindLowestCeilingSurrounding
	movq	_FRACUNIT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	shll	$2, %ecx
	subl	%ecx, %eax
	movl	%eax, 8(%r13)
	movl	$-1, 12(%r13)
	movq	_VDOORSPEED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shll	$2, %eax
	movl	%eax, 4(%r13)
	movq	16(%r13), %rdi
	addq	$4, %rdi
	movq	_sfx_bdcls@GOTPCREL(%rip), %rax
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_1 Depth=1
	movl	(%rax), %esi
	callq	_S_StartSound
	jmp	LBB0_1
LBB0_14:
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	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_11, LBB0_11-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
LJTI0_0:
	.long	L0_0_set_11
	.long	L0_0_set_11
	.long	L0_0_set_8
	.long	L0_0_set_7
	.long	L0_0_set_9
	.long	L0_0_set_9
	.long	L0_0_set_6
	.end_data_region
                                        ## -- End function
	.comm	_sectors,8,3                    ## @sectors
	.comm	_PU_LEVSPEC,4,2                 ## @PU_LEVSPEC
	.comm	_T_VerticalDoor,8,3             ## @T_VerticalDoor
	.comm	_VDOORWAIT,4,2                  ## @VDOORWAIT
	.comm	_VDOORSPEED,4,2                 ## @VDOORSPEED
	.comm	_FRACUNIT,4,2                   ## @FRACUNIT
	.comm	_sfx_bdcls,4,2                  ## @sfx_bdcls
	.comm	_sfx_dorcls,4,2                 ## @sfx_dorcls
	.comm	_sfx_bdopn,4,2                  ## @sfx_bdopn
	.comm	_sfx_doropn,4,2                 ## @sfx_doropn
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_EV_DoDoor                      ; -- Begin function EV_DoDoor
	.p2align	2
_EV_DoDoor:                             ; @EV_DoDoor
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x19, x1
	mov	x20, x0
	mov	w23, #0
Lloh0:
	adrp	x26, _sectors@GOTPAGE
Lloh1:
	ldr	x26, [x26, _sectors@GOTPAGEOFF]
	sub	w28, w1, #128
	mov	w21, #-1
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	x1, x21
	bl	_P_FindSectorFromLineTag
	tbnz	w0, #31, LBB0_14
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x21, x0
	ldr	x25, [x26]
	add	x27, x25, w0, uxtw #4
	mov	x24, x27
	ldr	x8, [x24, #8]!
	cbnz	x8, LBB0_1
; %bb.3:                                ;   in Loop: Header=BB0_1 Depth=1
Lloh2:
	adrp	x8, _PU_LEVSPEC@GOTPAGE
Lloh3:
	ldr	x8, [x8, _PU_LEVSPEC@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	w0, #40
	mov	w2, #0
	bl	_Z_Malloc
	mov	x22, x0
	add	x0, x0, #32
	bl	_P_AddThinker
	str	x22, [x24]
Lloh5:
	adrp	x8, _T_VerticalDoor@GOTPAGE
Lloh6:
	ldr	x8, [x8, _T_VerticalDoor@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	str	x8, [x22, #32]
	str	x27, [x22, #16]
	str	w19, [x22]
Lloh8:
	adrp	x8, _VDOORWAIT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _VDOORWAIT@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	str	w8, [x22, #24]
Lloh11:
	adrp	x8, _VDOORSPEED@GOTPAGE
Lloh12:
	ldr	x8, [x8, _VDOORSPEED@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	str	w8, [x22, #4]
	mov	w23, #1
	cmp	w28, #6
	b.hi	LBB0_1
; %bb.4:                                ;   in Loop: Header=BB0_1 Depth=1
Lloh14:
	adrp	x10, lJTI0_0@PAGE
Lloh15:
	add	x10, x10, lJTI0_0@PAGEOFF
	adr	x8, LBB0_5
	ldrb	w9, [x10, x28]
	add	x8, x8, x9, lsl #2
	br	x8
LBB0_5:                                 ;   in Loop: Header=BB0_1 Depth=1
	mov	w23, #1
	str	w23, [x22, #12]
	mov	x0, x27
	bl	_P_FindLowestCeilingSurrounding
Lloh16:
	adrp	x8, _FRACUNIT@GOTPAGE
Lloh17:
	ldr	x8, [x8, _FRACUNIT@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	sub	w8, w0, w8, lsl #2
	str	w8, [x22, #8]
	ldr	w9, [x27]
	cmp	w8, w9
	b.eq	LBB0_1
; %bb.6:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	x8, [x22, #16]
	add	x0, x8, #4
Lloh19:
	adrp	x8, _sfx_doropn@GOTPAGE
Lloh20:
	ldr	x8, [x8, _sfx_doropn@GOTPAGEOFF]
	b	LBB0_13
LBB0_7:                                 ;   in Loop: Header=BB0_1 Depth=1
	mov	w23, #1
	str	w23, [x22, #12]
	mov	x0, x27
	bl	_P_FindLowestCeilingSurrounding
Lloh21:
	adrp	x8, _FRACUNIT@GOTPAGE
Lloh22:
	ldr	x8, [x8, _FRACUNIT@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	sub	w8, w0, w8, lsl #2
Lloh24:
	adrp	x9, _VDOORSPEED@GOTPAGE
Lloh25:
	ldr	x9, [x9, _VDOORSPEED@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
	lsl	w9, w9, #2
	stp	w9, w8, [x22, #4]
	ldr	w9, [x27]
	cmp	w8, w9
	b.eq	LBB0_1
; %bb.8:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	x8, [x22, #16]
	add	x0, x8, #4
Lloh27:
	adrp	x8, _sfx_bdopn@GOTPAGE
Lloh28:
	ldr	x8, [x8, _sfx_bdopn@GOTPAGEOFF]
	b	LBB0_13
LBB0_9:                                 ;   in Loop: Header=BB0_1 Depth=1
	mov	w8, w21
	ldr	w10, [x27]
	mov	w9, #-1
	stp	w10, w9, [x22, #8]
	add	x8, x25, x8, lsl #4
	b	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x27
	bl	_P_FindLowestCeilingSurrounding
Lloh29:
	adrp	x8, _FRACUNIT@GOTPAGE
Lloh30:
	ldr	x8, [x8, _FRACUNIT@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
	sub	w9, w0, w8, lsl #2
	mov	w8, #-1
	stp	w9, w8, [x22, #8]
	ldr	x8, [x22, #16]
LBB0_11:                                ;   in Loop: Header=BB0_1 Depth=1
	add	x0, x8, #4
Lloh32:
	adrp	x8, _sfx_dorcls@GOTPAGE
Lloh33:
	ldr	x8, [x8, _sfx_dorcls@GOTPAGEOFF]
	b	LBB0_13
LBB0_12:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x27
	bl	_P_FindLowestCeilingSurrounding
Lloh34:
	adrp	x8, _FRACUNIT@GOTPAGE
Lloh35:
	ldr	x8, [x8, _FRACUNIT@GOTPAGEOFF]
Lloh36:
	ldr	w8, [x8]
	sub	w8, w0, w8, lsl #2
	mov	w9, #-1
	str	w9, [x22, #12]
Lloh37:
	adrp	x9, _VDOORSPEED@GOTPAGE
Lloh38:
	ldr	x9, [x9, _VDOORSPEED@GOTPAGEOFF]
Lloh39:
	ldr	w9, [x9]
	lsl	w9, w9, #2
	stp	w9, w8, [x22, #4]
	ldr	x8, [x22, #16]
	add	x0, x8, #4
Lloh40:
	adrp	x8, _sfx_bdcls@GOTPAGE
Lloh41:
	ldr	x8, [x8, _sfx_bdcls@GOTPAGEOFF]
LBB0_13:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	w1, [x8]
	bl	_S_StartSound
	mov	w23, #1
	b	LBB0_1
LBB0_14:
	mov	x0, x23
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_5-LBB0_5)>>2
	.byte	(LBB0_5-LBB0_5)>>2
	.byte	(LBB0_9-LBB0_5)>>2
	.byte	(LBB0_10-LBB0_5)>>2
	.byte	(LBB0_7-LBB0_5)>>2
	.byte	(LBB0_7-LBB0_5)>>2
	.byte	(LBB0_12-LBB0_5)>>2
                                        ; -- End function
	.comm	_sectors,8,3                    ; @sectors
	.comm	_PU_LEVSPEC,4,2                 ; @PU_LEVSPEC
	.comm	_T_VerticalDoor,8,3             ; @T_VerticalDoor
	.comm	_VDOORWAIT,4,2                  ; @VDOORWAIT
	.comm	_VDOORSPEED,4,2                 ; @VDOORSPEED
	.comm	_FRACUNIT,4,2                   ; @FRACUNIT
	.comm	_sfx_bdcls,4,2                  ; @sfx_bdcls
	.comm	_sfx_dorcls,4,2                 ; @sfx_dorcls
	.comm	_sfx_bdopn,4,2                  ; @sfx_bdopn
	.comm	_sfx_doropn,4,2                 ; @sfx_doropn
.subsections_via_symbols
