	.file	"extr_n_r3964.c_transmit_block.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"transmit_block %p, room %d, length %d"
	.text
	.p2align 4
	.type	transmit_block, @function
transmit_block:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rdi, QWORD PTR 40[rdi]
	mov	r12, QWORD PTR 32[rbp]
	test	rdi, rdi
	je	.L1
	test	r12, r12
	je	.L1
	call	tty_write_room@PLT
	mov	rcx, QWORD PTR [r12]
	mov	rsi, r12
	lea	rdi, .LC0[rip]
	mov	edx, eax
	mov	ebx, eax
	call	TRACE_PS@PLT
	mov	rax, QWORD PTR 0[rbp]
	mov	rdx, QWORD PTR [r12]
	cmp	rdx, rax
	jbe	.L3
	cmp	ebx, 1
	jg	.L4
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L7:
	lea	rcx, 1[rax]
	mov	rdi, rbp
	sub	ebx, 1
	mov	QWORD PTR 0[rbp], rcx
	mov	rsi, QWORD PTR [rdx+rax*8]
	call	put_char@PLT
	mov	rax, QWORD PTR 0[rbp]
	mov	rdx, QWORD PTR [r12]
	cmp	rax, rdx
	jnb	.L3
	cmp	ebx, 1
	je	.L5
.L4:
	mov	rdx, QWORD PTR 8[r12]
	mov	rsi, QWORD PTR DLE[rip]
	cmp	QWORD PTR [rdx+rax*8], rsi
	jne	.L7
	mov	rdi, rbp
	call	put_char@PLT
	mov	rdx, QWORD PTR 8[r12]
	mov	rax, QWORD PTR 0[rbp]
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	cmp	rax, rdx
	jne	.L5
	cmp	ebx, 2
	jle	.L5
	mov	rsi, QWORD PTR DLE[rip]
	mov	rdi, rbp
	call	put_char@PLT
	mov	rsi, QWORD PTR ETX[rip]
	mov	rdi, rbp
	call	put_char@PLT
	mov	eax, DWORD PTR 8[rbp]
	test	DWORD PTR R3964_BCC[rip], eax
	je	.L9
	mov	rsi, QWORD PTR 16[rbp]
	mov	rdi, rbp
	call	put_char@PLT
.L9:
	mov	eax, DWORD PTR R3964_WAIT_FOR_TX_ACK[rip]
	mov	rsi, QWORD PTR R3964_TO_QVZ[rip]
	lea	rdi, 24[rbp]
	add	rsi, QWORD PTR jiffies[rip]
	mov	DWORD PTR 28[rbp], eax
	call	mod_timer@PLT
.L5:
	pop	rbx
	.cfi_def_cfa_offset 24
	mov	rdi, rbp
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	flush@PLT
	.cfi_endproc
.LFE0:
	.size	transmit_block, .-transmit_block
	.comm	jiffies,8,8
	.comm	R3964_WAIT_FOR_TX_ACK,4,4
	.comm	R3964_TO_QVZ,8,8
	.comm	R3964_BCC,4,4
	.comm	ETX,8,8
	.comm	DLE,8,8
	.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_n_r3964.c_transmit_block.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"transmit_block %p, room %d, length %d\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	transmit_block, %function
transmit_block:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r0
	ldr	r0, [r0, #24]
	ldr	r6, [r4, #20]
	cmp	r6, #0
	cmpne	r0, #0
	popeq	{r4, r5, r6, r7, r8, pc}
	bl	tty_write_room
	ldr	r3, [r6]
	mov	r2, r0
	mov	r5, r0
	mov	r1, r6
	ldr	r0, .L22
	bl	TRACE_PS
	ldr	r3, [r4]
	ldr	r2, [r6]
	cmp	r2, r3
	bls	.L3
	cmp	r5, #1
	ble	.L5
	ldr	r7, .L22+4
	b	.L4
.L7:
	add	r1, r3, #1
	str	r1, [r4]
	ldr	r1, [r2, r3, lsl #2]
	mov	r0, r4
	bl	put_char
	ldr	r3, [r4]
	ldr	r2, [r6]
	cmp	r3, r2
	bcs	.L3
	cmp	r5, #1
	beq	.L5
.L4:
	ldr	r2, [r6, #4]
	ldr	r0, [r7]
	ldr	r1, [r2, r3, lsl #2]
	sub	r5, r5, #1
	cmp	r1, r0
	bne	.L7
	mov	r0, r4
	bl	put_char
	ldr	r2, [r6, #4]
	ldr	r3, [r4]
	b	.L7
.L3:
	sub	r3, r3, r2
	clz	r3, r3
	cmp	r5, #2
	lsr	r3, r3, #5
	movle	r3, #0
	cmp	r3, #0
	beq	.L5
	ldr	r3, .L22+4
	mov	r0, r4
	ldr	r1, [r3]
	bl	put_char
	ldr	r3, .L22+8
	mov	r0, r4
	ldr	r1, [r3]
	bl	put_char
	ldr	r3, .L22+12
	ldr	r2, [r4, #4]
	ldr	r3, [r3]
	tst	r2, r3
	beq	.L9
	mov	r0, r4
	ldr	r1, [r4, #8]
	bl	put_char
.L9:
	ldr	r2, .L22+16
	ldr	r1, .L22+20
	ldr	r3, .L22+24
	ldr	r2, [r2]
	ldr	r1, [r1]
	ldr	r3, [r3]
	str	r2, [r4, #16]
	add	r1, r1, r3
	add	r0, r4, #12
	bl	mod_timer
.L5:
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, lr}
	b	flush
.L23:
	.align	2
.L22:
	.word	.LC0
	.word	DLE
	.word	ETX
	.word	R3964_BCC
	.word	R3964_WAIT_FOR_TX_ACK
	.word	jiffies
	.word	R3964_TO_QVZ
	.size	transmit_block, .-transmit_block
	.comm	jiffies,4,4
	.comm	R3964_WAIT_FOR_TX_ACK,4,4
	.comm	R3964_TO_QVZ,4,4
	.comm	R3964_BCC,4,4
	.comm	ETX,4,4
	.comm	DLE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
