	.file	"extr_btm_ble.c_btm_ble_link_encrypted.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"btm_ble_link_encrypted (No Device Found!) encr_enable=%d"
	.align 8
.LC1:
	.string	"btm_ble_link_encrypted encr_enable=%d"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC2:
	.string	" p_dev_rec->sec_flags=0x%x"
	.text
	.p2align 4
	.globl	btm_ble_link_encrypted
	.type	btm_ble_link_encrypted, @function
btm_ble_link_encrypted:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12d, edi
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	call	btm_find_dev@PLT
	test	rax, rax
	je	.L20
	mov	rsi, rbp
	lea	rdi, .LC1[rip]
	mov	rbx, rax
	call	BTM_TRACE_DEBUG@PLT
	mov	rsi, rbp
	mov	edi, r12d
	mov	r14, QWORD PTR [rbx]
	mov	r13, QWORD PTR BTM_SEC_STATE_ENCRYPTING[rip]
	call	smp_link_encrypted@PLT
	mov	rsi, QWORD PTR 48[rbx]
	lea	rdi, .LC2[rip]
	call	BTM_TRACE_DEBUG@PLT
	test	rbp, rbp
	je	.L3
	cmp	QWORD PTR 8[rbx], 0
	jne	.L4
	mov	rax, QWORD PTR 24[rbx]
	mov	QWORD PTR 8[rbx], rax
.L4:
	mov	rax, QWORD PTR BTM_SEC_STATE_IDLE[rip]
	cmp	QWORD PTR 40[rbx], 0
	mov	QWORD PTR [rbx], rax
	je	.L5
	cmp	r14, r13
	je	.L21
.L5:
	mov	edi, DWORD PTR 16[rbx]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	jmp	gatt_notify_enc_cmpl@PLT
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	mov	rax, QWORD PTR BTM_SEC_STATE_IDLE[rip]
	cmp	QWORD PTR 40[rbx], 0
	mov	QWORD PTR [rbx], rax
	je	.L5
	cmp	r14, r13
	jne	.L5
	cmp	QWORD PTR 32[rbx], 0
	je	.L5
	mov	edx, DWORD PTR TRUE[rip]
	mov	esi, DWORD PTR BTM_ERR_PROCESSING[rip]
	mov	rdi, rbx
	call	btm_sec_dev_rec_cback_event@PLT
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L20:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rsi, rbp
	lea	rdi, .LC0[rip]
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	jmp	BTM_TRACE_WARNING@PLT
	.p2align 4,,10
	.p2align 3
.L21:
	.cfi_restore_state
	mov	edx, DWORD PTR TRUE[rip]
	mov	esi, DWORD PTR BTM_SUCCESS[rip]
	mov	rdi, rbx
	call	btm_sec_dev_rec_cback_event@PLT
	jmp	.L5
	.cfi_endproc
.LFE0:
	.size	btm_ble_link_encrypted, .-btm_ble_link_encrypted
	.comm	TRUE,4,4
	.comm	BTM_SUCCESS,4,4
	.comm	BTM_SEC_STATE_IDLE,8,8
	.comm	BTM_SEC_STATE_ENCRYPTING,8,8
	.comm	BTM_ERR_PROCESSING,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_btm_ble.c_btm_ble_link_encrypted.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"btm_ble_link_encrypted (No Device Found!) encr_enab"
	.ascii	"le=%d\000"
	.align	2
.LC1:
	.ascii	"btm_ble_link_encrypted encr_enable=%d\000"
	.align	2
.LC2:
	.ascii	" p_dev_rec->sec_flags=0x%x\000"
	.text
	.align	2
	.global	btm_ble_link_encrypted
	.syntax unified
	.arm
	.fpu softvfp
	.type	btm_ble_link_encrypted, %function
btm_ble_link_encrypted:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r5, r1
	mov	r6, r0
	bl	btm_find_dev
	subs	r4, r0, #0
	mov	r1, r5
	beq	.L12
	ldr	r0, .L14
	bl	BTM_TRACE_DEBUG
	ldr	r3, .L14+4
	mov	r0, r6
	mov	r1, r5
	ldr	r7, [r3]
	ldr	r6, [r4]
	bl	smp_link_encrypted
	ldr	r1, [r4, #24]
	ldr	r0, .L14+8
	bl	BTM_TRACE_DEBUG
	cmp	r5, #0
	beq	.L3
	ldr	r3, [r4, #4]
	cmp	r3, #0
	ldreq	r3, [r4, #12]
	streq	r3, [r4, #4]
.L4:
	sub	r6, r6, r7
	clz	r6, r6
	ldr	r2, [r4, #20]
	lsr	r6, r6, #5
	cmp	r2, #0
	moveq	r6, #0
	ldr	r3, .L14+12
	cmp	r6, #0
	ldr	r3, [r3]
	str	r3, [r4]
	beq	.L5
	ldr	r3, .L14+16
	ldr	r2, .L14+20
	mov	r0, r4
	ldr	r2, [r2]
	ldr	r1, [r3]
	bl	btm_sec_dev_rec_cback_event
	b	.L5
.L3:
	sub	r6, r6, r7
	clz	r6, r6
	ldr	r2, [r4, #20]
	lsr	r6, r6, #5
	cmp	r2, #0
	moveq	r6, #0
	ldr	r3, .L14+12
	cmp	r6, #0
	ldr	r3, [r3]
	str	r3, [r4]
	bne	.L13
.L5:
	ldr	r0, [r4, #8]
	pop	{r4, r5, r6, r7, r8, lr}
	b	gatt_notify_enc_cmpl
.L12:
	ldr	r0, .L14+24
	pop	{r4, r5, r6, r7, r8, lr}
	b	BTM_TRACE_WARNING
.L13:
	ldr	r3, [r4, #16]
	cmp	r3, #0
	beq	.L5
	ldr	r3, .L14+28
	ldr	r2, .L14+20
	mov	r0, r4
	ldr	r2, [r2]
	ldr	r1, [r3]
	bl	btm_sec_dev_rec_cback_event
	b	.L5
.L15:
	.align	2
.L14:
	.word	.LC1
	.word	BTM_SEC_STATE_ENCRYPTING
	.word	.LC2
	.word	BTM_SEC_STATE_IDLE
	.word	BTM_SUCCESS
	.word	TRUE
	.word	.LC0
	.word	BTM_ERR_PROCESSING
	.size	btm_ble_link_encrypted, .-btm_ble_link_encrypted
	.comm	TRUE,4,4
	.comm	BTM_SUCCESS,4,4
	.comm	BTM_SEC_STATE_IDLE,4,4
	.comm	BTM_SEC_STATE_ENCRYPTING,4,4
	.comm	BTM_ERR_PROCESSING,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
