	.file	"extr_btm_ble.c_btm_ble_conn_complete.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"status = %d, handle = %d, role = %d, bda_type = %d"
	.text
	.p2align 4
	.globl	btm_ble_conn_complete
	.type	btm_ble_conn_complete, @function
btm_ble_conn_complete:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	xor	r14d, r14d
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	xor	r13d, r13d
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	xor	r12d, r12d
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdi
	mov	edi, esi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rdx
	sub	rsp, 40
	.cfi_def_cfa_offset 96
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	call	UNUSED@PLT
	mov	rsi, rbp
	mov	rdi, r12
	call	STREAM_TO_UINT8@PLT
	mov	rsi, rbp
	mov	edi, r13d
	call	STREAM_TO_UINT16@PLT
	mov	rsi, rbp
	mov	rdi, r14
	call	STREAM_TO_UINT8@PLT
	mov	rdi, QWORD PTR 16[rsp]
	mov	rsi, rbp
	call	STREAM_TO_UINT8@PLT
	xor	edi, edi
	mov	rsi, rbp
	call	STREAM_TO_BDADDR@PLT
	mov	r8, QWORD PTR 16[rsp]
	mov	rcx, r14
	mov	edx, r13d
	mov	rsi, r12
	lea	rdi, .LC0[rip]
	call	BTM_TRACE_DEBUG@PLT
	test	r12, r12
	jne	.L2
	test	rbx, rbx
	je	.L3
	xor	edi, edi
	mov	rsi, rbp
	call	STREAM_TO_BDADDR@PLT
	xor	edi, edi
	mov	rsi, rbp
	call	STREAM_TO_BDADDR@PLT
	mov	rax, QWORD PTR 16[rsp]
	mov	edx, DWORD PTR TRUE[rip]
	xor	edi, edi
	lea	rsi, 16[rsp]
	mov	QWORD PTR [rsp], rax
	call	btm_identity_addr_to_random_pseudo@PLT
	test	rax, rax
	je	.L9
	xor	r15d, r15d
	mov	rsi, rbp
	xor	r12d, r12d
	mov	QWORD PTR 8[rsp], rax
	mov	edi, r15d
	xor	r13d, r13d
	xor	r14d, r14d
	call	STREAM_TO_UINT16@PLT
	mov	rsi, rbp
	mov	edi, r12d
	call	STREAM_TO_UINT16@PLT
	mov	rsi, rbp
	xor	ebp, ebp
	mov	edi, ebp
	call	STREAM_TO_UINT16@PLT
	mov	edi, r13d
	call	HCID_GET_HANDLE@PLT
	mov	r9, QWORD PTR 8[rsp]
	xor	edi, edi
	mov	rcx, r14
	mov	r8, QWORD PTR 16[rsp]
	mov	edx, DWORD PTR HCI_ENCRYPT_MODE_DISABLED[rip]
	mov	esi, eax
	mov	r13d, eax
	mov	DWORD PTR 8[rsp], edi
	call	btm_ble_connected@PLT
	sub	rsp, 8
	.cfi_def_cfa_offset 104
	mov	rsi, r14
	mov	r9d, r12d
	push	rbp
	.cfi_def_cfa_offset 112
	mov	edi, DWORD PTR 24[rsp]
	mov	r8d, r15d
	mov	rcx, QWORD PTR 32[rsp]
	mov	edx, edi
	mov	edi, r13d
	call	l2cble_conn_comp@PLT
	pop	rcx
	.cfi_def_cfa_offset 104
	pop	rsi
	.cfi_def_cfa_offset 96
.L8:
	xor	edi, edi
	mov	esi, edi
	call	btm_ble_refresh_local_resolvable_private_addr@PLT
	mov	rax, QWORD PTR [rsp]
	test	QWORD PTR BLE_ADDR_TYPE_ID_BIT[rip], rax
	je	.L6
	xor	edi, edi
	mov	edx, DWORD PTR BLE_ADDR_RANDOM[rip]
	mov	esi, edi
	call	btm_ble_refresh_peer_resolvable_private_addr@PLT
	.p2align 4,,10
	.p2align 3
.L6:
	xor	edi, edi
	xor	r12d, r12d
	mov	esi, edi
	mov	rdx, r12
	mov	rdi, r14
	call	btm_ble_update_mode_operation@PLT
	cmp	QWORD PTR HCI_SUCCESS[rip], r12
	je	.L1
	test	rax, rax
	je	.L30
