	.file	"extr_btc_gap_bt.c_btc_gap_bt_search_service_record.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	btc_gap_bt_search_service_record, @function
btc_gap_bt_search_service_record:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	sub	rsp, 16
	.cfi_def_cfa_offset 32
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	cmp	DWORD PTR [rdi], 128
	je	.L8
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L9
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 16
	pop	rbx
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	mov	rax, QWORD PTR 8[rdi]
	mov	edx, DWORD PTR BD_ADDR_LEN[rip]
	mov	rbx, rdi
	mov	edi, DWORD PTR 4[rsp]
	mov	esi, DWORD PTR 8[rax]
	call	memcpy@PLT
	mov	rax, QWORD PTR 8[rbx]
	mov	edx, DWORD PTR 4[rax]
	test	edx, edx
	je	.L3
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	jle	.L3
	mov	eax, DWORD PTR ESP_BT_STATUS_SUCCESS[rip]
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L3:
	mov	eax, DWORD PTR ESP_BT_STATUS_FAIL[rip]
.L4:
	mov	edi, DWORD PTR ESP_BT_GAP_RMT_SRVC_REC_EVT[rip]
	mov	rsi, rsp
	mov	DWORD PTR [rsp], eax
	call	btc_gap_bt_cb_to_app@PLT
	jmp	.L1
.L9:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	btc_gap_bt_search_service_record, .-btc_gap_bt_search_service_record
	.comm	ESP_BT_STATUS_SUCCESS,4,4
	.comm	ESP_BT_STATUS_FAIL,4,4
	.comm	ESP_BT_GAP_RMT_SRVC_REC_EVT,4,4
	.comm	BD_ADDR_LEN,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_gap_bt.c_btc_gap_bt_search_service_record.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	btc_gap_bt_search_service_record, %function
btc_gap_bt_search_service_record:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, lr}
	ldr	r3, [r0]
	ldr	r2, .L13
	sub	sp, sp, #16
	cmp	r3, #128
	ldr	r2, [r2]
	str	r2, [sp, #12]
	mov	r2,#0
	beq	.L11
.L1:
	ldr	r3, .L13
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L12
	add	sp, sp, #16
	@ sp needed
	pop	{r4, pc}
.L11:
	mov	r4, r0
	ldr	r3, [r0, #4]
	ldr	r2, .L13+4
	ldr	r1, [r3, #8]
	ldr	r2, [r2]
	ldr	r0, [sp, #8]
	bl	memcpy
	ldr	r3, [r4, #4]
	ldr	r2, [r3, #4]
	cmp	r2, #0
	beq	.L3
	ldr	r3, [r3]
	cmp	r3, #0
	ldrgt	r3, .L13+8
	ldrgt	r2, [r3]
	bgt	.L4
.L3:
	ldr	r3, .L13+12
	ldr	r2, [r3]
.L4:
	ldr	r3, .L13+16
	add	r1, sp, #4
	ldr	r0, [r3]
	str	r2, [sp, #4]
	bl	btc_gap_bt_cb_to_app
	b	.L1
.L12:
	bl	__stack_chk_fail
.L14:
	.align	2
.L13:
	.word	.LC0
	.word	BD_ADDR_LEN
	.word	ESP_BT_STATUS_SUCCESS
	.word	ESP_BT_STATUS_FAIL
	.word	ESP_BT_GAP_RMT_SRVC_REC_EVT
	.size	btc_gap_bt_search_service_record, .-btc_gap_bt_search_service_record
	.comm	ESP_BT_STATUS_SUCCESS,4,4
	.comm	ESP_BT_STATUS_FAIL,4,4
	.comm	ESP_BT_GAP_RMT_SRVC_REC_EVT,4,4
	.comm	BD_ADDR_LEN,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
