	.file	"extr_hci_core.c_hci_set_le_support.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	hci_set_le_support, @function
hci_set_le_support:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 24
	.cfi_def_cfa_offset 64
	mov	r12, QWORD PTR [rdi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	mov	rdi, r12
	call	lmp_bredr_capable@PLT
	test	eax, eax
	jne	.L9
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L10
	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
.L9:
	.cfi_restore_state
	mov	r13, rsp
	mov	edx, 8
	xor	esi, esi
	mov	rdi, r13
	call	memset@PLT
	mov	esi, DWORD PTR HCI_LE_ENABLED[rip]
	mov	rdi, r12
	call	hci_dev_test_flag@PLT
	mov	ebx, DWORD PTR [rsp]
	test	rax, rax
	je	.L4
	mov	QWORD PTR [rsp], 1
	mov	ebx, 1
.L4:
	mov	rdi, r12
	call	lmp_host_le_capable@PLT
	cmp	eax, ebx
	je	.L1
	mov	esi, DWORD PTR HCI_OP_WRITE_LE_HOST_SUPPORTED[rip]
	mov	rcx, r13
	mov	edx, 8
	mov	rdi, rbp
	call	hci_req_add@PLT
	jmp	.L1
.L10:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	hci_set_le_support, .-hci_set_le_support
	.comm	HCI_OP_WRITE_LE_HOST_SUPPORTED,4,4
	.comm	HCI_LE_ENABLED,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_core.c_hci_set_le_support.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	hci_set_le_support, %function
hci_set_le_support:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	ldr	r5, [r0]
	ldr	r3, .L11
	sub	sp, sp, #20
	mov	r4, r0
	mov	r0, r5
	ldr	r3, [r3]
	str	r3, [sp, #12]
	mov	r3,#0
	bl	lmp_bredr_capable
	cmp	r0, #0
	bne	.L9
.L1:
	ldr	r3, .L11
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L10
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L9:
	mov	r6, #0
	ldr	r3, .L11+4
	mov	r0, r5
	ldr	r1, [r3]
	str	r6, [sp, #4]
	str	r6, [sp, #8]
	bl	hci_dev_test_flag
	cmp	r0, r6
	movne	r3, #1
	mov	r0, r5
	movne	r7, r3
	stmibne	sp, {r3, r6}
	ldreq	r7, [sp, #4]
	bl	lmp_host_le_capable
	cmp	r0, r7
	beq	.L1
	ldr	r2, .L11+8
	mov	r0, r4
	ldr	r1, [r2]
	add	r3, sp, #4
	mov	r2, #8
	bl	hci_req_add
	b	.L1
.L10:
	bl	__stack_chk_fail
.L12:
	.align	2
.L11:
	.word	.LC0
	.word	HCI_LE_ENABLED
	.word	HCI_OP_WRITE_LE_HOST_SUPPORTED
	.size	hci_set_le_support, .-hci_set_le_support
	.comm	HCI_OP_WRITE_LE_HOST_SUPPORTED,4,4
	.comm	HCI_LE_ENABLED,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
