	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bits2int
_bits2int:                              ## @bits2int
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movl	%edx, %ebx
	movq	%rsi, %r13
	movq	%rdi, %r12
	movl	(%rcx), %edi
	callq	_BITS_TO_BYTES
	movl	%eax, %r15d
	movl	(%r14), %edi
	callq	_BITS_TO_WORDS
	cmpl	%ebx, %r15d
	cmovbl	%r15d, %ebx
	movl	%eax, %r15d
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_uECC_vli_clear
	movq	%r12, %rdi
	movq	%r13, %rsi
	movl	%ebx, %edx
	callq	_uECC_vli_bytesToNative
	shll	$3, %ebx
	subl	(%r14), %ebx
	jbe	LBB0_5
## %bb.1:
	testl	%r15d, %r15d
	je	LBB0_4
## %bb.2:
	movl	%r15d, %eax
	leaq	(%r12,%rax,4), %rdx
	xorl	%eax, %eax
	movq	_uECC_WORD_BITS@GOTPCREL(%rip), %r8
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	-4(%rdx), %esi
	movl	%esi, %edi
	movl	%ebx, %ecx
	sarl	%cl, %edi
	orl	%eax, %edi
	movl	%edi, -4(%rdx)
	leaq	-4(%rdx), %rdi
	movl	(%r8), %ecx
	subl	%ebx, %ecx
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %esi
	movq	%rdi, %rdx
	movl	%esi, %eax
	cmpq	%r12, %rdi
	ja	LBB0_3
LBB0_4:
	movl	4(%r14), %edi
	movq	%r12, %rsi
	movl	%r15d, %edx
	callq	_uECC_vli_cmp_unsafe
	cmpl	$1, %eax
	jne	LBB0_6
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movl	4(%r14), %edx
	movq	%r12, %rdi
	movq	%r12, %rsi
	movl	%r15d, %ecx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_uECC_vli_sub                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_uECC_WORD_BITS,4,2             ## @uECC_WORD_BITS
	.no_dead_strip	_bits2int
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bits2int
_bits2int:                              ; @bits2int
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x3
	mov	x22, x2
	mov	x23, x1
	mov	x20, x0
	ldr	w0, [x3]
	bl	_BITS_TO_BYTES
	mov	x24, x0
	ldr	w0, [x19]
	bl	_BITS_TO_WORDS
	mov	x21, x0
	cmp	w24, w22
	csel	w22, w24, w22, lo
	mov	x0, x20
	mov	x1, x21
	bl	_uECC_vli_clear
	mov	x0, x20
	mov	x1, x23
	mov	x2, x22
	bl	_uECC_vli_bytesToNative
	lsl	w8, w22, #3
	ldr	w9, [x19]
	subs	w8, w8, w9
	b.ls	LBB0_5
; %bb.1:
	cbz	w21, LBB0_4
; %bb.2:
	mov	w10, #0
	add	x9, x20, w21, uxtw #2
Lloh0:
	adrp	x11, _uECC_WORD_BITS@GOTPAGE
Lloh1:
	ldr	x11, [x11, _uECC_WORD_BITS@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w12, [x9, #-4]!
	asr	w13, w12, w8
	orr	w10, w13, w10
	str	w10, [x9]
	ldr	w10, [x11]
	sub	w10, w10, w8
	lsl	w10, w12, w10
	cmp	x9, x20
	b.hi	LBB0_3
LBB0_4:
	ldr	w0, [x19, #4]
	mov	x1, x20
	mov	x2, x21
	bl	_uECC_vli_cmp_unsafe
	cmp	w0, #1
	b.ne	LBB0_6
LBB0_5:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_6:
	ldr	w2, [x19, #4]
	mov	x0, x20
	mov	x1, x20
	mov	x3, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_uECC_vli_sub
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_uECC_WORD_BITS,4,2             ; @uECC_WORD_BITS
	.no_dead_strip	_bits2int
.subsections_via_symbols
