	.file	"extr_mgmt.c_fast_connectable_complete.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"status 0x%02x"
	.text
	.p2align 4
	.type	fast_connectable_complete, @function
fast_connectable_complete:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13, rsi
	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
	lea	rdi, .LC0[rip]
	call	BT_DBG@PLT
	mov	rdi, rbp
	call	hci_dev_lock@PLT
	mov	edi, DWORD PTR MGMT_OP_SET_FAST_CONNECTABLE[rip]
	mov	rsi, rbp
	call	pending_find@PLT
	test	rax, rax
	je	.L2
	mov	r12, rax
	test	r13, r13
	jne	.L12
	mov	rax, QWORD PTR 8[rax]
	mov	esi, DWORD PTR HCI_FAST_CONNECTABLE[rip]
	mov	rdi, rbp
	cmp	QWORD PTR [rax], 0
	jne	.L13
	call	hci_dev_clear_flag@PLT
.L6:
	mov	esi, DWORD PTR MGMT_OP_SET_FAST_CONNECTABLE[rip]
	mov	edi, DWORD PTR [r12]
	mov	rdx, rbp
	call	send_settings_rsp@PLT
	mov	esi, DWORD PTR [r12]
	mov	rdi, rbp
	call	new_settings@PLT
.L4:
	mov	rdi, r12
	call	mgmt_pending_remove@PLT
.L2:
	mov	rdi, rbp
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	jmp	hci_dev_unlock@PLT
	.p2align 4,,10
	.p2align 3
.L13:
	.cfi_restore_state
	call	hci_dev_set_flag@PLT
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L12:
	mov	rdi, r13
	call	mgmt_status@PLT
	mov	edx, DWORD PTR MGMT_OP_SET_FAST_CONNECTABLE[rip]
	mov	esi, DWORD PTR 0[rbp]
	mov	edi, DWORD PTR [r12]
	mov	ecx, eax
	call	mgmt_cmd_status@PLT
	jmp	.L4
	.cfi_endproc
.LFE0:
	.size	fast_connectable_complete, .-fast_connectable_complete
	.comm	MGMT_OP_SET_FAST_CONNECTABLE,4,4
	.comm	HCI_FAST_CONNECTABLE,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_mgmt.c_fast_connectable_complete.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"status 0x%02x\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	fast_connectable_complete, %function
fast_connectable_complete:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r0
	ldr	r7, .L14
	ldr	r0, .L14+4
	mov	r6, r1
	bl	BT_DBG
	mov	r0, r4
	bl	hci_dev_lock
	mov	r1, r4
	ldr	r0, [r7]
	bl	pending_find
	subs	r5, r0, #0
	beq	.L2
	cmp	r6, #0
	bne	.L12
	ldr	r3, [r5, #4]
	ldr	r2, .L14+8
	ldr	r3, [r3]
	mov	r0, r4
	cmp	r3, #0
	ldr	r1, [r2]
	bne	.L13
	bl	hci_dev_clear_flag
.L6:
	ldr	r1, [r7]
	mov	r2, r4
	ldr	r0, [r5]
	bl	send_settings_rsp
	mov	r0, r4
	ldr	r1, [r5]
	bl	new_settings
.L4:
	mov	r0, r5
	bl	mgmt_pending_remove
.L2:
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, lr}
	b	hci_dev_unlock
.L13:
	bl	hci_dev_set_flag
	b	.L6
.L12:
	mov	r0, r6
	ldr	r8, [r7]
	ldr	r6, [r5]
	ldr	r7, [r4]
	bl	mgmt_status
	mov	r2, r8
	mov	r3, r0
	mov	r1, r7
	mov	r0, r6
	bl	mgmt_cmd_status
	b	.L4
.L15:
	.align	2
.L14:
	.word	MGMT_OP_SET_FAST_CONNECTABLE
	.word	.LC0
	.word	HCI_FAST_CONNECTABLE
	.size	fast_connectable_complete, .-fast_connectable_complete
	.comm	MGMT_OP_SET_FAST_CONNECTABLE,4,4
	.comm	HCI_FAST_CONNECTABLE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
