	.file	"extr_btc_gattc.c_btc_ble_gattc_get_descr_by_char_handle.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	btc_ble_gattc_get_descr_by_char_handle
	.type	btc_ble_gattc_get_descr_by_char_handle, @function
btc_ble_gattc_get_descr_by_char_handle:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13, rcx
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12d, edi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	ebp, esi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, r8
	sub	rsp, 56
	.cfi_def_cfa_offset 96
	mov	DWORD PTR 12[rsp], edx
	lea	rsi, 12[rsp]
	lea	rdi, 28[rsp]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 40[rsp], rax
	xor	eax, eax
	mov	DWORD PTR 24[rsp], 0
	mov	QWORD PTR 32[rsp], 0
	mov	DWORD PTR 28[rsp], 0
	call	btc_to_bta_uuid@PLT
	mov	edx, DWORD PTR 28[rsp]
	lea	rcx, 32[rsp]
	mov	esi, ebp
	lea	r8, 24[rsp]
	mov	edi, r12d
	call	BTA_GATTC_GetDescrByCharHandle@PLT
	mov	edi, DWORD PTR 24[rsp]
	xor	esi, esi
	call	btc_gattc_check_valid_param@PLT
	cmp	DWORD PTR ESP_GATT_OK[rip], eax
	je	.L2
	mov	rdi, QWORD PTR 32[rsp]
	mov	r12d, eax
	test	rdi, rdi
	je	.L3
	call	osi_free@PLT
.L3:
	mov	DWORD PTR [rbx], 0
.L1:
	mov	rax, QWORD PTR 40[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L15
	add	rsp, 56
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	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
.L2:
	.cfi_restore_state
	mov	edi, DWORD PTR [rbx]
	mov	r9, QWORD PTR 32[rsp]
	mov	r8, r13
	xor	ecx, ecx
	mov	edx, DWORD PTR ESP_GATT_DB_DESCRIPTOR[rip]
	mov	esi, DWORD PTR 24[rsp]
	call	btc_gattc_fill_gatt_db_conversion@PLT
	mov	eax, DWORD PTR 24[rsp]
	mov	rdi, QWORD PTR 32[rsp]
	mov	DWORD PTR [rbx], eax
	test	rdi, rdi
	je	.L5
	call	osi_free@PLT
.L5:
	mov	r12d, DWORD PTR ESP_GATT_OK[rip]
	jmp	.L1
.L15:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	btc_ble_gattc_get_descr_by_char_handle, .-btc_ble_gattc_get_descr_by_char_handle
	.comm	ESP_GATT_OK,4,4
	.comm	ESP_GATT_DB_DESCRIPTOR,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_gattc.c_btc_ble_gattc_get_descr_by_char_handle.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	btc_ble_gattc_get_descr_by_char_handle
	.syntax unified
	.arm
	.fpu softvfp
	.type	btc_ble_gattc_get_descr_by_char_handle, %function
btc_ble_gattc_get_descr_by_char_handle:
	@ args = 4, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, #0
	mov	r6, r1
	mov	r5, r0
	sub	sp, sp, #32
	mov	r7, r3
	ldr	r3, .L16
	str	r2, [sp, #12]
	add	r1, sp, #12
	add	r0, sp, #24
	ldr	r3, [r3]
	str	r3, [sp, #28]
	mov	r3,#0
	ldr	r8, [sp, #56]
	str	r4, [sp, #16]
	str	r4, [sp, #20]
	str	r4, [sp, #24]
	bl	btc_to_bta_uuid
	add	r3, sp, #20
	mov	r1, r6
	ldr	r2, [sp, #24]
	str	r3, [sp]
	mov	r0, r5
	add	r3, sp, #16
	bl	BTA_GATTC_GetDescrByCharHandle
	mov	r1, r4
	ldr	r0, [sp, #20]
	bl	btc_gattc_check_valid_param
	ldr	r6, .L16+4
	ldr	r3, [r6]
	cmp	r3, r0
	beq	.L2
	mov	r5, r0
	ldr	r0, [sp, #16]
	cmp	r0, r4
	beq	.L3
	bl	osi_free
.L3:
	mov	r3, #0
	str	r3, [r8]
.L1:
	ldr	r3, .L16
	ldr	r2, [r3]
	ldr	r3, [sp, #28]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L15
	mov	r0, r5
	add	sp, sp, #32
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L2:
	ldr	r1, [sp, #16]
	ldr	r2, .L16+8
	str	r7, [sp]
	ldr	r2, [r2]
	str	r1, [sp, #4]
	mov	r3, r4
	ldr	r1, [sp, #20]
	ldr	r0, [r8]
	bl	btc_gattc_fill_gatt_db_conversion
	ldr	r0, [sp, #16]
	ldr	r3, [sp, #20]
	cmp	r0, #0
	str	r3, [r8]
	beq	.L5
	bl	osi_free
.L5:
	ldr	r5, [r6]
	b	.L1
.L15:
	bl	__stack_chk_fail
.L17:
	.align	2
.L16:
	.word	.LC0
	.word	ESP_GATT_OK
	.word	ESP_GATT_DB_DESCRIPTOR
	.size	btc_ble_gattc_get_descr_by_char_handle, .-btc_ble_gattc_get_descr_by_char_handle
	.comm	ESP_GATT_OK,4,4
	.comm	ESP_GATT_DB_DESCRIPTOR,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
