	.file	"116174.c"
	.intel_syntax noprefix
	.text
	.globl	knight_move
	.type	knight_move, @function
knight_move:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR -36[rbp], edi
	mov	DWORD PTR -40[rbp], esi
	mov	eax, DWORD PTR -36[rbp]
	sar	eax, 31
	xor	DWORD PTR -36[rbp], eax
	sub	DWORD PTR -36[rbp], eax
	mov	eax, DWORD PTR -40[rbp]
	sar	eax, 31
	xor	DWORD PTR -40[rbp], eax
	sub	DWORD PTR -40[rbp], eax
	mov	eax, DWORD PTR -36[rbp]
	cmp	eax, DWORD PTR -40[rbp]
	jge	.L2
	mov	eax, DWORD PTR -36[rbp]
	mov	DWORD PTR -20[rbp], eax
	mov	eax, DWORD PTR -40[rbp]
	mov	DWORD PTR -36[rbp], eax
	mov	eax, DWORD PTR -20[rbp]
	mov	DWORD PTR -40[rbp], eax
.L2:
	cmp	DWORD PTR -36[rbp], 2
	jne	.L3
	cmp	DWORD PTR -40[rbp], 2
	jne	.L3
	mov	eax, 4
	jmp	.L4
.L3:
	cmp	DWORD PTR -36[rbp], 1
	jne	.L5
	cmp	DWORD PTR -40[rbp], 0
	jne	.L5
	mov	eax, 3
	jmp	.L4
.L5:
	cmp	DWORD PTR -40[rbp], 0
	je	.L6
	mov	eax, DWORD PTR -40[rbp]
	add	eax, eax
	cmp	DWORD PTR -36[rbp], eax
	jle	.L7
.L6:
	mov	eax, DWORD PTR -40[rbp]
	and	eax, 1
	mov	DWORD PTR -8[rbp], eax
	mov	eax, DWORD PTR -8[rbp]
	lea	edx, [rax+rax]
	mov	eax, DWORD PTR -36[rbp]
	sub	eax, edx
	mov	DWORD PTR -20[rbp], eax
	mov	eax, DWORD PTR -20[rbp]
	and	eax, 3
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -20[rbp]
	sub	eax, DWORD PTR -4[rbp]
	sar	eax
	mov	edx, eax
	mov	eax, DWORD PTR -4[rbp]
	add	edx, eax
	mov	eax, DWORD PTR -8[rbp]
	add	eax, edx
	jmp	.L4
.L7:
	mov	eax, DWORD PTR -36[rbp]
	sub	eax, DWORD PTR -40[rbp]
	sar	eax
	mov	edx, eax
	mov	eax, DWORD PTR -36[rbp]
	sub	eax, edx
	mov	DWORD PTR -16[rbp], eax
	mov	edx, DWORD PTR -16[rbp]
	movsx	rax, edx
	imul	rax, rax, 1431655766
	shr	rax, 32
	mov	ecx, edx
	sar	ecx, 31
	sub	eax, ecx
	mov	ecx, eax
	add	ecx, ecx
	add	ecx, eax
	mov	eax, edx
	sub	eax, ecx
	test	eax, eax
	setne	al
	movzx	eax, al
	mov	DWORD PTR -12[rbp], eax
	mov	eax, DWORD PTR -36[rbp]
	sub	eax, DWORD PTR -40[rbp]
	and	eax, 1
	mov	DWORD PTR -8[rbp], eax
	mov	eax, DWORD PTR -16[rbp]
	movsx	rdx, eax
	imul	rdx, rdx, 1431655766
	shr	rdx, 32
	sar	eax, 31
	mov	ecx, eax
	mov	eax, edx
	sub	eax, ecx
	lea	edx, [rax+rax]
	mov	eax, DWORD PTR -8[rbp]
	add	edx, eax
	mov	eax, 1
	sub	eax, DWORD PTR -8[rbp]
	imul	eax, DWORD PTR -12[rbp]
	add	eax, eax
	add	eax, edx
.L4:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	knight_move, .-knight_move
	.globl	main
	.type	main, @function
main:
.LFB1:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	eax, 0
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.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, 6
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"116174.c"
	.text
	.align	2
	.global	knight_move
	.syntax unified
	.arm
	.fpu softvfp
	.type	knight_move, %function
knight_move:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #36
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	rsblt	r3, r3, #0
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-36]
	cmp	r3, #0
	rsblt	r3, r3, #0
	str	r3, [fp, #-36]
	ldr	r2, [fp, #-32]
	ldr	r3, [fp, #-36]
	cmp	r2, r3
	bge	.L2
	ldr	r3, [fp, #-32]
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-36]
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-24]
	str	r3, [fp, #-36]
.L2:
	ldr	r3, [fp, #-32]
	cmp	r3, #2
	bne	.L3
	ldr	r3, [fp, #-36]
	cmp	r3, #2
	bne	.L3
	mov	r3, #4
	b	.L4
.L3:
	ldr	r3, [fp, #-32]
	cmp	r3, #1
	bne	.L5
	ldr	r3, [fp, #-36]
	cmp	r3, #0
	bne	.L5
	mov	r3, #3
	b	.L4
.L5:
	ldr	r3, [fp, #-36]
	cmp	r3, #0
	beq	.L6
	ldr	r3, [fp, #-36]
	lsl	r3, r3, #1
	ldr	r2, [fp, #-32]
	cmp	r2, r3
	ble	.L7
.L6:
	ldr	r3, [fp, #-36]
	and	r3, r3, #1
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #1
	ldr	r2, [fp, #-32]
	sub	r3, r2, r3
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-24]
	and	r3, r3, #3
	str	r3, [fp, #-8]
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-8]
	sub	r3, r2, r3
	asr	r2, r3, #1
	ldr	r3, [fp, #-8]
	add	r2, r2, r3
	ldr	r3, [fp, #-12]
	add	r3, r2, r3
	b	.L4
.L7:
	ldr	r2, [fp, #-32]
	ldr	r3, [fp, #-36]
	sub	r3, r2, r3
	asr	r3, r3, #1
	ldr	r2, [fp, #-32]
	sub	r3, r2, r3
	str	r3, [fp, #-20]
	ldr	r1, [fp, #-20]
	ldr	r3, .L8
	smull	r0, r2, r3, r1
	asr	r3, r1, #31
	sub	r2, r2, r3
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	sub	r2, r1, r3
	cmp	r2, #0
	movne	r3, #1
	moveq	r3, #0
	and	r3, r3, #255
	str	r3, [fp, #-16]
	ldr	r2, [fp, #-32]
	ldr	r3, [fp, #-36]
	sub	r3, r2, r3
	and	r3, r3, #1
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-20]
	ldr	r2, .L8
	smull	r1, r2, r3, r2
	asr	r3, r3, #31
	sub	r3, r2, r3
	lsl	r2, r3, #1
	ldr	r3, [fp, #-12]
	add	r2, r2, r3
	ldr	r3, [fp, #-12]
	rsb	r3, r3, #1
	ldr	r1, [fp, #-16]
	mul	r3, r1, r3
	lsl	r3, r3, #1
	add	r3, r2, r3
.L4:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L9:
	.align	2
.L8:
	.word	1431655766
	.size	knight_move, .-knight_move
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	mov	r3, #0
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
