	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vc_container_bits_get_leading_zero_bits
_vc_container_bits_get_leading_zero_bits: ## @vc_container_bits_get_leading_zero_bits
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	callq	_vc_container_bits_available
	testl	%eax, %eax
	je	LBB0_13
## %bb.1:
	movl	%eax, %edx
	movl	(%r14), %esi
	xorl	%eax, %eax
	movl	$0, %ebx
	movl	$0, %edi
	testl	%esi, %esi
	je	LBB0_3
## %bb.2:
	movq	8(%r14), %rcx
	movl	(%rcx), %edi
	leal	-1(%rsi), %ecx
	movl	$1, %ebx
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %ebx
LBB0_3:
	testl	%edx, %edx
	jle	LBB0_11
## %bb.4:
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	%edx, %ecx
	testl	%esi, %esi
	jne	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	16(%r14), %edx
	testl	%edx, %edx
	je	LBB0_13
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	decl	%edx
	movl	%edx, 16(%r14)
	movq	8(%r14), %rdx
	leaq	4(%rdx), %rsi
	movq	%rsi, 8(%r14)
	movl	4(%rdx), %edi
	movl	$128, %ebx
	movl	$8, %esi
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=1
	decl	%esi
	testl	%ebx, %edi
	jne	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_5 Depth=1
	leal	-1(%rcx), %edx
	sarl	%ebx
	incl	%eax
	cmpl	%edx, %eax
	jl	LBB0_5
LBB0_10:
	decl	%ecx
	movl	%ecx, %edx
LBB0_11:
	cmpl	%edx, %eax
	jle	LBB0_12
LBB0_13:
	movq	%r14, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_vc_container_bits_invalidate   ## TAILCALL
LBB0_12:
	movl	%esi, (%r14)
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_vc_container_bits_get_leading_zero_bits
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vc_container_bits_get_leading_zero_bits
_vc_container_bits_get_leading_zero_bits: ; @vc_container_bits_get_leading_zero_bits
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	bl	_vc_container_bits_available
	cbz	w0, LBB0_10
; %bb.1:
	ldr	w9, [x19]
	cbz	w9, LBB0_11
; %bb.2:
	ldr	x8, [x19, #8]
	ldr	w10, [x8]
	sub	w8, w9, #1
	mov	w11, #1
	lsl	w11, w11, w8
	cmp	w0, #1
	b.lt	LBB0_12
LBB0_3:
	mov	w8, #0
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	cbnz	w9, LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w9, [x19, #16]
	cbz	w9, LBB0_10
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	sub	w9, w9, #1
	str	w9, [x19, #16]
	ldr	x9, [x19, #8]
	ldr	w10, [x9, #4]!
	str	x9, [x19, #8]
	mov	w11, #128
	mov	w9, #8
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=1
	sub	w9, w9, #1
	sub	w0, w0, #1
	tst	w10, w11
	b.ne	LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	asr	w11, w11, #1
	add	w8, w8, #1
	cmp	w8, w0
	b.lt	LBB0_4
LBB0_9:
	cmp	w8, w0
	b.le	LBB0_13
LBB0_10:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_vc_container_bits_invalidate
LBB0_11:
	mov	w11, #0
	mov	w10, #0
	cmp	w0, #1
	b.ge	LBB0_3
LBB0_12:
	mov	w8, #0
	cmp	w8, w0
	b.gt	LBB0_10
LBB0_13:
	str	w9, [x19]
	mov	x0, x8
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_vc_container_bits_get_leading_zero_bits
.subsections_via_symbols
