	.file	"extr_btm_acl.c_btm_acl_paging.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"btm_acl_paging discing:%d, paging:%d BDA: %06x%06x\n"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"connecting_bda: %06x%06x\n"
	.text
	.p2align 4
	.globl	btm_acl_paging
	.type	btm_acl_paging, @function
btm_acl_paging:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12, rdi
	lea	rdi, .LC0[rip]
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rsi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	r8d, DWORD PTR 12[rsi]
	mov	eax, DWORD PTR 16[rsi]
	mov	ecx, DWORD PTR [rsi]
	mov	edx, DWORD PTR btm_cb[rip+16]
	sal	eax, 8
	sal	r8d, 16
	add	r8d, eax
	mov	eax, DWORD PTR 4[rsi]
	sal	ecx, 16
	add	r8d, DWORD PTR 20[rsi]
	sal	eax, 8
	add	ecx, eax
	add	ecx, DWORD PTR 8[rsi]
	mov	esi, DWORD PTR btm_cb[rip+32]
	xor	eax, eax
	call	BTM_TRACE_DEBUG@PLT
	cmp	QWORD PTR btm_cb[rip+32], 0
	je	.L2
	mov	rax, QWORD PTR TRUE[rip]
	mov	edx, DWORD PTR FIXED_QUEUE_MAX_TIMEOUT[rip]
	mov	rsi, r12
	mov	edi, DWORD PTR btm_cb[rip+24]
	mov	QWORD PTR btm_cb[rip+16], rax
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	fixed_queue_enqueue@PLT
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	rdi, rbp
	call	BTM_ACL_IS_CONNECTED@PLT
	test	eax, eax
	jne	.L3
	mov	rax, QWORD PTR btm_cb[rip]
	lea	rdi, .LC1[rip]
	mov	edx, DWORD PTR 12[rax]
	mov	ecx, DWORD PTR 16[rax]
	mov	esi, DWORD PTR [rax]
	sal	ecx, 8
	sal	edx, 16
	add	edx, ecx
	mov	ecx, DWORD PTR 4[rax]
	sal	esi, 16
	add	edx, DWORD PTR 20[rax]
	sal	ecx, 8
	add	esi, ecx
	add	esi, DWORD PTR 8[rax]
	xor	eax, eax
	call	BTM_TRACE_DEBUG@PLT
	cmp	QWORD PTR btm_cb[rip+16], 0
	je	.L4
	mov	edx, DWORD PTR BD_ADDR_LEN[rip]
	mov	rsi, QWORD PTR btm_cb[rip]
	mov	rdi, rbp
	call	memcmp@PLT
	test	rax, rax
	jne	.L13
.L4:
	mov	rdi, rbp
	call	btm_find_or_alloc_dev@PLT
	mov	edx, DWORD PTR BD_ADDR_LEN[rip]
	mov	rdi, QWORD PTR btm_cb[rip]
	mov	esi, DWORD PTR 4[rax]
	mov	rbp, rax
	call	memcpy@PLT
	mov	esi, DWORD PTR 0[rbp]
	mov	rdi, QWORD PTR btm_cb[rip+8]
	mov	edx, DWORD PTR DEV_CLASS_LEN[rip]
	call	memcpy@PLT
	mov	edi, DWORD PTR LOCAL_BR_EDR_CONTROLLER_ID[rip]
	mov	rsi, r12
	call	btu_hcif_send_cmd@PLT
.L5:
	mov	rax, QWORD PTR TRUE[rip]
	mov	QWORD PTR btm_cb[rip+16], rax
	add	rsp, 8
	.cfi_remember_state
	.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
