	.file	"extr_cassini.c_cas_write_txd.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	cas_write_txd, @function
cas_write_txd:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	r14d, ecx
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12d, esi
	mov	esi, r8d
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	ebp, r9d
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	movsx	rbx, edx
	mov	rax, QWORD PTR [rdi]
	movsx	rdx, r12d
	mov	edi, DWORD PTR TX_DESC_BUFLEN[rip]
	mov	r13, rbx
	sal	rbx, 4
	add	rbx, QWORD PTR [rax+rdx*8]
	call	CAS_BASE@PLT
	mov	esi, r13d
	mov	edi, r12d
	or	ebp, eax
	call	cas_intme@PLT
	test	rax, rax
	je	.L2
	or	ebp, DWORD PTR TX_DESC_INTME[rip]
.L2:
	mov	eax, DWORD PTR 48[rsp]
	test	eax, eax
	je	.L3
	or	ebp, DWORD PTR TX_DESC_EOF[rip]
.L3:
	mov	edi, ebp
	call	cpu_to_le64@PLT
	mov	edi, r14d
	mov	QWORD PTR 8[rbx], rax
	call	cpu_to_le64@PLT
	mov	QWORD PTR [rbx], rax
	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
	ret
	.cfi_endproc
.LFE0:
	.size	cas_write_txd, .-cas_write_txd
	.comm	TX_DESC_INTME,4,4
	.comm	TX_DESC_EOF,4,4
	.comm	TX_DESC_BUFLEN,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_cassini.c_cas_write_txd.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	cas_write_txd, %function
cas_write_txd:
	@ args = 12, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r8, r1
	ldr	r1, .L12
	ldr	ip, [r0]
	ldr	r0, [r1]
	ldr	r1, [sp, #32]
	mov	r4, r2
	ldr	r7, [ip, r8, lsl #2]
	mov	r6, r3
	ldr	r5, [sp, #36]
	ldr	r9, [sp, #40]
	bl	CAS_BASE
	mov	r3, r0
	mov	r1, r4
	mov	r0, r8
	orr	r5, r3, r5
	bl	cas_intme
	cmp	r0, #0
	ldrne	r3, .L12+4
	add	r8, r7, r4, lsl #3
	ldrne	r3, [r3]
	orrne	r5, r5, r3
	cmp	r9, #0
	ldrne	r3, .L12+8
	ldrne	r3, [r3]
	orrne	r5, r5, r3
	mov	r0, r5
	bl	cpu_to_le64
	mov	r3, r0
	mov	r0, r6
	str	r3, [r8, #4]
	bl	cpu_to_le64
	str	r0, [r7, r4, lsl #3]
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L13:
	.align	2
.L12:
	.word	TX_DESC_BUFLEN
	.word	TX_DESC_INTME
	.word	TX_DESC_EOF
	.size	cas_write_txd, .-cas_write_txd
	.comm	TX_DESC_INTME,4,4
	.comm	TX_DESC_EOF,4,4
	.comm	TX_DESC_BUFLEN,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
