	.file	"extr_bfusb.c_bfusb_send_bulk.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"bfusb %p skb %p len %d"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"%s bulk tx submit failed urb %p err %d"
	.text
	.p2align 4
	.type	bfusb_send_bulk, @function
bfusb_send_bulk:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rsi
	mov	r14, QWORD PTR 8[rsi]
	call	bfusb_get_completed@PLT
	mov	ecx, DWORD PTR 0[rbp]
	mov	rdx, rbp
	mov	rsi, r12
	mov	r13, rax
	lea	rdi, .LC0[rip]
	call	BT_DBG@PLT
	test	r13, r13
	je	.L7
.L2:
	mov	esi, DWORD PTR 20[r12]
	mov	edi, DWORD PTR 16[r12]
	lea	r15, 4[r12]
	call	usb_sndbulkpipe@PLT
	sub	rsp, 8
	.cfi_def_cfa_offset 56
	mov	ecx, DWORD PTR 4[rbp]
	mov	r8d, DWORD PTR 0[rbp]
	push	rbp
	.cfi_def_cfa_offset 64
	mov	r9d, DWORD PTR bfusb_tx_complete[rip]
	mov	edx, eax
	mov	rdi, r13
	mov	esi, DWORD PTR 16[r12]
	call	usb_fill_bulk_urb@PLT
	mov	QWORD PTR [r14], r13
	mov	rsi, rbp
	mov	rdi, r15
	call	skb_queue_tail@PLT
	mov	esi, DWORD PTR GFP_ATOMIC[rip]
	mov	rdi, r13
	call	usb_submit_urb@PLT
	mov	r14d, eax
	pop	rax
	.cfi_def_cfa_offset 56
	pop	rdx
	.cfi_def_cfa_offset 48
	test	r14d, r14d
	jne	.L8
	mov	rdi, r12
	call	atomic_inc@PLT
.L1:
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r14d
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	mov	rax, QWORD PTR 8[r12]
	mov	ecx, r14d
	mov	rdx, r13
	lea	rdi, .LC1[rip]
	mov	esi, DWORD PTR [rax]
	call	BT_ERR@PLT
	mov	rsi, r15
	mov	rdi, rbp
	call	skb_unlink@PLT
	mov	rdi, r13
	call	usb_free_urb@PLT
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r14d
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	mov	esi, DWORD PTR GFP_ATOMIC[rip]
	xor	edi, edi
	call	usb_alloc_urb@PLT
	mov	r13, rax
	test	rax, rax
	jne	.L2
	mov	r14d, DWORD PTR ENOMEM[rip]
	neg	r14d
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	bfusb_send_bulk, .-bfusb_send_bulk
	.comm	bfusb_tx_complete,4,4
	.comm	GFP_ATOMIC,4,4
	.comm	ENOMEM,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_bfusb.c_bfusb_send_bulk.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"bfusb %p skb %p len %d\000"
	.align	2
.LC1:
	.ascii	"%s bulk tx submit failed urb %p err %d\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	bfusb_send_bulk, %function
bfusb_send_bulk:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, lr}
	sub	sp, sp, #20
	mov	r4, r1
	mov	r8, r0
	ldr	r9, [r1, #8]
	bl	bfusb_get_completed
	mov	r5, r0
	mov	r2, r4
	mov	r1, r8
	ldr	r3, [r4]
	ldr	r0, .L10
	bl	BT_DBG
	cmp	r5, #0
	ldr	r6, .L10+4
	beq	.L6
.L2:
	ldr	r1, [r8, #16]
	ldr	r0, [r8, #12]
	bl	usb_sndbulkpipe
	ldr	r1, .L10+8
	ldr	r3, [r4]
	ldr	r1, [r1]
	str	r3, [sp]
	stmib	sp, {r1, r4}
	mov	r2, r0
	ldr	r3, [r4, #4]
	ldr	r1, [r8, #12]
	mov	r0, r5
	add	r7, r8, #4
	bl	usb_fill_bulk_urb
	mov	r1, r4
	mov	r0, r7
	str	r5, [r9]
	bl	skb_queue_tail
	ldr	r1, [r6]
	mov	r0, r5
	bl	usb_submit_urb
	subs	r6, r0, #0
	bne	.L9
	mov	r0, r8
	bl	atomic_inc
.L1:
	mov	r0, r6
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L9:
	ldr	r2, [r8, #8]
	mov	r3, r6
	ldr	r1, [r2]
	ldr	r0, .L10+12
	mov	r2, r5
	bl	BT_ERR
	mov	r1, r7
	mov	r0, r4
	bl	skb_unlink
	mov	r0, r5
	bl	usb_free_urb
	mov	r0, r6
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L6:
	mov	r0, r5
	ldr	r1, [r6]
	bl	usb_alloc_urb
	subs	r5, r0, #0
	bne	.L2
	ldr	r3, .L10+16
	ldr	r0, [r3]
	rsb	r6, r0, #0
	b	.L1
.L11:
	.align	2
.L10:
	.word	.LC0
	.word	GFP_ATOMIC
	.word	bfusb_tx_complete
	.word	.LC1
	.word	ENOMEM
	.size	bfusb_send_bulk, .-bfusb_send_bulk
	.comm	bfusb_tx_complete,4,4
	.comm	GFP_ATOMIC,4,4
	.comm	ENOMEM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
