	.file	"extr_bta_gattc_act.c_bta_gattc_init_clcb_conn.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"bta_gattc_init_clcb_conn ERROR: not a connected device"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"No resources"
	.text
	.p2align 4
	.globl	bta_gattc_init_clcb_conn
	.type	bta_gattc_init_clcb_conn, @function
bta_gattc_init_clcb_conn:
.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	ebp, esi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	ebx, edi
	sub	rsp, 48
	.cfi_def_cfa_offset 80
	mov	ecx, DWORD PTR BTA_GATT_TRANSPORT_LE[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 40[rsp], rax
	xor	eax, eax
	lea	rdx, 12[rsp]
	call	GATT_GetConnIdIfConnected@PLT
	cmp	rax, QWORD PTR FALSE[rip]
	je	.L9
	mov	edx, DWORD PTR BTA_GATT_TRANSPORT_LE[rip]
	mov	esi, ebp
	mov	edi, ebx
	call	bta_gattc_clcb_alloc@PLT
	mov	r12, rax
	test	rax, rax
	je	.L4
	mov	eax, DWORD PTR 12[rsp]
	mov	edi, DWORD PTR 20[rsp]
	mov	esi, ebp
	mov	DWORD PTR [r12], eax
	mov	edx, DWORD PTR BD_ADDR_LEN[rip]
	mov	DWORD PTR 28[rsp], eax
	mov	DWORD PTR 24[rsp], ebx
	call	memcpy@PLT
	mov	eax, DWORD PTR TRUE[rip]
	lea	rdx, 16[rsp]
	mov	rdi, r12
	mov	esi, DWORD PTR BTA_GATTC_API_OPEN_EVT[rip]
	mov	DWORD PTR 16[rsp], eax
	call	bta_gattc_sm_execute@PLT
.L1:
	mov	rax, QWORD PTR 40[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L10
	add	rsp, 48
	.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
.L4:
	.cfi_restore_state
	lea	rdi, .LC1[rip]
	call	APPL_TRACE_ERROR@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L9:
	lea	rdi, .LC0[rip]
	call	APPL_TRACE_ERROR@PLT
	jmp	.L1
.L10:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	bta_gattc_init_clcb_conn, .-bta_gattc_init_clcb_conn
	.comm	TRUE,4,4
	.comm	FALSE,8,8
	.comm	BTA_GATT_TRANSPORT_LE,4,4
	.comm	BTA_GATTC_API_OPEN_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_bta_gattc_act.c_bta_gattc_init_clcb_conn.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"bta_gattc_init_clcb_conn ERROR: not a connected dev"
	.ascii	"ice\000"
	.align	2
.LC1:
	.ascii	"No resources\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	bta_gattc_init_clcb_conn
	.syntax unified
	.arm
	.fpu softvfp
	.type	bta_gattc_init_clcb_conn, %function
bta_gattc_init_clcb_conn:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r6, .L11
	sub	sp, sp, #24
	ldr	ip, .L11+4
	ldr	r3, [r6]
	mov	r2, sp
	ldr	ip, [ip]
	str	ip, [sp, #20]
	mov	ip,#0
	mov	r4, r0
	mov	r5, r1
	bl	GATT_GetConnIdIfConnected
	ldr	r3, .L11+8
	ldr	r3, [r3]
	cmp	r0, r3
	beq	.L9
	ldr	r2, [r6]
	mov	r1, r5
	mov	r0, r4
	bl	bta_gattc_clcb_alloc
	subs	r6, r0, #0
	beq	.L4
	ldr	r3, [sp]
	ldr	r2, .L11+12
	str	r3, [r6]
	mov	r1, r5
	ldr	r2, [r2]
	ldr	r0, [sp, #8]
	str	r3, [sp, #16]
	str	r4, [sp, #12]
	bl	memcpy
	ldr	r3, .L11+16
	ldr	r2, .L11+20
	ldr	r3, [r3]
	ldr	r1, [r2]
	mov	r0, r6
	add	r2, sp, #4
	str	r3, [sp, #4]
	bl	bta_gattc_sm_execute
.L1:
	ldr	r3, .L11+4
	ldr	r2, [r3]
	ldr	r3, [sp, #20]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L10
	add	sp, sp, #24
	@ sp needed
	pop	{r4, r5, r6, pc}
.L4:
	ldr	r0, .L11+24
	bl	APPL_TRACE_ERROR
	b	.L1
.L9:
	ldr	r0, .L11+28
	bl	APPL_TRACE_ERROR
	b	.L1
.L10:
	bl	__stack_chk_fail
.L12:
	.align	2
.L11:
	.word	BTA_GATT_TRANSPORT_LE
	.word	.LC2
	.word	FALSE
	.word	BD_ADDR_LEN
	.word	TRUE
	.word	BTA_GATTC_API_OPEN_EVT
	.word	.LC1
	.word	.LC0
	.size	bta_gattc_init_clcb_conn, .-bta_gattc_init_clcb_conn
	.comm	TRUE,4,4
	.comm	FALSE,4,4
	.comm	BTA_GATT_TRANSPORT_LE,4,4
	.comm	BTA_GATTC_API_OPEN_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
