	.file	"extr_btusb.c_btusb_diag_complete.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%s urb %p status %d count %d"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"urb %p failed to resubmit (%d)"
	.text
	.p2align 4
	.type	btusb_diag_complete, @function
btusb_diag_complete:
.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
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	r12, QWORD PTR 16[rdi]
	mov	rdi, r12
	call	hci_get_drvdata@PLT
	mov	r8d, DWORD PTR 4[rbp]
	mov	ecx, DWORD PTR 0[rbp]
	mov	rdx, rbp
	mov	esi, DWORD PTR [r12]
	lea	rdi, .LC0[rip]
	mov	rbx, rax
	call	BT_DBG@PLT
	mov	eax, DWORD PTR 0[rbp]
	test	eax, eax
	je	.L14
	add	eax, DWORD PTR ENOENT[rip]
	je	.L1
.L4:
	mov	edi, DWORD PTR BTUSB_DIAG_RUNNING[rip]
	lea	rsi, 8[rbx]
	call	test_bit@PLT
	test	eax, eax
	jne	.L15
.L1:
	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
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L15:
	.cfi_restore_state
	lea	rsi, 4[rbx]
	mov	rdi, rbp
	call	usb_anchor_urb@PLT
	mov	edi, DWORD PTR [rbx]
	call	usb_mark_last_busy@PLT
	mov	esi, DWORD PTR GFP_ATOMIC[rip]
	mov	rdi, rbp
	call	usb_submit_urb@PLT
	test	eax, eax
	jns	.L1
	mov	ecx, eax
	add	ecx, DWORD PTR EPERM[rip]
	je	.L8
	mov	ecx, eax
	add	ecx, DWORD PTR ENODEV[rip]
	je	.L8
	neg	eax
	mov	rdx, rbp
	lea	rsi, .LC1[rip]
	mov	rdi, r12
	mov	ecx, eax
	call	bt_dev_err@PLT
.L8:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rdi, rbp
	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
	jmp	usb_unanchor_urb@PLT
	.p2align 4,,10
	.p2align 3
.L14:
	.cfi_restore_state
	mov	edi, DWORD PTR 4[rbp]
	mov	esi, DWORD PTR GFP_ATOMIC[rip]
	call	bt_skb_alloc@PLT
	mov	r13, rax
	test	rax, rax
	je	.L4
	mov	esi, DWORD PTR 8[rbp]
	mov	edx, DWORD PTR 4[rbp]
	mov	rdi, rax
	call	skb_put_data@PLT
	mov	rsi, r13
	mov	rdi, r12
	call	hci_recv_diag@PLT
	jmp	.L4
	.cfi_endproc
.LFE0:
	.size	btusb_diag_complete, .-btusb_diag_complete
	.comm	GFP_ATOMIC,4,4
	.comm	EPERM,4,4
	.comm	ENOENT,4,4
	.comm	ENODEV,4,4
	.comm	BTUSB_DIAG_RUNNING,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_btusb.c_btusb_diag_complete.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"%s urb %p status %d count %d\000"
	.align	2
.LC1:
	.ascii	"urb %p failed to resubmit (%d)\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	btusb_diag_complete, %function
btusb_diag_complete:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	mov	r4, r0
	ldr	r6, [r0, #12]
	sub	sp, sp, #12
	mov	r0, r6
	bl	hci_get_drvdata
	ldr	r3, [r4, #4]
	ldr	r1, [r6]
	str	r3, [sp]
	ldr	r3, [r4]
	mov	r5, r0
	mov	r2, r4
	ldr	r0, .L16
	bl	BT_DBG
	ldr	r3, [r4]
	cmp	r3, #0
	beq	.L14
	ldr	r2, .L16+4
	ldr	r2, [r2]
	cmn	r3, r2
	beq	.L1
.L4:
	ldr	r3, .L16+8
	add	r1, r5, #8
	ldr	r0, [r3]
	bl	test_bit
	cmp	r0, #0
	bne	.L15
.L1:
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L15:
	add	r1, r5, #4
	mov	r0, r4
	bl	usb_anchor_urb
	ldr	r0, [r5]
	bl	usb_mark_last_busy
	ldr	r3, .L16+12
	mov	r0, r4
	ldr	r1, [r3]
	bl	usb_submit_urb
	cmp	r0, #0
	bge	.L1
	ldr	r3, .L16+16
	ldr	r3, [r3]
	cmn	r0, r3
	beq	.L8
	ldr	r3, .L16+20
	ldr	r3, [r3]
	cmn	r0, r3
	beq	.L8
	rsb	r3, r0, #0
	mov	r2, r4
	mov	r0, r6
	ldr	r1, .L16+24
	bl	bt_dev_err
.L8:
	mov	r0, r4
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, lr}
	b	usb_unanchor_urb
.L14:
	ldr	r3, .L16+12
	ldr	r0, [r4, #4]
	ldr	r1, [r3]
	bl	bt_skb_alloc
	subs	r7, r0, #0
	beq	.L4
	ldr	r1, [r4, #8]
	ldr	r2, [r4, #4]
	bl	skb_put_data
	mov	r1, r7
	mov	r0, r6
	bl	hci_recv_diag
	b	.L4
.L17:
	.align	2
.L16:
	.word	.LC0
	.word	ENOENT
	.word	BTUSB_DIAG_RUNNING
	.word	GFP_ATOMIC
	.word	EPERM
	.word	ENODEV
	.word	.LC1
	.size	btusb_diag_complete, .-btusb_diag_complete
	.comm	GFP_ATOMIC,4,4
	.comm	EPERM,4,4
	.comm	ENOENT,4,4
	.comm	ENODEV,4,4
	.comm	BTUSB_DIAG_RUNNING,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
