	.file	"extr_if_cx.c_cx_intr.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	cx_intr, @function
cx_intr:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	xor	eax, eax
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	r13, QWORD PTR [rdi]
	call	splhigh@PLT
	mov	rdi, rbp
	mov	r12d, eax
	call	CX_LOCK@PLT
	mov	esi, 1
	mov	rdi, r13
	call	cx_led@PLT
	mov	rdi, r13
	call	cx_int_handler@PLT
	movsx	rsi, DWORD PTR hz[rip]
	mov	rdx, QWORD PTR 0[r13]
	mov	rcx, r13
	mov	rax, rsi
	imul	rsi, rsi, 1717986919
	sar	eax, 31
	sar	rsi, 35
	sub	esi, eax
	mov	rax, QWORD PTR led_timo[rip]
	lea	rdi, [rax+rdx*4]
	mov	edx, DWORD PTR cx_led_off[rip]
	call	callout_reset@PLT
	mov	rdi, rbp
	call	CX_UNLOCK@PLT
	mov	edi, r12d
	xor	r12d, r12d
	call	splx@PLT
	mov	edx, DWORD PTR NCHAN[rip]
	test	edx, edx
	jg	.L2
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L5:
	add	r12, 1
	cmp	DWORD PTR NCHAN[rip], r12d
	jle	.L1
.L2:
	mov	rax, r12
	sal	rax, 4
	add	rax, QWORD PTR 8[r13]
	cmp	QWORD PTR 8[rax], 0
	je	.L1
	mov	r14, QWORD PTR [rax]
	test	r14, r14
	je	.L5
	mov	eax, DWORD PTR 8[r14]
	lea	rbx, 4[r14]
	test	eax, eax
	je	.L5
.L7:
	mov	rdi, rbx
	call	_IF_QLEN@PLT
	test	rax, rax
	je	.L5
.L8:
	xor	ebp, ebp
	mov	rdi, rbx
	mov	rsi, rbp
	call	IF_DEQUEUE@PLT
	test	rbp, rbp
	je	.L7
	mov	edi, DWORD PTR [r14]
	mov	rsi, rbp
	call	sppp_input@PLT
	mov	rdi, rbx
	call	_IF_QLEN@PLT
	test	rax, rax
	jne	.L8
	add	r12, 1
	cmp	DWORD PTR NCHAN[rip], r12d
	jg	.L2
.L1:
	pop	rbx
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	cx_intr, .-cx_intr
	.comm	led_timo,8,8
	.comm	hz,4,4
	.comm	cx_led_off,4,4
	.comm	NCHAN,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_if_cx.c_cx_intr.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	cx_intr, %function
cx_intr:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r8, [r0]
	mov	r4, r0
	bl	splhigh
	mov	r5, r0
	mov	r0, r4
	bl	CX_LOCK
	mov	r1, #1
	mov	r0, r8
	bl	cx_led
	mov	r0, r8
	bl	cx_int_handler
	ldr	r3, .L21
	ldr	r2, .L21+4
	ldr	r3, [r3]
	ldr	r1, .L21+8
	smull	r0, r2, r3, r2
	ldr	lr, [r8]
	ldr	ip, .L21+12
	ldr	r0, [r1]
	asr	r1, r3, #31
	rsb	r1, r1, r2, asr #3
	mov	r3, r8
	ldr	r2, [ip]
	add	r0, r0, lr, lsl #2
	bl	callout_reset
	ldr	r9, .L21+16
	mov	r0, r4
	bl	CX_UNLOCK
	mov	r0, r5
	bl	splx
	ldr	r3, [r9]
	cmp	r3, #0
	pople	{r4, r5, r6, r7, r8, r9, r10, pc}
	mov	r7, #0
	b	.L2
.L5:
	ldr	r3, [r9]
	add	r7, r7, #1
	cmp	r3, r7
	pople	{r4, r5, r6, r7, r8, r9, r10, pc}
.L2:
	ldr	r3, [r8, #4]
	add	r2, r3, r7, lsl #3
	ldr	r2, [r2, #4]
	cmp	r2, #0
	popeq	{r4, r5, r6, r7, r8, r9, r10, pc}
	ldr	r6, [r3, r7, lsl #3]
	cmp	r6, #0
	beq	.L5
	ldr	r3, [r6, #8]
	cmp	r3, #0
	addne	r5, r6, #4
	beq	.L5
.L7:
	mov	r0, r5
	bl	_IF_QLEN
	cmp	r0, #0
	beq	.L5
.L8:
	mov	r4, #0
	mov	r0, r5
	mov	r1, r4
	bl	IF_DEQUEUE
	cmp	r4, r4
	beq	.L7
	mov	r1, r4
	ldr	r0, [r6]
	bl	sppp_input
	mov	r0, r5
	bl	_IF_QLEN
	cmp	r0, #0
	bne	.L8
	b	.L5
.L22:
	.align	2
.L21:
	.word	hz
	.word	1717986919
	.word	led_timo
	.word	cx_led_off
	.word	NCHAN
	.size	cx_intr, .-cx_intr
	.comm	led_timo,4,4
	.comm	hz,4,4
	.comm	cx_led_off,4,4
	.comm	NCHAN,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
