	.file	"extr_esp_eddystone_demo.c_esp_gap_cb.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Scan start failed: %s"
.LC1:
	.string	"Start scanning..."
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC2:
	.string	"--------Eddystone Found----------"
	.align 8
.LC3:
	.string	"EDDYSTONE_DEMO: Device address:"
	.section	.rodata.str1.1
.LC4:
	.string	"RSSI of packet:%d dbm"
.LC5:
	.string	"Scan stop failed: %s"
.LC6:
	.string	"Stop scan successfully"
	.text
	.p2align 4
	.type	esp_gap_cb, @function
esp_gap_cb:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	rbx, rsi
	sub	rsp, 24
	.cfi_def_cfa_offset 48
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	cmp	edi, 131
	je	.L2
	jg	.L3
	cmp	edi, 129
	je	.L4
	cmp	edi, 130
	jne	.L1
	mov	edi, DWORD PTR 24[rsi]
	cmp	DWORD PTR ESP_BT_STATUS_SUCCESS[rip], edi
	je	.L7
	call	esp_err_to_name@PLT
	mov	edi, DWORD PTR DEMO_TAG[rip]
	lea	rsi, .LC0[rip]
	mov	edx, eax
	call	ESP_LOGE@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L3:
	cmp	edi, 132
	jne	.L1
	xor	edi, edi
	call	esp_ble_gap_start_scanning@PLT
	.p2align 4,,10
	.p2align 3
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L13
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	mov	edi, DWORD PTR DEMO_TAG[rip]
	lea	rsi, .LC1[rip]
	xor	eax, eax
	call	ESP_LOGI@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L4:
	mov	edi, DWORD PTR [rsi]
	cmp	DWORD PTR ESP_BT_STATUS_SUCCESS[rip], edi
	je	.L9
	call	esp_err_to_name@PLT
	mov	edi, DWORD PTR DEMO_TAG[rip]
	lea	rsi, .LC5[rip]
	mov	edx, eax
	call	ESP_LOGE@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L2:
	cmp	DWORD PTR 20[rsi], 128
	jne	.L1
	lea	rbp, 4[rsp]
	xor	esi, esi
	mov	edx, 4
	mov	rdi, rbp
	call	memset@PLT
	mov	esi, DWORD PTR 12[rbx]
	mov	edi, DWORD PTR 16[rbx]
	mov	rdx, rbp
	call	esp_eddystone_decode@PLT
	test	eax, eax
	jne	.L1
	mov	edi, DWORD PTR DEMO_TAG[rip]
	lea	rsi, .LC2[rip]
	call	ESP_LOGI@PLT
	mov	esi, DWORD PTR 8[rbx]
	mov	edx, DWORD PTR ESP_BD_ADDR_LEN[rip]
	lea	rdi, .LC3[rip]
	call	esp_log_buffer_hex@PLT
	mov	edx, DWORD PTR 4[rbx]
	mov	edi, DWORD PTR DEMO_TAG[rip]
	xor	eax, eax
	lea	rsi, .LC4[rip]
	call	ESP_LOGI@PLT
	mov	rdi, rbp
	call	esp_eddystone_show_inform@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L9:
	mov	edi, DWORD PTR DEMO_TAG[rip]
	lea	rsi, .LC6[rip]
	xor	eax, eax
	call	ESP_LOGI@PLT
	jmp	.L1
.L13:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	esp_gap_cb, .-esp_gap_cb
	.comm	ESP_BT_STATUS_SUCCESS,4,4
	.comm	ESP_BD_ADDR_LEN,4,4
	.comm	DEMO_TAG,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_esp_eddystone_demo.c_esp_gap_cb.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Scan start failed: %s\000"
	.align	2
.LC1:
	.ascii	"Start scanning...\000"
	.align	2
.LC2:
	.ascii	"--------Eddystone Found----------\000"
	.align	2
.LC3:
	.ascii	"EDDYSTONE_DEMO: Device address:\000"
	.align	2
.LC4:
	.ascii	"RSSI of packet:%d dbm\000"
	.align	2
.LC5:
	.ascii	"Scan stop failed: %s\000"
	.align	2
.LC6:
	.ascii	"Stop scan successfully\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC7:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	esp_gap_cb, %function
esp_gap_cb:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, lr}
	ldr	r3, .L15
	sub	sp, sp, #12
	sub	r0, r0, #129
	mov	r4, r1
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	cmp	r0, #3
	ldrls	pc, [pc, r0, asl #2]
	b	.L1
.L4:
	.word	.L7
	.word	.L6
	.word	.L5
	.word	.L3
.L5:
	ldr	r3, [r1, #20]
	cmp	r3, #128
	bne	.L1
	mov	r3, #0
	mov	r2, sp
	ldr	r1, [r1, #12]
	ldr	r0, [r4, #16]
	str	r3, [sp]
	bl	esp_eddystone_decode
	cmp	r0, #0
	bne	.L1
	ldr	r5, .L15+4
	ldr	r1, .L15+8
	ldr	r0, [r5]
	bl	ESP_LOGI
	ldr	r3, .L15+12
	ldr	r1, [r4, #8]
	ldr	r2, [r3]
	ldr	r0, .L15+16
	bl	esp_log_buffer_hex
	ldr	r0, [r5]
	ldr	r2, [r4, #4]
	ldr	r1, .L15+20
	bl	ESP_LOGI
	mov	r0, sp
	bl	esp_eddystone_show_inform
.L1:
	ldr	r3, .L15
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L14
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, pc}
.L3:
	mov	r0, #0
	bl	esp_ble_gap_start_scanning
	b	.L1
.L7:
	ldr	r3, .L15+24
	ldr	r0, [r1]
	ldr	r2, [r3]
	ldr	r3, .L15+4
	cmp	r2, r0
	ldr	r4, [r3]
	beq	.L10
	bl	esp_err_to_name
	ldr	r1, .L15+28
	mov	r2, r0
	mov	r0, r4
	bl	ESP_LOGE
	b	.L1
.L6:
	ldr	r3, .L15+24
	ldr	r0, [r1, #24]
	ldr	r2, [r3]
	ldr	r3, .L15+4
	cmp	r2, r0
	ldr	r4, [r3]
	beq	.L8
	bl	esp_err_to_name
	ldr	r1, .L15+32
	mov	r2, r0
	mov	r0, r4
	bl	ESP_LOGE
	b	.L1
.L10:
	mov	r0, r4
	ldr	r1, .L15+36
	bl	ESP_LOGI
	b	.L1
.L8:
	mov	r0, r4
	ldr	r1, .L15+40
	bl	ESP_LOGI
	b	.L1
.L14:
	bl	__stack_chk_fail
.L16:
	.align	2
.L15:
	.word	.LC7
	.word	DEMO_TAG
	.word	.LC2
	.word	ESP_BD_ADDR_LEN
	.word	.LC3
	.word	.LC4
	.word	ESP_BT_STATUS_SUCCESS
	.word	.LC5
	.word	.LC0
	.word	.LC6
	.word	.LC1
	.size	esp_gap_cb, .-esp_gap_cb
	.comm	ESP_BT_STATUS_SUCCESS,4,4
	.comm	ESP_BD_ADDR_LEN,4,4
	.comm	DEMO_TAG,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
