	.file	"extr_mISDNipac.c_hscx_fill_fifo.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%s: B%1d %d/%d/%d\n"
.LC1:
	.string	"B%1d-send %s %d "
	.text
	.p2align 4
	.type	hscx_fill_fifo, @function
hscx_fill_fifo:
.LFB0:
	.cfi_startproc
	endbr64
	mov	rax, QWORD PTR 32[rdi]
	test	rax, rax
	je	.L15
	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
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	movsx	rdx, DWORD PTR 16[rdi]
	mov	rbx, rdi
	mov	ebp, DWORD PTR [rax]
	sub	ebp, edx
	test	ebp, ebp
	jle	.L1
	mov	rax, QWORD PTR 8[rax]
	lea	rsi, 40[rdi]
	mov	edi, DWORD PTR FLG_TRANSPARENT[rip]
	mov	r14d, 1
	lea	r13, [rax+rdx*4]
	call	test_bit@PLT
	mov	r12d, DWORD PTR [rbx]
	cmp	r12d, ebp
	jl	.L5
	xor	r14d, r14d
	test	rax, rax
	mov	r12d, ebp
	setne	r14b
.L5:
	mov	rcx, QWORD PTR 32[rbx]
	mov	rax, QWORD PTR 8[rbx]
	lea	rdi, .LC0[rip]
	mov	edx, DWORD PTR 20[rbx]
	mov	r8d, DWORD PTR 16[rbx]
	mov	r9d, DWORD PTR [rcx]
	mov	rsi, QWORD PTR [rax]
	mov	ecx, r12d
	call	pr_debug@PLT
	mov	rax, QWORD PTR 8[rbx]
	add	DWORD PTR 16[rbx], r12d
	mov	edx, DWORD PTR 8[rax]
	test	DWORD PTR IPAC_TYPE_IPACX[rip], edx
	je	.L6
	mov	rsi, QWORD PTR IPACX_XFIFOB[rip]
	mov	edi, DWORD PTR 12[rax]
	mov	ecx, r12d
	mov	rdx, r13
	add	rsi, QWORD PTR 48[rbx]
	call	[QWORD PTR 16[rax]]
.L7:
	cmp	r14d, 1
	mov	rdi, rbx
	sbb	esi, esi
	and	esi, 2
	add	esi, 8
	call	hscx_cmdr@PLT
	mov	eax, DWORD PTR 24[rbx]
	test	DWORD PTR DEBUG_HW_BFIFO[rip], eax
	jne	.L19
.L1:
	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
.L19:
	.cfi_restore_state
	mov	rax, QWORD PTR 8[rbx]
	mov	ecx, DWORD PTR 20[rbx]
	mov	r9d, r12d
	mov	esi, 64
	mov	edi, DWORD PTR 4[rbx]
	lea	rdx, .LC1[rip]
	mov	r8, QWORD PTR [rax]
	call	snprintf@PLT
	mov	edi, DWORD PTR 4[rbx]
	mov	ecx, r12d
	pop	rbx
	.cfi_remember_state
	.cfi_restore 3
	.cfi_def_cfa_offset 40
	mov	esi, DWORD PTR DUMP_PREFIX_OFFSET[rip]
	pop	rbp
	.cfi_restore 6
	.cfi_def_cfa_offset 32
	mov	rdx, r13
	pop	r12
	.cfi_restore 12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_restore 13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_restore 14
	.cfi_def_cfa_offset 8
	jmp	print_hex_dump_bytes@PLT
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	mov	rdi, rbx
	call	waitforXFW@PLT
	mov	rax, QWORD PTR 8[rbx]
	mov	rsi, QWORD PTR 48[rbx]
	mov	ecx, r12d
	mov	rdx, r13
	mov	edi, DWORD PTR 12[rax]
	call	[QWORD PTR 16[rax]]
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L15:
	.cfi_def_cfa_offset 8
	.cfi_restore 3
	.cfi_restore 6
	.cfi_restore 12
	.cfi_restore 13
	.cfi_restore 14
	ret
	.cfi_endproc
