	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_EV_DoDonut                     ## -- Begin function EV_DoDonut
	.p2align	4, 0x90
_EV_DoDonut:                            ## @EV_DoDonut
	.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
	movq	%rdi, %r14
	movl	$-1, %r12d
	xorl	%eax, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	_sectors@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
	movq	%r14, %rdi
	movl	%r12d, %esi
	callq	_P_FindSectorFromLineTag
	testl	%eax, %eax
	js	LBB0_9
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	%eax, %r12d
	movq	(%r13), %r15
	movl	%eax, %eax
	movq	%rax, %rbx
	shlq	$5, %rbx
	cmpq	$0, 8(%r15,%rbx)
	jne	LBB0_1
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	shlq	$5, %rax
	leaq	(%r15,%rax), %rsi
	movq	24(%r15,%rax), %rax
	movq	(%rax), %rdi
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	callq	_getNextSector
	movl	(%rax), %r10d
	movl	$1, %ecx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	testl	%r10d, %r10d
	jle	LBB0_1
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	leaq	(%r15,%rbx), %r9
	addq	$8, %r9
	movq	24(%rax), %rcx
	movq	_ML_TWOSIDED@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	xorl	%esi, %esi
	movq	-48(%rbp), %r8                  ## 8-byte Reload
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=2
	incq	%rsi
	cmpq	%rsi, %r10
	je	LBB0_1
LBB0_5:                                 ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%rcx,%rsi,8), %rdi
	cmpl	$0, 8(%rdi)
	sete	%bl
	testb	%bl, %dl
	jne	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=2
	movq	(%rdi), %r15
	cmpq	%r8, %r15
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	_PU_LEVSPEC@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movl	$56, %edi
	xorl	%edx, %edx
	movq	%r9, -72(%rbp)                  ## 8-byte Spill
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	callq	_Z_Malloc
	movq	%rax, %rbx
	leaq	32(%rax), %rdi
	callq	_P_AddThinker
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	%rbx, 8(%rcx)
	movq	_T_MoveFloor@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 32(%rbx)
	movq	_donutRaise@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%rbx)
	movabsq	$4294967296, %rax               ## imm = 0x100000000
	movq	%rax, (%rbx)
	movq	%rcx, 16(%rbx)
	movq	_FLOORSPEED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, %ecx
	shrl	$31, %ecx
	addl	%eax, %ecx
	sarl	%ecx
	movl	%ecx, 8(%rbx)
	movl	16(%r15), %eax
	movl	%eax, 48(%rbx)
	movq	$0, 40(%rbx)
	movl	4(%r15), %eax
	movl	%eax, 12(%rbx)
	movq	_PU_LEVSPEC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$56, %edi
	xorl	%edx, %edx
	callq	_Z_Malloc
	movq	%rax, %rbx
	leaq	32(%rax), %rdi
	callq	_P_AddThinker
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	%rbx, (%rax)
	movq	_T_MoveFloor@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 32(%rbx)
	movq	_lowerFloor@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%rbx)
	movabsq	$-4294967296, %rax              ## imm = 0xFFFFFFFF00000000
	movq	%rax, (%rbx)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 16(%rbx)
	movq	_FLOORSPEED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, %ecx
	shrl	$31, %ecx
	addl	%eax, %ecx
	sarl	%ecx
	movl	%ecx, 8(%rbx)
	movl	4(%r15), %eax
	movl	%eax, 12(%rbx)
	jmp	LBB0_1
LBB0_9:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
                                        ## kill: def $eax killed $eax killed $rax
	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	_ML_TWOSIDED,4,2                ## @ML_TWOSIDED
	.comm	_PU_LEVSPEC,4,2                 ## @PU_LEVSPEC
	.comm	_T_MoveFloor,8,3                ## @T_MoveFloor
	.comm	_donutRaise,4,2                 ## @donutRaise
	.comm	_FLOORSPEED,4,2                 ## @FLOORSPEED
	.comm	_lowerFloor,4,2                 ## @lowerFloor
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function EV_DoDonut
lCPI0_0:
	.long	0                               ; 0x0
	.long	1                               ; 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_EV_DoDonut
	.p2align	2
_EV_DoDonut:                            ; @EV_DoDonut
	.cfi_startproc
