	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_P_WorldEffects                 ## -- Begin function P_WorldEffects
	.p2align	4, 0x90
_P_WorldEffects:                        ## @P_WorldEffects
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	40(%rdi), %rax
	cmpq	$0, 16(%rax)
	je	LBB0_3
## %bb.1:
	movq	_level@GOTPCREL(%rip), %rcx
	movl	$12000, %edx                    ## imm = 0x2EE0
	addq	(%rcx), %rdx
	movq	%rdx, (%rax)
LBB0_2:
	addq	$8, %rsp
LBB0_18:
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	%rdi, %rbx
	movl	(%rdi), %r14d
	movq	8(%rax), %rcx
	movq	_PW_BATTLESUIT@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	(%rcx,%rdx,8), %r15
	movq	_level@GOTPCREL(%rip), %rdi
	movq	(%rdi), %r12
	cmpl	$3, %r14d
	jne	LBB0_9
## %bb.4:
	cmpq	%r12, %r15
	jle	LBB0_6
## %bb.5:
	leaq	10000(%r12), %rcx
	movq	%rcx, (%rax)
	jmp	LBB0_10
LBB0_9:
	leaq	12000(%r12), %rcx
	movq	%rcx, (%rax)
	movl	$2, 16(%rbx)
	testl	%r14d, %r14d
	jne	LBB0_10
	jmp	LBB0_2
LBB0_6:
	movq	(%rax), %rcx
	cmpq	%r12, %rcx
	jge	LBB0_10
## %bb.7:
	addq	$1000, %rcx                     ## imm = 0x3E8
	movq	%rcx, (%rax)
	cmpq	$0, 8(%rbx)
	jle	LBB0_10
## %bb.8:
	movl	16(%rbx), %eax
	leal	2(%rax), %ecx
	cmpl	$14, %eax
	movl	$15, %r9d
	cmovll	%ecx, %r9d
	movl	%r9d, 16(%rbx)
	leaq	200(%r12), %rax
	movq	%rax, 24(%rbx)
	movq	_DAMAGE_NO_ARMOR@GOTPCREL(%rip), %rax
	movl	(%rax), %r10d
	movq	_MOD_WATER@GOTPCREL(%rip), %rcx
	movl	(%rcx), %eax
	movq	%rdi, %r13
	movq	%rbx, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	pushq	%rax
	pushq	%r10
	callq	_G_Damage
	movq	%r13, %rdi
	addq	$16, %rsp
LBB0_10:
	movl	32(%rbx), %eax
	movq	_CONTENTS_LAVA@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	_CONTENTS_SLIME@GOTPCREL(%rip), %r13
	movl	(%r13), %ecx
	movl	%ecx, %esi
	orl	%edx, %esi
	testl	%eax, %esi
	je	LBB0_2
## %bb.11:
	cmpq	$0, 8(%rbx)
	jle	LBB0_2
## %bb.12:
	movq	24(%rbx), %rsi
	cmpq	(%rdi), %rsi
	jg	LBB0_2
## %bb.13:
	cmpq	%r12, %r15
	jle	LBB0_14
## %bb.19:
	movq	_EV_POWERUP_BATTLESUIT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_G_AddEvent                     ## TAILCALL
LBB0_14:
	testl	%eax, %edx
	je	LBB0_16
## %bb.15:
	movl	%r14d, %r9d
	shll	$5, %r9d
	subl	%r14d, %r9d
	subl	%r14d, %r9d
	movq	_MOD_LAVA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	%rbx, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	pushq	%rax
	pushq	$0
	callq	_G_Damage
	addq	$16, %rsp
	movl	32(%rbx), %eax
	movl	(%r13), %ecx
LBB0_16:
	testl	%eax, %ecx
	je	LBB0_2
## %bb.17:
	addl	%r14d, %r14d
	leal	(%r14,%r14,4), %r9d
	movq	_MOD_SLIME@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	%rbx, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	pushq	%rax
	pushq	$0
	callq	_G_Damage
	addq	$24, %rsp
	jmp	LBB0_18
	.cfi_endproc
                                        ## -- End function
	.comm	_level,8,3                      ## @level
	.comm	_PW_BATTLESUIT,8,3              ## @PW_BATTLESUIT
	.comm	_DAMAGE_NO_ARMOR,4,2            ## @DAMAGE_NO_ARMOR
	.comm	_MOD_WATER,4,2                  ## @MOD_WATER
	.comm	_CONTENTS_LAVA,4,2              ## @CONTENTS_LAVA
	.comm	_CONTENTS_SLIME,4,2             ## @CONTENTS_SLIME
	.comm	_EV_POWERUP_BATTLESUIT,4,2      ## @EV_POWERUP_BATTLESUIT
	.comm	_MOD_LAVA,4,2                   ## @MOD_LAVA
	.comm	_MOD_SLIME,4,2                  ## @MOD_SLIME
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_P_WorldEffects                 ; -- Begin function P_WorldEffects
	.p2align	2
