	.file	"extr_arm-spe-pkt-decoder.c_arm_spe_get_payload.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	arm_spe_get_payload, @function
arm_spe_get_payload:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13, rdx
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	movzx	edi, BYTE PTR [rdi]
	call	payloadlen@PLT
	mov	rbx, rax
	add	rax, 1
	cmp	rax, r12
	ja	.L13
	cmp	rbx, 4
	je	.L4
	ja	.L5
	cmp	rbx, 1
	je	.L6
	cmp	rbx, 2
	jne	.L8
	mov	edi, DWORD PTR 1[rbp]
	call	le16_to_cpu@PLT
	mov	DWORD PTR 0[r13], eax
.L10:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	lea	eax, 1[rbx]
	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
.L5:
	.cfi_restore_state
	cmp	rbx, 8
	jne	.L8
	mov	edi, DWORD PTR 1[rbp]
	call	le64_to_cpu@PLT
	mov	DWORD PTR 0[r13], eax
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L13:
	mov	eax, DWORD PTR ARM_SPE_NEED_MORE_BYTES[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
.L6:
	.cfi_restore_state
	mov	eax, DWORD PTR 1[rbp]
	mov	DWORD PTR 0[r13], eax
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L8:
	mov	eax, DWORD PTR ARM_SPE_BAD_PACKET[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
.L4:
	.cfi_restore_state
	mov	edi, DWORD PTR 1[rbp]
	call	le32_to_cpu@PLT
	mov	DWORD PTR 0[r13], eax
	jmp	.L10
	.cfi_endproc
.LFE0:
	.size	arm_spe_get_payload, .-arm_spe_get_payload
	.comm	ARM_SPE_NEED_MORE_BYTES,4,4
	.comm	ARM_SPE_BAD_PACKET,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_arm-spe-pkt-decoder.c_arm_spe_get_payload.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	arm_spe_get_payload, %function
arm_spe_get_payload:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r5, r0
	ldrb	r0, [r0]	@ zero_extendqisi2
	mov	r6, r1
	mov	r7, r2
	bl	payloadlen
	add	r4, r0, #1
	cmp	r4, r6
	bhi	.L13
	sub	r3, r0, #1
	cmp	r3, #7
	ldrls	pc, [pc, r3, asl #2]
	b	.L4
.L6:
	.word	.L9
	.word	.L8
	.word	.L4
	.word	.L7
	.word	.L4
	.word	.L4
	.word	.L4
	.word	.L5
.L13:
	ldr	r3, .L14
	ldr	r0, [r3]
	pop	{r4, r5, r6, r7, r8, pc}
.L5:
	ldr	r0, [r5, #1]
	bl	le64_to_cpu
	str	r0, [r7]
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L4:
	ldr	r3, .L14+4
	ldr	r0, [r3]
	pop	{r4, r5, r6, r7, r8, pc}
.L9:
	ldr	r3, [r5, #1]
	mov	r0, r4
	str	r3, [r7]
	pop	{r4, r5, r6, r7, r8, pc}
.L8:
	ldr	r0, [r5, #1]
	bl	le16_to_cpu
	str	r0, [r7]
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L7:
	ldr	r0, [r5, #1]
	bl	le32_to_cpu
	str	r0, [r7]
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L15:
	.align	2
.L14:
	.word	ARM_SPE_NEED_MORE_BYTES
	.word	ARM_SPE_BAD_PACKET
	.size	arm_spe_get_payload, .-arm_spe_get_payload
	.comm	ARM_SPE_NEED_MORE_BYTES,4,4
	.comm	ARM_SPE_BAD_PACKET,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
