	.file	"extr_example_ble_sec_gatts_demo.c_gatts_event_handler.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Reg app failed, app_id %04x, status %d\n"
	.text
	.p2align 4
	.type	gatts_event_handler, @function
gatts_event_handler:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13, rdx
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	cmp	QWORD PTR ESP_GATTS_REG_EVT[rip], rdi
	je	.L17
.L2:
	mov	eax, DWORD PTR HEART_PROFILE_NUM[rip]
	xor	ebx, ebx
	test	eax, eax
	jg	.L4
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L18:
	cmp	QWORD PTR [rax], rbp
	je	.L6
.L7:
	add	rbx, 1
	cmp	DWORD PTR HEART_PROFILE_NUM[rip], ebx
	jle	.L1
.L4:
	mov	rax, rbx
	sal	rax, 4
	add	rax, QWORD PTR heart_rate_profile_tab[rip]
	cmp	QWORD PTR ESP_GATT_IF_NONE[rip], rbp
	jne	.L18
.L6:
	mov	rax, QWORD PTR 8[rax]
	test	rax, rax
	je	.L7
	mov	rdx, r13
	mov	rsi, rbp
	mov	rdi, r12
	add	rbx, 1
	call	rax
	cmp	DWORD PTR HEART_PROFILE_NUM[rip], ebx
	jg	.L4
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L17:
	.cfi_restore_state
	mov	rcx, QWORD PTR [rdx]
	cmp	rcx, QWORD PTR ESP_GATT_OK[rip]
	jne	.L3
	mov	rax, QWORD PTR HEART_PROFILE_APP_IDX[rip]
	sal	rax, 4
	add	rax, QWORD PTR heart_rate_profile_tab[rip]
	mov	QWORD PTR [rax], rsi
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L3:
	mov	edx, DWORD PTR 8[rdx]
	mov	edi, DWORD PTR GATTS_TABLE_TAG[rip]
	add	rsp, 8
	.cfi_def_cfa_offset 40
	lea	rsi, .LC0[rip]
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	jmp	ESP_LOGI@PLT
	.cfi_endproc
.LFE0:
	.size	gatts_event_handler, .-gatts_event_handler
	.comm	heart_rate_profile_tab,8,8
	.comm	HEART_PROFILE_NUM,4,4
	.comm	HEART_PROFILE_APP_IDX,8,8
	.comm	GATTS_TABLE_TAG,4,4
	.comm	ESP_GATT_OK,8,8
	.comm	ESP_GATT_IF_NONE,8,8
	.comm	ESP_GATTS_REG_EVT,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_example_ble_sec_gatts_demo.c_gatts_event_handler.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Reg app failed, app_id %04x, status %d\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	gatts_event_handler, %function
gatts_event_handler:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L19
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r3, [r3]
	mov	r9, r0
	cmp	r3, r0
	mov	r5, r1
	mov	r10, r2
	beq	.L17
.L2:
	ldr	r6, .L19+4
	ldr	r3, [r6]
	cmp	r3, #0
	pople	{r4, r5, r6, r7, r8, r9, r10, pc}
	mov	r4, #0
	ldr	r7, .L19+8
	ldr	r8, .L19+12
	b	.L4
.L18:
	ldr	r3, [r3, r4, lsl #3]
	cmp	r3, r5
	beq	.L6
.L7:
	ldr	r3, [r6]
	add	r4, r4, #1
	cmp	r3, r4
	pople	{r4, r5, r6, r7, r8, r9, r10, pc}
.L4:
	ldr	r2, [r8]
	ldr	r3, [r7]
	cmp	r2, r5
	add	r2, r3, r4, lsl #3
	bne	.L18
.L6:
	ldr	r3, [r2, #4]
	cmp	r3, #0
	beq	.L7
	mov	r2, r10
	mov	r1, r5
	mov	r0, r9
	blx	r3
	b	.L7
.L17:
	ldr	r2, .L19+16
	ldr	r3, [r10]
	ldr	r2, [r2]
	cmp	r3, r2
	bne	.L3
	ldr	r3, .L19+20
	ldr	r7, .L19+8
	ldr	r2, [r3]
	ldr	r3, [r7]
	str	r1, [r3, r2, lsl #3]
	b	.L2
.L3:
	ldr	r1, .L19+24
	ldr	r2, [r10, #4]
	ldr	r0, [r1]
	pop	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r1, .L19+28
	b	ESP_LOGI
.L20:
	.align	2
.L19:
	.word	ESP_GATTS_REG_EVT
	.word	HEART_PROFILE_NUM
	.word	heart_rate_profile_tab
	.word	ESP_GATT_IF_NONE
	.word	ESP_GATT_OK
	.word	HEART_PROFILE_APP_IDX
	.word	GATTS_TABLE_TAG
	.word	.LC0
	.size	gatts_event_handler, .-gatts_event_handler
	.comm	heart_rate_profile_tab,4,4
	.comm	HEART_PROFILE_NUM,4,4
	.comm	HEART_PROFILE_APP_IDX,4,4
	.comm	GATTS_TABLE_TAG,4,4
	.comm	ESP_GATT_OK,4,4
	.comm	ESP_GATT_IF_NONE,4,4
	.comm	ESP_GATTS_REG_EVT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
