	.file	"extr_smp.c_sc_add_ltk.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	sc_add_ltk, @function
sc_add_ltk:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	lea	rsi, 12[rdi]
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	rax, QWORD PTR 16[rdi]
	mov	edi, DWORD PTR SMP_FLAG_DEBUG_KEY[rip]
	mov	rbp, QWORD PTR [rax]
	call	test_bit@PLT
	mov	ecx, DWORD PTR SMP_LTK_P256_DEBUG[rip]
	mov	r9d, DWORD PTR 4[rbx]
	test	rax, rax
	mov	edx, DWORD PTR 8[rbp]
	mov	edi, DWORD PTR 16[rbp]
	lea	rsi, 12[rbp]
	cmove	ecx, DWORD PTR SMP_LTK_P256[rip]
	mov	rax, QWORD PTR BT_SECURITY_FIPS[rip]
	xor	r8d, r8d
	cmp	QWORD PTR 0[rbp], rax
	mov	eax, DWORD PTR [rbx]
	sete	r8b
	sub	rsp, 8
	.cfi_def_cfa_offset 40
	push	0
	.cfi_def_cfa_offset 48
	push	0
	.cfi_def_cfa_offset 56
	push	rax
	.cfi_def_cfa_offset 64
	call	hci_add_ltk@PLT
	mov	DWORD PTR 8[rbx], eax
	add	rsp, 40
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	sc_add_ltk, .-sc_add_ltk
	.comm	SMP_LTK_P256_DEBUG,4,4
	.comm	SMP_LTK_P256,4,4
	.comm	SMP_FLAG_DEBUG_KEY,4,4
	.comm	BT_SECURITY_FIPS,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_smp.c_sc_add_ltk.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	sc_add_ltk, %function
sc_add_ltk:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, lr}
	ldr	r2, .L6
	ldr	r3, [r0, #16]
	sub	sp, sp, #28
	mov	r4, r0
	add	r1, r0, #12
	ldr	r0, [r2]
	ldr	r5, [r3]
	bl	test_bit
	mov	r1, #0
	cmp	r0, #0
	ldr	ip, [r4, #4]
	ldr	lr, [r4]
	ldrne	r3, .L6+4
	ldreq	r3, .L6+8
	ldr	r2, [r5, #4]
	ldr	r3, [r3]
	ldr	r0, [r5, #12]
	stmib	sp, {ip, lr}
	str	r1, [sp, #16]
	str	r1, [sp, #12]
	ldr	r1, .L6+12
	ldr	ip, [r5]
	ldr	r1, [r1]
	sub	ip, ip, r1
	clz	ip, ip
	lsr	ip, ip, #5
	add	r1, r5, #8
	str	ip, [sp]
	bl	hci_add_ltk
	str	r0, [r4, #8]
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, pc}
.L7:
	.align	2
.L6:
	.word	SMP_FLAG_DEBUG_KEY
	.word	SMP_LTK_P256_DEBUG
	.word	SMP_LTK_P256
	.word	BT_SECURITY_FIPS
	.size	sc_add_ltk, .-sc_add_ltk
	.comm	SMP_LTK_P256_DEBUG,4,4
	.comm	SMP_LTK_P256,4,4
	.comm	SMP_FLAG_DEBUG_KEY,4,4
	.comm	BT_SECURITY_FIPS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
