	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sdssplitlen                    ## -- Begin function sdssplitlen
	.p2align	4, 0x90
_sdssplitlen:                           ## @sdssplitlen
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, -88(%rbp)                 ## 8-byte Spill
	xorl	%r12d, %r12d
	testl	%esi, %esi
	js	LBB0_28
## %bb.1:
	movl	%ecx, %r14d
	testl	%ecx, %ecx
	jle	LBB0_28
## %bb.2:
	movq	%r8, %r13
	movl	%esi, %ebx
	movq	%rdi, %r15
	movl	$40, %edi
	callq	_s_malloc
	xorl	%edx, %edx
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %r12
	testl	%ebx, %ebx
	je	LBB0_27
## %bb.5:
	movq	%r15, -80(%rbp)                 ## 8-byte Spill
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	movq	%r13, -64(%rbp)                 ## 8-byte Spill
	movl	%ebx, -68(%rbp)                 ## 4-byte Spill
	subl	%r14d, %ebx
	incl	%ebx
	movl	%ebx, -72(%rbp)                 ## 4-byte Spill
	testl	%ebx, %ebx
	jle	LBB0_6
## %bb.7:
	movl	$5, %ebx
	xorl	%r12d, %r12d
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	xorl	%edx, %edx
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_8 Depth=1
	addq	%rbx, %rdi
	movq	-88(%rbp), %rsi                 ## 8-byte Reload
	movl	%r14d, %edx
	callq	_memcmp
	testq	%rax, %rax
	je	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	%r13, %rdx
LBB0_20:                                ##   in Loop: Header=BB0_8 Depth=1
	incl	%r12d
	cmpl	-72(%rbp), %r12d                ## 4-byte Folded Reload
	movl	%r15d, %ebx
	jge	LBB0_21
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rdx, %r13
	leal	2(%rdx), %eax
	cmpl	%eax, %ebx
	jge	LBB0_9
## %bb.10:                              ##   in Loop: Header=BB0_8 Depth=1
	movl	%ebx, %esi
	shll	$4, %esi
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	callq	_s_realloc
	testq	%rax, %rax
	je	LBB0_11
## %bb.12:                              ##   in Loop: Header=BB0_8 Depth=1
	addl	%ebx, %ebx
	movl	%ebx, %r15d
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_8 Depth=1
	movl	%ebx, %r15d
LBB0_13:                                ##   in Loop: Header=BB0_8 Depth=1
	movslq	%r12d, %rdi
	cmpl	$1, %r14d
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	jne	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_8 Depth=1
	movzbl	(%rbx,%rdi), %eax
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	cmpb	(%rcx), %al
	jne	LBB0_15
LBB0_17:                                ##   in Loop: Header=BB0_8 Depth=1
	movslq	-44(%rbp), %rax                 ## 4-byte Folded Reload
	leaq	(%rbx,%rax), %rdi
	movl	%r12d, %esi
	subl	%eax, %esi
	callq	_sdsnewlen
	movq	%r13, %rdx
	movslq	%edx, %rcx
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movq	%rax, (%rsi,%rcx,8)
	testq	%rax, %rax
	je	LBB0_18
## %bb.19:                              ##   in Loop: Header=BB0_8 Depth=1
	incl	%edx
	movl	%r12d, %eax
	addl	%r14d, %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	addl	%r14d, %r12d
	decl	%r12d
	jmp	LBB0_20
LBB0_3:
	xorl	%r12d, %r12d
	jmp	LBB0_28
LBB0_6:
	xorl	%edx, %edx
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
LBB0_21:
	movslq	-44(%rbp), %rax                 ## 4-byte Folded Reload
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	addq	%rax, %rdi
	movl	-68(%rbp), %esi                 ## 4-byte Reload
	subl	%eax, %esi
	movq	%rdx, %rbx
	callq	_sdsnewlen
	movq	%rbx, %rdx
	movslq	%edx, %rcx
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	movq	%rax, (%r12,%rcx,8)
	testq	%rax, %rax
	je	LBB0_22
## %bb.29:
	incl	%edx
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	jmp	LBB0_27
LBB0_22:
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	jmp	LBB0_23
LBB0_11:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	%r13, %rdx
	movq	%rax, %r13
	movq	%r15, %r12
	jmp	LBB0_23