.LFE0:
	.size	hscx_fill_fifo, .-hscx_fill_fifo
	.comm	IPAC_TYPE_IPACX,4,4
	.comm	IPACX_XFIFOB,8,8
	.comm	FLG_TRANSPARENT,4,4
	.comm	DUMP_PREFIX_OFFSET,4,4
	.comm	DEBUG_HW_BFIFO,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_mISDNipac.c_hscx_fill_fifo.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"%s: B%1d %d/%d/%d\012\000"
	.align	2
.LC1:
	.ascii	"B%1d-send %s %d \000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	hscx_fill_fifo, %function
hscx_fill_fifo:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, [r0, #24]
	cmp	r3, #0
	bxeq	lr
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r2, [r0, #12]
	ldr	r5, [r3]
	mov	r4, r0
	sub	r5, r5, r2
	cmp	r5, #0
	sub	sp, sp, #8
	ble	.L1
	ldr	r1, .L20
	ldr	r7, [r3, #4]
	ldr	r0, [r1]
	add	r1, r4, #28
	add	r7, r7, r2, lsl #2
	bl	test_bit
	ldr	r6, [r4]
	cmp	r6, r5
	movlt	r8, #1
	blt	.L5
	subs	r8, r0, #0
	movne	r8, #1
	mov	r6, r5
.L5:
	ldr	r2, [r4, #8]
	ldr	r3, [r4, #24]
	ldr	r1, [r2]
	ldr	r2, [r3]
	ldr	r3, [r4, #12]
	str	r2, [sp, #4]
	str	r3, [sp]
	ldr	r2, [r4, #16]
	mov	r3, r6
	ldr	r0, .L20+4
	bl	pr_debug
	ldr	r3, .L20+8
	ldr	r2, [r4, #8]
	ldr	r1, [r3]
	ldr	r0, [r2, #4]
	ldr	r3, [r4, #12]
	tst	r0, r1
	add	r3, r3, r6
	str	r3, [r4, #12]
	beq	.L6
	ldr	r3, .L20+12
	ldr	r1, [r4, #32]
	ldr	r3, [r3]
	ldr	r5, [r2, #12]
	ldr	r0, [r2, #8]
	add	r1, r1, r3
	mov	r2, r7
	mov	r3, r6
	blx	r5
.L7:
	cmp	r8, #0
	movne	r1, #8
	moveq	r1, #10
	mov	r0, r4
	bl	hscx_cmdr
	ldr	r3, .L20+16
	ldr	r2, [r4, #20]
	ldr	r3, [r3]
	tst	r2, r3
	bne	.L19
.L1:
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L19:
	ldr	r3, [r4, #8]
	str	r6, [sp, #4]
	ldr	r2, [r3]
	ldr	r3, [r4, #16]
	str	r2, [sp]
	mov	r1, #64
	ldr	r2, .L20+20
	ldr	r0, [r4, #4]
	bl	snprintf
	mov	r3, r6
	mov	r2, r7
	ldr	r1, .L20+24
	ldr	r0, [r4, #4]
	ldr	r1, [r1]
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, lr}
	b	print_hex_dump_bytes
.L6:
	mov	r0, r4
	bl	waitforXFW
	ldr	r2, [r4, #8]
	mov	r3, r6
	ldr	r5, [r2, #12]
	ldr	r0, [r2, #8]
	ldr	r1, [r4, #32]
	mov	r2, r7
	blx	r5
	b	.L7
.L21:
	.align	2
.L20:
	.word	FLG_TRANSPARENT
	.word	.LC0
	.word	IPAC_TYPE_IPACX
	.word	IPACX_XFIFOB
	.word	DEBUG_HW_BFIFO
	.word	.LC1
	.word	DUMP_PREFIX_OFFSET
	.size	hscx_fill_fifo, .-hscx_fill_fifo
	.comm	IPAC_TYPE_IPACX,4,4
	.comm	IPACX_XFIFOB,4,4
	.comm	FLG_TRANSPARENT,4,4
	.comm	DUMP_PREFIX_OFFSET,4,4
	.comm	DEBUG_HW_BFIFO,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
