	.file	"extr_hci_event.c_hci_key_refresh_complete_evt.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"%s status 0x%2.2x handle 0x%4.4x"
	.text
	.p2align 4
	.type	hci_key_refresh_complete_evt, @function
hci_key_refresh_complete_evt:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, QWORD PTR [rsi]
	mov	edi, DWORD PTR 8[rbx]
	call	__le16_to_cpu@PLT
	mov	esi, DWORD PTR [r12]
	mov	rdx, QWORD PTR [rbx]
	lea	rdi, .LC0[rip]
	mov	ecx, eax
	call	BT_DBG@PLT
	mov	rdi, r12
	call	hci_dev_lock@PLT
	mov	edi, DWORD PTR 8[rbx]
	call	__le16_to_cpu@PLT
	mov	rdi, r12
	mov	esi, eax
	call	hci_conn_hash_lookup_handle@PLT
	test	rax, rax
	je	.L2
	mov	rbp, rax
	mov	rax, QWORD PTR LE_LINK[rip]
	cmp	QWORD PTR 0[rbp], rax
	jne	.L2
	cmp	QWORD PTR [rbx], 0
	jne	.L3
	mov	eax, DWORD PTR 24[rbp]
	mov	DWORD PTR 28[rbp], eax
.L3:
	mov	edi, DWORD PTR HCI_CONN_ENCRYPT_PEND[rip]
	lea	rsi, 20[rbp]
	call	clear_bit@PLT
	mov	rsi, QWORD PTR [rbx]
	test	rsi, rsi
	je	.L4
	mov	rax, QWORD PTR 8[rbp]
	cmp	rax, QWORD PTR BT_CONNECTED[rip]
	je	.L14
	cmp	rax, QWORD PTR BT_CONFIG[rip]
	jne	.L7
.L6:
	mov	rdi, rbp
	call	hci_connect_cfm@PLT
	mov	rdi, rbp
	call	hci_conn_drop@PLT
.L2:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	rdi, r12
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	hci_dev_unlock@PLT
	.p2align 4,,10
	.p2align 3
.L4:
	.cfi_restore_state
	mov	rax, QWORD PTR BT_CONFIG[rip]
	cmp	QWORD PTR 8[rbp], rax
	je	.L15
.L7:
	mov	rdi, rbp
	call	hci_auth_cfm@PLT
	mov	rdi, rbp
	call	hci_conn_hold@PLT
	mov	eax, DWORD PTR HCI_DISCONN_TIMEOUT[rip]
	mov	rdi, rbp
	mov	DWORD PTR 16[rbp], eax
	call	hci_conn_drop@PLT
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	rdi, r12
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	hci_dev_unlock@PLT
	.p2align 4,,10
	.p2align 3
.L15:
	.cfi_restore_state
	mov	rax, QWORD PTR BT_CONNECTED[rip]
	mov	QWORD PTR 8[rbp], rax
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L14:
	mov	esi, DWORD PTR HCI_ERROR_AUTH_FAILURE[rip]
	mov	rdi, rbp
	call	hci_disconnect@PLT
	mov	rdi, rbp
	call	hci_conn_drop@PLT
	jmp	.L2
	.cfi_endproc
.LFE0:
	.size	hci_key_refresh_complete_evt, .-hci_key_refresh_complete_evt
	.comm	LE_LINK,8,8
	.comm	HCI_ERROR_AUTH_FAILURE,4,4
	.comm	HCI_DISCONN_TIMEOUT,4,4
	.comm	HCI_CONN_ENCRYPT_PEND,4,4
	.comm	BT_CONNECTED,8,8
	.comm	BT_CONFIG,8,8
	.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_key_refresh_complete_evt.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"%s status 0x%2.2x handle 0x%4.4x\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	hci_key_refresh_complete_evt, %function
hci_key_refresh_complete_evt:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r6, [r1]
	ldr	r4, [r0]
	mov	r5, r0
	ldr	r0, [r6, #4]
	ldr	r7, [r6]
	bl	__le16_to_cpu
	mov	r1, r4
	mov	r3, r0
	mov	r2, r7
	ldr	r0, .L16
	bl	BT_DBG
	mov	r0, r5
	bl	hci_dev_lock
	ldr	r0, [r6, #4]
	bl	__le16_to_cpu
	mov	r1, r0
	mov	r0, r5
	bl	hci_conn_hash_lookup_handle
	subs	r4, r0, #0
	beq	.L2
	ldr	r3, .L16+4
	ldr	r2, [r4]
	ldr	r3, [r3]
	cmp	r2, r3
	bne	.L2
	ldr	r3, [r6]
	add	r1, r4, #12
	cmp	r3, #0
	ldreq	r3, [r4, #16]
	streq	r3, [r4, #20]
	ldr	r3, .L16+8
	ldr	r0, [r3]
	bl	clear_bit
	ldr	r1, [r6]
	cmp	r1, #0
	beq	.L4
	ldr	r2, .L16+12
	ldr	r3, [r4, #4]
	ldr	r2, [r2]
	cmp	r3, r2
	beq	.L14
	ldr	r2, .L16+16
	ldr	r2, [r2]
	cmp	r3, r2
	bne	.L7
.L6:
	mov	r0, r4
	bl	hci_connect_cfm
	mov	r0, r4
	bl	hci_conn_drop
.L2:
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, lr}
	b	hci_dev_unlock
.L4:
	ldr	r3, .L16+16
	ldr	r2, [r4, #4]
	ldr	r3, [r3]
	cmp	r2, r3
	beq	.L15
.L7:
	mov	r0, r4
	bl	hci_auth_cfm
	mov	r0, r4
	bl	hci_conn_hold
	ldr	r3, .L16+20
	mov	r0, r4
	ldr	r3, [r3]
	str	r3, [r4, #8]
	bl	hci_conn_drop
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, lr}
	b	hci_dev_unlock
.L15:
	ldr	r3, .L16+12
	ldr	r3, [r3]
	str	r3, [r4, #4]
	b	.L6
.L14:
	ldr	r3, .L16+24
	mov	r0, r4
	ldr	r1, [r3]
	bl	hci_disconnect
	mov	r0, r4
	bl	hci_conn_drop
	b	.L2
.L17:
	.align	2
.L16:
	.word	.LC0
	.word	LE_LINK
	.word	HCI_CONN_ENCRYPT_PEND
	.word	BT_CONNECTED
	.word	BT_CONFIG
	.word	HCI_DISCONN_TIMEOUT
	.word	HCI_ERROR_AUTH_FAILURE
	.size	hci_key_refresh_complete_evt, .-hci_key_refresh_complete_evt
	.comm	LE_LINK,4,4
	.comm	HCI_ERROR_AUTH_FAILURE,4,4
	.comm	HCI_DISCONN_TIMEOUT,4,4
	.comm	HCI_CONN_ENCRYPT_PEND,4,4
	.comm	BT_CONNECTED,4,4
	.comm	BT_CONFIG,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
