	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function llhuf_check_codes_lengths
_llhuf_check_codes_lengths:             ## @llhuf_check_codes_lengths
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	xorl	%eax, %eax
	testl	%esi, %esi
	jle	LBB0_7
## %bb.1:
	movl	%esi, %r9d
	xorl	%edx, %edx
	xorl	%r10d, %r10d
	xorl	%r8d, %r8d
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_4 Depth=1
	incl	%r8d
LBB0_3:                                 ##   in Loop: Header=BB0_4 Depth=1
	incq	%rdx
	cmpq	%rdx, %r9
	je	LBB0_8
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rdi,%rdx,4), %ecx
	testq	%rcx, %rcx
	je	LBB0_2
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpl	$31, %ecx
	ja	LBB0_11
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	addq	$32, %rcx
	negq	%rcx
	movl	$1, %r11d
                                        ## kill: def $cl killed $cl killed $rcx
	shlq	%cl, %r11
	addq	%r11, %r10
	jmp	LBB0_3
LBB0_7:
	xorl	%r8d, %r8d
	xorl	%r10d, %r10d
LBB0_8:
	decl	%esi
	cmpl	%esi, %r8d
	je	LBB0_10
## %bb.9:
	movabsq	$4294967297, %rax               ## imm = 0x100000001
	xorl	%ecx, %ecx
	cmpq	%rax, %r10
	setb	%cl
	leal	(%rcx,%rcx), %eax
	addl	$-2, %eax
LBB0_10:
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbp
	retq
LBB0_11:
	movl	$-1, %eax
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_llhuf_check_codes_lengths
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function llhuf_check_codes_lengths
_llhuf_check_codes_lengths:             ; @llhuf_check_codes_lengths
	.cfi_startproc
; %bb.0:
	subs	w8, w1, #1
	b.lt	LBB0_7
; %bb.1:
	mov	x10, #0
	mov	w9, #0
	mov	w11, #32
	mov	w12, #1
	mov	w13, w1
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	w9, w9, #1
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x0, x0, #4
	subs	x13, x13, #1
	b.eq	LBB0_8
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w14, [x0]
	cbz	w14, LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	w14, #31
	b.hi	LBB0_9
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	sub	x14, x11, x14
	lsl	x14, x12, x14
	add	x10, x10, x14
	b	LBB0_3
LBB0_7:
	mov	w9, #0
	mov	x10, #0
LBB0_8:
	mov	x11, #4294967296
	cmp	x10, x11
	mov	w10, #-2
	csel	w10, w10, wzr, hi
	cmp	w9, w8
	csel	w0, wzr, w10, eq
	ret
LBB0_9:
	mov	w0, #-1
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_llhuf_check_codes_lengths
.subsections_via_symbols
