	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function asn_put_len
_asn_put_len:                           ## @asn_put_len
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movl	%esi, %edx
	movq	_ASN_MAXLEN@GOTPCREL(%rip), %rax
	cmpl	%esi, (%rax)
	jge	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	xorl	%ebx, %ebx
	xorl	%edi, %edi
	callq	_asn_error
	jmp	LBB0_11
LBB0_2:
	cmpl	$128, %edx
	jge	LBB0_3
## %bb.9:
	movl	$1, %ebx
	testq	%rdi, %rdi
	je	LBB0_11
## %bb.10:
	movl	%edx, (%rdi)
	jmp	LBB0_11
LBB0_3:
	movq	$-1, %rbx
	movl	%edx, %ecx
	movl	%edx, %eax
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	sarl	$8, %eax
	incq	%rbx
	cmpl	$255, %ecx
	movl	%eax, %ecx
	ja	LBB0_4
## %bb.5:
	testq	%rdi, %rdi
	je	LBB0_8
## %bb.6:
	leaq	1(%rbx), %rax
	orl	$128, %eax
	movl	%eax, (%rdi)
	movq	%rbx, %rax
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	%dl, %ecx
	movl	%eax, %esi
	movl	%ecx, 4(%rdi,%rsi,4)
	sarl	$8, %edx
	decq	%rax
	leal	2(%rax), %ecx
	cmpl	$1, %ecx
	jg	LBB0_7
LBB0_8:
	addl	$2, %ebx
LBB0_11:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ASN_MAXLEN,4,2                 ## @ASN_MAXLEN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"encoding length too long: (%u)"

	.no_dead_strip	_asn_put_len
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function asn_put_len
_asn_put_len:                           ; @asn_put_len
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	mov	x2, x1
Lloh0:
	adrp	x8, _ASN_MAXLEN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ASN_MAXLEN@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w1
	b.ge	LBB0_2
; %bb.1:
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, #0
	bl	_asn_error
	mov	w0, #0
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_2:
	cmp	w2, #128
	b.ge	LBB0_6
; %bb.3:
	cbz	x0, LBB0_5
; %bb.4:
	str	w2, [x0]
LBB0_5:
	mov	w0, #1
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_6:
	mov	x8, #-1
	mov	x9, x2
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	asr	w10, w9, #8
	add	x8, x8, #1
	cmp	w9, #255
	mov	x9, x10
	b.hi	LBB0_7
; %bb.8:
	cbz	x0, LBB0_11
; %bb.9:
	add	x9, x8, #1
	orr	w9, w9, #0x80
	str	w9, [x0], #4
	mov	x9, x8
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	and	w10, w2, #0xff
	str	w10, [x0, w9, uxtw #2]
	asr	w2, w2, #8
	sub	x9, x9, #1
	add	w10, w9, #2
	cmp	w10, #1
	b.gt	LBB0_10
LBB0_11:
	add	w0, w8, #2
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_ASN_MAXLEN,4,2                 ; @ASN_MAXLEN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"encoding length too long: (%u)"

	.no_dead_strip	_asn_put_len
.subsections_via_symbols
