	.file	"extr_bta_gattc_act.c_bta_gattc_process_api_cache_assoc.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	bta_gattc_process_api_cache_assoc
	.type	bta_gattc_process_api_cache_assoc, @function
bta_gattc_process_api_cache_assoc:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	pxor	xmm0, xmm0
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, rsi
	sub	rsp, 32
	.cfi_def_cfa_offset 64
	mov	edi, DWORD PTR 16[rsi]
	mov	edx, DWORD PTR BTA_TRANSPORT_LE[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	mov	esi, DWORD PTR [rsi]
	movaps	XMMWORD PTR [rsp], xmm0
	mov	QWORD PTR 16[rsp], 0
	mov	DWORD PTR 8[rsp], edi
	call	bta_gattc_find_clcb_by_cif@PLT
	mov	edi, DWORD PTR 16[rbx]
	mov	r12, rax
	call	bta_gattc_cl_get_regcb@PLT
	mov	rbp, rax
	test	r12, r12
	je	.L2
	mov	rax, QWORD PTR [r12]
	cmp	rax, QWORD PTR BTA_GATTC_CONN_ST[rip]
	je	.L3
	cmp	rax, QWORD PTR BTA_GATTC_DISCOVER_ST[rip]
	je	.L3
.L2:
	cmp	QWORD PTR 8[rbx], 0
	mov	esi, DWORD PTR [rbx]
	mov	edi, DWORD PTR 4[rbx]
	jne	.L30
.L5:
	call	bta_gattc_co_cache_remove_assoc_addr@PLT
	cmp	DWORD PTR TRUE[rip], eax
	je	.L25
.L9:
	mov	rax, QWORD PTR BTA_GATT_ERROR[rip]
	mov	QWORD PTR [rsp], rax
	test	rbp, rbp
	je	.L1
.L26:
	mov	edi, DWORD PTR BTA_GATTC_ASSOC_EVT[rip]
	mov	rsi, rsp
	call	[QWORD PTR 0[rbp]]
.L1:
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L31
	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
.L30:
	.cfi_restore_state
	call	bta_gattc_co_cache_append_assoc_addr@PLT
	cmp	DWORD PTR TRUE[rip], eax
	jne	.L9
.L25:
	mov	rax, QWORD PTR BTA_GATT_OK[rip]
	mov	QWORD PTR [rsp], rax
	test	rbp, rbp
	jne	.L26
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L3:
	mov	rax, QWORD PTR BTA_GATT_BUSY[rip]
	mov	QWORD PTR [rsp], rax
	test	rbp, rbp
	jne	.L26
	cmp	QWORD PTR 8[rbx], 0
	mov	esi, DWORD PTR [rbx]
	mov	edi, DWORD PTR 4[rbx]
	je	.L5
	jmp	.L30
.L31:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	bta_gattc_process_api_cache_assoc, .-bta_gattc_process_api_cache_assoc
	.comm	TRUE,4,4
	.comm	FALSE,4,4
	.comm	BTA_TRANSPORT_LE,4,4
	.comm	BTA_GATT_OK,8,8
	.comm	BTA_GATT_ERROR,8,8
	.comm	BTA_GATT_BUSY,8,8
	.comm	BTA_GATTC_DISCOVER_ST,8,8
	.comm	BTA_GATTC_CONN_ST,8,8
	.comm	BTA_GATTC_ASSOC_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_process_api_cache_assoc.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	bta_gattc_process_api_cache_assoc
	.syntax unified
	.arm
	.fpu softvfp
	.type	bta_gattc_process_api_cache_assoc, %function
bta_gattc_process_api_cache_assoc:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	mov	r3, #0
	push	{r4, r5, r6, lr}
	ldr	r2, .L32
	ldr	r0, [r1, #12]
	ldr	ip, .L32+4
	sub	sp, sp, #16
	mov	r4, r1
	ldr	r2, [r2]
	ldr	r1, [r1]
	ldr	ip, [ip]
	str	ip, [sp, #12]
	mov	ip,#0
	str	r3, [sp]
	str	r3, [sp, #8]
	str	r0, [sp, #4]
	bl	bta_gattc_find_clcb_by_cif
	mov	r6, r0
	ldr	r0, [r4, #12]
	bl	bta_gattc_cl_get_regcb
	cmp	r6, #0
	mov	r5, r0
	beq	.L2
	ldr	r2, .L32+8
	ldr	r3, [r6]
	ldr	r2, [r2]
	cmp	r3, r2
	beq	.L3
	ldr	r2, .L32+12
	ldr	r2, [r2]
	cmp	r3, r2
	beq	.L3
.L2:
	ldmib	r4, {r0, r3}
	cmp	r3, #0
	ldr	r1, [r4]
	bne	.L30
.L5:
	bl	bta_gattc_co_cache_remove_assoc_addr
	ldr	r3, .L32+16
	ldr	r3, [r3]
	cmp	r3, r0
	beq	.L25
.L9:
	ldr	r3, .L32+20
	cmp	r5, #0
	ldr	r3, [r3]
	str	r3, [sp]
	beq	.L1
.L26:
	ldr	r2, .L32+24
	mov	r1, sp
	ldr	r3, [r5]
	ldr	r0, [r2]
	blx	r3
.L1:
	ldr	r3, .L32+4
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L31
	add	sp, sp, #16
	@ sp needed
	pop	{r4, r5, r6, pc}
.L30:
	bl	bta_gattc_co_cache_append_assoc_addr
	ldr	r3, .L32+16
	ldr	r3, [r3]
	cmp	r3, r0
	bne	.L9
.L25:
	ldr	r3, .L32+28
	cmp	r5, #0
	ldr	r3, [r3]
	str	r3, [sp]
	bne	.L26
	b	.L1
.L3:
	ldr	r3, .L32+32
	cmp	r5, #0
	ldr	r3, [r3]
	str	r3, [sp]
	bne	.L26
	ldmib	r4, {r0, r3}
	cmp	r3, #0
	ldr	r1, [r4]
	beq	.L5
	b	.L30
.L31:
	bl	__stack_chk_fail
.L33:
	.align	2
.L32:
	.word	BTA_TRANSPORT_LE
	.word	.LC0
	.word	BTA_GATTC_CONN_ST
	.word	BTA_GATTC_DISCOVER_ST
	.word	TRUE
	.word	BTA_GATT_ERROR
	.word	BTA_GATTC_ASSOC_EVT
	.word	BTA_GATT_OK
	.word	BTA_GATT_BUSY
	.size	bta_gattc_process_api_cache_assoc, .-bta_gattc_process_api_cache_assoc
	.comm	TRUE,4,4
	.comm	FALSE,4,4
	.comm	BTA_TRANSPORT_LE,4,4
	.comm	BTA_GATT_OK,4,4
	.comm	BTA_GATT_ERROR,4,4
	.comm	BTA_GATT_BUSY,4,4
	.comm	BTA_GATTC_DISCOVER_ST,4,4
	.comm	BTA_GATTC_CONN_ST,4,4
	.comm	BTA_GATTC_ASSOC_EVT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
