	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_der_get_length                 ## -- Begin function der_get_length
	.p2align	4, 0x90
_der_get_length:                        ## @der_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	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	testq	%rsi, %rsi
	je	LBB0_8
## %bb.1:
	movq	%rcx, %r14
	movq	%rdx, %rbx
	movq	%rsi, %rax
	movzbl	(%rdi), %esi
	testb	%sil, %sil
	js	LBB0_5
## %bb.2:
	movq	%rsi, (%rbx)
	jmp	LBB0_3
LBB0_5:
	cmpb	$-128, %sil
	jne	LBB0_7
## %bb.6:
	movq	_ASN1_INDEFINITE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%rbx)
LBB0_3:
	xorl	%eax, %eax
	testq	%r14, %r14
	je	LBB0_9
## %bb.4:
	movq	$1, (%r14)
	jmp	LBB0_9
LBB0_7:
	decq	%rax
	andl	$127, %esi
	cmpq	%rsi, %rax
	jae	LBB0_10
LBB0_8:
	movq	_ASN1_OVERRUN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_9:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_10:
	incq	%rdi
	leaq	-20(%rbp), %rdx
	leaq	-32(%rbp), %rcx
	callq	_der_get_unsigned
	testl	%eax, %eax
	jne	LBB0_9
## %bb.11:
	movl	-20(%rbp), %eax
	movq	%rax, (%rbx)
	testq	%r14, %r14
	je	LBB0_13
## %bb.12:
	movq	-32(%rbp), %rax
	incq	%rax
	movq	%rax, (%r14)
LBB0_13:
	xorl	%eax, %eax
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_ASN1_OVERRUN,4,2               ## @ASN1_OVERRUN
	.comm	_ASN1_INDEFINITE,8,3            ## @ASN1_INDEFINITE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_der_get_length                 ; -- Begin function der_get_length
	.p2align	2
_der_get_length:                        ; @der_get_length
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	cbz	x1, LBB0_8
; %bb.1:
	mov	x19, x3
	mov	x20, x2
	ldrsb	w9, [x0], #1
	and	x8, x9, #0xff
	tbnz	w9, #31, LBB0_4
; %bb.2:
	str	x8, [x20]
	cbz	x19, LBB0_12
; %bb.3:
	mov	w0, #0
	b	LBB0_6
LBB0_4:
	cmp	w8, #128
	b.ne	LBB0_7
; %bb.5:
Lloh0:
	adrp	x8, _ASN1_INDEFINITE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ASN1_INDEFINITE@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [x20]
	mov	w0, #0
	cbz	x19, LBB0_13
LBB0_6:
	mov	w8, #1
	str	x8, [x19]
	b	LBB0_13
LBB0_7:
	sub	x9, x1, #1
	and	x1, x8, #0x7f
	cmp	x9, x1
	b.hs	LBB0_9
LBB0_8:
Lloh3:
	adrp	x8, _ASN1_OVERRUN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ASN1_OVERRUN@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	b	LBB0_13
LBB0_9:
	add	x2, sp, #4
	add	x3, sp, #8
	bl	_der_get_unsigned
	cbnz	w0, LBB0_13
; %bb.10:
	ldr	w8, [sp, #4]
	str	x8, [x20]
	cbz	x19, LBB0_12
; %bb.11:
	ldr	x8, [sp, #8]
	add	x8, x8, #1
	str	x8, [x19]
LBB0_12:
	mov	w0, #0
LBB0_13:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_ASN1_OVERRUN,4,2               ; @ASN1_OVERRUN
	.comm	_ASN1_INDEFINITE,8,3            ; @ASN1_INDEFINITE
.subsections_via_symbols
