	.file	"260953.c"
	.intel_syntax noprefix
	.text
	.globl	position
	.bss
	.align 4
	.type	position, @object
	.size	position, 4
position:
	.zero	4
	.globl	maxPosition
	.align 4
	.type	maxPosition, @object
	.size	maxPosition, 4
maxPosition:
	.zero	4
	.globl	minPosition
	.align 4
	.type	minPosition, @object
	.size	minPosition, 4
minPosition:
	.zero	4
	.globl	warpAround
	.align 4
	.type	warpAround, @object
	.size	warpAround, 4
warpAround:
	.zero	4
	.text
	.globl	rotarySetWarpAround
	.type	rotarySetWarpAround, @function
rotarySetWarpAround:
.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 -4[rbp], edi
	cmp	DWORD PTR -4[rbp], 0
	je	.L2
	mov	eax, DWORD PTR -4[rbp]
	mov	DWORD PTR warpAround[rip], eax
	jmp	.L4
.L2:
	mov	DWORD PTR warpAround[rip], 0
.L4:
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	rotarySetWarpAround, .-rotarySetWarpAround
	.globl	rotaryGetWarpAround
	.type	rotaryGetWarpAround, @function
rotaryGetWarpAround:
.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, DWORD PTR warpAround[rip]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	rotaryGetWarpAround, .-rotaryGetWarpAround
	.globl	rotaryGetPosition
	.type	rotaryGetPosition, @function
rotaryGetPosition:
.LFB2:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	eax, DWORD PTR position[rip]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	rotaryGetPosition, .-rotaryGetPosition
	.globl	rotarySetPosition
	.type	rotarySetPosition, @function
rotarySetPosition:
.LFB3:
	.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 -4[rbp], edi
	mov	eax, DWORD PTR -4[rbp]
	mov	DWORD PTR position[rip], eax
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.size	rotarySetPosition, .-rotarySetPosition
	.globl	rotarySetMin
	.type	rotarySetMin, @function
rotarySetMin:
.LFB4:
	.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 -4[rbp], edi
	mov	eax, DWORD PTR -4[rbp]
	mov	DWORD PTR minPosition[rip], eax
	mov	edx, DWORD PTR position[rip]
	mov	eax, DWORD PTR minPosition[rip]
	cmp	edx, eax
	jg	.L12
	mov	eax, DWORD PTR minPosition[rip]
	mov	DWORD PTR position[rip], eax
.L12:
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE4:
	.size	rotarySetMin, .-rotarySetMin
	.globl	rotaryGetMin
	.type	rotaryGetMin, @function
rotaryGetMin:
.LFB5:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	eax, DWORD PTR minPosition[rip]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE5:
	.size	rotaryGetMin, .-rotaryGetMin
	.globl	rotarySetMax
	.type	rotarySetMax, @function
rotarySetMax:
.LFB6:
	.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 -4[rbp], edi
	mov	eax, DWORD PTR -4[rbp]
	mov	DWORD PTR maxPosition[rip], eax
	mov	eax, DWORD PTR maxPosition[rip]
	test	eax, eax
	je	.L17
	mov	edx, DWORD PTR position[rip]
	mov	eax, DWORD PTR maxPosition[rip]
	cmp	edx, eax
	jl	.L17
	mov	eax, DWORD PTR maxPosition[rip]
	mov	DWORD PTR position[rip], eax
.L17:
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	rotarySetMax, .-rotarySetMax
	.globl	rotaryGetMax
	.type	rotaryGetMax, @function
rotaryGetMax:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	eax, DWORD PTR maxPosition[rip]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	rotaryGetMax, .-rotaryGetMax
	.globl	rotaryUpdate
	.type	rotaryUpdate, @function
rotaryUpdate:
.LFB8:
	.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 -4[rbp], edi
	mov	DWORD PTR -8[rbp], esi
	mov	eax, DWORD PTR previousState.0[rip]
	cmp	eax, 1
	jne	.L21
	mov	eax, DWORD PTR previousState.0[rip+4]
	cmp	eax, 1
	jne	.L21
	cmp	DWORD PTR -4[rbp], 1
	jne	.L22
	cmp	DWORD PTR -8[rbp], 0
	jne	.L22
	mov	eax, DWORD PTR position[rip]
	sub	eax, 1
	mov	DWORD PTR position[rip], eax
.L22:
	cmp	DWORD PTR -4[rbp], 0
	jne	.L21
	cmp	DWORD PTR -8[rbp], 1
	jne	.L21
	mov	eax, DWORD PTR position[rip]
	add	eax, 1
	mov	DWORD PTR position[rip], eax
.L21:
	mov	eax, DWORD PTR previousState.0[rip]
	cmp	eax, 1
	jne	.L23
	mov	eax, DWORD PTR previousState.0[rip+4]
	test	eax, eax
	jne	.L23
	cmp	DWORD PTR -4[rbp], 1
	jne	.L24
	cmp	DWORD PTR -8[rbp], 1
	jne	.L24
	mov	eax, DWORD PTR position[rip]
	add	eax, 1
	mov	DWORD PTR position[rip], eax
