	.file	"extr_ips.c_ips_shift_controllers.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	ips_shift_controllers, @function
ips_shift_controllers:
.LFB0:
	.cfi_startproc
	endbr64
	mov	r8, QWORD PTR ips_ha[rip]
	mov	rcx, QWORD PTR ips_sh[rip]
	movsx	rax, esi
	mov	r9, QWORD PTR [r8+rax*8]
	mov	r10, QWORD PTR [rcx+rax*8]
	cmp	esi, edi
	jle	.L2
	.p2align 4,,10
	.p2align 3
.L3:
	mov	rdx, QWORD PTR -8[r8+rax*8]
	mov	rsi, QWORD PTR -8[rcx+rax*8]
	mov	QWORD PTR [r8+rax*8], rdx
	mov	QWORD PTR [rcx+rax*8], rsi
	mov	DWORD PTR [rdx], eax
	sub	rax, 1
	cmp	edi, eax
	jl	.L3
.L2:
	mov	DWORD PTR [r9], edi
	movsx	rdi, edi
	mov	QWORD PTR [r8+rdi*8], r9
	mov	QWORD PTR [rcx+rdi*8], r10
	ret
	.cfi_endproc
.LFE0:
	.size	ips_shift_controllers, .-ips_shift_controllers
	.comm	ips_sh,8,8
	.comm	ips_ha,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_ips.c_ips_shift_controllers.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ips_shift_controllers, %function
ips_shift_controllers:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r2, .L7
	ldr	r3, .L7+4
	push	{r4, r5, r6, r7, lr}
	ldr	r5, [r2]
	ldr	r4, [r3]
	cmp	r1, r0
	ldr	r6, [r5, r1, lsl #2]
	ldr	r7, [r4, r1, lsl #2]
	add	r2, r5, r1, lsl #2
	add	r3, r4, r1, lsl #2
	ble	.L2
.L3:
	ldr	ip, [r2, #-4]
	ldr	lr, [r3, #-4]
	str	ip, [r2], #-4
	str	lr, [r3], #-4
	str	r1, [ip]
	sub	r1, r1, #1
	cmp	r0, r1
	bne	.L3
.L2:
	str	r0, [r6]
	str	r6, [r5, r0, lsl #2]
	str	r7, [r4, r0, lsl #2]
	pop	{r4, r5, r6, r7, pc}
.L8:
	.align	2
.L7:
	.word	ips_ha
	.word	ips_sh
	.size	ips_shift_controllers, .-ips_shift_controllers
	.comm	ips_sh,4,4
	.comm	ips_ha,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