LBB0_18:
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	movq	-56(%rbp), %r12                 ## 8-byte Reload
LBB0_23:
	testl	%edx, %edx
	jle	LBB0_26
## %bb.24:
	movl	%edx, %r14d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_25:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r12,%rbx,8), %rdi
	callq	_sdsfree
	incq	%rbx
	cmpq	%rbx, %r14
	jne	LBB0_25
LBB0_26:
	movq	%r12, %rdi
	callq	_s_free
	xorl	%edx, %edx
	xorl	%r12d, %r12d
LBB0_27:
	movl	%edx, (%r13)
LBB0_28:
	movq	%r12, %rax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sdssplitlen                    ; -- Begin function sdssplitlen
	.p2align	2
_sdssplitlen:                           ; @sdssplitlen
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, #0
	tbnz	w1, #31, LBB0_24
; %bb.1:
	mov	x23, x3
	cmp	w3, #1
	b.lt	LBB0_24
; %bb.2:
	mov	x26, x4
	mov	x24, x2
	mov	x21, x1
	mov	x22, x0
	mov	w0, #40
	bl	_s_malloc
	mov	x20, x0
	cbz	x0, LBB0_24
; %bb.3:
	cbz	w21, LBB0_15
; %bb.4:
	str	x26, [sp, #8]                   ; 8-byte Folded Spill
	sub	w8, w21, w23
	add	w26, w8, #1
	cmp	w26, #1
	b.lt	LBB0_16
; %bb.5:
	mov	w28, #0
	mov	w19, #0
	mov	w25, #0
	mov	w27, #5
	b	LBB0_8
LBB0_6:                                 ;   in Loop: Header=BB0_8 Depth=1
	add	x0, x22, x8
	mov	x1, x24
	mov	x2, x23
	bl	_memcmp
	cbz	x0, LBB0_13
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	add	w28, w28, #1
	cmp	w28, w26
	b.ge	LBB0_17
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	add	w8, w25, #2
	cmp	w27, w8
	b.ge	LBB0_11
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	lsl	w1, w27, #4
	mov	x0, x20
	bl	_s_realloc
	cbz	x0, LBB0_19
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=1
	lsl	w27, w27, #1
	mov	x20, x0
LBB0_11:                                ;   in Loop: Header=BB0_8 Depth=1
	sxtw	x8, w28
	cmp	w23, #1
	b.ne	LBB0_6
; %bb.12:                               ;   in Loop: Header=BB0_8 Depth=1
	ldrb	w9, [x22, x8]
	ldrb	w10, [x24]
	cmp	w9, w10
	b.ne	LBB0_6
LBB0_13:                                ;   in Loop: Header=BB0_8 Depth=1
	add	x0, x22, w19, sxtw
	sub	w1, w28, w19
	bl	_sdsnewlen
	str	x0, [x20, w25, sxtw #3]
	cbz	x0, LBB0_19
; %bb.14:                               ;   in Loop: Header=BB0_8 Depth=1
	add	w25, w25, #1
	add	w19, w28, w23
	sub	w28, w19, #1
	b	LBB0_7
LBB0_15:
	mov	w8, #0
	b	LBB0_23
LBB0_16:
	mov	w25, #0
	mov	w19, #0
LBB0_17:
	add	x0, x22, w19, sxtw
	sub	w1, w21, w19
	bl	_sdsnewlen
	str	x0, [x20, w25, sxtw #3]
	cbz	x0, LBB0_19
; %bb.18:
	add	w8, w25, #1
	ldr	x26, [sp, #8]                   ; 8-byte Folded Reload
	b	LBB0_23
LBB0_19:
	ldr	x26, [sp, #8]                   ; 8-byte Folded Reload
	cmp	w25, #1
	b.lt	LBB0_22
; %bb.20:
	mov	w19, w25
	mov	x21, x20
LBB0_21:                                ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x21], #8
	bl	_sdsfree
	subs	x19, x19, #1
	b.ne	LBB0_21
LBB0_22:
	mov	x0, x20
	bl	_s_free
	mov	w8, #0
	mov	x20, #0
LBB0_23:
	str	w8, [x26]
LBB0_24:
	mov	x0, x20
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
