	.file	"extr_icn.c_icn_pollbchan_send.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	icn_pollbchan_send, @function
icn_pollbchan_send:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14, rsi
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	lea	r13d, 2[rdi]
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 56
	.cfi_def_cfa_offset 112
	mov	DWORD PTR 12[rsp], edi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 40[rsp], rax
	xor	eax, eax
	cmp	QWORD PTR 64[rsi], 0
	jne	.L2
	mov	r13d, edi
.L2:
	movsx	r12, DWORD PTR 12[rsp]
	mov	rax, QWORD PTR 48[r14]
	cmp	QWORD PTR [rax+r12*8], 0
	lea	rbx, 0[0+r12*8]
	jne	.L3
	mov	rax, QWORD PTR 24[r14]
	cmp	QWORD PTR [rax+r12*8], 0
	je	.L37
.L3:
	mov	esi, r13d
	mov	rdi, r14
	call	icn_trymaplock_channel@PLT
	test	rax, rax
	je	.L1
	lea	rax, 0[0+r12*4]
	lea	rbp, 8[r14]
	mov	QWORD PTR [rsp], rax
	mov	eax, r13d
	and	eax, 2
	mov	DWORD PTR 8[rsp], eax
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L17:
	lea	rsi, sbuf_f[rip]
	mov	edi, 255
	call	writeb@PLT
	mov	r15d, DWORD PTR ICN_FRAGSIZE[rip]
.L11:
	lea	rsi, sbuf_l[rip]
	mov	edi, r15d
	call	writeb@PLT
	mov	esi, DWORD PTR 4[r12]
	mov	edx, r15d
	lea	rdi, sbuf_d[rip]
	call	memcpy_toio@PLT
	mov	esi, r15d
	mov	rdi, r12
	call	skb_pull@PLT
	mov	esi, DWORD PTR 8[rsp]
	mov	rdi, r14
	call	icn_maprelease_channel@PLT
	xor	esi, esi
	mov	rdi, rbp
	call	spin_lock_irqsave@PLT
	mov	rax, QWORD PTR 48[r14]
	mov	ecx, DWORD PTR [r12]
	movsx	rdx, r15d
	add	rax, rbx
	sub	QWORD PTR [rax], rdx
	test	ecx, ecx
	jne	.L12
	mov	rax, QWORD PTR 24[r14]
	add	rax, rbx
	cmp	QWORD PTR [rax], 0
	je	.L13
	mov	QWORD PTR [rax], 0
.L13:
	mov	rax, QWORD PTR 16[r14]
	xor	esi, esi
	mov	rdi, rbp
	mov	QWORD PTR [rax+rbx], 0
	call	spin_unlock_irqrestore@PLT
	mov	rdi, r12
	call	dev_kfree_skb@PLT
	mov	rax, QWORD PTR [rsp]
	add	rax, QWORD PTR [r14]
	mov	edx, DWORD PTR [rax]
	test	edx, edx
	je	.L14
	mov	edx, DWORD PTR ISDN_STAT_BSENT[rip]
	mov	ecx, DWORD PTR 12[rsp]
	lea	rdi, 16[rsp]
	mov	DWORD PTR 28[rsp], edx
	mov	edx, DWORD PTR 40[r14]
	mov	DWORD PTR 16[rsp], ecx
	mov	DWORD PTR 24[rsp], edx
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR 20[rsp], eax
	call	[QWORD PTR 32[r14]]
.L14:
	mov	esi, r13d
	mov	rdi, r14
	call	icn_trymaplock_channel@PLT
	test	rax, rax
	je	.L7
.L5:
	cmp	QWORD PTR sbfree[rip], 0
	je	.L7
	mov	rax, QWORD PTR 48[r14]
	cmp	QWORD PTR [rax+rbx], 0
	jne	.L16
	mov	rdi, QWORD PTR [rsp]
	add	rdi, QWORD PTR 56[r14]
	call	skb_queue_empty@PLT
	test	eax, eax
	je	.L16
	mov	rax, QWORD PTR 24[r14]
	cmp	QWORD PTR [rax+rbx], 0
	je	.L7
.L16:
	xor	esi, esi
	mov	rdi, rbp
	call	spin_lock_irqsave@PLT
	mov	rax, QWORD PTR 16[r14]
	add	rax, rbx
	cmp	QWORD PTR [rax], 0
	jne	.L38
	mov	QWORD PTR [rax], 1
	xor	esi, esi
	mov	rdi, rbp
	call	spin_unlock_irqrestore@PLT
	mov	rax, QWORD PTR 24[r14]
	mov	r12, QWORD PTR [rax+rbx]
	test	r12, r12
	je	.L39
