	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_EV_BuildStairs                 ## -- Begin function EV_BuildStairs
	.p2align	4, 0x90
_EV_BuildStairs:                        ## @EV_BuildStairs
	.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	%esi, %r14d
	movq	%rdi, %rbx
	movl	$0, -56(%rbp)                   ## 4-byte Folded Spill
	movl	$-1, %r13d
                                        ## implicit-def: $eax
                                        ## kill: killed $eax
                                        ## implicit-def: $eax
                                        ## kill: killed $eax
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_10 Depth 2
                                        ##       Child Loop BB0_13 Depth 3
	movq	%rbx, %rdi
	movl	%r13d, %esi
	callq	_P_FindSectorFromLineTag
	testl	%eax, %eax
	js	LBB0_18
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	%eax, %r13d
	movq	_sectors@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	movl	%r13d, %r15d
	movq	%r15, %rax
	shlq	$5, %rax
	cmpq	$0, 16(%r12,%rax)
	jne	LBB0_3
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	addq	%r12, %rax
	addq	$16, %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	shlq	$5, %r15
	leaq	(%r12,%r15), %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	_PU_LEVSPEC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$32, %edi
	xorl	%edx, %edx
	callq	_Z_Malloc
	movl	%r14d, %ebx
	movq	%rax, %r14
	leaq	24(%rax), %rdi
	callq	_P_AddThinker
	movq	%r14, %rcx
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	%r14, (%rax)
	movq	_T_MoveFloor@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 24(%r14)
	movl	$1, (%r14)
	movq	%rdx, 16(%r14)
	cmpl	$128, %ebx
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	je	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpl	$129, %ebx
	movl	-60(%rbp), %r11d                ## 4-byte Reload
	movl	-64(%rbp), %eax                 ## 4-byte Reload
	jne	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_FLOORSPEED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leal	3(%rax), %r11d
	testl	%eax, %eax
	cmovnsl	%eax, %r11d
	sarl	$2, %r11d
	movq	_FRACUNIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shll	$3, %eax
	jmp	LBB0_9
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	_FLOORSPEED@GOTPCREL(%rip), %rax
	movl	(%rax), %r11d
	shll	$2, %r11d
	movq	_FRACUNIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shll	$4, %eax
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	%r11d, 4(%rcx)
	movl	(%rdx), %r14d
	movl	%eax, -64(%rbp)                 ## 4-byte Spill
	addl	%eax, %r14d
	movl	%r14d, 8(%rcx)
	movl	4(%r12,%r15), %r12d
	movl	%r11d, -60(%rbp)                ## 4-byte Spill
LBB0_10:                                ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_13 Depth 3
	movl	8(%rdx), %eax
	testl	%eax, %eax
	jle	LBB0_11
## %bb.12:                              ##   in Loop: Header=BB0_10 Depth=2
	movl	$1, -56(%rbp)                   ## 4-byte Folded Spill
	movq	_ML_TWOSIDED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r9d
	movq	_sectors@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r8
	movq	24(%rdx), %r10
	movq	%rax, %rdi
	negq	%rdi
	movb	$1, %bl
	movl	$1, %ecx
	movl	-64(%rbp), %r15d                ## 4-byte Reload
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_1:                                 ##   in Loop: Header=BB0_13 Depth=3
	cmpq	%rax, %rcx
	setb	%bl
	leaq	(%rdi,%rcx), %rdx
	incq	%rdx
	incq	%rcx
	cmpq	$1, %rdx
	je	LBB0_2
LBB0_13:                                ##   Parent Loop BB0_3 Depth=1
                                        ##     Parent Loop BB0_10 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movq	-8(%r10,%rcx,8), %rdx
	testl	%r9d, (%rdx)
	je	LBB0_1
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=3
	movq	16(%rdx), %rsi
	subq	%r8, %rsi
	shrq	$5, %rsi
	cmpl	%esi, %r13d
	jne	LBB0_1
## %bb.15:                              ##   in Loop: Header=BB0_13 Depth=3
	movq	8(%rdx), %rdx
	cmpl	%r12d, 4(%rdx)
	jne	LBB0_1
