	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function decode_len
_decode_len:                            ## @decode_len
	.cfi_startproc
## %bb.0:
	testl	%esi, %esi
	js	LBB0_11
## %bb.1:
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.3:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	(%rdi), %rcx
	cmpl	$2, %esi
	je	LBB0_8
## %bb.4:
	cmpl	$1, %esi
	je	LBB0_7
## %bb.5:
	movl	$-1, %eax
	testl	%esi, %esi
	jne	LBB0_9
## %bb.6:
	movzbl	(%rcx), %eax
	incq	%rcx
	jmp	LBB0_9
LBB0_11:
	jmp	_decode_new_len                 ## TAILCALL
LBB0_2:
	movl	$-1, %eax
	retq
LBB0_8:
	movl	(%rcx), %eax
	addq	$4, %rcx
	bswapl	%eax
	jmp	LBB0_9
LBB0_7:
	movzwl	(%rcx), %eax
	addq	$2, %rcx
	rolw	$8, %ax
	movzwl	%ax, %eax
LBB0_9:
	movq	%rcx, (%rdi)
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_decode_len
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function decode_len
_decode_len:                            ; @decode_len
	.cfi_startproc
; %bb.0:
	tbnz	w1, #31, LBB0_6
; %bb.1:
	cbz	x0, LBB0_7
; %bb.2:
	ldr	x9, [x0]
	cmp	w1, #2
	b.eq	LBB0_8
; %bb.3:
	cmp	w1, #1
	b.eq	LBB0_9
; %bb.4:
	cbnz	w1, LBB0_10
; %bb.5:
	ldrb	w8, [x9], #1
	b	LBB0_11
LBB0_6:
	b	_decode_new_len
LBB0_7:
	mov	w0, #-1
	ret
LBB0_8:
	ldr	w8, [x9], #4
	rev	w8, w8
	b	LBB0_11
LBB0_9:
	ldrh	w8, [x9], #2
	rev16	w8, w8
	b	LBB0_11
LBB0_10:
	mov	w8, #-1
LBB0_11:
	str	x9, [x0]
	mov	x0, x8
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_decode_len
.subsections_via_symbols