.L8:
	mov	eax, DWORD PTR ICN_FRAGSIZE[rip]
	cmp	DWORD PTR [r12], eax
	jg	.L17
	lea	rsi, sbuf_f[rip]
	xor	edi, edi
	call	writeb@PLT
	mov	r15d, DWORD PTR [r12]
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L38:
	xor	esi, esi
	mov	rdi, rbp
	call	spin_unlock_irqrestore@PLT
	.p2align 4,,10
	.p2align 3
.L7:
	mov	esi, DWORD PTR 8[rsp]
	mov	rdi, r14
	call	icn_maprelease_channel@PLT
.L1:
	mov	rax, QWORD PTR 40[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L40
	add	rsp, 56
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L12:
	.cfi_restore_state
	mov	rax, QWORD PTR 24[r14]
	xor	esi, esi
	mov	rdi, rbp
	mov	QWORD PTR [rax+rbx], r12
	mov	rax, QWORD PTR 16[r14]
	mov	QWORD PTR [rax+rbx], 0
	call	spin_unlock_irqrestore@PLT
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L39:
	mov	r15, QWORD PTR [rsp]
	mov	rdi, QWORD PTR 56[r14]
	add	rdi, r15
	call	skb_dequeue@PLT
	mov	r12, rax
	test	rax, rax
	je	.L7
	mov	esi, 1
	mov	rdi, rax
	call	skb_pull@PLT
	cmp	QWORD PTR [rax], 0
	je	.L10
	mov	edx, DWORD PTR [r12]
	mov	rax, QWORD PTR [r14]
	mov	DWORD PTR [rax+r15], edx
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L10:
	mov	rax, QWORD PTR [r14]
	mov	rcx, QWORD PTR [rsp]
	mov	DWORD PTR [rax+rcx], 0
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L37:
	mov	rax, QWORD PTR 56[r14]
	lea	rdi, [rax+r12*4]
	call	skb_queue_empty@PLT
	test	eax, eax
	je	.L3
	jmp	.L1
.L40:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	icn_pollbchan_send, .-icn_pollbchan_send
	.comm	sbuf_l,4,4
	.comm	sbuf_f,4,4
	.comm	sbuf_d,4,4
	.comm	sbnext,4,4
	.comm	sbfree,8,8
	.comm	ISDN_STAT_BSENT,4,4
	.comm	ICN_FRAGSIZE,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_icn.c_icn_pollbchan_send.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	icn_pollbchan_send, %function
icn_pollbchan_send:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r3, [r1, #32]
	sub	sp, sp, #36
	cmp	r3, #0
	ldr	r3, .L52
	str	r0, [sp, #4]
	ldr	r2, [sp, #4]
	ldr	r3, [r3]
	str	r3, [sp, #28]
	mov	r3,#0
	ldr	r3, [r1, #24]
	ldreq	r9, [sp, #4]
	ldr	r3, [r3, r2, lsl #2]
	addne	r9, r0, #2
	cmp	r3, #0
	mov	r4, r1
	lsl	r5, r2, #2
	bne	.L3
	ldr	r3, [r1, #12]
	ldr	r3, [r3, r2, lsl #2]
	cmp	r3, #0
	beq	.L48
.L3:
	mov	r1, r9
	mov	r0, r4
	bl	icn_trymaplock_channel
	cmp	r0, #0
	beq	.L1
	and	r3, r9, #2
	ldr	fp, .L52+4
	ldr	r8, .L52+8
	str	r3, [sp]
	add	r6, r4, #4
	b	.L5
.L17:
	mov	r0, #255
	ldr	r1, .L52+12
	bl	writeb
	ldr	r7, [r8]
.L11:
	ldr	r1, .L52+16
	mov	r0, r7
	bl	writeb
	mov	r2, r7
	ldr	r1, [r10, #4]
	ldr	r0, .L52+20
	bl	memcpy_toio
	mov	r1, r7
	mov	r0, r10
	bl	skb_pull
	ldr	r1, [sp]
	mov	r0, r4
	bl	icn_maprelease_channel
	mov	r1, #0
	mov	r0, r6
	bl	spin_lock_irqsave
	ldr	r1, [r4, #24]
	ldr	r0, [r10]
	ldr	r2, [r1, r5]
	cmp	r0, #0
	sub	r2, r2, r7
	str	r2, [r1, r5]
	bne	.L12
	ldr	r2, [r4, #12]
	ldr	r1, [r2, r5]
	cmp	r1, #0
	strne	r0, [r2, r5]
	mov	r0, #0
	ldr	r2, [r4, #8]
	mov	r1, r0
	str	r0, [r2, r5]
	mov	r0, r6
	bl	spin_unlock_irqrestore
	mov	r0, r10
	bl	dev_kfree_skb
	ldr	r3, [r4]
	ldr	r2, [r3, r5]
	cmp	r2, #0
	beq	.L14
	ldr	r2, .L52+24
	ldr	r0, [sp, #4]
	ldr	r1, [r2]
	ldr	r2, [r4, #20]
	str	r0, [sp, #12]
	str	r1, [sp, #24]
	str	r2, [sp, #20]
	ldr	r2, [r3, r5]
	add	r0, sp, #12
	ldr	r3, [r4, #16]
	str	r2, [sp, #16]
	blx	r3
.L14:
	mov	r1, r9
	mov	r0, r4
	bl	icn_trymaplock_channel
	cmp	r0, #0
	beq	.L7
.L5:
	ldr	r3, [fp]
	cmp	r3, #0
	beq	.L7
	ldr	r3, [r4, #24]
	ldr	r3, [r3, r5]
	cmp	r3, #0
	bne	.L16
	ldr	r0, [r4, #28]
	add	r0, r0, r5
	bl	skb_queue_empty
	cmp	r0, #0
	beq	.L16
	ldr	r3, [r4, #12]
	ldr	r3, [r3, r5]
	cmp	r3, #0
	beq	.L7
.L16:
	mov	r1, #0
	mov	r0, r6
	bl	spin_lock_irqsave
	ldr	r3, [r4, #8]
	ldr	r2, [r3, r5]
	cmp	r2, #0
	bne	.L49
	mov	r7, #1
	mov	r1, #0
	str	r7, [r3, r5]
	mov	r0, r6
	bl	spin_unlock_irqrestore
	ldr	r3, [r4, #12]
	ldr	r10, [r3, r5]
	cmp	r10, #0
	beq	.L50
.L8:
	ldr	r1, [r10]
	ldr	r2, [r8]
	cmp	r1, r2
	bgt	.L17
	mov	r0, #0
	ldr	r1, .L52+12
	bl	writeb
	ldr	r7, [r10]
	b	.L11
.L49:
	mov	r0, r6
	mov	r1, #0
	bl	spin_unlock_irqrestore
.L7:
	mov	r0, r4
	ldr	r1, [sp]
	bl	icn_maprelease_channel
.L1:
	ldr	r3, .L52
	ldr	r2, [r3]
	ldr	r3, [sp, #28]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L51
	add	sp, sp, #36
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L12:
	mov	r1, #0
	ldr	r0, [r4, #12]
	ldr	r2, [r4, #8]
	str	r10, [r0, r5]
	mov	r0, r6
	str	r1, [r2, r5]
	bl	spin_unlock_irqrestore
	b	.L14
.L50:
	ldr	r0, [r4, #28]
	add	r0, r0, r5
	bl	skb_dequeue
	subs	r10, r0, #0
	beq	.L7
	mov	r1, r7
	bl	skb_pull
	ldr	r2, [r0]
	cmp	r2, #0
	ldrne	r1, [r10]
	ldrne	r2, [r4]
	ldreq	r1, [r4]
	strne	r1, [r2, r5]
	streq	r2, [r1, r5]
	b	.L8
.L48:
	ldr	r0, [r1, #28]
	add	r0, r0, r5
	bl	skb_queue_empty
	cmp	r0, #0
	beq	.L3
	b	.L1
.L51:
	bl	__stack_chk_fail
.L53:
	.align	2
.L52:
	.word	.LC0
	.word	sbfree
	.word	ICN_FRAGSIZE
	.word	sbuf_f
	.word	sbuf_l
	.word	sbuf_d
	.word	ISDN_STAT_BSENT
	.size	icn_pollbchan_send, .-icn_pollbchan_send
	.comm	sbuf_l,4,4
	.comm	sbuf_f,4,4
	.comm	sbuf_d,4,4
	.comm	sbnext,4,4
	.comm	sbfree,4,4
	.comm	ISDN_STAT_BSENT,4,4
	.comm	ICN_FRAGSIZE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