; %bb.0:
	stp	d9, d8, [sp, #-112]!            ; 16-byte Folded Spill
	.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
	.cfi_offset b8, -104
	.cfi_offset b9, -112
	mov	x19, x0
	mov	w23, #0
Lloh0:
	adrp	x24, _sectors@GOTPAGE
Lloh1:
	ldr	x24, [x24, _sectors@GOTPAGEOFF]
Lloh2:
	adrp	x25, _ML_TWOSIDED@GOTPAGE
Lloh3:
	ldr	x25, [x25, _ML_TWOSIDED@GOTPAGEOFF]
	mov	w20, #-1
Lloh4:
	adrp	x28, _T_MoveFloor@GOTPAGE
Lloh5:
	ldr	x28, [x28, _T_MoveFloor@GOTPAGEOFF]
Lloh6:
	adrp	x8, lCPI0_0@PAGE
Lloh7:
	ldr	d8, [x8, lCPI0_0@PAGEOFF]
	movi	d9, #0xffffffff00000000
LBB0_1:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_6 Depth 2
	mov	x0, x19
	mov	x1, x20
	bl	_P_FindSectorFromLineTag
	tbnz	w0, #31, LBB0_10
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x20, x0
	ldr	x8, [x24]
	mov	w9, w0
	add	x26, x8, x9, lsl #5
	ldr	x10, [x26, #8]!
	cbnz	x10, LBB0_1
; %bb.3:                                ;   in Loop: Header=BB0_1 Depth=1
	add	x21, x8, x9, lsl #5
	ldr	x8, [x21, #24]
	ldr	x0, [x8]
	mov	x1, x21
	bl	_getNextSector
	ldr	w8, [x0]
	mov	w23, #1
	cmp	w8, #1
	b.lt	LBB0_1
; %bb.4:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x22, x0
	ldr	x9, [x0, #24]
	ldr	w10, [x25]
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=2
	add	x9, x9, #8
	subs	x8, x8, #1
	b.eq	LBB0_9
LBB0_6:                                 ;   Parent Loop BB0_1 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x11, [x9]
	ldr	w12, [x11, #8]
	cmp	w12, #0
	cset	w12, eq
	tst	w10, w12
	b.ne	LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=2
	ldr	x27, [x11]
	cmp	x27, x21
	b.eq	LBB0_5
; %bb.8:                                ;   in Loop: Header=BB0_1 Depth=1
Lloh8:
	adrp	x8, _PU_LEVSPEC@GOTPAGE
Lloh9:
	ldr	x8, [x8, _PU_LEVSPEC@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	w0, #56
	mov	w2, #0
	bl	_Z_Malloc
	mov	x23, x0
	add	x0, x0, #32
	bl	_P_AddThinker
	str	x23, [x22, #8]
Lloh11:
	adrp	x8, _donutRaise@GOTPAGE
Lloh12:
	ldr	x8, [x8, _donutRaise@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	str	w8, [x23, #24]
	ldr	x8, [x28]
	str	d8, [x23]
	str	x22, [x23, #16]
	ldr	w9, [x27, #16]
	str	w9, [x23, #48]
Lloh14:
	adrp	x9, _FLOORSPEED@GOTPAGE
Lloh15:
	ldr	x9, [x9, _FLOORSPEED@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	cmp	w9, #0
	cinc	w9, w9, lt
	asr	w9, w9, #1
	stp	x8, xzr, [x23, #32]
	ldr	w8, [x27, #4]
	stp	w9, w8, [x23, #8]
Lloh17:
	adrp	x8, _PU_LEVSPEC@GOTPAGE
Lloh18:
	ldr	x8, [x8, _PU_LEVSPEC@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	mov	w0, #56
	mov	w2, #0
	bl	_Z_Malloc
	mov	x22, x0
	add	x0, x0, #32
	bl	_P_AddThinker
	str	x22, [x26]
	ldr	x8, [x28]
	str	x8, [x22, #32]
Lloh20:
	adrp	x8, _lowerFloor@GOTPAGE
Lloh21:
	ldr	x8, [x8, _lowerFloor@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	str	w8, [x22, #24]
	str	d9, [x22]
	str	x21, [x22, #16]
Lloh23:
	adrp	x8, _FLOORSPEED@GOTPAGE
Lloh24:
	ldr	x8, [x8, _FLOORSPEED@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	cmp	w8, #0
	cinc	w8, w8, lt
	asr	w8, w8, #1
	ldr	w9, [x27, #4]
	stp	w8, w9, [x22, #8]
	mov	w23, #1
	b	LBB0_1
LBB0_9:                                 ;   in Loop: Header=BB0_1 Depth=1
	mov	w23, #1
	b	LBB0_1
LBB0_10:
	mov	x0, x23
	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
	ldp	d9, d8, [sp], #112              ; 16-byte Folded Reload
	ret
	.loh AdrpLdr	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_sectors,8,3                    ; @sectors
	.comm	_ML_TWOSIDED,4,2                ; @ML_TWOSIDED
	.comm	_PU_LEVSPEC,4,2                 ; @PU_LEVSPEC
	.comm	_T_MoveFloor,8,3                ; @T_MoveFloor
	.comm	_donutRaise,4,2                 ; @donutRaise
	.comm	_FLOORSPEED,4,2                 ; @FLOORSPEED
	.comm	_lowerFloor,4,2                 ; @lowerFloor
.subsections_via_symbols