## %bb.16:                              ##   in Loop: Header=BB0_13 Depth=3
	addl	%r15d, %r14d
	cmpq	$0, 16(%rdx)
	jne	LBB0_1
## %bb.17:                              ##   in Loop: Header=BB0_10 Depth=2
	movq	%rdx, %r13
	subq	%r8, %r13
	shrq	$5, %r13
	movq	_PU_LEVSPEC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$32, %edi
	movq	%rdx, -80(%rbp)                 ## 8-byte Spill
	xorl	%edx, %edx
	callq	_Z_Malloc
	movq	%rax, %r15
	leaq	24(%rax), %rdi
	callq	_P_AddThinker
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	movl	-60(%rbp), %r11d                ## 4-byte Reload
	movq	%r15, 16(%rdx)
	movq	_T_MoveFloor@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 24(%r15)
	movl	$1, (%r15)
	movq	%rdx, 16(%r15)
	movl	%r11d, 4(%r15)
	movl	%r14d, 8(%r15)
	testb	$1, %bl
	jne	LBB0_10
	jmp	LBB0_2
LBB0_11:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	$1, -56(%rbp)                   ## 4-byte Folded Spill
LBB0_2:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_3
LBB0_18:
	movl	-56(%rbp), %eax                 ## 4-byte Reload
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_sectors,8,3                    ## @sectors
	.comm	_PU_LEVSPEC,4,2                 ## @PU_LEVSPEC
	.comm	_T_MoveFloor,8,3                ## @T_MoveFloor
	.comm	_FLOORSPEED,4,2                 ## @FLOORSPEED
	.comm	_FRACUNIT,4,2                   ## @FRACUNIT
	.comm	_ML_TWOSIDED,4,2                ## @ML_TWOSIDED
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_EV_BuildStairs                 ; -- Begin function EV_BuildStairs
	.p2align	2
