	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function asn1_length_decode
_asn1_length_decode:                    ## @asn1_length_decode
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r12
	movq	%rsi, %r15
	movq	%rdi, %r14
	leaq	-33(%rbp), %rsi
	callq	_asn1_octet_decode
	testl	%eax, %eax
	je	LBB0_3
## %bb.1:
	movzbl	-33(%rbp), %eax
	cmpl	$128, %eax
	jne	LBB0_4
## %bb.2:
	movl	$0, (%r15)
	movl	(%r12), %eax
	jmp	LBB0_6
LBB0_4:
	movl	$1, (%r15)
	testb	%al, %al
	js	LBB0_8
## %bb.5:
	movl	%eax, (%r12)
LBB0_6:
	movl	(%r14), %ecx
	subl	4(%r14), %ecx
	cmpl	%ecx, %eax
	setbe	%al
	jmp	LBB0_7
LBB0_8:
	movl	%eax, %ebx
	movl	$0, (%r12)
	andb	$127, %bl
	je	LBB0_12
## %bb.9:
	leaq	-33(%rbp), %r15
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_asn1_octet_decode
	testl	%eax, %eax
	je	LBB0_3
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	movl	(%r12), %ecx
	shll	$8, %ecx
	movzbl	-33(%rbp), %eax
	orl	%ecx, %eax
	movl	%eax, (%r12)
	decb	%bl
	jne	LBB0_10
	jmp	LBB0_6
LBB0_3:
	xorl	%eax, %eax
LBB0_7:
	movzbl	%al, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	xorl	%eax, %eax
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_asn1_length_decode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function asn1_length_decode
_asn1_length_decode:                    ; @asn1_length_decode
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	add	x1, sp, #15
	bl	_asn1_octet_decode
	cbz	w0, LBB0_6
; %bb.1:
	ldrb	w8, [sp, #15]
	cmp	w8, #128
	b.ne	LBB0_3
; %bb.2:
	str	wzr, [x21]
	ldr	w8, [x20]
	b	LBB0_5
LBB0_3:
	mov	w9, #1
	str	w9, [x21]
	tbnz	w8, #7, LBB0_7
; %bb.4:
	str	w8, [x20]
LBB0_5:
	ldp	w9, w10, [x19]
	sub	w9, w9, w10
	cmp	w8, w9
	cset	w0, ls
LBB0_6:
	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
	add	sp, sp, #64
	ret
LBB0_7:
	str	wzr, [x20]
	ands	w21, w8, #0x7f
	b.eq	LBB0_10
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	add	x1, sp, #15
	mov	x0, x19
	bl	_asn1_octet_decode
	cbz	w0, LBB0_6
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	w9, [x20]
	ldrb	w8, [sp, #15]
	bfi	w8, w9, #8, #24
	str	w8, [x20]
	sub	w21, w21, #1
	tst	w21, #0xff
	b.ne	LBB0_8
	b	LBB0_5
LBB0_10:
	mov	w8, #0
	b	LBB0_5
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_asn1_length_decode
.subsections_via_symbols
