	.file	"extr_bte.c_BTE_ReadStoredLinkKey.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	BTE_ReadStoredLinkKey
	.type	BTE_ReadStoredLinkKey, @function
BTE_ReadStoredLinkKey:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	xor	r13d, r13d
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12d, edx
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	mov	edi, r13d
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	ebx, esi
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	call	_CPU_ISR_Disable@PLT
	lea	rdi, btstate[rip]
	mov	DWORD PTR btstate[rip+24], r12d
	mov	QWORD PTR btstate[rip+16], rbp
	mov	DWORD PTR btstate[rip+8], ebx
	mov	QWORD PTR btstate[rip], 0
	call	hci_arg@PLT
	mov	edi, DWORD PTR bte_read_stored_link_key_complete[rip]
	call	hci_cmd_complete@PLT
	xor	eax, eax
	call	hci_read_stored_link_key@PLT
	mov	edi, r13d
	call	_CPU_ISR_Restore@PLT
	mov	eax, DWORD PTR ERR_OK[rip]
	add	rsp, 8
	.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
	.cfi_endproc
.LFE0:
	.size	BTE_ReadStoredLinkKey, .-BTE_ReadStoredLinkKey
	.comm	btstate,32,32
	.comm	bte_read_stored_link_key_complete,4,4
	.comm	ERR_OK,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_bte.c_BTE_ReadStoredLinkKey.c"
	.text
	.align	2
	.global	BTE_ReadStoredLinkKey
	.syntax unified
	.arm
	.fpu softvfp
	.type	BTE_ReadStoredLinkKey, %function
BTE_ReadStoredLinkKey:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r7, #0
	mov	r5, r0
	mov	r0, r7
	mov	r4, r1
	mov	r6, r2
	bl	_CPU_ISR_Disable
	mov	r3, r7
	ldr	r0, .L4
	stm	r0, {r3, r4, r5, r6}
	bl	hci_arg
	ldr	r3, .L4+4
	ldr	r0, [r3]
	bl	hci_cmd_complete
	bl	hci_read_stored_link_key
	mov	r0, r7
	bl	_CPU_ISR_Restore
	ldr	r3, .L4+8
	ldr	r0, [r3]
	pop	{r4, r5, r6, r7, r8, pc}
.L5:
	.align	2
.L4:
	.word	btstate
	.word	bte_read_stored_link_key_complete
	.word	ERR_OK
	.size	BTE_ReadStoredLinkKey, .-BTE_ReadStoredLinkKey
	.comm	btstate,16,4
	.comm	bte_read_stored_link_key_complete,4,4
	.comm	ERR_OK,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
