	.file	"extr_hscx_irq.c_hscx_int_main.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"HSCX B EXIR %x Lost TX"
.LC1:
	.string	"HSCX B EXIR %x"
.LC2:
	.string	"HSCX B interrupt %x"
.LC3:
	.string	"HSCX A EXIR %x Lost TX"
.LC4:
	.string	"HSCX A EXIR %x"
.LC5:
	.string	"HSCX A interrupt %x"
	.text
	.p2align 4
	.type	hscx_int_main, @function
hscx_int_main:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12d, esi
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	and	r12d, 248
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	ebx, esi
	and	esi, 1
	jne	.L43
.L3:
	test	r12d, r12d
	je	.L10
	mov	eax, DWORD PTR 0[rbp]
	test	DWORD PTR L1_DEB_HSCX[rip], eax
	je	.L12
	mov	edx, ebx
	lea	rsi, .LC2[rip]
	mov	rdi, rbp
	call	debugl1@PLT
.L12:
	mov	edx, 1
	mov	esi, ebx
	mov	rdi, rbp
	call	hscx_interrupt@PLT
.L10:
	test	bl, 2
	jne	.L44
.L14:
	and	ebx, 4
	jne	.L45
	pop	rbx
	.cfi_remember_state
	.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
	.p2align 4,,10
	.p2align 3
.L43:
	.cfi_restore_state
	mov	edx, DWORD PTR HSCX_EXIR[rip]
	mov	esi, 1
	mov	r14, QWORD PTR 8[rdi]
	call	READHSCX@PLT
	mov	r13d, eax
	test	al, 64
	je	.L4
	cmp	DWORD PTR 48[r14], 1
	je	.L46
	mov	rdi, QWORD PTR 80[r14]
	test	rdi, rdi
	jne	.L47
.L6:
	mov	esi, DWORD PTR 56[r14]
	mov	edx, 1
	mov	rdi, rbp
	call	WriteHSCXCMDR@PLT
	mov	eax, DWORD PTR 0[rbp]
	test	DWORD PTR L1_DEB_WARN[rip], eax
	je	.L3
	mov	edx, r13d
	lea	rsi, .LC0[rip]
	mov	rdi, rbp
	call	debugl1@PLT
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L45:
	mov	edx, DWORD PTR HSCX_ISTA[rip]
	xor	esi, esi
	mov	rdi, rbp
	call	READHSCX@PLT
	mov	r12d, eax
	mov	eax, DWORD PTR 0[rbp]
	test	DWORD PTR L1_DEB_HSCX[rip], eax
	jne	.L48
.L20:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	esi, r12d
	mov	rdi, rbp
	xor	edx, edx
	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
	jmp	hscx_interrupt@PLT
	.p2align 4,,10
	.p2align 3
.L44:
	.cfi_restore_state
	mov	edx, DWORD PTR HSCX_EXIR[rip]
	xor	esi, esi
	mov	rdi, rbp
	mov	r13, QWORD PTR 8[rbp]
	call	READHSCX@PLT
	mov	r12d, eax
	test	al, 64
	je	.L15
	movsx	rax, DWORD PTR 0[r13]
	cmp	rax, QWORD PTR L1_MODE_TRANS[rip]
	je	.L49
	mov	rdi, QWORD PTR 32[r13]
	test	rdi, rdi
	jne	.L50
.L17:
	mov	esi, DWORD PTR 8[r13]
	mov	edx, 1
	mov	rdi, rbp
	call	WriteHSCXCMDR@PLT
	mov	eax, DWORD PTR 0[rbp]
	test	DWORD PTR L1_DEB_WARN[rip], eax
	je	.L14
	mov	edx, r12d
	lea	rsi, .LC3[rip]
	mov	rdi, rbp
	call	debugl1@PLT
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L15:
	mov	eax, DWORD PTR 0[rbp]
	test	DWORD PTR L1_DEB_HSCX[rip], eax
	je	.L14
	mov	edx, r12d
	lea	rsi, .LC4[rip]
	mov	rdi, rbp
	call	debugl1@PLT
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L4:
	mov	eax, DWORD PTR 0[rbp]
	test	DWORD PTR L1_DEB_HSCX[rip], eax
	jne	.L51
	test	r12d, r12d
	jne	.L12
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L48:
	mov	edx, r12d
	lea	rsi, .LC5[rip]
	mov	rdi, rbp
	call	debugl1@PLT
	jmp	.L20
	.p2align 4,,10
	.p2align 3
.L51:
	mov	edx, r13d
	lea	rsi, .LC1[rip]
	mov	rdi, rbp
	call	debugl1@PLT
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L47:
	mov	rsi, QWORD PTR 64[r14]
	call	skb_push@PLT
	mov	rax, QWORD PTR 64[r14]
	add	DWORD PTR 72[r14], eax
	mov	QWORD PTR 64[r14], 0
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L50:
	mov	rsi, QWORD PTR 16[r13]
	call	skb_push@PLT
	mov	rax, QWORD PTR 16[r13]
	add	DWORD PTR 24[r13], eax
	mov	QWORD PTR 16[r13], 0
	jmp	.L17
	.p2align 4,,10
	.p2align 3
.L46:
	lea	rdi, 48[r14]
	call	hscx_fill_fifo@PLT
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L49:
	mov	rdi, r13
	call	hscx_fill_fifo@PLT
	jmp	.L14
	.cfi_endproc
.LFE0:
	.size	hscx_int_main, .-hscx_int_main
	.comm	L1_MODE_TRANS,8,8
	.comm	L1_DEB_WARN,4,4
	.comm	L1_DEB_HSCX,4,4
	.comm	HSCX_ISTA,4,4
	.comm	HSCX_EXIR,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_hscx_irq.c_hscx_int_main.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"HSCX B EXIR %x Lost TX\000"
	.align	2