.L24:
	cmp	DWORD PTR -4[rbp], 0
	jne	.L23
	cmp	DWORD PTR -8[rbp], 0
	jne	.L23
	mov	eax, DWORD PTR position[rip]
	sub	eax, 1
	mov	DWORD PTR position[rip], eax
.L23:
	mov	eax, DWORD PTR previousState.0[rip]
	test	eax, eax
	jne	.L25
	mov	eax, DWORD PTR previousState.0[rip+4]
	test	eax, eax
	jne	.L25
	cmp	DWORD PTR -4[rbp], 1
	jne	.L26
	cmp	DWORD PTR -8[rbp], 0
	jne	.L26
	mov	eax, DWORD PTR position[rip]
	add	eax, 1
	mov	DWORD PTR position[rip], eax
.L26:
	cmp	DWORD PTR -4[rbp], 0
	jne	.L25
	cmp	DWORD PTR -8[rbp], 1
	jne	.L25
	mov	eax, DWORD PTR position[rip]
	sub	eax, 1
	mov	DWORD PTR position[rip], eax
.L25:
	mov	eax, DWORD PTR -4[rbp]
	mov	DWORD PTR previousState.0[rip], eax
	mov	eax, DWORD PTR -8[rbp]
	mov	DWORD PTR previousState.0[rip+4], eax
	mov	edx, DWORD PTR position[rip]
	mov	eax, DWORD PTR maxPosition[rip]
	cmp	edx, eax
	jle	.L27
	mov	eax, DWORD PTR warpAround[rip]
	test	eax, eax
	je	.L28
	mov	eax, DWORD PTR minPosition[rip]
	mov	DWORD PTR position[rip], eax
	jmp	.L27
.L28:
	mov	eax, DWORD PTR maxPosition[rip]
	mov	DWORD PTR position[rip], eax
.L27:
	mov	edx, DWORD PTR position[rip]
	mov	eax, DWORD PTR minPosition[rip]
	cmp	edx, eax
	jge	.L31
	mov	eax, DWORD PTR warpAround[rip]
	test	eax, eax
	je	.L30
	mov	eax, DWORD PTR maxPosition[rip]
	mov	DWORD PTR position[rip], eax
	jmp	.L31
.L30:
	mov	eax, DWORD PTR minPosition[rip]
	mov	DWORD PTR position[rip], eax
.L31:
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	rotaryUpdate, .-rotaryUpdate
	.local	previousState.0
	.comm	previousState.0,8,8
	.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	"260953.c"
	.text
	.comm	position,4,4
	.comm	maxPosition,4,4
	.comm	minPosition,4,4
	.comm	warpAround,4,4
	.align	2
	.global	rotarySetWarpAround
	.syntax unified
	.arm
	.fpu softvfp
	.type	rotarySetWarpAround, %function
