	.file	"extr_sdio.c_ath10k_sdio_mbox_rx_process_packet.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	ath10k_sdio_mbox_rx_process_packet, @function
ath10k_sdio_mbox_rx_process_packet:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	r12, QWORD PTR 8[rsi]
	mov	rbp, QWORD PTR 8[r12]
	mov	eax, DWORD PTR 0[rbp]
	test	DWORD PTR ATH10K_HTC_FLAG_TRAILER_PRESENT[rip], eax
	je	.L2
	mov	rbx, rsi
	movsx	rsi, DWORD PTR [r12]
	mov	r13, rdi
	mov	edi, DWORD PTR 16[rbp]
	mov	r14, rdx
	mov	r15, rcx
	add	rsi, rbp
	sub	rsi, QWORD PTR 8[rbp]
	mov	QWORD PTR 8[rsp], rsi
	call	pipe_id_to_eid@PLT
	mov	rdx, QWORD PTR 8[rbp]
	mov	r9, r15
	mov	r8, r14
	mov	rsi, QWORD PTR 8[rsp]
	mov	ecx, eax
	mov	rdi, r13
	call	ath10k_htc_process_trailer@PLT
	test	eax, eax
	je	.L13
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L13:
	.cfi_restore_state
	mov	rdi, rbx
	call	is_trailer_only_msg@PLT
	test	rax, rax
	je	.L4
	mov	DWORD PTR [rbx], 1
.L4:
	movsx	rsi, DWORD PTR [r12]
	mov	rdi, r12
	sub	rsi, QWORD PTR 8[rbp]
	call	skb_trim@PLT
.L2:
	mov	rdi, r12
	mov	esi, 24
	call	skb_pull@PLT
	add	rsp, 24
	.cfi_def_cfa_offset 56
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	ath10k_sdio_mbox_rx_process_packet, .-ath10k_sdio_mbox_rx_process_packet
	.comm	ATH10K_HTC_FLAG_TRAILER_PRESENT,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_sdio.c_ath10k_sdio_mbox_rx_process_packet.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ath10k_sdio_mbox_rx_process_packet, %function
ath10k_sdio_mbox_rx_process_packet:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r6, [r1, #4]
	mov	r4, r1
	ldr	r5, [r6, #4]
	ldr	r1, .L14
	ldr	ip, [r5]
	ldr	r1, [r1]
	sub	sp, sp, #8
	tst	ip, r1
	beq	.L2
	ldr	r10, [r6]
	ldr	r1, [r5, #4]
	mov	r9, r0
	add	r10, r5, r10
	ldr	r0, [r5, #8]
	mov	r7, r2
	mov	r8, r3
	sub	r10, r10, r1
	bl	pipe_id_to_eid
	ldr	r2, [r5, #4]
	mov	r3, r0
	mov	r1, r10
	mov	r0, r9
	stm	sp, {r7, r8}
	bl	ath10k_htc_process_trailer
	cmp	r0, #0
	beq	.L13
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L13:
	mov	r0, r4
	bl	is_trailer_only_msg
	cmp	r0, #0
	movne	r3, #1
	ldr	r1, [r6]
	strne	r3, [r4]
	ldr	r3, [r5, #4]
	mov	r0, r6
	sub	r1, r1, r3
	bl	skb_trim
.L2:
	mov	r0, r6
	mov	r1, #12
	bl	skb_pull
	mov	r0, #0
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L15:
	.align	2
.L14:
	.word	ATH10K_HTC_FLAG_TRAILER_PRESENT
	.size	ath10k_sdio_mbox_rx_process_packet, .-ath10k_sdio_mbox_rx_process_packet
	.comm	ATH10K_HTC_FLAG_TRAILER_PRESENT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
