	.file	"extr_hci_event.c_hci_link_key_notify_evt.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%s"
	.text
	.p2align 4
	.type	hci_link_key_notify_evt, @function
hci_link_key_notify_evt:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13, rdi
	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
	sub	rsp, 24
	.cfi_def_cfa_offset 64
	mov	rbx, QWORD PTR [rsi]
	mov	esi, DWORD PTR [rdi]
	lea	rdi, .LC0[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	call	BT_DBG@PLT
	mov	rdi, r13
	lea	r12, 12[rbx]
	call	hci_dev_lock@PLT
	mov	esi, DWORD PTR ACL_LINK[rip]
	mov	rdx, r12
	mov	rdi, r13
	call	hci_conn_hash_lookup_ba@PLT
	test	rax, rax
	je	.L3
	mov	rdi, rax
	mov	rbp, rax
	call	hci_conn_hold@PLT
	mov	eax, DWORD PTR HCI_DISCONN_TIMEOUT[rip]
	mov	rdi, rbp
	mov	DWORD PTR 8[rbp], eax
	call	hci_conn_drop@PLT
	mov	edi, DWORD PTR HCI_CONN_NEW_LINK_KEY[rip]
	mov	rsi, rbp
	call	set_bit@PLT
	mov	rsi, QWORD PTR [rbx]
	mov	edx, DWORD PTR 4[rbp]
	mov	rdi, rbp
	call	conn_set_key@PLT
	mov	esi, DWORD PTR HCI_MGMT[rip]
	mov	rdi, r13
	call	hci_dev_test_flag@PLT
	test	eax, eax
	jne	.L17
.L3:
	mov	rdi, r13
	call	hci_dev_unlock@PLT
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L18
	add	rsp, 24
	.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
.L17:
	.cfi_restore_state
	sub	rsp, 8
	.cfi_def_cfa_offset 72
	mov	ecx, DWORD PTR 8[rbx]
	mov	r8, QWORD PTR [rbx]
	mov	rdx, r12
	lea	rax, 12[rsp]
	xor	r9d, r9d
	mov	rsi, rbp
	mov	rdi, r13
	push	rax
	.cfi_def_cfa_offset 80
	call	hci_add_link_key@PLT
	pop	rdx
	.cfi_def_cfa_offset 72
	pop	rcx
	.cfi_def_cfa_offset 64
	mov	r12, rax
	test	rax, rax
	je	.L3
	mov	rax, QWORD PTR HCI_LK_CHANGED_COMBINATION[rip]
	cmp	QWORD PTR [rbx], rax
	je	.L19
.L5:
	mov	edx, DWORD PTR 4[rsp]
	mov	rsi, r12
	mov	rdi, r13
	call	mgmt_new_link_key@PLT
	mov	rax, QWORD PTR HCI_LK_DEBUG_COMBINATION[rip]
	cmp	QWORD PTR [r12], rax
	je	.L20
.L6:
	mov	eax, DWORD PTR 4[rsp]
	mov	edi, DWORD PTR HCI_CONN_FLUSH_KEY[rip]
	mov	rsi, rbp
	test	eax, eax
	je	.L7
	call	clear_bit@PLT
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L7:
	call	set_bit@PLT
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L20:
	mov	esi, DWORD PTR HCI_KEEP_DEBUG_KEYS[rip]
	mov	rdi, r13
	call	hci_dev_test_flag@PLT
	test	eax, eax
	jne	.L6
	lea	rdi, 8[r12]
	call	list_del_rcu@PLT
	mov	esi, DWORD PTR rcu[rip]
	mov	rdi, r12
	call	kfree_rcu@PLT
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L19:
	mov	edx, DWORD PTR 12[r12]
	mov	rsi, QWORD PTR [r12]
	mov	rdi, rbp
	call	conn_set_key@PLT
	jmp	.L5
.L18:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	hci_link_key_notify_evt, .-hci_link_key_notify_evt
	.comm	rcu,4,4
	.comm	HCI_MGMT,4,4
	.comm	HCI_LK_DEBUG_COMBINATION,8,8
	.comm	HCI_LK_CHANGED_COMBINATION,8,8
	.comm	HCI_KEEP_DEBUG_KEYS,4,4
	.comm	HCI_DISCONN_TIMEOUT,4,4
	.comm	HCI_CONN_NEW_LINK_KEY,4,4
	.comm	HCI_CONN_FLUSH_KEY,4,4
	.comm	ACL_LINK,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_event.c_hci_link_key_notify_evt.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"%s\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	hci_link_key_notify_evt, %function
hci_link_key_notify_evt:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	mov	r3, r1
	push	{r4, r5, r6, r7, lr}
	mov	r4, r0
	ldr	r6, [r3]
	ldr	r3, .L21
	sub	sp, sp, #28
	ldr	r1, [r4]
	ldr	r0, .L21+4
	ldr	r3, [r3]
	str	r3, [sp, #20]
	mov	r3,#0
	bl	BT_DBG
	mov	r0, r4
	bl	hci_dev_lock
	ldr	r3, .L21+8
	add	r7, r6, #8
	mov	r2, r7
	mov	r0, r4
	ldr	r1, [r3]
	bl	hci_conn_hash_lookup_ba
	subs	r5, r0, #0
	beq	.L3
	bl	hci_conn_hold
	ldr	r3, .L21+12
	mov	r0, r5
	ldr	r3, [r3]
	str	r3, [r5, #8]
	bl	hci_conn_drop
	ldr	r3, .L21+16
	mov	r1, r5
	ldr	r0, [r3]
	bl	set_bit
	ldr	r2, [r5, #4]
	ldr	r1, [r6]
	mov	r0, r5
	bl	conn_set_key
	ldr	r3, .L21+20
	mov	r0, r4
	ldr	r1, [r3]
	bl	hci_dev_test_flag
	cmp	r0, #0
	bne	.L17
.L3:
	mov	r0, r4
	bl	hci_dev_unlock
	ldr	r3, .L21
	ldr	r2, [r3]
	ldr	r3, [sp, #20]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L18
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L17:
	mov	r1, #0
	add	r2, sp, #16
	ldr	r3, [r6, #4]
	stmib	sp, {r1, r2}
	ldr	r1, [r6]
	mov	r2, r7
	str	r1, [sp]
	mov	r0, r4
	mov	r1, r5
	bl	hci_add_link_key
	subs	r7, r0, #0
	beq	.L3
	ldr	r3, .L21+24
	ldr	r2, [r6]
	ldr	r3, [r3]
	cmp	r2, r3
	beq	.L19
.L5:
	ldr	r2, [sp, #16]
	mov	r1, r7
	mov	r0, r4
	bl	mgmt_new_link_key
	ldr	r3, .L21+28
	ldr	r2, [r7]
	ldr	r3, [r3]
	cmp	r2, r3
	beq	.L20
.L6:
	ldr	r2, [sp, #16]
	ldr	r3, .L21+32
	cmp	r2, #0
	mov	r1, r5
	ldr	r0, [r3]
	beq	.L7
	bl	clear_bit
	b	.L3
.L7:
	bl	set_bit
	b	.L3
.L20:
	ldr	r3, .L21+36
	mov	r0, r4
	ldr	r1, [r3]
	bl	hci_dev_test_flag
	cmp	r0, #0
	bne	.L6
	add	r0, r7, #4
	bl	list_del_rcu
	ldr	r3, .L21+40
	mov	r0, r7
	ldr	r1, [r3]
	bl	kfree_rcu
	b	.L3
.L19:
	mov	r0, r5
	ldr	r2, [r7, #8]
	ldr	r1, [r7]
	bl	conn_set_key
	b	.L5
.L18:
	bl	__stack_chk_fail
.L22:
	.align	2
.L21:
	.word	.LC1
	.word	.LC0
	.word	ACL_LINK
	.word	HCI_DISCONN_TIMEOUT
	.word	HCI_CONN_NEW_LINK_KEY
	.word	HCI_MGMT
	.word	HCI_LK_CHANGED_COMBINATION
	.word	HCI_LK_DEBUG_COMBINATION
	.word	HCI_CONN_FLUSH_KEY
	.word	HCI_KEEP_DEBUG_KEYS
	.word	rcu
	.size	hci_link_key_notify_evt, .-hci_link_key_notify_evt
	.comm	rcu,4,4
	.comm	HCI_MGMT,4,4
	.comm	HCI_LK_DEBUG_COMBINATION,4,4
	.comm	HCI_LK_CHANGED_COMBINATION,4,4
	.comm	HCI_KEEP_DEBUG_KEYS,4,4
	.comm	HCI_DISCONN_TIMEOUT,4,4
	.comm	HCI_CONN_NEW_LINK_KEY,4,4
	.comm	HCI_CONN_FLUSH_KEY,4,4
	.comm	ACL_LINK,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
