	.file	"extr_bta_gattc_act.c_bta_gattc_read.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	bta_gattc_read
	.type	bta_gattc_read, @function
bta_gattc_read:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, rdi
	sub	rsp, 32
	.cfi_def_cfa_offset 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	call	bta_gattc_enqueue@PLT
	test	eax, eax
	jne	.L8
.L1:
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L9
	add	rsp, 32
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	lea	r12, 16[rsp]
	xor	esi, esi
	mov	edx, 8
	mov	rdi, r12
	call	memset@PLT
	mov	rax, QWORD PTR 0[rbp]
	mov	edi, DWORD PTR [rbx]
	mov	rdx, r12
	mov	esi, DWORD PTR GATT_READ_BY_HANDLE[rip]
	mov	QWORD PTR 16[rsp], rax
	call	GATTC_Read@PLT
	cmp	QWORD PTR BTA_GATT_OK[rip], rax
	mov	rdx, rax
	je	.L1
	cmp	QWORD PTR 8[rbx], rbp
	je	.L10
.L4:
	mov	esi, DWORD PTR GATTC_OPTYPE_READ[rip]
	mov	edi, DWORD PTR [rbx]
	xor	ecx, ecx
	call	bta_gattc_cmpl_sendmsg@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L10:
	mov	QWORD PTR 8[rbx], 0
	mov	rdi, rbx
	mov	QWORD PTR 8[rsp], rax
	call	bta_gattc_pop_command_to_send@PLT
	mov	rdx, QWORD PTR 8[rsp]
	jmp	.L4
.L9:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	bta_gattc_read, .-bta_gattc_read
	.comm	GATT_READ_BY_HANDLE,4,4
	.comm	GATTC_OPTYPE_READ,4,4
	.comm	BTA_GATT_OK,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_bta_gattc_act.c_bta_gattc_read.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	bta_gattc_read
	.syntax unified
	.arm
	.fpu softvfp
	.type	bta_gattc_read, %function
bta_gattc_read:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, lr}
	ldr	r3, .L11
	sub	sp, sp, #28
	ldr	r3, [r3]
	str	r3, [sp, #20]
	mov	r3,#0
	mov	r5, r0
	mov	r4, r1
	bl	bta_gattc_enqueue
	cmp	r0, #0
	bne	.L8
.L1:
	ldr	r3, .L11
	ldr	r2, [r3]
	ldr	r3, [sp, #20]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L9
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, pc}
.L8:
	ldr	r0, [r4, #4]
	ldr	r2, .L11+4
	ldr	r3, [r4]
	ldr	r1, [r2]
	str	r0, [sp, #16]
	add	r2, sp, #12
	ldr	r0, [r5]
	str	r3, [sp, #12]
	bl	GATTC_Read
	ldr	r3, .L11+8
	mov	r2, r0
	ldr	r3, [r3]
	cmp	r3, r0
	beq	.L1
	ldr	r3, [r5, #4]
	cmp	r3, r4
	beq	.L10
.L4:
	ldr	r3, .L11+12
	ldr	r0, [r5]
	ldr	r1, [r3]
	mov	r3, #0
	bl	bta_gattc_cmpl_sendmsg
	b	.L1
.L10:
	mov	r3, #0
	str	r0, [sp, #4]
	str	r3, [r5, #4]
	mov	r0, r5
	bl	bta_gattc_pop_command_to_send
	ldr	r2, [sp, #4]
	b	.L4
.L9:
	bl	__stack_chk_fail
.L12:
	.align	2
.L11:
	.word	.LC0
	.word	GATT_READ_BY_HANDLE
	.word	BTA_GATT_OK
	.word	GATTC_OPTYPE_READ
	.size	bta_gattc_read, .-bta_gattc_read
	.comm	GATT_READ_BY_HANDLE,4,4
	.comm	GATTC_OPTYPE_READ,4,4
	.comm	BTA_GATT_OK,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
