	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function der_read_length
_der_read_length:                       ## @der_read_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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	(%rsi), %r14d
	movl	$-1, %eax
	testl	%r14d, %r14d
	jle	LBB0_14
## %bb.1:
	movq	(%rdi), %r11
	leaq	1(%r11), %r10
	movq	%r10, (%rdi)
	movzbl	(%r11), %r9d
	leal	-1(%r14), %r8d
	movl	%r8d, (%rsi)
	testb	$-128, %r9b
	jne	LBB0_3
## %bb.2:
	movl	%r9d, %eax
LBB0_14:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_3:
	movl	%r9d, %ecx
	andl	$127, %ecx
	leal	-2(%r14), %ebx
	cmpl	%ecx, %ebx
	jl	LBB0_14
## %bb.4:
	movq	_SIZEOF_INT@GOTPCREL(%rip), %rbx
	cmpb	(%rbx), %cl
	ja	LBB0_14
## %bb.5:
	testb	%cl, %cl
	je	LBB0_6
## %bb.7:
	andb	$1, %r9b
	cmpb	$1, %cl
	jne	LBB0_9
## %bb.8:
	xorl	%edx, %edx
                                        ## implicit-def: $eax
	testb	%r9b, %r9b
	je	LBB0_14
	jmp	LBB0_13
LBB0_6:
	xorl	%eax, %eax
	jmp	LBB0_14
LBB0_9:
	subb	%r9b, %cl
	addl	$-3, %r14d
	movzbl	%cl, %r10d
	xorl	%ecx, %ecx
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	leaq	(%r11,%rcx), %rbx
	addq	$2, %rbx
	movq	%rbx, (%rdi)
	movzbl	1(%r11,%rcx), %ebx
	leal	1(%r14), %edx
	movl	%edx, (%rsi)
	shll	$16, %eax
	shll	$8, %ebx
	orl	%eax, %ebx
	leaq	(%r11,%rcx), %rax
	addq	$3, %rax
	movq	%rax, (%rdi)
	movzbl	2(%r11,%rcx), %eax
	orl	%ebx, %eax
	movl	%r14d, (%rsi)
	addq	$2, %rcx
	addl	$-2, %r14d
	cmpb	%cl, %r10b
	jne	LBB0_10
## %bb.11:
	movl	%eax, %edx
	shll	$8, %edx
	subl	%ecx, %r8d
	leaq	(%r11,%rcx), %r10
	incq	%r10
	testb	%r9b, %r9b
	je	LBB0_14
LBB0_13:
	leaq	1(%r10), %rax
	movq	%rax, (%rdi)
	movzbl	(%r10), %eax
	orl	%eax, %edx
	decl	%r8d
	movl	%r8d, (%rsi)
	movl	%edx, %eax
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_SIZEOF_INT,1,0                 ## @SIZEOF_INT
	.no_dead_strip	_der_read_length
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function der_read_length
_der_read_length:                       ; @der_read_length
	.cfi_startproc
; %bb.0:
	ldr	w10, [x1]
	subs	w9, w10, #1
	b.lt	LBB0_3
; %bb.1:
	ldr	x11, [x0]
	add	x8, x11, #1
	str	x8, [x0]
	ldrb	w8, [x11]
	str	w9, [x1]
	tbz	w8, #7, LBB0_7
; %bb.2:
	and	w9, w8, #0x7f
	sub	w10, w10, #2
Lloh0:
	adrp	x8, _SIZEOF_INT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SIZEOF_INT@GOTPAGEOFF]
	ldrb	w8, [x8]
	cmp	w10, w9
	ccmp	w9, w8, #2, ge
	b.ls	LBB0_4
LBB0_3:
	mov	w0, #-1
	ret
LBB0_4:
	cbz	w9, LBB0_8
; %bb.5:
	mov	w12, #0
	add	x11, x11, #2
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	str	x11, [x0]
	ldurb	w8, [x11, #-1]
	bfi	w8, w12, #8, #24
	sub	w9, w9, #1
	str	w10, [x1]
	sub	w10, w10, #1
	add	x11, x11, #1
	mov	x12, x8
	and	w13, w9, #0xff
	cbnz	w13, LBB0_6
LBB0_7:
	mov	x0, x8
	ret
LBB0_8:
	mov	w0, #0
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_SIZEOF_INT,1,0                 ; @SIZEOF_INT
	.no_dead_strip	_der_read_length
.subsections_via_symbols
