	.file	"extr_btm_ble.c_BTM_BleSetPrefConnParams.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"BTM_BleSetPrefConnParams min: %u  max: %u  latency: %u                      tout: %u"
	.align 8
.LC1:
	.string	"Unknown Device, setting rejected"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC2:
	.string	"Illegal Connection Parameters"
	.text
	.p2align 4
	.globl	BTM_BleSetPrefConnParams
	.type	BTM_BleSetPrefConnParams, @function
BTM_BleSetPrefConnParams:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13, r8
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12, rcx
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdx
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	rbx, rsi
	call	btm_find_or_alloc_dev@PLT
	mov	rdx, rbp
	mov	rsi, rbx
	mov	r8, r13
	lea	rdi, .LC0[rip]
	mov	rcx, r12
	mov	r14, rax
	call	BTM_TRACE_API@PLT
	mov	edx, DWORD PTR BTM_BLE_CONN_INT_MAX[rip]
	mov	esi, DWORD PTR BTM_BLE_CONN_INT_MIN[rip]
	mov	rdi, rbx
	call	BTM_BLE_ISVALID_PARAM@PLT
	test	rax, rax
	je	.L2
	mov	edx, DWORD PTR BTM_BLE_CONN_INT_MAX[rip]
	mov	esi, DWORD PTR BTM_BLE_CONN_INT_MIN[rip]
	mov	rdi, rbp
	call	BTM_BLE_ISVALID_PARAM@PLT
	test	rax, rax
	jne	.L23
.L2:
	lea	rdi, .LC2[rip]
.L21:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	jmp	BTM_TRACE_ERROR@PLT
	.p2align 4,,10
	.p2align 3
.L23:
	.cfi_restore_state
	mov	edx, DWORD PTR BTM_BLE_CONN_SUP_TOUT_MAX[rip]
	mov	esi, DWORD PTR BTM_BLE_CONN_SUP_TOUT_MIN[rip]
	mov	rdi, r13
	call	BTM_BLE_ISVALID_PARAM@PLT
	test	rax, rax
	je	.L2
	cmp	QWORD PTR BTM_BLE_CONN_LATENCY_MAX[rip], r12
	jl	.L24
.L3:
	test	r14, r14
	je	.L4
	mov	rax, QWORD PTR BTM_BLE_CONN_PARAM_UNDEF[rip]
	cmp	rax, rbx
	je	.L25
	cmp	rax, rbp
	mov	QWORD PTR 24[r14], rbx
	cmovne	rbx, rbp
.L8:
	cmp	rax, r12
	cmove	r12, QWORD PTR BTM_BLE_CONN_SLAVE_LATENCY_DEF[rip]
	mov	QWORD PTR 16[r14], rbx
	mov	QWORD PTR 8[r14], r12
	cmp	rax, r13
	je	.L10
	mov	QWORD PTR [r14], r13
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L24:
	.cfi_restore_state
	cmp	QWORD PTR BTM_BLE_CONN_PARAM_UNDEF[rip], r12
	jne	.L2
	jmp	.L3
.L4:
	lea	rdi, .LC1[rip]
	jmp	.L21
	.p2align 4,,10
	.p2align 3
.L25:
	cmp	rbx, rbp
	je	.L1
	mov	QWORD PTR 24[r14], rbp
	mov	rbx, rbp
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L10:
	mov	rax, QWORD PTR BTM_BLE_CONN_TIMEOUT_DEF[rip]
	mov	QWORD PTR [r14], rax
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	BTM_BleSetPrefConnParams, .-BTM_BleSetPrefConnParams
	.comm	BTM_BLE_CONN_TIMEOUT_DEF,8,8
	.comm	BTM_BLE_CONN_SUP_TOUT_MIN,4,4
	.comm	BTM_BLE_CONN_SUP_TOUT_MAX,4,4
	.comm	BTM_BLE_CONN_SLAVE_LATENCY_DEF,8,8
	.comm	BTM_BLE_CONN_PARAM_UNDEF,8,8
	.comm	BTM_BLE_CONN_LATENCY_MAX,8,8
	.comm	BTM_BLE_CONN_INT_MIN,4,4
	.comm	BTM_BLE_CONN_INT_MAX,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_BleSetPrefConnParams.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"BTM_BleSetPrefConnParams min: %u  max: %u  latency:"
	.ascii	" %u                      tout: %u\000"
	.align	2