.L1:
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L31
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	cmp	QWORD PTR HCI_ERR_DIRECTED_ADVERTISING_TIMEOUT[rip], 0
	mov	r14, QWORD PTR HCI_ROLE_UNKNOWN[rip]
	je	.L6
	mov	edi, DWORD PTR BLE_CONN_IDLE[rip]
	call	btm_ble_set_conn_st@PLT
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L3:
	mov	rax, QWORD PTR 16[rsp]
	mov	edx, DWORD PTR TRUE[rip]
	lea	rsi, 16[rsp]
	xor	edi, edi
	mov	QWORD PTR [rsp], rax
	call	btm_identity_addr_to_random_pseudo@PLT
	mov	r9, rax
	test	rax, rax
	je	.L9
	xor	r15d, r15d
	mov	rsi, rbp
	xor	r12d, r12d
	mov	QWORD PTR [rsp], r9
	mov	edi, r15d
	xor	r13d, r13d
	xor	r14d, r14d
	call	STREAM_TO_UINT16@PLT
	mov	rsi, rbp
	mov	edi, r12d
	call	STREAM_TO_UINT16@PLT
	mov	rsi, rbp
	xor	ebp, ebp
	mov	edi, ebp
	call	STREAM_TO_UINT16@PLT
	mov	edi, r13d
	call	HCID_GET_HANDLE@PLT
	mov	r9, QWORD PTR [rsp]
	mov	r8, QWORD PTR 16[rsp]
	xor	edi, edi
	mov	edx, DWORD PTR HCI_ENCRYPT_MODE_DISABLED[rip]
	mov	rcx, r14
	mov	esi, eax
	mov	DWORD PTR [rsp], edi
	mov	r13d, eax
	call	btm_ble_connected@PLT
	sub	rsp, 8
	.cfi_def_cfa_offset 104
	mov	r9d, r12d
	mov	r8d, r15d
	push	rbp
	.cfi_def_cfa_offset 112
	mov	edi, DWORD PTR 16[rsp]
	mov	rsi, r14
	mov	rcx, QWORD PTR 32[rsp]
	mov	edx, edi
	mov	edi, r13d
	call	l2cble_conn_comp@PLT
	pop	rax
	.cfi_def_cfa_offset 104
	pop	rdx
	.cfi_def_cfa_offset 96
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L30:
	mov	rsi, r12
	mov	edi, r13d
	call	l2c_link_hci_disc_comp@PLT
	mov	rsi, r12
	mov	edi, r13d
	call	btm_sec_disconnected@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L9:
	xor	edi, edi
	call	BTM_BLE_IS_RESOLVE_BDA@PLT
	test	rax, rax
	jne	.L32
	xor	r15d, r15d
	mov	rsi, rbp
	xor	r12d, r12d
	xor	r13d, r13d
	mov	edi, r15d
	xor	r14d, r14d
	call	STREAM_TO_UINT16@PLT
	mov	rsi, rbp
	mov	edi, r12d
	call	STREAM_TO_UINT16@PLT
	mov	rsi, rbp
	xor	ebp, ebp
	mov	edi, ebp
	call	STREAM_TO_UINT16@PLT
	mov	edi, r13d
	call	HCID_GET_HANDLE@PLT
	mov	r8, QWORD PTR 16[rsp]
	xor	edi, edi
	xor	r9d, r9d
	mov	edx, DWORD PTR HCI_ENCRYPT_MODE_DISABLED[rip]
	mov	rcx, r14
	mov	esi, eax
	mov	DWORD PTR 8[rsp], edi
	mov	r13d, eax
	call	btm_ble_connected@PLT
	sub	rsp, 8
	.cfi_def_cfa_offset 104
	mov	r8d, r15d
	mov	r9d, r12d
	push	rbp
	.cfi_def_cfa_offset 112
	mov	edi, DWORD PTR 24[rsp]
	mov	rsi, r14
	mov	rcx, QWORD PTR 32[rsp]
	mov	edx, edi
	mov	edi, r13d
	call	l2cble_conn_comp@PLT
	pop	rdi
	.cfi_def_cfa_offset 104
	pop	r8
	.cfi_def_cfa_offset 96
	test	rbx, rbx
	jne	.L8
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L32:
	mov	esi, DWORD PTR btm_ble_resolve_random_addr_on_conn_cmpl[rip]
	mov	rdx, rbp
	xor	edi, edi
	mov	QWORD PTR temp_enhanced[rip], rbx
	call	btm_ble_resolve_random_addr@PLT
	mov	rax, QWORD PTR FALSE[rip]
	mov	QWORD PTR temp_enhanced[rip], rax
	jmp	.L6
