	.file	"extr_iso.c_hpsb_iso_xmit_queue_packet.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	hpsb_iso_xmit_queue_packet
	.type	hpsb_iso_xmit_queue_packet, @function
hpsb_iso_xmit_queue_packet:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	rax, QWORD PTR HPSB_ISO_XMIT[rip]
	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
	cmp	QWORD PTR [rdi], rax
	je	.L2
	mov	r12d, DWORD PTR EINVAL[rip]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	neg	r12d
	mov	eax, r12d
	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
.L2:
	.cfi_restore_state
	cmp	QWORD PTR 8[rdi], 0
	mov	rbp, rdi
	jle	.L12
	mov	rax, QWORD PTR 16[rdi]
	mov	rbx, rcx
	mov	r12, r8
	lea	rcx, [rax+rax*2]
	mov	rax, QWORD PTR 56[rdi]
	lea	r13, [rax+rcx*8]
	lea	rcx, 20[r13]
	lea	r8, 16[r13]
	call	hpsb_iso_check_offset_len@PLT
	test	rax, rax
	je	.L5
	mov	r12d, DWORD PTR EFAULT[rip]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	neg	r12d
	mov	eax, r12d
	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
.L12:
	.cfi_restore_state
	mov	r12d, DWORD PTR EBUSY[rip]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	neg	r12d
	mov	eax, r12d
	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
.L5:
	.cfi_restore_state
	mov	QWORD PTR 0[r13], r12
	lea	r14, 40[rbp]
	xor	esi, esi
	mov	QWORD PTR 8[r13], rbx
	mov	rdi, r14
	call	spin_lock_irqsave@PLT
	mov	rax, QWORD PTR 48[rbp]
	mov	rdx, r13
	mov	rdi, rbp
	mov	esi, DWORD PTR XMIT_QUEUE[rip]
	mov	rax, QWORD PTR [rax]
	call	[QWORD PTR [rax]]
	mov	r12d, eax
	test	eax, eax
	jne	.L6
	mov	rax, QWORD PTR 16[rbp]
	movsx	rcx, DWORD PTR 24[rbp]
	xor	edx, edx
	sub	QWORD PTR 8[rbp], 1
	add	rax, 1
	div	rcx
	mov	eax, DWORD PTR 28[rbp]
	mov	QWORD PTR 16[rbp], rdx
	lea	edx, 1[rax]
	movsx	rax, edx
	mov	ecx, edx
	imul	rax, rax, 274877907
	sar	ecx, 31
	sar	rax, 41
	sub	eax, ecx
	imul	eax, eax, 8000
	sub	edx, eax
	mov	rax, QWORD PTR 32[rbp]
	mov	DWORD PTR 28[rbp], edx
	test	rax, rax
	je	.L6
	sub	rax, 1
	test	rax, rax
	jle	.L8
	mov	QWORD PTR 32[rbp], rax
.L6:
	mov	rdi, r14
	xor	esi, esi
	call	spin_unlock_irqrestore@PLT
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	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
.L8:
	.cfi_restore_state
	mov	QWORD PTR 32[rbp], 0
	mov	esi, DWORD PTR 44[rbp]
	mov	rdi, rbp
	call	do_iso_xmit_start@PLT
	mov	r12d, eax
	jmp	.L6
	.cfi_endproc
.LFE0:
	.size	hpsb_iso_xmit_queue_packet, .-hpsb_iso_xmit_queue_packet
	.comm	XMIT_QUEUE,4,4
	.comm	HPSB_ISO_XMIT,8,8
	.comm	EINVAL,4,4
	.comm	EFAULT,4,4
	.comm	EBUSY,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_iso.c_hpsb_iso_xmit_queue_packet.c"
	.text
	.global	__aeabi_uidivmod
	.align	2
	.global	hpsb_iso_xmit_queue_packet
	.syntax unified
	.arm
	.fpu softvfp
	.type	hpsb_iso_xmit_queue_packet, %function
hpsb_iso_xmit_queue_packet:
	@ args = 4, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, lr}
	ldr	ip, .L13
	ldr	lr, [r0]
	ldr	ip, [ip]
	sub	sp, sp, #12
	cmp	lr, ip
	beq	.L2
	ldr	r3, .L13+4
	ldr	r5, [r3]
	rsb	r5, r5, #0
	mov	r0, r5
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L2:
	mov	r6, r3
	ldr	r3, [r0, #4]
	mov	r4, r0
	cmp	r3, #0
	ble	.L12
	ldr	r9, [r0, #8]
	ldr	r8, [r0, #36]
	add	r5, r8, r9, lsl #4
	add	r3, r5, #8
	str	r3, [sp]
	add	r3, r5, #12
	bl	hpsb_iso_check_offset_len
	cmp	r0, #0
	beq	.L5
	ldr	r3, .L13+8
	ldr	r5, [r3]
	rsb	r5, r5, #0
	mov	r0, r5
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L12:
	ldr	r3, .L13+12
	ldr	r5, [r3]
	rsb	r5, r5, #0
	mov	r0, r5
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L5:
	ldr	r3, [sp, #40]
	add	r7, r4, #24
	str	r6, [r5, #4]
	mov	r1, #0
	str	r3, [r8, r9, lsl #4]
	mov	r0, r7
	bl	spin_lock_irqsave
	ldr	r3, [r4, #32]
	ldr	r1, .L13+16
	ldr	r3, [r3]
	mov	r2, r5
	mov	r0, r4
	ldr	r3, [r3]
	ldr	r1, [r1]
	blx	r3
	subs	r5, r0, #0
	bne	.L6
	ldr	r0, [r4, #8]
	ldr	r1, [r4, #12]
	add	r0, r0, #1
	bl	__aeabi_uidivmod
	ldr	r3, [r4, #16]
	ldr	r2, .L13+20
	add	r3, r3, #1
	smull	ip, r0, r2, r3
	asr	r2, r3, #31
	rsb	r2, r2, r0, asr #9
	rsb	r0, r2, r2, lsl #5
	add	r2, r2, r0, lsl #2
	ldr	ip, [r4, #20]
	ldr	r0, [r4, #4]
	sub	r3, r3, r2, lsl #6
	cmp	ip, #0
	sub	r2, r0, #1
	str	r1, [r4, #8]
	str	r3, [r4, #16]
	str	r2, [r4, #4]
	beq	.L6
	sub	ip, ip, #1
	cmp	ip, #0
	strgt	ip, [r4, #20]
	bgt	.L6
	str	r5, [r4, #20]
	mov	r0, r4
	ldr	r1, [r4, #28]
	bl	do_iso_xmit_start
	mov	r5, r0
.L6:
	mov	r0, r7
	mov	r1, #0
	bl	spin_unlock_irqrestore
	mov	r0, r5
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L14:
	.align	2
.L13:
	.word	HPSB_ISO_XMIT
	.word	EINVAL
	.word	EFAULT
	.word	EBUSY
	.word	XMIT_QUEUE
	.word	274877907
	.size	hpsb_iso_xmit_queue_packet, .-hpsb_iso_xmit_queue_packet
	.comm	XMIT_QUEUE,4,4
	.comm	HPSB_ISO_XMIT,4,4
	.comm	EINVAL,4,4
	.comm	EFAULT,4,4
	.comm	EBUSY,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
