	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function asn1_get_length
_asn1_get_length:                       ## @asn1_get_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	%r15
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	xorl	%eax, %eax
	testq	%rcx, %rcx
	jle	LBB0_25
## %bb.1:
	movq	(%rdi), %r9
	cmpb	$-128, (%r9)
	jne	LBB0_3
## %bb.2:
	movl	$1, (%rsi)
	incq	%r9
	xorl	%r10d, %r10d
	movq	%r9, %r8
	jmp	LBB0_24
LBB0_3:
	movl	$0, (%rsi)
	movzbl	(%r9), %ebx
	movl	%ebx, %r10d
	andl	$127, %r10d
	leaq	1(%r9), %r8
	testb	$-128, %bl
	jne	LBB0_4
## %bb.23:
	movl	%r10d, %r10d
LBB0_24:
	movq	%r8, (%rdi)
	movq	%r10, (%rdx)
	movl	$1, %eax
LBB0_25:
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	%r10, %rsi
	incq	%rsi
	cmpq	%rcx, %rsi
	jae	LBB0_25
## %bb.5:
	testl	%r10d, %r10d
	je	LBB0_6
## %bb.7:
	leal	-1(%r10), %eax
	addq	%r9, %rax
	addq	$2, %rax
	movzbl	%bl, %r11d
	andl	$127, %r11d
	xorl	%r10d, %r10d
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	cmpb	$0, (%r8,%rcx)
	jne	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	addb	$3, %bl
	incq	%rcx
	cmpl	%ecx, %r11d
	jne	LBB0_8
## %bb.10:
	movq	%rax, %r8
	jmp	LBB0_24
LBB0_6:
	xorl	%r10d, %r10d
	jmp	LBB0_24
LBB0_11:
	movq	%r11, %r9
	subq	%rcx, %r9
	xorl	%eax, %eax
	cmpl	$8, %r9d
	ja	LBB0_25
## %bb.12:
	leaq	(%r8,%rcx), %rax
	cmpl	%ecx, %r11d
	jne	LBB0_14
## %bb.13:
	xorl	%r10d, %r10d
	movq	%rax, %r8
	jmp	LBB0_24
LBB0_14:
	movl	%ecx, %esi
	notl	%esi
	addl	%r11d, %esi
	cmpl	$3, %esi
	jae	LBB0_16
## %bb.15:
	xorl	%r10d, %r10d
                                        ## implicit-def: $r8
	jmp	LBB0_19
LBB0_16:
	movq	%r9, %r11
	andq	$-4, %r11
	xorl	%r15d, %r15d
	xorl	%r10d, %r10d
LBB0_17:                                ## =>This Inner Loop Header: Depth=1
	leaq	(%r8,%r15), %r14
	movzbl	(%rcx,%r14), %esi
	shlq	$16, %r10
	shlq	$8, %rsi
	orq	%r10, %rsi
	movzbl	1(%rcx,%r14), %eax
	orq	%rsi, %rax
	movzbl	2(%rcx,%r14), %esi
	shlq	$16, %rax
	shlq	$8, %rsi
	orq	%rax, %rsi
	movzbl	3(%rcx,%r14), %r10d
	orq	%rsi, %r10
	addq	$4, %r15
	cmpl	%r15d, %r11d
	jne	LBB0_17
## %bb.18:
	addq	%rcx, %r8
	addq	%r15, %r8
	movq	%r8, %rax
LBB0_19:
	testb	$3, %r9b
	je	LBB0_22
## %bb.20:
	movzbl	%bl, %ecx
	andl	$3, %ecx
	movq	%rax, %r8
LBB0_21:                                ## =>This Inner Loop Header: Depth=1
	shlq	$8, %r10
	movzbl	(%r8), %eax
	incq	%r8
	orq	%rax, %r10
	decl	%ecx
	jne	LBB0_21
LBB0_22:
	movq	_LONG_MAX@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	cmpq	(%rcx), %r10
	jbe	LBB0_24
	jmp	LBB0_25
	.cfi_endproc
                                        ## -- End function
	.comm	_LONG_MAX,8,3                   ## @LONG_MAX
	.no_dead_strip	_asn1_get_length
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function asn1_get_length
_asn1_get_length:                       ; @asn1_get_length
	.cfi_startproc
; %bb.0:
	cmp	x3, #1
	b.lt	LBB0_16
; %bb.1:
	ldr	x10, [x0]
	ldrb	w8, [x10]
	cmp	w8, #128
	b.ne	LBB0_3
; %bb.2:
	mov	x9, #0
	mov	w8, #1
	str	w8, [x1]
	add	x8, x10, #1
	b	LBB0_4
LBB0_3:
	str	wzr, [x1]
	mov	x8, x10
	ldrb	w11, [x8], #1
	and	x9, x11, #0x7f
	tbnz	w11, #7, LBB0_5
LBB0_4:
	str	x8, [x0]
	str	x9, [x2]
	mov	w0, #1
	ret
LBB0_5:
	add	w11, w9, #1
	cmp	x11, x3
	b.hs	LBB0_16
; %bb.6:
	cbz	w9, LBB0_17
; %bb.7:
	sub	w11, w9, #1
	add	x10, x11, x10
	add	x10, x10, #2
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w11, [x8]
	cbnz	w11, LBB0_11
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	add	x8, x8, #1
	subs	w9, w9, #1
	b.ne	LBB0_8
; %bb.10:
	mov	x9, #0
	mov	x8, x10
	b	LBB0_4
LBB0_11:
	cmp	w9, #8
	b.hi	LBB0_16
; %bb.12:
	cbz	w9, LBB0_17
; %bb.13:
	add	w10, w9, #1
	mov	x9, #0
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	mov	x11, x9
	ldrb	w9, [x8], #1
	bfi	x9, x11, #8, #56
	sub	w10, w10, #1
	cmp	w10, #1
	b.hi	LBB0_14
; %bb.15:
Lloh0:
	adrp	x10, _LONG_MAX@GOTPAGE
Lloh1:
	ldr	x10, [x10, _LONG_MAX@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ls	LBB0_4
LBB0_16:
	mov	w0, #0
	ret
LBB0_17:
	mov	x9, #0
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_LONG_MAX,8,3                   ; @LONG_MAX
	.no_dead_strip	_asn1_get_length
.subsections_via_symbols