.LC1:
	.ascii	"Unknown Device, setting rejected\000"
	.align	2
.LC2:
	.ascii	"Illegal Connection Parameters\000"
	.text
	.align	2
	.global	BTM_BleSetPrefConnParams
	.syntax unified
	.arm
	.fpu softvfp
	.type	BTM_BleSetPrefConnParams, %function
BTM_BleSetPrefConnParams:
	@ args = 4, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	sub	sp, sp, #8
	mov	r4, r1
	mov	r5, r2
	mov	r6, r3
	ldr	r9, [sp, #40]
	bl	btm_find_or_alloc_dev
	ldr	r8, .L26
	ldr	r7, .L26+4
	mov	r3, r6
	mov	r2, r5
	mov	r1, r4
	mov	r10, r0
	str	r9, [sp]
	ldr	r0, .L26+8
	bl	BTM_TRACE_API
	mov	r0, r4
	ldr	r2, [r8]
	ldr	r1, [r7]
	bl	BTM_BLE_ISVALID_PARAM
	cmp	r0, #0
	beq	.L2
	mov	r0, r5
	ldr	r2, [r8]
	ldr	r1, [r7]
	bl	BTM_BLE_ISVALID_PARAM
	cmp	r0, #0
	bne	.L23
.L2:
	ldr	r0, .L26+12
.L21:
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, lr}
	b	BTM_TRACE_ERROR
.L23:
	ldr	r3, .L26+16
	ldr	r2, .L26+20
	mov	r0, r9
	ldr	r2, [r2]
	ldr	r1, [r3]
	bl	BTM_BLE_ISVALID_PARAM
	cmp	r0, #0
	beq	.L2
	ldr	r3, .L26+24
	ldr	r3, [r3]
	cmp	r3, r6
	blt	.L24
.L3:
	cmp	r10, #0
	beq	.L4
	ldr	r3, .L26+28
	ldr	r3, [r3]
	cmp	r3, r4
	beq	.L25
	cmp	r3, r5
	str	r4, [r10, #12]
	movne	r4, r5
.L8:
	cmp	r3, r6
	ldreq	r2, .L26+32
	str	r4, [r10, #8]
	ldreq	r6, [r2]
	cmp	r3, r9
	ldreq	r3, .L26+36
	str	r6, [r10, #4]
	ldreq	r3, [r3]
	strne	r9, [r10]
	streq	r3, [r10]
.L1:
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L24:
	ldr	r3, .L26+28
	ldr	r3, [r3]
	cmp	r3, r6
	bne	.L2
	b	.L3
.L4:
	ldr	r0, .L26+40
	b	.L21
.L25:
	cmp	r4, r5
	movne	r4, r5
	strne	r5, [r10, #12]
	bne	.L8
	b	.L1
.L27:
	.align	2
.L26:
	.word	BTM_BLE_CONN_INT_MAX
	.word	BTM_BLE_CONN_INT_MIN
	.word	.LC0
	.word	.LC2
	.word	BTM_BLE_CONN_SUP_TOUT_MIN
	.word	BTM_BLE_CONN_SUP_TOUT_MAX
	.word	BTM_BLE_CONN_LATENCY_MAX
	.word	BTM_BLE_CONN_PARAM_UNDEF
	.word	BTM_BLE_CONN_SLAVE_LATENCY_DEF
	.word	BTM_BLE_CONN_TIMEOUT_DEF
	.word	.LC1
	.size	BTM_BleSetPrefConnParams, .-BTM_BleSetPrefConnParams
	.comm	BTM_BLE_CONN_TIMEOUT_DEF,4,4
	.comm	BTM_BLE_CONN_SUP_TOUT_MIN,4,4
	.comm	BTM_BLE_CONN_SUP_TOUT_MAX,4,4
	.comm	BTM_BLE_CONN_SLAVE_LATENCY_DEF,4,4
	.comm	BTM_BLE_CONN_PARAM_UNDEF,4,4
	.comm	BTM_BLE_CONN_LATENCY_MAX,4,4
	.comm	BTM_BLE_CONN_INT_MIN,4,4
	.comm	BTM_BLE_CONN_INT_MAX,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