_P_WorldEffects:                        ; @P_WorldEffects
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	ldr	x8, [x0, #40]
	ldr	x9, [x8, #16]
	cbz	x9, LBB0_3
; %bb.1:
Lloh0:
	adrp	x9, _level@GOTPAGE
Lloh1:
	ldr	x9, [x9, _level@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	mov	w10, #12000
	add	x9, x9, x10
	str	x9, [x8]
LBB0_2:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_3:
	mov	x19, x0
	ldr	w20, [x0]
	ldr	x9, [x8, #8]
Lloh3:
	adrp	x10, _PW_BATTLESUIT@GOTPAGE
Lloh4:
	ldr	x10, [x10, _PW_BATTLESUIT@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	ldr	x21, [x9, x10, lsl #3]
Lloh6:
	adrp	x23, _level@GOTPAGE
Lloh7:
	ldr	x23, [x23, _level@GOTPAGEOFF]
	ldr	x22, [x23]
	cmp	w20, #3
	b.ne	LBB0_6
; %bb.4:
	cmp	x21, x22
	b.le	LBB0_7
; %bb.5:
	mov	w9, #10000
	add	x9, x22, x9
	str	x9, [x8]
	b	LBB0_10
LBB0_6:
	mov	w9, #12000
	add	x9, x22, x9
	str	x9, [x8]
	mov	w8, #2
	str	w8, [x19, #16]
	cbnz	w20, LBB0_10
	b	LBB0_2
LBB0_7:
	ldr	x9, [x8]
	cmp	x9, x22
	b.ge	LBB0_10
; %bb.8:
	add	x9, x9, #1000
	str	x9, [x8]
	ldr	x8, [x19, #8]
	cmp	x8, #1
	b.lt	LBB0_10
; %bb.9:
	ldr	w8, [x19, #16]
	add	w9, w8, #2
	mov	w10, #15
	cmp	w8, #13
	csel	w5, w10, w9, gt
	str	w5, [x19, #16]
	add	x8, x22, #200
	str	x8, [x19, #24]
Lloh8:
	adrp	x8, _DAMAGE_NO_ARMOR@GOTPAGE
Lloh9:
	ldr	x8, [x8, _DAMAGE_NO_ARMOR@GOTPAGEOFF]
Lloh10:
	ldr	w6, [x8]
Lloh11:
	adrp	x8, _MOD_WATER@GOTPAGE
Lloh12:
	ldr	x8, [x8, _MOD_WATER@GOTPAGEOFF]
Lloh13:
	ldr	w7, [x8]
	mov	x0, x19
	mov	x1, #0
	mov	x2, #0
	mov	x3, #0
	mov	x4, #0
	bl	_G_Damage
LBB0_10:
	ldr	w8, [x19, #32]
Lloh14:
	adrp	x9, _CONTENTS_LAVA@GOTPAGE
Lloh15:
	ldr	x9, [x9, _CONTENTS_LAVA@GOTPAGEOFF]
Lloh16:
	ldr	w10, [x9]
Lloh17:
	adrp	x24, _CONTENTS_SLIME@GOTPAGE
Lloh18:
	ldr	x24, [x24, _CONTENTS_SLIME@GOTPAGEOFF]
	ldr	w9, [x24]
	orr	w11, w9, w10
	tst	w11, w8
	b.eq	LBB0_2
; %bb.11:
	ldr	x11, [x19, #8]
	cmp	x11, #1
	b.lt	LBB0_2
; %bb.12:
	ldr	x11, [x19, #24]
	ldr	x12, [x23]
	cmp	x11, x12
	b.gt	LBB0_2
; %bb.13:
	cmp	x21, x22
	b.le	LBB0_15
; %bb.14:
Lloh19:
	adrp	x8, _EV_POWERUP_BATTLESUIT@GOTPAGE
Lloh20:
	ldr	x8, [x8, _EV_POWERUP_BATTLESUIT@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_G_AddEvent
LBB0_15:
	tst	w10, w8
	b.eq	LBB0_17
; %bb.16:
	mov	w8, #30
	mul	w5, w20, w8
Lloh22:
	adrp	x8, _MOD_LAVA@GOTPAGE
Lloh23:
	ldr	x8, [x8, _MOD_LAVA@GOTPAGEOFF]
Lloh24:
	ldr	w7, [x8]
	mov	x0, x19
	mov	x1, #0
	mov	x2, #0
	mov	x3, #0
	mov	x4, #0
	mov	w6, #0
	bl	_G_Damage
	ldr	w8, [x19, #32]
	ldr	w9, [x24]
LBB0_17:
	tst	w9, w8
	b.eq	LBB0_2
; %bb.18:
	add	w8, w20, w20, lsl #2
	lsl	w5, w8, #1
Lloh25:
	adrp	x8, _MOD_SLIME@GOTPAGE
Lloh26:
	ldr	x8, [x8, _MOD_SLIME@GOTPAGEOFF]
Lloh27:
	ldr	w7, [x8]
	mov	x0, x19
	mov	x1, #0
	mov	x2, #0
	mov	x3, #0
	mov	x4, #0
	mov	w6, #0
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_G_Damage
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_level,8,3                      ; @level
	.comm	_PW_BATTLESUIT,8,3              ; @PW_BATTLESUIT
	.comm	_DAMAGE_NO_ARMOR,4,2            ; @DAMAGE_NO_ARMOR
	.comm	_MOD_WATER,4,2                  ; @MOD_WATER
	.comm	_CONTENTS_LAVA,4,2              ; @CONTENTS_LAVA
	.comm	_CONTENTS_SLIME,4,2             ; @CONTENTS_SLIME
	.comm	_EV_POWERUP_BATTLESUIT,4,2      ; @EV_POWERUP_BATTLESUIT
	.comm	_MOD_LAVA,4,2                   ; @MOD_LAVA
	.comm	_MOD_SLIME,4,2                  ; @MOD_SLIME
.subsections_via_symbols
