	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_asn1_bitstring_len             ## -- Begin function asn1_bitstring_len
	.p2align	4, 0x90
_asn1_bitstring_len:                    ## @asn1_bitstring_len
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movslq	(%rdi), %rax
	leaq	-1(%rax), %rcx
	movq	8(%rdi), %r8
	testq	%rax, %rax
	jle	LBB0_6
## %bb.1:
	addq	%r8, %rcx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpb	$0, (%rcx)
	jne	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	decq	%rcx
	leal	-1(%rax), %edi
	cmpl	$1, %eax
	movl	%edi, %eax
	jg	LBB0_2
## %bb.4:
	xorl	%eax, %eax
LBB0_5:
	leal	-1(%rax), %ecx
	movslq	%ecx, %rcx
LBB0_6:
	movzbl	(%r8,%rcx), %ecx
	xorl	%edi, %edi
	testb	$1, %cl
	jne	LBB0_14
## %bb.7:
	movl	$1, %edi
	testb	$2, %cl
	jne	LBB0_14
## %bb.8:
	movl	$2, %edi
	testb	$4, %cl
	jne	LBB0_14
## %bb.9:
	movl	$3, %edi
	testb	$8, %cl
	jne	LBB0_14
## %bb.10:
	movl	$4, %edi
	testb	$16, %cl
	jne	LBB0_14
## %bb.11:
	movl	$5, %edi
	testb	$32, %cl
	jne	LBB0_14
## %bb.12:
	movl	$6, %edi
	testb	$64, %cl
	jne	LBB0_14
## %bb.13:
	andl	$-128, %ecx
	xorl	%edi, %edi
	cmpl	$1, %ecx
	adcl	$7, %edi
LBB0_14:
	movl	%eax, (%rsi)
	movl	%edi, (%rdx)
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_asn1_bitstring_len             ; -- Begin function asn1_bitstring_len
	.p2align	2
_asn1_bitstring_len:                    ; @asn1_bitstring_len
	.cfi_startproc
; %bb.0:
	ldrsw	x8, [x0]
	ldr	x9, [x0, #8]
	sub	x10, x8, #1
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.1:
	add	x10, x9, x10
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w11, [x10]
	cbnz	w11, LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	sub	x10, x10, #1
	subs	w8, w8, #1
	b.gt	LBB0_2
; %bb.4:
	mov	w8, #0
LBB0_5:
	sub	w10, w8, #1
	sxtw	x10, w10
LBB0_6:
	ldrb	w9, [x9, x10]
	tbnz	w9, #0, LBB0_14
; %bb.7:
	tbnz	w9, #1, LBB0_15
; %bb.8:
	tbnz	w9, #2, LBB0_16
; %bb.9:
	tbnz	w9, #3, LBB0_17
; %bb.10:
	tbnz	w9, #4, LBB0_18
; %bb.11:
	tbnz	w9, #5, LBB0_19
; %bb.12:
	tbnz	w9, #6, LBB0_20
; %bb.13:
	tst	w9, #0x80
	mov	w9, #7
	cinc	w9, w9, eq
	b	LBB0_21
LBB0_14:
	mov	w9, #0
	b	LBB0_21
LBB0_15:
	mov	w9, #1
	b	LBB0_21
LBB0_16:
	mov	w9, #2
	b	LBB0_21
LBB0_17:
	mov	w9, #3
	b	LBB0_21
LBB0_18:
	mov	w9, #4
	b	LBB0_21
LBB0_19:
	mov	w9, #5
	b	LBB0_21
LBB0_20:
	mov	w9, #6
LBB0_21:
	str	w8, [x1]
	str	w9, [x2]
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