.L3:
	.cfi_restore_state
	mov	edi, DWORD PTR LOCAL_BR_EDR_CONTROLLER_ID[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	rsi, r12
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	btu_hcif_send_cmd@PLT
	.p2align 4,,10
	.p2align 3
.L13:
	.cfi_restore_state
	mov	edx, DWORD PTR FIXED_QUEUE_MAX_TIMEOUT[rip]
	mov	edi, DWORD PTR btm_cb[rip+24]
	mov	rsi, r12
	call	fixed_queue_enqueue@PLT
	jmp	.L5
	.cfi_endproc
.LFE0:
	.size	btm_acl_paging, .-btm_acl_paging
	.comm	btm_cb,40,32
	.comm	TRUE,8,8
	.comm	LOCAL_BR_EDR_CONTROLLER_ID,4,4
	.comm	FIXED_QUEUE_MAX_TIMEOUT,4,4
	.comm	DEV_CLASS_LEN,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_btm_acl.c_btm_acl_paging.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"btm_acl_paging discing:%d, paging:%d BDA: %06x%06x\012"
	.ascii	"\000"
	.align	2
.LC1:
	.ascii	"connecting_bda: %06x%06x\012\000"
	.text
	.align	2
	.global	btm_acl_paging
	.syntax unified
	.arm
	.fpu softvfp
	.type	btm_acl_paging, %function
btm_acl_paging:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	mov	r4, r1
	ldr	r2, [r1, #16]
	ldr	r3, [r4, #4]
	ldr	r1, [r1, #12]
	ldr	ip, [r4, #20]
	ldr	lr, [r4]
	lsl	r2, r2, #8
	ldr	r5, .L17
	add	r2, r2, r1, lsl #16
	mov	r6, r0
	ldr	r1, [r4, #8]
	lsl	r0, r3, #8
	add	r2, r2, ip
	add	r3, r0, lr, lsl #16
	sub	sp, sp, #12
	add	r3, r3, r1
	str	r2, [sp]
	ldr	r1, [r5, #16]
	ldr	r2, [r5, #8]
	ldr	r0, .L17+4
	bl	BTM_TRACE_DEBUG
	ldr	r3, [r5, #16]
	cmp	r3, #0
	beq	.L2
	mov	r1, r6
	ldr	r3, .L17+8
	ldr	r2, .L17+12
	ldr	r3, [r3]
	ldr	r0, [r5, #12]
	ldr	r2, [r2]
	str	r3, [r5, #8]
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, lr}
	b	fixed_queue_enqueue
.L2:
	mov	r0, r4
	bl	BTM_ACL_IS_CONNECTED
	cmp	r0, #0
	bne	.L3
	ldr	r3, [r5]
	ldr	r0, .L17+16
	ldr	r2, [r3, #16]
	ldr	r1, [r3, #12]
	ldr	ip, [r3, #4]
	ldr	r7, [r3]
	lsl	r2, r2, #8
	ldr	lr, [r3, #20]
	add	r2, r2, r1, lsl #16
	lsl	ip, ip, #8
	ldr	r1, [r3, #8]
	add	ip, ip, r7, lsl #16
	add	r2, r2, lr
	add	r1, ip, r1
	bl	BTM_TRACE_DEBUG
	ldr	r3, [r5, #8]
	ldr	r7, .L17+20
	cmp	r3, #0
	beq	.L4
	mov	r0, r4
	ldr	r1, [r5]
	ldr	r2, [r7]
	bl	memcmp
	cmp	r0, #0
	bne	.L16
.L4:
	mov	r0, r4
	bl	btm_find_or_alloc_dev
	mov	r4, r0
	ldr	r1, [r0, #4]
	ldr	r2, [r7]
	ldr	r0, [r5]
	bl	memcpy
	ldr	r3, .L17+24
	ldr	r1, [r4]
	ldr	r2, [r3]
	ldr	r0, [r5, #4]
	bl	memcpy
	ldr	r3, .L17+28
	mov	r1, r6
	ldr	r0, [r3]
	bl	btu_hcif_send_cmd
.L5:
	ldr	r3, .L17+8
	ldr	r3, [r3]
	str	r3, [r5, #8]
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L3:
	mov	r1, r6
	ldr	r3, .L17+28
	ldr	r0, [r3]
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, lr}
	b	btu_hcif_send_cmd
.L16:
	ldr	r3, .L17+12
	mov	r1, r6
	ldr	r2, [r3]
	ldr	r0, [r5, #12]
	bl	fixed_queue_enqueue
	b	.L5
.L18:
	.align	2
.L17:
	.word	btm_cb
	.word	.LC0
	.word	TRUE
	.word	FIXED_QUEUE_MAX_TIMEOUT
	.word	.LC1
	.word	BD_ADDR_LEN
	.word	DEV_CLASS_LEN
	.word	LOCAL_BR_EDR_CONTROLLER_ID
	.size	btm_acl_paging, .-btm_acl_paging
	.comm	btm_cb,20,4
	.comm	TRUE,4,4
	.comm	LOCAL_BR_EDR_CONTROLLER_ID,4,4
	.comm	FIXED_QUEUE_MAX_TIMEOUT,4,4
	.comm	DEV_CLASS_LEN,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
