	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function der_encode_length
_der_encode_length:                     ## @der_encode_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
	movq	%rsi, %r14
	movq	%rdi, %rbx
	xorl	%edi, %edi
	cmpq	$32768, %rbx                    ## imm = 0x8000
	setb	%dil
	callq	_OPENSSL_assert
	cmpq	$255, %rbx
	jbe	LBB0_1
## %bb.4:
	movl	$3, %eax
	testq	%r14, %r14
	je	LBB0_7
## %bb.5:
	movq	(%r14), %rcx
	leaq	1(%rcx), %rdx
	movq	%rdx, (%r14)
	movb	$2, (%rcx)
	movq	%rbx, %rcx
	shrq	$8, %rcx
	orb	$-128, %cl
	movq	(%r14), %rdx
	leaq	1(%rdx), %rsi
	movq	%rsi, (%r14)
	movb	%cl, (%rdx)
	movq	(%r14), %rcx
	leaq	1(%rcx), %rdx
	movq	%rdx, (%r14)
	movb	%bl, (%rcx)
	jmp	LBB0_7
LBB0_1:
	xorl	%eax, %eax
	cmpq	$127, %rbx
	seta	%al
	incq	%rax
	testq	%r14, %r14
	je	LBB0_7
## %bb.2:
	cmpq	$127, %rbx
	jbe	LBB0_3
## %bb.6:
	decb	%al
	movq	(%r14), %rcx
	leaq	1(%rcx), %rdx
	movq	%rdx, (%r14)
	movb	%al, (%rcx)
	orb	$-128, %bl
	movq	(%r14), %rax
	leaq	1(%rax), %rcx
	movq	%rcx, (%r14)
	movb	%bl, (%rax)
	movl	$2, %eax
	jmp	LBB0_7
LBB0_3:
	movq	(%r14), %rax
	leaq	1(%rax), %rcx
	movq	%rcx, (%r14)
	movb	%bl, (%rax)
	movl	$1, %eax
LBB0_7:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_der_encode_length
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function der_encode_length
_der_encode_length:                     ; @der_encode_length
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x1
	mov	x19, x0
	cmp	x0, #8, lsl #12                 ; =32768
	cset	w0, lo
	bl	_OPENSSL_assert
	cmp	x19, #255
	b.ls	LBB0_3
; %bb.1:
	cbz	x20, LBB0_6
; %bb.2:
	ldr	x8, [x20]
	add	x9, x8, #1
	str	x9, [x20]
	mov	w9, #2
	strb	w9, [x8]
	ubfx	x8, x19, #8, #24
	orr	w8, w8, #0x80
	ldr	x9, [x20]
	add	x10, x9, #1
	str	x10, [x20]
	strb	w8, [x9]
	ldr	x8, [x20]
	add	x9, x8, #1
	str	x9, [x20]
	strb	w19, [x8]
	mov	w0, #3
	b	LBB0_8
LBB0_3:
	cmp	x19, #127
	mov	w8, #1
	cinc	x0, x8, hi
	cbz	x20, LBB0_8
; %bb.4:
	cmp	x19, #127
	b.ls	LBB0_7
; %bb.5:
	sub	w8, w0, #1
	ldr	x9, [x20]
	add	x10, x9, #1
	str	x10, [x20]
	strb	w8, [x9]
	orr	w8, w19, #0x80
	ldr	x9, [x20]
	add	x10, x9, #1
	str	x10, [x20]
	strb	w8, [x9]
	mov	w0, #2
	b	LBB0_8
LBB0_6:
	mov	w0, #3
	b	LBB0_8
LBB0_7:
	ldr	x8, [x20]
	add	x9, x8, #1
	str	x9, [x20]
	strb	w19, [x8]
	mov	w0, #1
LBB0_8:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_der_encode_length
.subsections_via_symbols
