	.file	"extr_bt878.c_bt878_risc_program.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"bt878: risc len lines %u, bytes per line %u\n"
	.text
	.p2align 4
	.type	bt878_risc_program, @function
bt878_risc_program:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	xor	eax, eax
	mov	r14, rsi
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	xor	r13d, r13d
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	xor	r12d, r12d
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	rbx, rdi
	call	RISC_FLUSH@PLT
	mov	rdi, QWORD PTR RISC_SYNC[rip]
	or	rdi, QWORD PTR RISC_SYNC_FM1[rip]
	or	rdi, r14
	call	RISC_INSTR@PLT
	xor	edi, edi
	call	RISC_INSTR@PLT
	mov	rdx, QWORD PTR 8[rbx]
	mov	rsi, QWORD PTR [rbx]
	lea	rdi, .LC0[rip]
	call	dprintk@PLT
	cmp	QWORD PTR [rbx], 0
	jg	.L2
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L12:
	movsx	rcx, DWORD PTR 24[rbx]
	mov	rbp, QWORD PTR RISC_WRITE[rip]
	or	rbp, QWORD PTR RISC_WR_SOL[rip]
	or	rbp, QWORD PTR RISC_WR_EOL[rip]
	lea	edi, -1[rcx]
	or	rbp, QWORD PTR RISC_IRQ[rip]
	movsx	rdi, edi
	add	rax, rdi
	cqo
	idiv	rcx
	mov	rdi, rdx
	call	RISC_STATUS@PLT
	or	rbp, QWORD PTR 8[rbx]
	mov	rdi, rbp
	or	rdi, rax
	call	RISC_INSTR@PLT
.L4:
	mov	rdi, QWORD PTR 32[rbx]
	add	r13, 1
	add	rdi, r12
	call	RISC_INSTR@PLT
	add	r12, QWORD PTR 8[rbx]
	cmp	QWORD PTR [rbx], r13
	jle	.L5
.L2:
	mov	rax, r12
	cqo
	idiv	QWORD PTR 16[rbx]
	test	rdx, rdx
	je	.L12
	mov	rdi, QWORD PTR RISC_WRITE[rip]
	or	rdi, QWORD PTR RISC_WR_SOL[rip]
	or	rdi, QWORD PTR RISC_WR_EOL[rip]
	or	rdi, QWORD PTR 8[rbx]
	call	RISC_INSTR@PLT
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L5:
	mov	rdi, QWORD PTR RISC_SYNC[rip]
	or	rdi, QWORD PTR RISC_SYNC_VRO[rip]
	or	rdi, r14
	call	RISC_INSTR@PLT
	xor	edi, edi
	call	RISC_INSTR@PLT
	mov	rdi, QWORD PTR RISC_JUMP[rip]
	call	RISC_INSTR@PLT
	mov	rdi, QWORD PTR 40[rbx]
	call	RISC_INSTR@PLT
	mov	rdi, QWORD PTR [rbx]
	mov	esi, DWORD PTR BT878_APACK_LEN[rip]
	sal	rdi, 16
	or	edi, DWORD PTR 8[rbx]
	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
	jmp	btwrite@PLT
	.cfi_endproc
.LFE0:
	.size	bt878_risc_program, .-bt878_risc_program
	.comm	RISC_WR_SOL,8,8
	.comm	RISC_WR_EOL,8,8
	.comm	RISC_WRITE,8,8
	.comm	RISC_SYNC_VRO,8,8
	.comm	RISC_SYNC_FM1,8,8
	.comm	RISC_SYNC,8,8
	.comm	RISC_JUMP,8,8
	.comm	RISC_IRQ,8,8
	.comm	BT878_APACK_LEN,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_bt878.c_bt878_risc_program.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"bt878: risc len lines %u, bytes per line %u\012\000"
	.global	__aeabi_idivmod
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	bt878_risc_program, %function
bt878_risc_program:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r4, r1
	mov	r9, r0
	sub	sp, sp, #12
	str	r1, [sp, #4]
	bl	RISC_FLUSH
	ldr	r3, .L11
	ldr	r2, .L11+4
	ldr	r0, [r3]
	ldr	r2, [r2]
	orr	r0, r0, r2
	orr	r0, r0, r4
	bl	RISC_INSTR
	mov	r0, #0
	bl	RISC_INSTR
	ldm	r9, {r1, r2}
	ldr	r0, .L11+8
	bl	dprintk
	ldr	r2, [r9]
	cmp	r2, #0
	ble	.L5
	mov	r5, #0
	ldr	r8, .L11+12
	mov	r4, r5
	ldr	r7, .L11+16
	ldr	r6, .L11+20
	ldr	r10, .L11+24
	b	.L2
.L10:
	ldr	ip, [r7]
	ldr	r1, [r9, #12]
	ldr	lr, [r6]
	orr	r2, r2, ip
	orr	r2, r2, lr
	ldr	ip, [r10]
	sub	lr, r1, #1
	add	r0, lr, r0
	orr	fp, r2, ip
	bl	__aeabi_idivmod
	mov	r0, r1
	bl	RISC_STATUS
	ldr	r1, [r9, #4]
	orr	r2, fp, r1
	orr	r0, r2, r0
	bl	RISC_INSTR
.L4:
	ldr	r0, [r9, #16]
	add	r5, r5, #1
	add	r0, r4, r0
	bl	RISC_INSTR
	ldm	r9, {r1, r2}
	cmp	r1, r5
	add	r4, r4, r2
	ble	.L5
.L2:
	mov	r0, r4
	ldr	r1, [r9, #8]
	bl	__aeabi_idivmod
	cmp	r1, #0
	ldr	r2, [r8]
	beq	.L10
	ldr	r0, [r7]
	ldr	r1, [r6]
	orr	r2, r2, r0
	ldr	r0, [r9, #4]
	orr	r2, r2, r1
	orr	r0, r2, r0
	bl	RISC_INSTR
	b	.L4
.L5:
	ldr	r3, .L11
	ldr	r2, .L11+28
	ldr	r0, [r3]
	ldr	r2, [r2]
	ldr	r3, [sp, #4]
	orr	r0, r0, r2
	orr	r0, r0, r3
	bl	RISC_INSTR
	mov	r0, #0
	bl	RISC_INSTR
	ldr	r2, .L11+32
	ldr	r0, [r2]
	bl	RISC_INSTR
	ldr	r0, [r9, #20]
	bl	RISC_INSTR
	ldm	r9, {r0, r3}
	ldr	r2, .L11+36
	orr	r0, r3, r0, lsl #16
	ldr	r1, [r2]
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	b	btwrite
.L12:
	.align	2
.L11:
	.word	RISC_SYNC
	.word	RISC_SYNC_FM1
	.word	.LC0
	.word	RISC_WRITE
	.word	RISC_WR_SOL
	.word	RISC_WR_EOL
	.word	RISC_IRQ
	.word	RISC_SYNC_VRO
	.word	RISC_JUMP
	.word	BT878_APACK_LEN
	.size	bt878_risc_program, .-bt878_risc_program
	.comm	RISC_WR_SOL,4,4
	.comm	RISC_WR_EOL,4,4
	.comm	RISC_WRITE,4,4
	.comm	RISC_SYNC_VRO,4,4
	.comm	RISC_SYNC_FM1,4,4
	.comm	RISC_SYNC,4,4
	.comm	RISC_JUMP,4,4
	.comm	RISC_IRQ,4,4
	.comm	BT878_APACK_LEN,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
