	.file	"extr_hcicmds.c_btsnd_hcic_set_conn_encrypt.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	btsnd_hcic_set_conn_encrypt
	.type	btsnd_hcic_set_conn_encrypt, @function
btsnd_hcic_set_conn_encrypt:
.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	r13d, edi
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	rdi, QWORD PTR HCIC_PARAM_SIZE_SET_CONN_ENCRYPT[rip]
	call	HCI_GET_CMD_BUF@PLT
	test	rax, rax
	je	.L6
	lea	r14, 16[rax]
	mov	rbp, rax
	mov	rax, QWORD PTR HCIC_PARAM_SIZE_SET_CONN_ENCRYPT[rip]
	add	rax, QWORD PTR HCIC_PREAMBLE_SIZE[rip]
	mov	QWORD PTR 8[rbp], rax
	mov	esi, DWORD PTR HCI_SET_CONN_ENCRYPTION[rip]
	mov	rdi, r14
	mov	QWORD PTR 0[rbp], 0
	call	UINT16_TO_STREAM@PLT
	mov	rsi, QWORD PTR HCIC_PARAM_SIZE_SET_CONN_ENCRYPT[rip]
	mov	rdi, r14
	call	UINT8_TO_STREAM@PLT
	mov	esi, r13d
	mov	rdi, r14
	call	UINT16_TO_STREAM@PLT
	mov	rsi, r12
	mov	rdi, r14
	call	UINT8_TO_STREAM@PLT
	mov	edi, DWORD PTR LOCAL_BR_EDR_CONTROLLER_ID[rip]
	mov	rsi, rbp
	call	btu_hcif_send_cmd@PLT
	mov	rax, QWORD PTR TRUE[rip]
	add	rsp, 8
	.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
.L6:
	.cfi_restore_state
	mov	rax, QWORD PTR FALSE[rip]
	add	rsp, 8
	.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
	.cfi_endproc
.LFE0:
	.size	btsnd_hcic_set_conn_encrypt, .-btsnd_hcic_set_conn_encrypt
	.comm	TRUE,8,8
	.comm	LOCAL_BR_EDR_CONTROLLER_ID,4,4
	.comm	HCI_SET_CONN_ENCRYPTION,4,4
	.comm	HCIC_PREAMBLE_SIZE,8,8
	.comm	HCIC_PARAM_SIZE_SET_CONN_ENCRYPT,8,8
	.comm	FALSE,8,8
	.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_hcicmds.c_btsnd_hcic_set_conn_encrypt.c"
	.text
	.align	2
	.global	btsnd_hcic_set_conn_encrypt
	.syntax unified
	.arm
	.fpu softvfp
	.type	btsnd_hcic_set_conn_encrypt, %function
btsnd_hcic_set_conn_encrypt:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r8, .L7
	mov	r7, r0
	ldr	r0, [r8]
	mov	r6, r1
	bl	HCI_GET_CMD_BUF
	subs	r4, r0, #0
	beq	.L6
	mov	r1, #0
	ldr	r3, .L7+4
	ldr	r0, [r8]
	ldr	r3, [r3]
	ldr	r2, .L7+8
	add	r3, r3, r0
	add	r5, r4, #8
	stm	r4, {r1, r3}
	mov	r0, r5
	ldr	r1, [r2]
	bl	UINT16_TO_STREAM
	ldr	r1, [r8]
	mov	r0, r5
	bl	UINT8_TO_STREAM
	mov	r1, r7
	mov	r0, r5
	bl	UINT16_TO_STREAM
	mov	r1, r6
	mov	r0, r5
	bl	UINT8_TO_STREAM
	ldr	r3, .L7+12
	mov	r1, r4
	ldr	r0, [r3]
	bl	btu_hcif_send_cmd
	ldr	r3, .L7+16
	ldr	r0, [r3]
	pop	{r4, r5, r6, r7, r8, pc}
.L6:
	ldr	r3, .L7+20
	ldr	r0, [r3]
	pop	{r4, r5, r6, r7, r8, pc}
.L8:
	.align	2
.L7:
	.word	HCIC_PARAM_SIZE_SET_CONN_ENCRYPT
	.word	HCIC_PREAMBLE_SIZE
	.word	HCI_SET_CONN_ENCRYPTION
	.word	LOCAL_BR_EDR_CONTROLLER_ID
	.word	TRUE
	.word	FALSE
	.size	btsnd_hcic_set_conn_encrypt, .-btsnd_hcic_set_conn_encrypt
	.comm	TRUE,4,4
	.comm	LOCAL_BR_EDR_CONTROLLER_ID,4,4
	.comm	HCI_SET_CONN_ENCRYPTION,4,4
	.comm	HCIC_PREAMBLE_SIZE,4,4
	.comm	HCIC_PARAM_SIZE_SET_CONN_ENCRYPT,4,4
	.comm	FALSE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