.L31:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	btm_ble_conn_complete, .-btm_ble_conn_complete
	.comm	temp_enhanced,8,8
	.comm	btm_cb,4,4
	.comm	btm_ble_resolve_random_addr_on_conn_cmpl,4,4
	.comm	TRUE,4,4
	.comm	HCI_SUCCESS,8,8
	.comm	HCI_ROLE_UNKNOWN,8,8
	.comm	HCI_ERR_DIRECTED_ADVERTISING_TIMEOUT,8,8
	.comm	HCI_ENCRYPT_MODE_DISABLED,4,4
	.comm	FALSE,8,8
	.comm	BTM_BLE_RL_INIT,4,4
	.comm	BTM_BLE_RL_ADV,4,4
	.comm	BTM_BLE_ADV_DISABLE,4,4
	.comm	BLE_CONN_IDLE,4,4
	.comm	BLE_ADDR_TYPE_ID_BIT,8,8
	.comm	BLE_ADDR_RANDOM,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_ble.c_btm_ble_conn_complete.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"status = %d, handle = %d, role = %d, bda_type = %d\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	btm_ble_conn_complete
	.syntax unified
	.arm
	.fpu softvfp
	.type	btm_ble_conn_complete, %function
btm_ble_conn_complete:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r5, #0
	mov	r4, r0
	ldr	r3, .L30
	sub	sp, sp, #36
	mov	r0, r1
	mov	r8, r2
	ldr	r3, [r3]
	str	r3, [sp, #28]
	mov	r3,#0
	bl	UNUSED
	mov	r1, r4
	mov	r0, r5
	bl	STREAM_TO_UINT8
	mov	r1, r4
	mov	r0, r5
	bl	STREAM_TO_UINT16
	mov	r1, r4
	mov	r0, r5
	bl	STREAM_TO_UINT8
	mov	r1, r4
	ldr	r0, [sp, #24]
	bl	STREAM_TO_UINT8
	mov	r1, r4
	mov	r0, r5
	bl	STREAM_TO_BDADDR
	ldr	r0, [sp, #24]
	mov	r3, r5
	str	r0, [sp]
	mov	r2, r5
	mov	r1, r5
	ldr	r0, .L30+4
	bl	BTM_TRACE_DEBUG
	cmp	r5, r5
	mov	r7, r5
	bne	.L2
	cmp	r8, r5
	mov	r6, r5
	beq	.L3
	mov	r1, r4
	mov	r0, r5
	bl	STREAM_TO_BDADDR
	mov	r1, r4
	mov	r0, r5
	bl	STREAM_TO_BDADDR
	ldr	r3, .L30+8
	mov	r0, r5
	ldr	r2, [r3]
	add	r1, sp, #24
	ldr	fp, [sp, #24]
	bl	btm_identity_addr_to_random_pseudo
	subs	r3, r0, #0
	beq	.L9
	mov	r10, #0
	mov	r1, r4
	mov	r0, r10
	str	r3, [sp, #20]
	bl	STREAM_TO_UINT16
	mov	r1, r4
	mov	r0, r10
	bl	STREAM_TO_UINT16
	mov	r1, r4
	mov	r0, r10
	bl	STREAM_TO_UINT16
	mov	r0, r10
	bl	HCID_GET_HANDLE
	mov	r5, r10
	mov	r7, r0
	mov	r9, r10
	ldr	r3, [sp, #20]
	ldr	ip, [sp, #24]
	ldr	r2, .L30+12
	str	r3, [sp, #4]
	mov	r1, r0
	ldr	r2, [r2]
	mov	r3, r10
	mov	r0, r10
	str	ip, [sp]
	bl	btm_ble_connected
	mov	r2, r10
	mov	r0, r7
	mov	r1, r10
	stmib	sp, {r5, r9}
	ldr	r3, [sp, #24]
	str	r10, [sp]
	mov	r6, r10
	bl	l2cble_conn_comp
.L8:
	mov	r1, #0
	mov	r0, r1
	bl	btm_ble_refresh_local_resolvable_private_addr
	ldr	r3, .L30+16
	ldr	r3, [r3]
	tst	fp, r3
	beq	.L6
	mov	r1, #0
	ldr	r3, .L30+20
	mov	r0, r1
	ldr	r2, [r3]
	bl	btm_ble_refresh_peer_resolvable_private_addr
.L6:
	mov	r5, #0
	mov	r0, r6
	mov	r2, r5
	mov	r1, r5
	bl	btm_ble_update_mode_operation
	ldr	r3, .L30+24
	ldr	r3, [r3]
	subs	r5, r3, r5
	movne	r5, #1
	cmp	r0, #0
	movne	r5, #0
	cmp	r5, #0
	bne	.L27
.L1:
	ldr	r3, .L30
	ldr	r2, [r3]
	ldr	r3, [sp, #28]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L28
	add	sp, sp, #36
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L2:
	ldr	r3, .L30+28
	ldr	r2, .L30+32
	ldr	r3, [r3]
	ldr	r6, [r2]
	cmp	r3, #0
	beq	.L6
	ldr	r3, .L30+36
	ldr	r0, [r3]
	bl	btm_ble_set_conn_st
	b	.L6
.L3:
	ldr	r3, .L30+8
	mov	r0, #0
	ldr	r2, [r3]
	add	r1, sp, #24
	ldr	fp, [sp, #24]
	bl	btm_identity_addr_to_random_pseudo
	subs	r3, r0, #0
	beq	.L9
	mov	r10, #0
	mov	r1, r4
	mov	r0, r10
	str	r3, [sp, #20]
	bl	STREAM_TO_UINT16
	mov	r1, r4
	mov	r0, r10
	bl	STREAM_TO_UINT16
	mov	r1, r4
	mov	r0, r10
	bl	STREAM_TO_UINT16
	mov	r0, r10
	bl	HCID_GET_HANDLE
	mov	r5, r10
	mov	r7, r0
	mov	r9, r10
	ldr	r3, [sp, #20]
	ldr	ip, [sp, #24]
	ldr	r2, .L30+12
	str	r3, [sp, #4]
	mov	r1, r0
	mov	r3, r10
	ldr	r2, [r2]
	mov	r0, r10
	str	ip, [sp]
	bl	btm_ble_connected
	mov	r2, r10
	mov	r0, r7
	mov	r1, r10
	stmib	sp, {r5, r9}
	ldr	r3, [sp, #24]
	str	r10, [sp]
	mov	r6, r10
	bl	l2cble_conn_comp
	b	.L6
.L9:
	mov	r0, #0
	bl	BTM_BLE_IS_RESOLVE_BDA
	subs	r3, r0, #0
	bne	.L29
	mov	r10, #0
	mov	r1, r4
	mov	r0, r10
	str	r3, [sp, #20]
	bl	STREAM_TO_UINT16
	mov	r1, r4
	mov	r0, r10
	bl	STREAM_TO_UINT16
	mov	r1, r4
	mov	r0, r10
	bl	STREAM_TO_UINT16
	mov	r0, r10
	bl	HCID_GET_HANDLE
	mov	r5, r10
	mov	r7, r0
	mov	r9, r10
	ldr	r3, [sp, #20]
	ldr	ip, [sp, #24]
	ldr	r2, .L30+12
	str	r3, [sp, #4]
	mov	r1, r0
	ldr	r2, [r2]
	mov	r3, r10
	str	ip, [sp]
	mov	r0, r10
	bl	btm_ble_connected
	mov	r2, r10
	mov	r0, r7
	mov	r1, r10
	stmib	sp, {r5, r9}
	ldr	r3, [sp, #24]
	str	r10, [sp]
	bl	l2cble_conn_comp
	cmp	r8, r10
	mov	r6, r10
	bne	.L8
	b	.L6
.L27:
	mov	r5, #0
	mov	r0, r7
	mov	r1, r5
	bl	l2c_link_hci_disc_comp
	mov	r1, r5
	mov	r0, r7
	bl	btm_sec_disconnected
	b	.L1
.L29:
	ldr	r3, .L30+40
	ldr	r5, .L30+44
	ldr	r1, [r3]
	mov	r2, r4
	mov	r0, #0
	str	r8, [r5]
	bl	btm_ble_resolve_random_addr
	ldr	r3, .L30+48
	ldr	r3, [r3]
	str	r3, [r5]
	b	.L6
.L28:
	bl	__stack_chk_fail
.L31:
	.align	2
.L30:
	.word	.LC1
	.word	.LC0
	.word	TRUE
	.word	HCI_ENCRYPT_MODE_DISABLED
	.word	BLE_ADDR_TYPE_ID_BIT
	.word	BLE_ADDR_RANDOM
	.word	HCI_SUCCESS
	.word	HCI_ERR_DIRECTED_ADVERTISING_TIMEOUT
	.word	HCI_ROLE_UNKNOWN
	.word	BLE_CONN_IDLE
	.word	btm_ble_resolve_random_addr_on_conn_cmpl
	.word	temp_enhanced
	.word	FALSE
	.size	btm_ble_conn_complete, .-btm_ble_conn_complete
	.comm	temp_enhanced,4,4
	.comm	btm_cb,4,4
	.comm	btm_ble_resolve_random_addr_on_conn_cmpl,4,4
	.comm	TRUE,4,4
	.comm	HCI_SUCCESS,4,4
	.comm	HCI_ROLE_UNKNOWN,4,4
	.comm	HCI_ERR_DIRECTED_ADVERTISING_TIMEOUT,4,4
	.comm	HCI_ENCRYPT_MODE_DISABLED,4,4
	.comm	FALSE,4,4
	.comm	BTM_BLE_RL_INIT,4,4
	.comm	BTM_BLE_RL_ADV,4,4
	.comm	BTM_BLE_ADV_DISABLE,4,4
	.comm	BLE_CONN_IDLE,4,4
	.comm	BLE_ADDR_TYPE_ID_BIT,4,4
	.comm	BLE_ADDR_RANDOM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
