	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function calclens
_calclens:                              ## @calclens
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_dlen@GOTPCREL(%rip), %r15
	movl	$5, (%r15)
	movq	_kvnsw@GOTPCREL(%rip), %r14
	movl	(%r14), %eax
	testl	%eax, %eax
	jle	LBB0_5
## %bb.1:
	xorl	%ebx, %ebx
	movq	_kvmsw@GOTPCREL(%rip), %r12
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%rbx
	movslq	(%r14), %rax
	cmpq	%rax, %rbx
	jge	LBB0_5
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rax
	movl	4(%rax,%rbx,8), %edi
	callq	_strlen
	cmpl	%eax, (%r15)
	jge	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%eax, (%r15)
	jmp	LBB0_4
LBB0_5:
	cltq
	movq	_ulen@GOTPCREL(%rip), %rbx
	movl	$5, (%rbx)
	movq	_kvmsw@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rcx,%rax,8), %edi
	callq	_CONVERT
                                        ## kill: def $eax killed $eax def $rax
	leal	9(%rax), %edx
	movl	$2, %ecx
	cmpl	$19, %edx
	jb	LBB0_8
## %bb.6:
	movl	$2, %ecx
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	cltq
	imulq	$1717986919, %rax, %rdx         ## imm = 0x66666667
	movq	%rdx, %rsi
	shrq	$63, %rsi
	sarq	$34, %rdx
	leal	(%rdx,%rsi), %eax
	incl	%ecx
	addl	%esi, %edx
	addl	$9, %edx
	cmpl	$18, %edx
	ja	LBB0_7
LBB0_8:
	cmpl	%ecx, (%rbx)
	jge	LBB0_10
## %bb.9:
	movl	%ecx, (%rbx)
LBB0_10:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_dlen,4,2                       ## @dlen
	.comm	_kvnsw,4,2                      ## @kvnsw
	.comm	_kvmsw,8,3                      ## @kvmsw
	.comm	_ulen,4,2                       ## @ulen
	.no_dead_strip	_calclens
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function calclens
_calclens:                              ; @calclens
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
Lloh0:
	adrp	x19, _dlen@GOTPAGE
Lloh1:
	ldr	x19, [x19, _dlen@GOTPAGEOFF]
	mov	w20, #5
	str	w20, [x19]
Lloh2:
	adrp	x22, _kvnsw@GOTPAGE
Lloh3:
	ldr	x22, [x22, _kvnsw@GOTPAGEOFF]
	ldr	w8, [x22]
Lloh4:
	adrp	x21, _kvmsw@GOTPAGE
Lloh5:
	ldr	x21, [x21, _kvmsw@GOTPAGEOFF]
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.1:
	mov	x23, #0
	mov	w24, #4
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x23, x23, #1
	ldrsw	x8, [x22]
	add	x24, x24, #8
	cmp	x23, x8
	b.ge	LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21]
	ldr	w0, [x8, x24]
	bl	_strlen
	ldr	w8, [x19]
	cmp	w8, w0
	b.ge	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	str	w0, [x19]
	b	LBB0_2
LBB0_5:
                                        ; kill: def $w8 killed $w8 killed $x8 def $x8
LBB0_6:
Lloh6:
	adrp	x19, _ulen@GOTPAGE
Lloh7:
	ldr	x19, [x19, _ulen@GOTPAGEOFF]
	str	w20, [x19]
	ldr	x9, [x21]
	sbfiz	x8, x8, #3, #32
	ldr	w0, [x9, x8]
	bl	_CONVERT
	add	w8, w0, #9
	cmp	w8, #19
	b.hs	LBB0_8
; %bb.7:
	mov	w8, #2
	b	LBB0_10
LBB0_8:
	mov	w8, #2
	mov	w9, #26215
	movk	w9, #26214, lsl #16
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	smull	x10, w0, w9
	lsr	x11, x10, #63
	asr	x10, x10, #34
	add	w0, w10, w11
	add	w8, w8, #1
	add	w10, w0, #9
	cmp	w10, #18
	b.hi	LBB0_9
LBB0_10:
	ldr	w9, [x19]
	cmp	w9, w8
	b.ge	LBB0_12
; %bb.11:
	str	w8, [x19]
LBB0_12:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_dlen,4,2                       ; @dlen
	.comm	_kvnsw,4,2                      ; @kvnsw
	.comm	_kvmsw,8,3                      ; @kvmsw
	.comm	_ulen,4,2                       ; @ulen
	.no_dead_strip	_calclens
.subsections_via_symbols
