	.file	"extr_vmk80xx.c_vmk80xx_write_packet.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	vmk80xx_write_packet, @function
vmk80xx_write_packet:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13d, esi
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	rbx, QWORD PTR [rdi]
	call	comedi_to_usb_dev@PLT
	mov	r12, rax
	mov	rax, QWORD PTR [rbx]
	mov	DWORD PTR [rax], r13d
	mov	rax, QWORD PTR VMK8061_MODEL[rip]
	cmp	QWORD PTR 8[rbx], rax
	je	.L5
	mov	r14, QWORD PTR 16[rbx]
	mov	rdi, r12
	mov	esi, DWORD PTR [r14]
	call	usb_sndintpipe@PLT
	mov	rdi, r14
	mov	ebp, eax
	mov	eax, DWORD PTR HZ[rip]
	lea	r13d, [rax+rax*4]
	call	usb_endpoint_maxp@PLT
	add	r13d, r13d
	mov	rdx, QWORD PTR [rbx]
	mov	esi, ebp
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	r9d, r13d
	pop	rbp
	.cfi_def_cfa_offset 32
	mov	rdi, r12
	mov	ecx, eax
	pop	r12
	.cfi_def_cfa_offset 24
	xor	r8d, r8d
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	jmp	usb_interrupt_msg@PLT
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	mov	rdi, rbp
	call	vmk80xx_do_bulk_msg@PLT
	pop	rbx
	.cfi_def_cfa_offset 40
	xor	eax, eax
	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	vmk80xx_write_packet, .-vmk80xx_write_packet
	.comm	VMK8061_MODEL,8,8
	.comm	HZ,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_vmk80xx.c_vmk80xx_write_packet.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	vmk80xx_write_packet, %function
vmk80xx_write_packet:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	mov	r6, r1
	ldr	r4, [r0]
	sub	sp, sp, #12
	mov	r5, r0
	bl	comedi_to_usb_dev
	ldr	r2, [r4]
	ldr	r3, .L7
	ldr	r3, [r3]
	str	r6, [r2]
	ldr	r2, [r4, #4]
	cmp	r2, r3
	beq	.L6
	ldr	r7, [r4, #8]
	mov	r6, r0
	ldr	r1, [r7]
	bl	usb_sndintpipe
	mov	r5, r0
	mov	r0, r7
	ldr	r4, [r4]
	bl	usb_endpoint_maxp
	mov	lr, #0
	ldr	r2, .L7+4
	mov	r3, r0
	ldr	ip, [r2]
	mov	r1, r5
	add	ip, ip, ip, lsl #2
	lsl	ip, ip, #1
	mov	r2, r4
	mov	r0, r6
	str	ip, [sp, #4]
	str	lr, [sp]
	bl	usb_interrupt_msg
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L6:
	mov	r0, r5
	bl	vmk80xx_do_bulk_msg
	mov	r0, #0
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L8:
	.align	2
.L7:
	.word	VMK8061_MODEL
	.word	HZ
	.size	vmk80xx_write_packet, .-vmk80xx_write_packet
	.comm	VMK8061_MODEL,4,4
	.comm	HZ,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
