	.file	"extr_hci_packet_factory.c_make_command.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	make_command, @function
make_command:
.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
	mov	rdi, QWORD PTR HCI_COMMAND_PREAMBLE_SIZE[rip]
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	add	rdi, rsi
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	rbx, rdx
	call	make_packet@PLT
	mov	esi, r13d
	mov	r14, QWORD PTR [rax]
	mov	r12, rax
	mov	rdi, r14
	call	UINT16_TO_STREAM@PLT
	mov	rsi, rbp
	mov	rdi, r14
	call	UINT8_TO_STREAM@PLT
	test	rbx, rbx
	je	.L1
	mov	QWORD PTR [rbx], r14
.L1:
	pop	rbx
	.cfi_def_cfa_offset 40
	mov	rax, r12
	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	make_command, .-make_command
	.comm	HCI_COMMAND_PREAMBLE_SIZE,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_hci_packet_factory.c_make_command.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	make_command, %function
make_command:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L8
	push	{r4, r5, r6, r7, r8, lr}
	mov	r7, r0
	ldr	r0, [r3]
	mov	r6, r2
	add	r0, r1, r0
	mov	r5, r1
	bl	make_packet
	mov	r4, r0
	ldr	r8, [r0]
	mov	r1, r7
	mov	r0, r8
	bl	UINT16_TO_STREAM
	mov	r1, r5
	mov	r0, r8
	bl	UINT8_TO_STREAM
	cmp	r6, #0
	mov	r0, r4
	strne	r8, [r6]
	pop	{r4, r5, r6, r7, r8, pc}
.L9:
	.align	2
.L8:
	.word	HCI_COMMAND_PREAMBLE_SIZE
	.size	make_command, .-make_command
	.comm	HCI_COMMAND_PREAMBLE_SIZE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
