	.file	"extr_hci_request.c___hci_update_background_scan.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"%s stopping background scanning"
	.align 8
.LC1:
	.string	"%s starting background scanning"
	.text
	.p2align 4
	.type	__hci_update_background_scan, @function
__hci_update_background_scan:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, QWORD PTR [rdi]
	mov	edi, DWORD PTR HCI_UP[rip]
	lea	r12, 24[rbx]
	mov	rsi, r12
	call	test_bit@PLT
	test	rax, rax
	jne	.L24
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L24:
	.cfi_restore_state
	mov	edi, DWORD PTR HCI_INIT[rip]
	mov	rsi, r12
	call	test_bit@PLT
	test	rax, rax
	jne	.L1
	mov	esi, DWORD PTR HCI_SETUP[rip]
	mov	rdi, rbx
	call	hci_dev_test_flag@PLT
	test	rax, rax
	jne	.L1
	mov	esi, DWORD PTR HCI_CONFIG[rip]
	mov	rdi, rbx
	call	hci_dev_test_flag@PLT
	test	rax, rax
	jne	.L1
	mov	esi, DWORD PTR HCI_AUTO_OFF[rip]
	mov	rdi, rbx
	call	hci_dev_test_flag@PLT
	test	rax, rax
	jne	.L1
	mov	esi, DWORD PTR HCI_UNREGISTER[rip]
	mov	rdi, rbx
	call	hci_dev_test_flag@PLT
	test	rax, rax
	jne	.L1
	mov	esi, DWORD PTR HCI_LE_ENABLED[rip]
	mov	rdi, rbx
	call	hci_dev_test_flag@PLT
	test	rax, rax
	je	.L1
	mov	rax, QWORD PTR DISCOVERY_STOPPED[rip]
	cmp	QWORD PTR 16[rbx], rax
	jne	.L1
	mov	rdi, rbx
	call	hci_discovery_filter_clear@PLT
	lea	rdi, 8[rbx]
	call	list_empty@PLT
	test	rax, rax
	je	.L5
	lea	rdi, 4[rbx]
	call	list_empty@PLT
	test	rax, rax
	jne	.L25
.L5:
	mov	rdi, rbx
	call	hci_lookup_le_connect@PLT
	test	rax, rax
	jne	.L1
	mov	esi, DWORD PTR HCI_LE_SCAN[rip]
	mov	rdi, rbx
	call	hci_dev_test_flag@PLT
	test	rax, rax
	jne	.L26
.L6:
	mov	rdi, rbp
	call	hci_req_add_le_passive_scan@PLT
	mov	esi, DWORD PTR [rbx]
	lea	rdi, .LC1[rip]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	BT_DBG@PLT
.L25:
	.cfi_restore_state
	mov	esi, DWORD PTR HCI_LE_SCAN[rip]
	mov	rdi, rbx
	call	hci_dev_test_flag@PLT
	test	rax, rax
	je	.L1
	mov	rdi, rbp
	call	hci_req_add_le_scan_disable@PLT
	mov	esi, DWORD PTR [rbx]
	lea	rdi, .LC0[rip]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	BT_DBG@PLT
.L26:
	.cfi_restore_state
	mov	rdi, rbp
	call	hci_req_add_le_scan_disable@PLT
	jmp	.L6
	.cfi_endproc
.LFE0:
	.size	__hci_update_background_scan, .-__hci_update_background_scan
	.comm	HCI_UP,4,4
	.comm	HCI_UNREGISTER,4,4
	.comm	HCI_SETUP,4,4
	.comm	HCI_LE_SCAN,4,4
	.comm	HCI_LE_ENABLED,4,4
	.comm	HCI_INIT,4,4
	.comm	HCI_CONFIG,4,4
	.comm	HCI_AUTO_OFF,4,4
	.comm	DISCOVERY_STOPPED,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_hci_request.c___hci_update_background_scan.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"%s stopping background scanning\000"
	.align	2
.LC1:
	.ascii	"%s starting background scanning\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	__hci_update_background_scan, %function
