	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sdsrange                       ## -- Begin function sdsrange
	.p2align	4, 0x90
_sdsrange:                              ## @sdsrange
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %ebx
	movl	%esi, %r15d
	movq	%rdi, %r14
	callq	_sdslen
	testq	%rax, %rax
	je	LBB0_7
## %bb.1:
	movd	%ebx, %xmm0
	pinsrd	$1, %r15d, %xmm0
	pxor	%xmm1, %xmm1
	movd	%eax, %xmm2
	pshufd	$80, %xmm2, %xmm2               ## xmm2 = xmm2[0,0,1,1]
	paddd	%xmm0, %xmm2
	pmaxsd	%xmm1, %xmm2
	blendvps	%xmm0, %xmm2, %xmm0
	movd	%xmm0, %edx
	pextrd	$1, %xmm0, %ecx
	xorl	%ebx, %ebx
	movl	%edx, %esi
	subl	%ecx, %esi
	leal	1(%rsi), %esi
	cmovbl	%ebx, %esi
	testl	%esi, %esi
	je	LBB0_6
## %bb.2:
	cmpl	%eax, %ecx
	jge	LBB0_6
## %bb.3:
	movl	%eax, %edi
	subl	%ecx, %edi
	cmpl	%eax, %edx
	cmovll	%esi, %edi
	movslq	%edi, %rbx
	testl	%ecx, %ecx
	je	LBB0_6
## %bb.4:
	testl	%edi, %edi
	je	LBB0_6
## %bb.5:
	movl	%ecx, %eax
	leaq	(%r14,%rax,8), %rsi
	movq	%r14, %rdi
	movq	%rbx, %rdx
	callq	_memmove
LBB0_6:
	movq	$0, (%r14,%rbx,8)
	movq	%r14, %rdi
	movq	%rbx, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_sdssetlen                      ## TAILCALL
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	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	_sdsrange                       ; -- Begin function sdsrange
	.p2align	2
_sdsrange:                              ; @sdsrange
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	bl	_sdslen
	cbz	x0, LBB0_3
; %bb.1:
	add	w8, w0, w21
	cmp	w8, #0
	csel	w8, w8, wzr, gt
	cmp	w21, #0
	csel	w8, w8, w21, lt
	add	w9, w0, w20
	cmp	w9, #0
	csel	w9, w9, wzr, gt
	cmp	w20, #0
	csel	w9, w9, w20, lt
	subs	w10, w9, w8
	csinc	w10, wzr, w10, lo
	cmp	w10, #0
	ccmp	w8, w0, #0, ne
	b.lt	LBB0_4
; %bb.2:
	mov	x20, #0
	b	LBB0_7
LBB0_3:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_4:
	sub	w11, w0, w8
	cmp	w9, w0
	csel	w9, w10, w11, lt
	sxtw	x20, w9
	cbz	w8, LBB0_7
; %bb.5:
	cbz	w9, LBB0_7
; %bb.6:
	add	x1, x19, w8, uxtw #3
	mov	x0, x19
	mov	x2, x20
	bl	_memmove
LBB0_7:
	str	xzr, [x19, x20, lsl #3]
	mov	x0, x19
	mov	x1, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_sdssetlen
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
