	.file	"extr_w6692.c_W6692_fill_Bfifo.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%s: fill Bfifo\n"
.LC1:
	.string	"%s: fill Bfifo%d/%d\n"
.LC2:
	.string	"B%1d-send %s %d "
	.text
	.p2align 4
	.type	W6692_fill_Bfifo, @function
W6692_fill_Bfifo:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	xor	eax, eax
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	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
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	mov	r13, QWORD PTR 24[rdi]
	lea	rdi, .LC0[rip]
	mov	r14d, DWORD PTR W_B_CMDR_RACT[rip]
	mov	r12d, DWORD PTR W_B_CMDR_XMS[rip]
	mov	rsi, QWORD PTR 0[r13]
	call	pr_debug@PLT
	mov	rax, QWORD PTR 16[rbx]
	test	rax, rax
	je	.L1
	mov	ecx, DWORD PTR [rbx]
	mov	ebp, DWORD PTR [rax]
	sub	ebp, ecx
	test	ebp, ebp
	jle	.L1
	mov	rsi, QWORD PTR 8[rax]
	or	r14d, r12d
	mov	r12d, DWORD PTR W_B_FIFO_THRESH[rip]
	movsx	rdx, ecx
	lea	r15, [rsi+rdx*4]
	cmp	r12d, ebp
	jge	.L13
.L5:
	mov	rsi, QWORD PTR 0[r13]
	mov	edx, r12d
	lea	rdi, .LC1[rip]
	xor	eax, eax
	call	pr_debug@PLT
	add	DWORD PTR [rbx], r12d
	mov	edx, r12d
	mov	rsi, r15
	mov	rdi, QWORD PTR W_B_XFIFO[rip]
	add	rdi, QWORD PTR 32[rbx]
	call	outsb@PLT
	mov	esi, DWORD PTR W_B_CMDR[rip]
	mov	edx, r14d
	mov	rdi, rbx
	call	WriteW6692B@PLT
	mov	eax, DWORD PTR debug[rip]
	test	DWORD PTR DEBUG_HW_DFIFO[rip], eax
	jne	.L14
.L1:
	add	rsp, 8
	.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
.L14:
	.cfi_restore_state
	mov	ecx, DWORD PTR 4[rbx]
	mov	edi, DWORD PTR 8[r13]
	mov	r9d, r12d
	mov	esi, 63
	mov	r8, QWORD PTR 0[r13]
	lea	rdx, .LC2[rip]
	call	snprintf@PLT
	mov	edi, DWORD PTR 8[r13]
	mov	ecx, r12d
	mov	rdx, r15
	mov	esi, DWORD PTR DUMP_PREFIX_OFFSET[rip]
	add	rsp, 8
	.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
	jmp	print_hex_dump_bytes@PLT
	.p2align 4,,10
	.p2align 3
.L13:
	.cfi_restore_state
	mov	edi, DWORD PTR FLG_HDLC[rip]
	lea	rsi, 8[rbx]
	call	test_bit@PLT
	test	rax, rax
	je	.L11
	or	r14d, DWORD PTR W_B_CMDR_XME[rip]
.L11:
	mov	ecx, DWORD PTR [rbx]
	mov	r12d, ebp
	jmp	.L5
	.cfi_endproc
.LFE0:
	.size	W6692_fill_Bfifo, .-W6692_fill_Bfifo
	.comm	debug,4,4
	.comm	W_B_XFIFO,8,8
	.comm	W_B_FIFO_THRESH,4,4
	.comm	W_B_CMDR_XMS,4,4
	.comm	W_B_CMDR_XME,4,4
	.comm	W_B_CMDR_RACT,4,4
	.comm	W_B_CMDR,4,4
	.comm	FLG_HDLC,4,4
	.comm	DUMP_PREFIX_OFFSET,4,4
	.comm	DEBUG_HW_DFIFO,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_w6692.c_W6692_fill_Bfifo.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"%s: fill Bfifo\012\000"
	.align	2
.LC1:
	.ascii	"%s: fill Bfifo%d/%d\012\000"
	.align	2
.LC2:
	.ascii	"B%1d-send %s %d \000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	W6692_fill_Bfifo, %function
W6692_fill_Bfifo:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r4, r0
	ldr	r7, [r0, #16]
	ldr	r2, .L14
	ldr	r3, .L14+4
	ldr	r1, [r7]
	ldr	r0, .L14+8
	sub	sp, sp, #8
	ldr	r9, [r2]
	ldr	r8, [r3]
	bl	pr_debug
	ldr	r1, [r4, #12]
	cmp	r1, #0
	beq	.L1
	ldr	r3, [r4]
	ldr	r5, [r1]
	sub	r5, r5, r3
	cmp	r5, #0
	ble	.L1
	ldr	r2, .L14+12
	ldr	r10, [r1, #4]
	ldr	r6, [r2]
	add	r10, r10, r3, lsl #2
	cmp	r6, r5
	orr	r8, r9, r8
	bge	.L12
.L5:
	mov	r2, r6
	ldr	r1, [r7]
	ldr	r0, .L14+16
	bl	pr_debug
	ldr	r2, .L14+20
	ldr	r3, [r4]
	ldr	r2, [r2]
	ldr	r0, [r4, #20]
	add	r3, r3, r6
	mov	r1, r10
	add	r0, r0, r2
	str	r3, [r4]
	mov	r2, r6
	bl	outsb
	ldr	r3, .L14+24
	mov	r2, r8
	ldr	r1, [r3]
	mov	r0, r4
	bl	WriteW6692B
	ldr	r2, .L14+28
	ldr	r3, .L14+32
	ldr	r2, [r2]
	ldr	r3, [r3]
	tst	r2, r3
	bne	.L13
.L1:
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L13:
	ldr	r0, [r7, #4]
	str	r6, [sp, #4]
	ldr	r2, [r7]
	ldr	r3, [r4, #4]
	mov	r1, #63
	str	r2, [sp]
	ldr	r2, .L14+36
	bl	snprintf
	mov	r3, r6
	mov	r2, r10
	ldr	r1, .L14+40
	ldr	r0, [r7, #4]
	ldr	r1, [r1]
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, lr}
	b	print_hex_dump_bytes
.L12:
	ldr	r3, .L14+44
	add	r1, r4, #8
	ldr	r0, [r3]
	bl	test_bit
	cmp	r0, #0
	ldrne	r2, .L14+48
	mov	r6, r5
	ldrne	r2, [r2]
	ldreq	r3, [r4]
	ldrne	r3, [r4]
	orrne	r8, r8, r2
	b	.L5
.L15:
	.align	2
.L14:
	.word	W_B_CMDR_RACT
	.word	W_B_CMDR_XMS
	.word	.LC0
	.word	W_B_FIFO_THRESH
	.word	.LC1
	.word	W_B_XFIFO
	.word	W_B_CMDR
	.word	debug
	.word	DEBUG_HW_DFIFO
	.word	.LC2
	.word	DUMP_PREFIX_OFFSET
	.word	FLG_HDLC
	.word	W_B_CMDR_XME
	.size	W6692_fill_Bfifo, .-W6692_fill_Bfifo
	.comm	debug,4,4
	.comm	W_B_XFIFO,4,4
	.comm	W_B_FIFO_THRESH,4,4
	.comm	W_B_CMDR_XMS,4,4
	.comm	W_B_CMDR_XME,4,4
	.comm	W_B_CMDR_RACT,4,4
	.comm	W_B_CMDR,4,4
	.comm	FLG_HDLC,4,4
	.comm	DUMP_PREFIX_OFFSET,4,4
	.comm	DEBUG_HW_DFIFO,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
