	.file	"extr_bpa10x.c_bpa10x_submit_bulk_urb.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%s"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"%s urb %p submission failed (%d)"
	.text
	.p2align 4
	.type	bpa10x_submit_bulk_urb, @function
bpa10x_submit_bulk_urb:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	esi, DWORD PTR [rdi]
	mov	r13, QWORD PTR 8[rdi]
	lea	rdi, .LC0[rip]
	call	BT_DBG@PLT
	mov	esi, DWORD PTR GFP_KERNEL[rip]
	xor	edi, edi
	call	usb_alloc_urb@PLT
	test	rax, rax
	je	.L7
	mov	esi, DWORD PTR GFP_KERNEL[rip]
	mov	edi, 64
	mov	rbp, rax
	call	kmalloc@PLT
	mov	r12, rax
	test	rax, rax
	je	.L9
	mov	edi, DWORD PTR 4[r13]
	mov	esi, 130
	call	usb_rcvbulkpipe@PLT
	sub	rsp, 8
	.cfi_def_cfa_offset 56
	mov	esi, DWORD PTR 4[r13]
	mov	rcx, r12
	push	rbx
	.cfi_def_cfa_offset 64
	mov	r9d, DWORD PTR bpa10x_rx_complete[rip]
	mov	edx, eax
	mov	r8d, 64
	mov	rdi, rbp
	call	usb_fill_bulk_urb@PLT
	mov	eax, DWORD PTR URB_FREE_BUFFER[rip]
	or	DWORD PTR 0[rbp], eax
	mov	rsi, r13
	mov	rdi, rbp
	call	usb_anchor_urb@PLT
	mov	esi, DWORD PTR GFP_KERNEL[rip]
	mov	rdi, rbp
	call	usb_submit_urb@PLT
	mov	r12d, eax
	pop	rax
	.cfi_def_cfa_offset 56
	pop	rdx
	.cfi_def_cfa_offset 48
	test	r12d, r12d
	js	.L10
.L5:
	mov	rdi, rbp
	call	usb_free_urb@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	mov	rdi, rbp
	call	usb_free_urb@PLT
.L7:
	mov	r12d, DWORD PTR ENOMEM[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	neg	r12d
	mov	eax, r12d
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	mov	esi, DWORD PTR [rbx]
	mov	ecx, r12d
	mov	rdx, rbp
	lea	rdi, .LC1[rip]
	neg	ecx
	call	BT_ERR@PLT
	mov	rdi, rbp
	call	usb_unanchor_urb@PLT
	jmp	.L5
	.cfi_endproc
.LFE0:
	.size	bpa10x_submit_bulk_urb, .-bpa10x_submit_bulk_urb
	.comm	bpa10x_rx_complete,4,4
	.comm	URB_FREE_BUFFER,4,4
	.comm	GFP_KERNEL,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_bpa10x.c_bpa10x_submit_bulk_urb.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"%s\000"
	.align	2
.LC1:
	.ascii	"%s urb %p submission failed (%d)\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	bpa10x_submit_bulk_urb, %function
bpa10x_submit_bulk_urb:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r6, r0
	ldr	r7, .L11
	ldr	r1, [r0]
	sub	sp, sp, #16
	ldr	r0, .L11+4
	ldr	r8, [r6, #4]
	bl	BT_DBG
	mov	r0, #0
	ldr	r1, [r7]
	bl	usb_alloc_urb
	subs	r4, r0, #0
	beq	.L7
	mov	r0, #64
	ldr	r1, [r7]
	bl	kmalloc
	subs	r5, r0, #0
	beq	.L9
	mov	r1, #130
	ldr	r0, [r8, #4]
	bl	usb_rcvbulkpipe
	mov	ip, #64
	ldr	r3, .L11+8
	ldr	r1, [r8, #4]
	ldr	lr, [r3]
	mov	r2, r0
	mov	r3, r5
	str	lr, [sp, #4]
	str	ip, [sp]
	mov	r0, r4
	str	r6, [sp, #8]
	bl	usb_fill_bulk_urb
	ldr	r2, .L11+12
	ldr	r3, [r4]
	ldr	r2, [r2]
	mov	r1, r8
	orr	r3, r3, r2
	str	r3, [r4]
	mov	r0, r4
	bl	usb_anchor_urb
	mov	r0, r4
	ldr	r1, [r7]
	bl	usb_submit_urb
	subs	r5, r0, #0
	blt	.L10
.L5:
	mov	r0, r4
	bl	usb_free_urb
	mov	r0, r5
	add	sp, sp, #16
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L9:
	mov	r0, r4
	bl	usb_free_urb
.L7:
	ldr	r3, .L11+16
	ldr	r5, [r3]
	rsb	r5, r5, #0
	mov	r0, r5
	add	sp, sp, #16
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L10:
	mov	r2, r4
	ldr	r1, [r6]
	rsb	r3, r5, #0
	ldr	r0, .L11+20
	bl	BT_ERR
	mov	r0, r4
	bl	usb_unanchor_urb
	b	.L5
.L12:
	.align	2
.L11:
	.word	GFP_KERNEL
	.word	.LC0
	.word	bpa10x_rx_complete
	.word	URB_FREE_BUFFER
	.word	ENOMEM
	.word	.LC1
	.size	bpa10x_submit_bulk_urb, .-bpa10x_submit_bulk_urb
	.comm	bpa10x_rx_complete,4,4
	.comm	URB_FREE_BUFFER,4,4
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