.LC1:
	.ascii	"HSCX B EXIR %x\000"
	.align	2
.LC2:
	.ascii	"HSCX B interrupt %x\000"
	.align	2
.LC3:
	.ascii	"HSCX A EXIR %x Lost TX\000"
	.align	2
.LC4:
	.ascii	"HSCX A EXIR %x\000"
	.align	2
.LC5:
	.ascii	"HSCX A interrupt %x\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	hscx_int_main, %function
hscx_int_main:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	tst	r1, #1
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r1
	mov	r5, r0
	and	r6, r1, #248
	bne	.L43
.L3:
	cmp	r6, #0
	beq	.L10
	ldr	r3, .L51
	ldr	r2, [r5]
	ldr	r3, [r3]
	tst	r2, r3
	beq	.L12
	mov	r2, r4
	mov	r0, r5
	ldr	r1, .L51+4
	bl	debugl1
.L12:
	mov	r2, #1
	mov	r1, r4
	mov	r0, r5
	bl	hscx_interrupt
.L10:
	tst	r4, #2
	bne	.L44
.L14:
	tst	r4, #4
	popeq	{r4, r5, r6, r7, r8, pc}
	ldr	r3, .L51+8
	mov	r1, #0
	ldr	r2, [r3]
	mov	r0, r5
	bl	READHSCX
	ldr	r3, .L51
	ldr	r2, [r5]
	ldr	r3, [r3]
	mov	r4, r0
	tst	r2, r3
	bne	.L45
.L20:
	mov	r1, r4
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, lr}
	mov	r2, #0
	b	hscx_interrupt
.L43:
	ldr	r3, .L51+12
	mov	r1, #1
	ldr	r2, [r3]
	ldr	r8, [r0, #4]
	bl	READHSCX
	tst	r0, #64
	mov	r7, r0
	beq	.L4
	ldr	r3, [r8, #24]
	cmp	r3, #1
	beq	.L46
	ldr	r0, [r8, #40]
	cmp	r0, #0
	bne	.L47
.L6:
	mov	r2, #1
	mov	r0, r5
	ldr	r1, [r8, #28]
	bl	WriteHSCXCMDR
	ldr	r3, .L51+16
	ldr	r2, [r5]
	ldr	r3, [r3]
	tst	r2, r3
	beq	.L3
	mov	r2, r7
	mov	r0, r5
	ldr	r1, .L51+20
	bl	debugl1
	b	.L3
.L44:
	ldr	r3, .L51+12
	mov	r1, #0
	mov	r0, r5
	ldr	r2, [r3]
	ldr	r7, [r5, #4]
	bl	READHSCX
	tst	r0, #64
	mov	r6, r0
	beq	.L15
	ldr	r3, .L51+24
	ldr	r2, [r7]
	ldr	r3, [r3]
	cmp	r2, r3
	beq	.L48
	ldr	r0, [r7, #16]
	cmp	r0, #0
	bne	.L49
.L17:
	mov	r2, #1
	mov	r0, r5
	ldr	r1, [r7, #4]
	bl	WriteHSCXCMDR
	ldr	r3, .L51+16
	ldr	r2, [r5]
	ldr	r3, [r3]
	tst	r2, r3
	beq	.L14
	mov	r2, r6
	mov	r0, r5
	ldr	r1, .L51+28
	bl	debugl1
	b	.L14
.L15:
	ldr	r3, .L51
	ldr	r2, [r5]
	ldr	r3, [r3]
	tst	r2, r3
	beq	.L14
	mov	r2, r0
	ldr	r1, .L51+32
	mov	r0, r5
	bl	debugl1
	b	.L14
.L4:
	ldr	r3, .L51
	ldr	r2, [r5]
	ldr	r3, [r3]
	tst	r2, r3
	bne	.L50
	cmp	r6, #0
	bne	.L12
	b	.L10
.L45:
	mov	r2, r0
	ldr	r1, .L51+36
	mov	r0, r5
	bl	debugl1
	b	.L20
.L50:
	mov	r2, r0
	ldr	r1, .L51+40
	mov	r0, r5
	bl	debugl1
	b	.L3
.L47:
	ldr	r1, [r8, #32]
	bl	skb_push
	mov	r1, #0
	ldr	r3, [r8, #36]
	ldr	r2, [r8, #32]
	str	r1, [r8, #32]
	add	r3, r3, r2
	str	r3, [r8, #36]
	b	.L6
.L49:
	ldr	r1, [r7, #8]
	bl	skb_push
	mov	r1, #0
	ldr	r3, [r7, #12]
	ldr	r2, [r7, #8]
	str	r1, [r7, #8]
	add	r3, r3, r2
	str	r3, [r7, #12]
	b	.L17
.L46:
	add	r0, r8, #24
	bl	hscx_fill_fifo
	b	.L3
.L48:
	mov	r0, r7
	bl	hscx_fill_fifo
	b	.L14
.L52:
	.align	2
.L51:
	.word	L1_DEB_HSCX
	.word	.LC2
	.word	HSCX_ISTA
	.word	HSCX_EXIR
	.word	L1_DEB_WARN
	.word	.LC0
	.word	L1_MODE_TRANS
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC1
	.size	hscx_int_main, .-hscx_int_main
	.comm	L1_MODE_TRANS,4,4
	.comm	L1_DEB_WARN,4,4
	.comm	L1_DEB_HSCX,4,4
	.comm	HSCX_ISTA,4,4
	.comm	HSCX_EXIR,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
