	.file	"extr_synclink_cs.c_ri_change.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	ri_change, @function
ri_change:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	mov	rbx, rdi
	call	get_signals@PLT
	movsx	rax, DWORD PTR 28[rbx]
	cmp	rax, QWORD PTR IO_PIN_SHUTDOWN_LIMIT[rip]
	lea	edx, 1[rax]
	mov	DWORD PTR 28[rbx], edx
	jge	.L7
.L2:
	add	DWORD PTR 24[rbx], 1
	mov	eax, DWORD PTR [rbx]
	test	DWORD PTR SerialSignal_RI[rip], eax
	je	.L3
	add	DWORD PTR 20[rbx], 1
.L4:
	lea	rdi, 12[rbx]
	call	wake_up_interruptible@PLT
	lea	rdi, 8[rbx]
	call	wake_up_interruptible@PLT
	mov	eax, DWORD PTR BH_STATUS[rip]
	or	DWORD PTR 4[rbx], eax
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	add	DWORD PTR 16[rbx], 1
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L7:
	mov	esi, DWORD PTR PVR_RI[rip]
	mov	rdi, rbx
	call	port_irq_disable@PLT
	jmp	.L2
	.cfi_endproc
.LFE0:
	.size	ri_change, .-ri_change
	.comm	SerialSignal_RI,4,4
	.comm	PVR_RI,4,4
	.comm	IO_PIN_SHUTDOWN_LIMIT,8,8
	.comm	BH_STATUS,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_synclink_cs.c_ri_change.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ri_change, %function
ri_change:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, lr}
	mov	r4, r0
	bl	get_signals
	ldr	r2, .L8
	ldr	r3, [r4, #28]
	ldr	r1, [r2]
	add	r2, r3, #1
	cmp	r3, r1
	str	r2, [r4, #28]
	bge	.L7
.L2:
	ldr	r3, .L8+4
	ldr	r1, [r4]
	ldr	r2, [r3]
	ldr	r3, [r4, #24]
	tst	r1, r2
	add	r3, r3, #1
	str	r3, [r4, #24]
	ldrne	r3, [r4, #20]
	ldreq	r3, [r4, #16]
	addne	r3, r3, #1
	addeq	r3, r3, #1
	strne	r3, [r4, #20]
	streq	r3, [r4, #16]
	add	r0, r4, #12
	bl	wake_up_interruptible
	add	r0, r4, #8
	bl	wake_up_interruptible
	ldr	r2, .L8+8
	ldr	r3, [r4, #4]
	ldr	r2, [r2]
	orr	r3, r3, r2
	str	r3, [r4, #4]
	pop	{r4, pc}
.L7:
	ldr	r3, .L8+12
	mov	r0, r4
	ldr	r1, [r3]
	bl	port_irq_disable
	b	.L2
.L9:
	.align	2
.L8:
	.word	IO_PIN_SHUTDOWN_LIMIT
	.word	SerialSignal_RI
	.word	BH_STATUS
	.word	PVR_RI
	.size	ri_change, .-ri_change
	.comm	SerialSignal_RI,4,4
	.comm	PVR_RI,4,4
	.comm	IO_PIN_SHUTDOWN_LIMIT,4,4
	.comm	BH_STATUS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