rotarySetWarpAround:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L2
	ldr	r2, .L5
	ldr	r3, [fp, #-8]
	str	r3, [r2]
	b	.L4
.L2:
	ldr	r3, .L5
	mov	r2, #0
	str	r2, [r3]
.L4:
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L6:
	.align	2
.L5:
	.word	warpAround
	.size	rotarySetWarpAround, .-rotarySetWarpAround
	.align	2
	.global	rotaryGetWarpAround
	.syntax unified
	.arm
	.fpu softvfp
	.type	rotaryGetWarpAround, %function
rotaryGetWarpAround:
	@ 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
	ldr	r3, .L9
	ldr	r3, [r3]
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L10:
	.align	2
.L9:
	.word	warpAround
	.size	rotaryGetWarpAround, .-rotaryGetWarpAround
	.align	2
	.global	rotaryGetPosition
	.syntax unified
	.arm
	.fpu softvfp
	.type	rotaryGetPosition, %function
rotaryGetPosition:
	@ 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
	ldr	r3, .L13
	ldr	r3, [r3]
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L14:
	.align	2
.L13:
	.word	position
	.size	rotaryGetPosition, .-rotaryGetPosition
	.align	2
	.global	rotarySetPosition
	.syntax unified
	.arm
	.fpu softvfp
	.type	rotarySetPosition, %function
rotarySetPosition:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	ldr	r2, .L16
	ldr	r3, [fp, #-8]
	str	r3, [r2]
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L17:
	.align	2
.L16:
	.word	position
	.size	rotarySetPosition, .-rotarySetPosition
	.align	2
	.global	rotarySetMin
	.syntax unified
	.arm
	.fpu softvfp
	.type	rotarySetMin, %function
rotarySetMin:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	ldr	r2, .L21
	ldr	r3, [fp, #-8]
	str	r3, [r2]
	ldr	r3, .L21+4
	ldr	r2, [r3]
	ldr	r3, .L21
	ldr	r3, [r3]
	cmp	r2, r3
	bgt	.L20
	ldr	r3, .L21
	ldr	r3, [r3]
	ldr	r2, .L21+4
	str	r3, [r2]
.L20:
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L22:
	.align	2
.L21:
	.word	minPosition
	.word	position
	.size	rotarySetMin, .-rotarySetMin
	.align	2
	.global	rotaryGetMin
	.syntax unified
	.arm
	.fpu softvfp
	.type	rotaryGetMin, %function
rotaryGetMin:
	@ 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
	ldr	r3, .L25
	ldr	r3, [r3]
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L26:
	.align	2
.L25:
	.word	minPosition
	.size	rotaryGetMin, .-rotaryGetMin
	.align	2
	.global	rotarySetMax
	.syntax unified
	.arm
	.fpu softvfp
	.type	rotarySetMax, %function
rotarySetMax:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	ldr	r2, .L30
	ldr	r3, [fp, #-8]
	str	r3, [r2]
	ldr	r3, .L30
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L29
	ldr	r3, .L30+4
	ldr	r2, [r3]
	ldr	r3, .L30
	ldr	r3, [r3]
	cmp	r2, r3
	blt	.L29
	ldr	r3, .L30
	ldr	r3, [r3]
	ldr	r2, .L30+4
	str	r3, [r2]
.L29:
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L31:
	.align	2
.L30:
	.word	maxPosition
	.word	position
	.size	rotarySetMax, .-rotarySetMax
	.align	2
	.global	rotaryGetMax
	.syntax unified
	.arm
	.fpu softvfp
	.type	rotaryGetMax, %function
rotaryGetMax:
	@ 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
	ldr	r3, .L34
	ldr	r3, [r3]
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L35:
	.align	2
.L34:
	.word	maxPosition
	.size	rotaryGetMax, .-rotaryGetMax
	.align	2
	.global	rotaryUpdate
	.syntax unified
	.arm
	.fpu softvfp
	.type	rotaryUpdate, %function
rotaryUpdate:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	ldr	r3, .L48
	ldr	r3, [r3]
	cmp	r3, #1
	bne	.L37
	ldr	r3, .L48
	ldr	r3, [r3, #4]
	cmp	r3, #1
	bne	.L37
	ldr	r3, [fp, #-8]
	cmp	r3, #1
	bne	.L38
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L38
	ldr	r3, .L48+4
	ldr	r3, [r3]
	sub	r3, r3, #1
	ldr	r2, .L48+4
	str	r3, [r2]
.L38:
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L37
	ldr	r3, [fp, #-12]
	cmp	r3, #1
	bne	.L37
	ldr	r3, .L48+4
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L48+4
	str	r3, [r2]
.L37:
	ldr	r3, .L48
	ldr	r3, [r3]
	cmp	r3, #1
	bne	.L39
	ldr	r3, .L48
	ldr	r3, [r3, #4]
	cmp	r3, #0
	bne	.L39
	ldr	r3, [fp, #-8]
	cmp	r3, #1
	bne	.L40
	ldr	r3, [fp, #-12]
	cmp	r3, #1
	bne	.L40
	ldr	r3, .L48+4
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L48+4
	str	r3, [r2]
.L40:
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L39
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L39
	ldr	r3, .L48+4
	ldr	r3, [r3]
	sub	r3, r3, #1
	ldr	r2, .L48+4
	str	r3, [r2]
.L39:
	ldr	r3, .L48
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L41
	ldr	r3, .L48
	ldr	r3, [r3, #4]
	cmp	r3, #0
	bne	.L41
	ldr	r3, [fp, #-8]
	cmp	r3, #1
	bne	.L42
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L42
	ldr	r3, .L48+4
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L48+4
	str	r3, [r2]
.L42:
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L41
	ldr	r3, [fp, #-12]
	cmp	r3, #1
	bne	.L41
	ldr	r3, .L48+4
	ldr	r3, [r3]
	sub	r3, r3, #1
	ldr	r2, .L48+4
	str	r3, [r2]
.L41:
	ldr	r2, .L48
	ldr	r3, [fp, #-8]
	str	r3, [r2]
	ldr	r2, .L48
	ldr	r3, [fp, #-12]
	str	r3, [r2, #4]
	ldr	r3, .L48+4
	ldr	r2, [r3]
	ldr	r3, .L48+8
	ldr	r3, [r3]
	cmp	r2, r3
	ble	.L43
	ldr	r3, .L48+12
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L44
	ldr	r3, .L48+16
	ldr	r3, [r3]
	ldr	r2, .L48+4
	str	r3, [r2]
	b	.L43
.L44:
	ldr	r3, .L48+8
	ldr	r3, [r3]
	ldr	r2, .L48+4
	str	r3, [r2]
.L43:
	ldr	r3, .L48+4
	ldr	r2, [r3]
	ldr	r3, .L48+16
	ldr	r3, [r3]
	cmp	r2, r3
	bge	.L47
	ldr	r3, .L48+12
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L46
	ldr	r3, .L48+8
	ldr	r3, [r3]
	ldr	r2, .L48+4
	str	r3, [r2]
	b	.L47
.L46:
	ldr	r3, .L48+16
	ldr	r3, [r3]
	ldr	r2, .L48+4
	str	r3, [r2]
.L47:
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L49:
	.align	2
.L48:
	.word	previousState.4226
	.word	position
	.word	maxPosition
	.word	warpAround
	.word	minPosition
	.size	rotaryUpdate, .-rotaryUpdate
	.local	previousState.4226
	.comm	previousState.4226,8,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
