	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_bit_length
_get_bit_length:                        ## @get_bit_length
	.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
	movabsq	$-4294967296, %r8               ## imm = 0xFFFFFFFF00000000
	movl	(%rdi), %r14d
	movq	%r14, %rax
	shlq	$32, %rax
	addq	%r8, %rax
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rax, %rdx
	testl	%esi, %esi
	je	LBB0_5
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	testl	%r14d, %r14d
	jle	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	8(%rdi), %rcx
	leaq	-1(%r14), %rbx
	leaq	(%rdx,%r8), %rax
	cmpl	$0, -4(%rcx,%r14,4)
	movq	%rbx, %r14
	je	LBB0_1
## %bb.4:
	incl	%ebx
	movl	%ebx, %r14d
	jmp	LBB0_8
LBB0_5:
	testl	%r14d, %r14d
	je	LBB0_6
## %bb.7:
	movq	8(%rdi), %rcx
LBB0_8:
	movq	_INT_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leal	7(%rax), %esi
	testl	%eax, %eax
	cmovnsl	%eax, %esi
	sarl	$3, %esi
	cmpl	%r14d, %esi
	jge	LBB0_9
## %bb.12:
	movq	_ERANGE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
LBB0_9:
	sarq	$30, %rdx
	movl	(%rcx,%rdx), %edi
	shll	$3, %r14d
	testl	%edi, %edi
	je	LBB0_11
## %bb.10:
	callq	_ff_ctz
	notl	%eax
	addl	%eax, %r14d
	jmp	LBB0_11
LBB0_6:
	xorl	%r14d, %r14d
LBB0_11:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_INT_MAX,4,2                    ## @INT_MAX
	.comm	_ERANGE,4,2                     ## @ERANGE
	.no_dead_strip	_get_bit_length
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_bit_length
_get_bit_length:                        ; @get_bit_length
	.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
	ldr	w8, [x0]
	mov	x11, #-4294967296
	add	x13, x11, x8, lsl #32
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	mov	x9, x13
	cbz	w1, LBB0_5
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	x10, [x0, #8]
	sub	x12, x8, #1
	add	x8, x10, x8, lsl #2
	ldur	w14, [x8, #-4]
	add	x13, x9, x11
	mov	x8, x12
	cbz	w14, LBB0_1
; %bb.4:
	add	w8, w12, #1
	b	LBB0_7
LBB0_5:
	cbz	w8, LBB0_11
; %bb.6:
	ldr	x10, [x0, #8]
LBB0_7:
Lloh0:
	adrp	x11, _INT_MAX@GOTPAGE
Lloh1:
	ldr	x11, [x11, _INT_MAX@GOTPAGEOFF]
Lloh2:
	ldr	w11, [x11]
	add	w12, w11, #7
	cmp	w11, #0
	csel	w11, w12, w11, lt
	cmp	w8, w11, asr #3
	b.le	LBB0_9
; %bb.8:
Lloh3:
	adrp	x8, _ERANGE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ERANGE@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_AVERROR
LBB0_9:
	asr	x9, x9, #30
	ldr	w0, [x10, x9]
	lsl	w19, w8, #3
	cbz	w0, LBB0_12
; %bb.10:
	bl	_ff_ctz
	mvn	w8, w0
	add	w19, w19, w8
	b	LBB0_12
LBB0_11:
	mov	w19, #0
LBB0_12:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_INT_MAX,4,2                    ; @INT_MAX
	.comm	_ERANGE,4,2                     ; @ERANGE
	.no_dead_strip	_get_bit_length
.subsections_via_symbols