_EV_BuildStairs:                        ; @EV_BuildStairs
	.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
	str	w1, [sp, #12]                   ; 4-byte Folded Spill
	mov	x20, x0
	mov	w22, #0
Lloh0:
	adrp	x23, _sectors@GOTPAGE
Lloh1:
	ldr	x23, [x23, _sectors@GOTPAGEOFF]
	mov	w21, #-1
                                        ; implicit-def: $w24
                                        ; implicit-def: $w19
LBB0_1:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_8 Depth 2
                                        ;       Child Loop BB0_11 Depth 3
	mov	x0, x20
	mov	x1, x21
	bl	_P_FindSectorFromLineTag
	tbnz	w0, #31, LBB0_18
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x21, x0
	ldr	x27, [x23]
	mov	w28, w0
	add	x26, x27, x28, lsl #5
	ldr	x8, [x26, #16]!
	cbnz	x8, LBB0_1
; %bb.3:                                ;   in Loop: Header=BB0_1 Depth=1
	add	x25, x27, x28, lsl #5
Lloh2:
	adrp	x8, _PU_LEVSPEC@GOTPAGE
Lloh3:
	ldr	x8, [x8, _PU_LEVSPEC@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	w0, #32
	mov	w2, #0
	bl	_Z_Malloc
	mov	x22, x0
	add	x0, x0, #24
	bl	_P_AddThinker
	str	x22, [x26]
Lloh5:
	adrp	x8, _T_MoveFloor@GOTPAGE
Lloh6:
	ldr	x8, [x8, _T_MoveFloor@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	mov	w9, #1
	str	w9, [x22]
	stp	x25, x8, [x22, #16]
	ldr	w8, [sp, #12]                   ; 4-byte Folded Reload
	cmp	w8, #128
	b.eq	LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_1 Depth=1
	cmp	w8, #129
	mov	x15, x19
	b.ne	LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_1 Depth=1
Lloh8:
	adrp	x8, _FLOORSPEED@GOTPAGE
Lloh9:
	ldr	x8, [x8, _FLOORSPEED@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	add	w9, w8, #3
	cmp	w8, #0
	csel	w8, w9, w8, lt
	asr	w15, w8, #2
Lloh11:
	adrp	x8, _FRACUNIT@GOTPAGE
Lloh12:
	ldr	x8, [x8, _FRACUNIT@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	lsl	w24, w8, #3
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_1 Depth=1
Lloh14:
	adrp	x8, _FLOORSPEED@GOTPAGE
Lloh15:
	ldr	x8, [x8, _FLOORSPEED@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	lsl	w15, w8, #2
Lloh17:
	adrp	x8, _FRACUNIT@GOTPAGE
Lloh18:
	ldr	x8, [x8, _FRACUNIT@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	lsl	w24, w8, #4
LBB0_7:                                 ;   in Loop: Header=BB0_1 Depth=1
	ldr	w8, [x25]
	add	w26, w8, w24
	stp	w15, w26, [x22, #4]
	add	x8, x27, x28, lsl #5
	ldr	w27, [x8, #4]
LBB0_8:                                 ;   Parent Loop BB0_1 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_11 Depth 3
	ldr	w8, [x25, #8]
	cmp	w8, #1
	b.lt	LBB0_16
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=2
	mov	x9, #0
Lloh20:
	adrp	x10, _ML_TWOSIDED@GOTPAGE
Lloh21:
	ldr	x10, [x10, _ML_TWOSIDED@GOTPAGEOFF]
Lloh22:
	ldr	w11, [x10]
	ldr	x10, [x23]
	mov	w28, #1
	ldr	x12, [x25, #24]
	b	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=3
	add	x9, x9, #1
	cmp	x9, x8
	cset	w28, lo
	cmp	x8, x9
	b.eq	LBB0_16
LBB0_11:                                ;   Parent Loop BB0_1 Depth=1
                                        ;     Parent Loop BB0_8 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	ldr	x13, [x12, x9, lsl #3]
	ldr	w14, [x13]
	tst	w11, w14
	b.eq	LBB0_10
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=3
	ldr	x14, [x13, #16]
	sub	x14, x14, x10
	lsr	x14, x14, #5
	cmp	w21, w14
	b.ne	LBB0_10
; %bb.13:                               ;   in Loop: Header=BB0_11 Depth=3
	ldr	x25, [x13, #8]
	ldr	w13, [x25, #4]
	cmp	w13, w27
	b.ne	LBB0_10
; %bb.14:                               ;   in Loop: Header=BB0_11 Depth=3
	add	w26, w26, w24
	ldr	x13, [x25, #16]
	cbnz	x13, LBB0_10
; %bb.15:                               ;   in Loop: Header=BB0_8 Depth=2
	sub	x8, x25, x10
	lsr	x21, x8, #5
Lloh23:
	adrp	x8, _PU_LEVSPEC@GOTPAGE
Lloh24:
	ldr	x8, [x8, _PU_LEVSPEC@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
	mov	w0, #32
	mov	w2, #0
	mov	x19, x15
	bl	_Z_Malloc
	mov	x22, x0
	add	x0, x0, #24
	bl	_P_AddThinker
	mov	x15, x19
	str	x22, [x25, #16]
Lloh26:
	adrp	x8, _T_MoveFloor@GOTPAGE
Lloh27:
	ldr	x8, [x8, _T_MoveFloor@GOTPAGEOFF]
Lloh28:
	ldr	x8, [x8]
	stp	x25, x8, [x22, #16]
	mov	w8, #1
	stp	w8, w19, [x22]
	str	w26, [x22, #8]
	tbnz	w28, #0, LBB0_8
	b	LBB0_17
LBB0_16:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x19, x15
LBB0_17:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	w22, #1
	b	LBB0_1
LBB0_18:
	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 AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_sectors,8,3                    ; @sectors
	.comm	_PU_LEVSPEC,4,2                 ; @PU_LEVSPEC
	.comm	_T_MoveFloor,8,3                ; @T_MoveFloor
	.comm	_FLOORSPEED,4,2                 ; @FLOORSPEED
	.comm	_FRACUNIT,4,2                   ; @FRACUNIT
	.comm	_ML_TWOSIDED,4,2                ; @ML_TWOSIDED
.subsections_via_symbols
