	.file	"extr_bta_gattc_act.c_bta_gattc_cancel_bk_conn.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"bta_gattc_cancel_bk_conn failed"
	.text
	.p2align 4
	.globl	bta_gattc_cancel_bk_conn
	.type	bta_gattc_cancel_bk_conn, @function
bta_gattc_cancel_bk_conn:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	mov	rbx, rdi
	sub	rsp, 16
	.cfi_def_cfa_offset 32
	mov	edx, DWORD PTR FALSE[rip]
	mov	esi, DWORD PTR 4[rdi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	mov	edi, DWORD PTR [rdi]
	mov	eax, DWORD PTR BTA_GATT_ERROR[rip]
	mov	ecx, edx
	mov	DWORD PTR 4[rsp], eax
	call	bta_gattc_mark_bg_conn@PLT
	test	rax, rax
	jne	.L17
.L2:
	mov	edi, DWORD PTR [rbx]
	call	bta_gattc_cl_get_regcb@PLT
	test	rax, rax
	je	.L1
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	je	.L1
	mov	edi, DWORD PTR BTA_GATTC_CANCEL_OPEN_EVT[rip]
	lea	rsi, 4[rsp]
	call	rax
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L18
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 16
	pop	rbx
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L17:
	.cfi_restore_state
	mov	esi, DWORD PTR 4[rbx]
	mov	edx, DWORD PTR FALSE[rip]
	mov	edi, DWORD PTR [rbx]
	call	GATT_CancelConnect@PLT
	test	rax, rax
	je	.L3
	mov	eax, DWORD PTR BTA_GATT_OK[rip]
	mov	DWORD PTR 4[rsp], eax
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L3:
	lea	rdi, .LC0[rip]
	call	APPL_TRACE_ERROR@PLT
	jmp	.L2
.L18:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	bta_gattc_cancel_bk_conn, .-bta_gattc_cancel_bk_conn
	.comm	FALSE,4,4
	.comm	BTA_GATT_OK,4,4
	.comm	BTA_GATT_ERROR,4,4
	.comm	BTA_GATTC_CANCEL_OPEN_EVT,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_cancel_bk_conn.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"bta_gattc_cancel_bk_conn failed\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	bta_gattc_cancel_bk_conn
	.syntax unified
	.arm
	.fpu softvfp
	.type	bta_gattc_cancel_bk_conn, %function
bta_gattc_cancel_bk_conn:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r5, .L19
	ldr	r2, .L19+4
	ldr	r3, [r5]
	ldr	ip, [r2]
	ldr	lr, .L19+8
	sub	sp, sp, #8
	mov	r4, r0
	ldm	r0, {r0, r1}
	mov	r2, r3
	ldr	lr, [lr]
	str	lr, [sp, #4]
	mov	lr,#0
	str	ip, [sp]
	bl	bta_gattc_mark_bg_conn
	cmp	r0, #0
	bne	.L17
.L2:
	ldr	r0, [r4]
	bl	bta_gattc_cl_get_regcb
	cmp	r0, #0
	beq	.L1
	ldr	r3, [r0]
	cmp	r3, #0
	beq	.L1
	ldr	r2, .L19+12
	mov	r1, sp
	ldr	r0, [r2]
	blx	r3
.L1:
	ldr	r3, .L19+8
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L18
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, pc}
.L17:
	ldr	r2, [r5]
	ldm	r4, {r0, r1}
	bl	GATT_CancelConnect
	cmp	r0, #0
	ldrne	r3, .L19+16
	ldrne	r3, [r3]
	strne	r3, [sp]
	bne	.L2
.L3:
	ldr	r0, .L19+20
	bl	APPL_TRACE_ERROR
	b	.L2
.L18:
	bl	__stack_chk_fail
.L20:
	.align	2
.L19:
	.word	FALSE
	.word	BTA_GATT_ERROR
	.word	.LC1
	.word	BTA_GATTC_CANCEL_OPEN_EVT
	.word	BTA_GATT_OK
	.word	.LC0
	.size	bta_gattc_cancel_bk_conn, .-bta_gattc_cancel_bk_conn
	.comm	FALSE,4,4
	.comm	BTA_GATT_OK,4,4
	.comm	BTA_GATT_ERROR,4,4
	.comm	BTA_GATTC_CANCEL_OPEN_EVT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
