	.file	"extr_bg_pmove.c_PM_SetMovementDir.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	PM_SetMovementDir, @function
PM_SetMovementDir:
.LFB0:
	.cfi_startproc
	endbr64
	mov	rax, QWORD PTR pm[rip]
	mov	rdx, QWORD PTR 8[rax]
	mov	rcx, QWORD PTR 16[rax]
	test	rdx, rdx
	jne	.L2
	test	rcx, rcx
	je	.L16
	js	.L17
.L8:
	xor	ecx, ecx
	test	rdx, rdx
	mov	rsi, QWORD PTR [rax]
	mov	eax, 5
	setne	cl
	add	ecx, 6
	test	rdx, rdx
	cmovns	eax, ecx
	mov	DWORD PTR [rsi], eax
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	test	rcx, rcx
	jne	.L5
	mov	rax, QWORD PTR [rax]
	test	rdx, rdx
	jle	.L6
	mov	DWORD PTR [rax], 0
	ret
	.p2align 4,,10
	.p2align 3
.L16:
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR [rdx]
	cmp	eax, 2
	je	.L18
	cmp	eax, 6
	je	.L19
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	jns	.L8
	mov	rcx, QWORD PTR [rax]
	xor	eax, eax
	test	rdx, rdx
	setle	al
	lea	eax, 1[rax+rax]
	mov	DWORD PTR [rcx], eax
	ret
	.p2align 4,,10
	.p2align 3
.L18:
	mov	DWORD PTR [rdx], 1
	ret
	.p2align 4,,10
	.p2align 3
.L17:
	mov	rax, QWORD PTR [rax]
	mov	DWORD PTR [rax], 2
	ret
	.p2align 4,,10
	.p2align 3
.L19:
	mov	DWORD PTR [rdx], 7
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	mov	DWORD PTR [rax], 4
	ret
	.cfi_endproc
.LFE0:
	.size	PM_SetMovementDir, .-PM_SetMovementDir
	.comm	pm,8,8
	.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_bg_pmove.c_PM_SetMovementDir.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	PM_SetMovementDir, %function
PM_SetMovementDir:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	@ link register save eliminated.
	ldr	r3, .L20
	ldr	r3, [r3]
	ldr	r2, [r3, #4]
	ldr	r1, [r3, #8]
	cmp	r2, #0
	bne	.L2
	cmp	r1, #0
	beq	.L16
	blt	.L17
.L8:
	cmp	r2, #0
	ldr	r3, [r3]
	blt	.L18
	moveq	r2, #6
	movne	r2, #7
	str	r2, [r3]
	bx	lr
.L2:
	cmp	r1, #0
	bne	.L5
	cmp	r2, #0
	ble	.L6
	ldr	r3, [r3]
	str	r1, [r3]
	bx	lr
.L16:
	ldr	r2, [r3]
	ldr	r3, [r2]
	cmp	r3, #2
	beq	.L19
	cmp	r3, #6
	moveq	r3, #7
	streq	r3, [r2]
	bx	lr
.L5:
	bge	.L8
	cmp	r2, #0
	movgt	r2, #1
	movle	r2, #3
	ldr	r3, [r3]
	str	r2, [r3]
	bx	lr
.L19:
	mov	r3, #1
	str	r3, [r2]
	bx	lr
.L17:
	mov	r2, #2
	ldr	r3, [r3]
	str	r2, [r3]
	bx	lr
.L6:
	mov	r2, #4
	ldr	r3, [r3]
	str	r2, [r3]
	bx	lr
.L18:
	mov	r2, #5
	str	r2, [r3]
	bx	lr
.L21:
	.align	2
.L20:
	.word	pm
	.size	PM_SetMovementDir, .-PM_SetMovementDir
	.comm	pm,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
