	.file	"extr_decode.c_decode_len.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	decode_len, @function
decode_len:
.LFB0:
	.cfi_startproc
	endbr64
	test	esi, esi
	js	.L10
	test	rdi, rdi
	je	.L7
	mov	rdx, QWORD PTR [rdi]
	cmp	esi, 1
	je	.L4
	cmp	esi, 2
	je	.L5
	mov	eax, -1
	test	esi, esi
	je	.L11
	mov	QWORD PTR [rdi], rdx
	ret
	.p2align 4,,10
	.p2align 3
.L4:
	movzx	eax, WORD PTR [rdx]
	add	rdx, 2
	mov	QWORD PTR [rdi], rdx
	rol	ax, 8
	movzx	eax, ax
	ret
	.p2align 4,,10
	.p2align 3
.L11:
	movzx	eax, BYTE PTR [rdx]
	add	rdx, 1
	mov	QWORD PTR [rdi], rdx
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	mov	eax, DWORD PTR [rdx]
	add	rdx, 4
	mov	QWORD PTR [rdi], rdx
	bswap	eax
	ret
	.p2align 4,,10
	.p2align 3
.L10:
	jmp	decode_new_len@PLT
.L7:
	mov	eax, -1
	ret
	.cfi_endproc
.LFE0:
	.size	decode_len, .-decode_len
	.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_decode.c_decode_len.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	decode_len, %function
decode_len:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	@ link register save eliminated.
	cmp	r1, #0
	mov	r2, r0
	blt	.L10
	cmp	r0, #0
	beq	.L7
	cmp	r1, #1
	ldr	r3, [r0]
	beq	.L4
	cmp	r1, #2
	beq	.L5
	cmp	r1, #0
	ldrbeq	r0, [r3], #1	@ zero_extendqisi2
	mvnne	r0, #0
.L6:
	str	r3, [r2]
	bx	lr
.L4:
	ldrb	r1, [r3, #1]	@ zero_extendqisi2
	ldrb	r0, [r3], #2	@ zero_extendqisi2
	orr	r1, r0, r1, lsl #8
	lsr	r0, r1, #8
	orr	r0, r0, r1, lsl #8
	lsl	r0, r0, #16
	lsr	r0, r0, #16
	str	r3, [r2]
	bx	lr
.L5:
	ldrb	r1, [r3, #1]	@ zero_extendqisi2
	ldrb	r0, [r3]	@ zero_extendqisi2
	ldrb	ip, [r3, #2]	@ zero_extendqisi2
	orr	r0, r0, r1, lsl #8
	ldrb	r1, [r3, #3]	@ zero_extendqisi2
	orr	r0, r0, ip, lsl #16
	orr	r1, r0, r1, lsl #24
	eor	r0, r1, r1, ror #16
	lsr	r0, r0, #8
	add	r3, r3, #4
	bic	r0, r0, #65280
	eor	r0, r0, r1, ror #8
	str	r3, [r2]
	bx	lr
.L10:
	b	decode_new_len
.L7:
	mvn	r0, #0
	bx	lr
	.size	decode_len, .-decode_len
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
