	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Com_TruncateLongString         ## -- Begin function Com_TruncateLongString
	.p2align	4, 0x90
_Com_TruncateLongString:                ## @Com_TruncateLongString
	.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	%rsi, %rbx
	movq	%rdi, %r14
	movq	%rsi, %rdi
	callq	_strlen
	movq	_TRUNCATE_LENGTH@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	cmpl	%edx, %eax
	jle	LBB0_1
## %bb.2:
	movl	%eax, %r15d
	movl	%edx, %eax
	shrl	$31, %eax
	addl	%edx, %eax
	sarl	%eax
	addl	$-3, %eax
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movl	%eax, %edx
	callq	_Q_strncpyz
	movl	(%r12), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r14, %rdi
	callq	_Q_strcat
	movl	(%r12), %esi
	movslq	%r15d, %rax
	addq	%rbx, %rax
	movl	%esi, %ecx
	shrl	$31, %ecx
	addl	%esi, %ecx
	sarl	%ecx
	negl	%ecx
	movslq	%ecx, %rcx
	leaq	(%rcx,%rax), %rdx
	addq	$3, %rdx
	movq	%r14, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_Q_strcat                       ## TAILCALL
LBB0_1:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_Q_strncpyz                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_TRUNCATE_LENGTH,4,2            ## @TRUNCATE_LENGTH
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	" ... "

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Com_TruncateLongString         ; -- Begin function Com_TruncateLongString
	.p2align	2
_Com_TruncateLongString:                ; @Com_TruncateLongString
	.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, x1
	mov	x19, x0
	mov	x0, x1
	bl	_strlen
Lloh0:
	adrp	x22, _TRUNCATE_LENGTH@GOTPAGE
Lloh1:
	ldr	x22, [x22, _TRUNCATE_LENGTH@GOTPAGEOFF]
	ldr	w2, [x22]
	cmp	w0, w2
	b.le	LBB0_2
; %bb.1:
	mov	x21, x0
	cmp	w2, #0
	cinc	w8, w2, lt
	asr	w8, w8, #1
	sub	w2, w8, #3
	mov	x0, x19
	mov	x1, x20
	bl	_Q_strncpyz
	ldr	w1, [x22]
Lloh2:
	adrp	x2, l_.str@PAGE
Lloh3:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	bl	_Q_strcat
	ldr	w1, [x22]
	add	x8, x20, w21, sxtw
	cmp	w1, #0
	cinc	w9, w1, lt
	neg	w9, w9, asr #1
	add	x8, x8, w9, sxtw
	add	x2, x8, #3
	mov	x0, x19
	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	_Q_strcat
LBB0_2:
	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	_Q_strncpyz
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_TRUNCATE_LENGTH,4,2            ; @TRUNCATE_LENGTH
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	" ... "

.subsections_via_symbols
