	.file	"extr_hci_core.c_hci_unregister_dev.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%p name %s type %d"
	.text
	.p2align 4
	.globl	hci_unregister_dev
	.type	hci_unregister_dev, @function
hci_unregister_dev:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	ecx, DWORD PTR 20[rdi]
	mov	rsi, rdi
	mov	rbp, rdi
	mov	edx, DWORD PTR 24[rdi]
	lea	rdi, .LC0[rip]
	call	BT_DBG@PLT
	lea	rdi, hci_dev_list_lock[rip]
	call	write_lock_bh@PLT
	lea	rdi, 16[rbp]
	call	list_del@PLT
	lea	rdi, hci_dev_list_lock[rip]
	call	write_unlock_bh@PLT
	mov	rdi, rbp
	call	hci_dev_do_close@PLT
	mov	rax, QWORD PTR 8[rbp]
	mov	edi, DWORD PTR [rax]
	call	kfree_skb@PLT
	mov	rax, QWORD PTR 8[rbp]
	mov	edi, DWORD PTR 4[rax]
	call	kfree_skb@PLT
	mov	rax, QWORD PTR 8[rbp]
	mov	edi, DWORD PTR 8[rax]
	call	kfree_skb@PLT
	mov	esi, DWORD PTR HCI_DEV_UNREG[rip]
	mov	rdi, rbp
	call	hci_notify@PLT
	mov	rdi, QWORD PTR 0[rbp]
	test	rdi, rdi
	jne	.L8
.L2:
	mov	rdi, rbp
	call	hci_unregister_sysfs@PLT
	mov	rdi, rbp
	call	__hci_dev_put@PLT
	xor	eax, eax
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	call	rfkill_unregister@PLT
	mov	rdi, QWORD PTR 0[rbp]
	call	rfkill_destroy@PLT
	jmp	.L2
	.cfi_endproc
.LFE0:
	.size	hci_unregister_dev, .-hci_unregister_dev
	.comm	hci_dev_list_lock,4,4
	.comm	HCI_DEV_UNREG,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_hci_core.c_hci_unregister_dev.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"%p name %s type %d\000"
	.text
	.align	2
	.global	hci_unregister_dev
	.syntax unified
	.arm
	.fpu softvfp
	.type	hci_unregister_dev, %function
hci_unregister_dev:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, lr}
	mov	r4, r0
	ldr	r0, .L9
	mov	r1, r4
	ldr	r2, [r4, #16]
	ldr	r3, [r4, #12]
	bl	BT_DBG
	ldr	r0, .L9+4
	bl	write_lock_bh
	add	r0, r4, #8
	bl	list_del
	ldr	r0, .L9+4
	bl	write_unlock_bh
	mov	r0, r4
	bl	hci_dev_do_close
	ldr	r3, [r4, #4]
	ldr	r0, [r3]
	bl	kfree_skb
	ldr	r3, [r4, #4]
	ldr	r0, [r3, #4]
	bl	kfree_skb
	ldr	r3, [r4, #4]
	ldr	r0, [r3, #8]
	bl	kfree_skb
	ldr	r3, .L9+8
	mov	r0, r4
	ldr	r1, [r3]
	bl	hci_notify
	ldr	r0, [r4]
	cmp	r0, #0
	bne	.L8
.L2:
	mov	r0, r4
	bl	hci_unregister_sysfs
	mov	r0, r4
	bl	__hci_dev_put
	mov	r0, #0
	pop	{r4, pc}
.L8:
	bl	rfkill_unregister
	ldr	r0, [r4]
	bl	rfkill_destroy
	b	.L2
.L10:
	.align	2
.L9:
	.word	.LC0
	.word	hci_dev_list_lock
	.word	HCI_DEV_UNREG
	.size	hci_unregister_dev, .-hci_unregister_dev
	.comm	hci_dev_list_lock,4,4
	.comm	HCI_DEV_UNREG,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
