	.file	"extr_hci.c_lp_write_flush_timeout.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"lp_write_flush_timeout: ACL connection does not exist\n"
	.align 8
.LC1:
	.string	"lp_write_flush_timeout: Could not allocate memory for pbuf\n"
	.text
	.p2align 4
	.globl	lp_write_flush_timeout
	.type	lp_write_flush_timeout, @function
lp_write_flush_timeout:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12d, esi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	call	hci_get_link@PLT
	test	rax, rax
	je	.L7
	mov	edi, DWORD PTR PBUF_TRANSPORT[rip]
	mov	edx, DWORD PTR PBUF_RAM[rip]
	mov	rbx, rax
	mov	esi, DWORD PTR HCI_W_FLUSHTO_PLEN[rip]
	call	btpbuf_alloc@PLT
	mov	rdi, rax
	test	rax, rax
	je	.L8
	mov	ecx, DWORD PTR HCI_W_FLUSHTO_PLEN[rip]
	mov	edx, DWORD PTR HCI_HC_BB_OGF[rip]
	mov	esi, DWORD PTR HCI_W_FLUSHTO[rip]
	call	hci_cmd_ass@PLT
	mov	edi, DWORD PTR [rbx]
	mov	r13, QWORD PTR 8[rax]
	mov	rbp, rax
	call	htole16@PLT
	mov	rbx, QWORD PTR 8[rbp]
	mov	edi, r12d
	mov	DWORD PTR 8[r13], eax
	call	htole16@PLT
	mov	rdi, rbp
	mov	DWORD PTR 12[rbx], eax
	mov	esi, DWORD PTR 0[rbp]
	call	physbusif_output@PLT
	mov	rdi, rbp
	call	btpbuf_free@PLT
	mov	eax, DWORD PTR ERR_OK[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	lea	rdi, .LC0[rip]
	call	ERROR@PLT
	mov	eax, DWORD PTR ERR_CONN[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	lea	rdi, .LC1[rip]
	call	ERROR@PLT
	mov	eax, DWORD PTR ERR_MEM[rip]
	add	rsp, 8
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	lp_write_flush_timeout, .-lp_write_flush_timeout
	.comm	PBUF_TRANSPORT,4,4
	.comm	PBUF_RAM,4,4
	.comm	HCI_W_FLUSHTO_PLEN,4,4
	.comm	HCI_W_FLUSHTO,4,4
	.comm	HCI_HC_BB_OGF,4,4
	.comm	ERR_OK,4,4
	.comm	ERR_MEM,4,4
	.comm	ERR_CONN,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_hci.c_lp_write_flush_timeout.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"lp_write_flush_timeout: ACL connection does not exi"
	.ascii	"st\012\000"
	.align	2
.LC1:
	.ascii	"lp_write_flush_timeout: Could not allocate memory f"
	.ascii	"or pbuf\012\000"
	.text
	.align	2
	.global	lp_write_flush_timeout
	.syntax unified
	.arm
	.fpu softvfp
	.type	lp_write_flush_timeout, %function
lp_write_flush_timeout:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r6, r1
	bl	hci_get_link
	subs	r5, r0, #0
	beq	.L7
	ldr	r3, .L9
	ldr	r2, .L9+4
	ldr	r4, .L9+8
	ldr	r2, [r2]
	ldr	r1, [r4]
	ldr	r0, [r3]
	bl	btpbuf_alloc
	cmp	r0, #0
	beq	.L8
	ldr	r2, .L9+12
	ldr	r1, .L9+16
	ldr	r2, [r2]
	ldr	r3, [r4]
	ldr	r1, [r1]
	bl	hci_cmd_ass
	mov	r4, r0
	ldr	r0, [r5]
	ldr	r5, [r4, #4]
	bl	htole16
	mov	r3, r0
	mov	r0, r6
	str	r3, [r5, #8]
	ldr	r5, [r4, #4]
	bl	htole16
	str	r0, [r5, #12]
	ldr	r1, [r4]
	mov	r0, r4
	bl	physbusif_output
	mov	r0, r4
	bl	btpbuf_free
	ldr	r3, .L9+20
	ldr	r0, [r3]
	pop	{r4, r5, r6, pc}
.L7:
	ldr	r0, .L9+24
	bl	ERROR
	ldr	r3, .L9+28
	ldr	r0, [r3]
	pop	{r4, r5, r6, pc}
.L8:
	ldr	r0, .L9+32
	bl	ERROR
	ldr	r3, .L9+36
	ldr	r0, [r3]
	pop	{r4, r5, r6, pc}
.L10:
	.align	2
.L9:
	.word	PBUF_TRANSPORT
	.word	PBUF_RAM
	.word	HCI_W_FLUSHTO_PLEN
	.word	HCI_HC_BB_OGF
	.word	HCI_W_FLUSHTO
	.word	ERR_OK
	.word	.LC0
	.word	ERR_CONN
	.word	.LC1
	.word	ERR_MEM
	.size	lp_write_flush_timeout, .-lp_write_flush_timeout
	.comm	PBUF_TRANSPORT,4,4
	.comm	PBUF_RAM,4,4
	.comm	HCI_W_FLUSHTO_PLEN,4,4
	.comm	HCI_W_FLUSHTO,4,4
	.comm	HCI_HC_BB_OGF,4,4
	.comm	ERR_OK,4,4
	.comm	ERR_MEM,4,4
	.comm	ERR_CONN,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
