	.file	"extr_p_mobj.c_P_MobjThinker.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	P_MobjThinker
	.type	P_MobjThinker, @function
P_MobjThinker:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	cmp	QWORD PTR 64[rdi], 0
	mov	rbp, rdi
	jne	.L2
	cmp	QWORD PTR 56[rdi], 0
	je	.L18
.L2:
	mov	rdi, rbp
	call	P_XYMovement@PLT
	cmp	QWORD PTR 40[rbp], -1
	je	.L1
.L5:
	mov	rax, QWORD PTR 16[rbp]
	cmp	QWORD PTR 8[rbp], rax
	jne	.L3
	cmp	QWORD PTR 48[rbp], 0
	je	.L10
.L3:
	mov	rdi, rbp
	call	P_ZMovement@PLT
	cmp	QWORD PTR 40[rbp], -1
	je	.L1
.L10:
	mov	eax, DWORD PTR 24[rbp]
	cmp	eax, -1
	je	.L19
	sub	eax, 1
	mov	DWORD PTR 24[rbp], eax
	je	.L20
.L1:
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L18:
	.cfi_restore_state
	mov	eax, DWORD PTR [rdi]
	test	DWORD PTR MF_SKULLFLY[rip], eax
	jne	.L2
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L19:
	mov	eax, DWORD PTR 0[rbp]
	test	DWORD PTR MF_COUNTKILL[rip], eax
	je	.L1
	mov	eax, DWORD PTR respawnmonsters[rip]
	test	eax, eax
	je	.L1
	mov	eax, DWORD PTR 28[rbp]
	add	eax, 1
	mov	DWORD PTR 28[rbp], eax
	cmp	eax, 419
	jle	.L1
	test	BYTE PTR leveltime[rip], 31
	jne	.L1
	xor	eax, eax
	call	P_Random@PLT
	cmp	eax, 4
	jg	.L1
	mov	rdi, rbp
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	jmp	P_NightmareRespawn@PLT
	.p2align 4,,10
	.p2align 3
.L20:
	.cfi_restore_state
	mov	rax, QWORD PTR 32[rbp]
	mov	rdi, rbp
	pop	rbp
	.cfi_def_cfa_offset 8
	mov	esi, DWORD PTR [rax]
	jmp	P_SetMobjState@PLT
	.cfi_endproc
.LFE0:
	.size	P_MobjThinker, .-P_MobjThinker
	.comm	respawnmonsters,4,4
	.comm	leveltime,4,4
	.comm	MF_SKULLFLY,4,4
	.comm	MF_COUNTKILL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_p_mobj.c_P_MobjThinker.c"
	.text
	.align	2
	.global	P_MobjThinker
	.syntax unified
	.arm
	.fpu softvfp
	.type	P_MobjThinker, %function
P_MobjThinker:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, [r0, #36]
	push	{r4, lr}
	cmp	r3, #0
	mov	r4, r0
	bne	.L2
	ldr	r3, [r0, #32]
	cmp	r3, #0
	beq	.L26
.L2:
	mov	r0, r4
	bl	P_XYMovement
	ldr	r3, [r4, #24]
	cmn	r3, #1
	popeq	{r4, pc}
.L5:
	ldmib	r4, {r2, r3}
	cmp	r2, r3
	bne	.L3
	ldr	r3, [r4, #28]
	cmp	r3, #0
	beq	.L10
.L3:
	mov	r0, r4
	bl	P_ZMovement
	ldr	r3, [r4, #24]
	cmn	r3, #1
	popeq	{r4, pc}
.L10:
	ldr	r3, [r4, #12]
	cmn	r3, #1
	beq	.L27
	sub	r3, r3, #1
	cmp	r3, #0
	str	r3, [r4, #12]
	popne	{r4, pc}
	ldr	r3, [r4, #20]
	mov	r0, r4
	pop	{r4, lr}
	ldr	r1, [r3]
	b	P_SetMobjState
.L26:
	ldr	r3, .L28
	ldr	r2, [r0]
	ldr	r3, [r3]
	tst	r2, r3
	bne	.L2
	b	.L5
.L27:
	ldr	r3, .L28+4
	ldr	r2, [r4]
	ldr	r3, [r3]
	tst	r2, r3
	popeq	{r4, pc}
	ldr	r3, .L28+8
	ldr	r3, [r3]
	cmp	r3, #0
	popeq	{r4, pc}
	ldr	r3, [r4, #16]
	add	r3, r3, #1
	cmp	r3, #420
	str	r3, [r4, #16]
	poplt	{r4, pc}
	ldr	r3, .L28+12
	ldr	r3, [r3]
	tst	r3, #31
	popne	{r4, pc}
	bl	P_Random
	cmp	r0, #4
	popgt	{r4, pc}
	mov	r0, r4
	pop	{r4, lr}
	b	P_NightmareRespawn
.L29:
	.align	2
.L28:
	.word	MF_SKULLFLY
	.word	MF_COUNTKILL
	.word	respawnmonsters
	.word	leveltime
	.size	P_MobjThinker, .-P_MobjThinker
	.comm	respawnmonsters,4,4
	.comm	leveltime,4,4
	.comm	MF_SKULLFLY,4,4
	.comm	MF_COUNTKILL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