__hci_update_background_scan:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r6, [r0]
	ldr	r3, .L26
	add	r5, r6, #16
	mov	r4, r0
	mov	r1, r5
	ldr	r0, [r3]
	bl	test_bit
	cmp	r0, #0
	popeq	{r4, r5, r6, pc}
	ldr	r3, .L26+4
	mov	r1, r5
	ldr	r0, [r3]
	bl	test_bit
	cmp	r0, #0
	popne	{r4, r5, r6, pc}
	ldr	r3, .L26+8
	mov	r0, r6
	ldr	r1, [r3]
	bl	hci_dev_test_flag
	cmp	r0, #0
	popne	{r4, r5, r6, pc}
	ldr	r3, .L26+12
	mov	r0, r6
	ldr	r1, [r3]
	bl	hci_dev_test_flag
	cmp	r0, #0
	popne	{r4, r5, r6, pc}
	ldr	r3, .L26+16
	mov	r0, r6
	ldr	r1, [r3]
	bl	hci_dev_test_flag
	cmp	r0, #0
	popne	{r4, r5, r6, pc}
	ldr	r3, .L26+20
	mov	r0, r6
	ldr	r1, [r3]
	bl	hci_dev_test_flag
	cmp	r0, #0
	popne	{r4, r5, r6, pc}
	ldr	r3, .L26+24
	mov	r0, r6
	ldr	r1, [r3]
	bl	hci_dev_test_flag
	cmp	r0, #0
	popeq	{r4, r5, r6, pc}
	ldr	r3, .L26+28
	ldr	r2, [r6, #12]
	ldr	r3, [r3]
	cmp	r2, r3
	popne	{r4, r5, r6, pc}
	mov	r0, r6
	bl	hci_discovery_filter_clear
	add	r0, r6, #8
	bl	list_empty
	cmp	r0, #0
	beq	.L5
	add	r0, r6, #4
	bl	list_empty
	cmp	r0, #0
	bne	.L24
.L5:
	mov	r0, r6
	bl	hci_lookup_le_connect
	cmp	r0, #0
	popne	{r4, r5, r6, pc}
	ldr	r3, .L26+32
	mov	r0, r6
	ldr	r1, [r3]
	bl	hci_dev_test_flag
	cmp	r0, #0
	bne	.L25
.L6:
	mov	r0, r4
	bl	hci_req_add_le_passive_scan
	ldr	r1, [r6]
	ldr	r0, .L26+36
	pop	{r4, r5, r6, lr}
	b	BT_DBG
.L24:
	ldr	r3, .L26+32
	mov	r0, r6
	ldr	r1, [r3]
	bl	hci_dev_test_flag
	cmp	r0, #0
	popeq	{r4, r5, r6, pc}
	mov	r0, r4
	bl	hci_req_add_le_scan_disable
	ldr	r1, [r6]
	ldr	r0, .L26+40
	pop	{r4, r5, r6, lr}
	b	BT_DBG
.L25:
	mov	r0, r4
	bl	hci_req_add_le_scan_disable
	b	.L6
.L27:
	.align	2
.L26:
	.word	HCI_UP
	.word	HCI_INIT
	.word	HCI_SETUP
	.word	HCI_CONFIG
	.word	HCI_AUTO_OFF
	.word	HCI_UNREGISTER
	.word	HCI_LE_ENABLED
	.word	DISCOVERY_STOPPED
	.word	HCI_LE_SCAN
	.word	.LC1
	.word	.LC0
	.size	__hci_update_background_scan, .-__hci_update_background_scan
	.comm	HCI_UP,4,4
	.comm	HCI_UNREGISTER,4,4
	.comm	HCI_SETUP,4,4
	.comm	HCI_LE_SCAN,4,4
	.comm	HCI_LE_ENABLED,4,4
	.comm	HCI_INIT,4,4
	.comm	HCI_CONFIG,4,4
	.comm	HCI_AUTO_OFF,4,4
	.comm	DISCOVERY_STOPPED,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
