	.file	"extr_htc_mbox.c_ath6kl_htc_rx_packet.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"not enough receive space for packet - padlen %d recvlen %d bufferlen %d\n"
	.align 8
.LC1:
	.string	"htc rx 0x%p hdr 0x%x len %d mbox 0x%x\n"
	.text
	.p2align 4
	.type	ath6kl_htc_rx_packet, @function
ath6kl_htc_rx_packet:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13d, edx
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rsi
	mov	esi, edx
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	rbp, QWORD PTR [rdi]
	call	CALC_TXRX_PADDED_LEN@PLT
	mov	ecx, DWORD PTR 12[rbx]
	mov	r12d, eax
	cmp	ecx, eax
	jl	.L6
	mov	rax, QWORD PTR 0[rbp]
	mov	ecx, DWORD PTR 8[rbx]
	mov	r8d, r12d
	mov	rdx, rbx
	mov	edi, DWORD PTR ATH6KL_DBG_HTC[rip]
	lea	rsi, .LC1[rip]
	mov	r9d, DWORD PTR [rax]
	call	ath6kl_dbg@PLT
	mov	rdi, QWORD PTR 0[rbp]
	mov	edx, DWORD PTR 4[rbx]
	mov	ecx, r12d
	mov	r8d, DWORD PTR HIF_RD_SYNC_BLOCK_FIX[rip]
	mov	esi, DWORD PTR [rdi]
	call	hif_read_write_sync@PLT
	mov	DWORD PTR [rbx], eax
	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
.L6:
	.cfi_restore_state
	mov	edx, r13d
	mov	esi, eax
	lea	rdi, .LC0[rip]
	call	ath6kl_err@PLT
	mov	eax, DWORD PTR ENOMEM[rip]
	add	rsp, 8
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	neg	eax
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	ath6kl_htc_rx_packet, .-ath6kl_htc_rx_packet
	.comm	HIF_RD_SYNC_BLOCK_FIX,4,4
	.comm	ENOMEM,4,4
	.comm	ATH6KL_DBG_HTC,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_htc_mbox.c_ath6kl_htc_rx_packet.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"not enough receive space for packet - padlen %d rec"
	.ascii	"vlen %d bufferlen %d\012\000"
	.align	2
.LC1:
	.ascii	"htc rx 0x%p hdr 0x%x len %d mbox 0x%x\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ath6kl_htc_rx_packet, %function
ath6kl_htc_rx_packet:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	mov	r4, r1
	sub	sp, sp, #12
	mov	r1, r2
	mov	r6, r2
	ldr	r7, [r0]
	bl	CALC_TXRX_PADDED_LEN
	ldr	r3, [r4, #12]
	mov	r5, r0
	cmp	r3, r0
	blt	.L6
	ldr	r3, [r7]
	ldr	r2, .L7
	ldr	r3, [r3]
	ldr	r0, [r2]
	str	r3, [sp, #4]
	str	r5, [sp]
	mov	r2, r4
	ldr	r3, [r4, #8]
	ldr	r1, .L7+4
	bl	ath6kl_dbg
	ldr	r3, .L7+8
	ldr	r0, [r7]
	ldr	r2, [r3]
	ldr	r1, [r0]
	str	r2, [sp]
	mov	r3, r5
	ldr	r2, [r4, #4]
	bl	hif_read_write_sync
	str	r0, [r4]
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L6:
	mov	r1, r0
	mov	r2, r6
	ldr	r0, .L7+12
	bl	ath6kl_err
	ldr	r3, .L7+16
	ldr	r0, [r3]
	rsb	r0, r0, #0
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L8:
	.align	2
.L7:
	.word	ATH6KL_DBG_HTC
	.word	.LC1
	.word	HIF_RD_SYNC_BLOCK_FIX
	.word	.LC0
	.word	ENOMEM
	.size	ath6kl_htc_rx_packet, .-ath6kl_htc_rx_packet
	.comm	HIF_RD_SYNC_BLOCK_FIX,4,4
	.comm	ENOMEM,4,4
	.comm	ATH6KL_DBG_HTC,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
