	.file	"extr_btc_storage.c_btc_storage_get_num_bt_bond_devices.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	btc_storage_get_num_bt_bond_devices
	.type	btc_storage_get_num_bt_bond_devices, @function
btc_storage_get_num_bt_bond_devices:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	xor	eax, eax
	xor	r13d, r13d
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	call	btc_config_lock@PLT
	xor	eax, eax
	call	btc_config_section_begin@PLT
	mov	rbp, rax
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L3:
	mov	rdi, rbp
	call	btc_config_section_next@PLT
	mov	rbp, rax
.L2:
	xor	eax, eax
	call	btc_config_section_end@PLT
	cmp	rbp, rax
	je	.L18
	mov	rdi, rbp
	call	btc_config_section_name@PLT
	mov	rdi, rax
	mov	r12, rax
	call	string_is_bdaddr@PLT
	test	rax, rax
	je	.L3
	mov	esi, DWORD PTR BTC_STORAGE_LINK_KEY_TYPE_STR[rip]
	mov	rdi, r12
	call	btc_config_exist@PLT
	test	rax, rax
	je	.L3
	mov	esi, DWORD PTR BTC_STORAGE_PIN_LENGTH_STR[rip]
	mov	rdi, r12
	call	btc_config_exist@PLT
	test	rax, rax
	je	.L3
	mov	esi, DWORD PTR BTC_STORAGE_LINK_KEY_STR[rip]
	mov	rdi, r12
	call	btc_config_exist@PLT
	cmp	rax, 1
	sbb	r13d, -1
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L18:
	xor	eax, eax
	call	btc_config_unlock@PLT
	mov	eax, r13d
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	btc_storage_get_num_bt_bond_devices, .-btc_storage_get_num_bt_bond_devices
	.comm	BTC_STORAGE_PIN_LENGTH_STR,4,4
	.comm	BTC_STORAGE_LINK_KEY_TYPE_STR,4,4
	.comm	BTC_STORAGE_LINK_KEY_STR,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_btc_storage.c_btc_storage_get_num_bt_bond_devices.c"
	.text
	.align	2
	.global	btc_storage_get_num_bt_bond_devices
	.syntax unified
	.arm
	.fpu softvfp
	.type	btc_storage_get_num_bt_bond_devices, %function
btc_storage_get_num_bt_bond_devices:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	bl	btc_config_lock
	bl	btc_config_section_begin
	mov	r6, #0
	mov	r4, r0
	ldr	r5, .L20
	ldr	r7, .L20+4
	ldr	r8, .L20+8
	b	.L2
.L3:
	mov	r0, r4
	bl	btc_config_section_next
	mov	r4, r0
.L2:
	bl	btc_config_section_end
	cmp	r4, r0
	beq	.L19
	mov	r0, r4
	bl	btc_config_section_name
	mov	r9, r0
	bl	string_is_bdaddr
	cmp	r0, #0
	beq	.L3
	mov	r0, r9
	ldr	r1, [r5]
	bl	btc_config_exist
	cmp	r0, #0
	beq	.L3
	mov	r0, r9
	ldr	r1, [r7]
	bl	btc_config_exist
	cmp	r0, #0
	beq	.L3
	mov	r0, r9
	ldr	r1, [r8]
	bl	btc_config_exist
	cmp	r0, #0
	addne	r6, r6, #1
	b	.L3
.L19:
	bl	btc_config_unlock
	mov	r0, r6
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L21:
	.align	2
.L20:
	.word	BTC_STORAGE_LINK_KEY_TYPE_STR
	.word	BTC_STORAGE_PIN_LENGTH_STR
	.word	BTC_STORAGE_LINK_KEY_STR
	.size	btc_storage_get_num_bt_bond_devices, .-btc_storage_get_num_bt_bond_devices
	.comm	BTC_STORAGE_PIN_LENGTH_STR,4,4
	.comm	BTC_STORAGE_LINK_KEY_TYPE_STR,4,4
	.comm	BTC_STORAGE_LINK_KEY_STR,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
