	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_buf_catrunc                    ## -- Begin function buf_catrunc
	.p2align	4, 0x90
_buf_catrunc:                           ## @buf_catrunc
	.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, %r14
	movq	%rdi, %r12
	callq	_buf_forward_capacity
	cmpl	$1, %eax
	jg	LBB0_2
## %bb.1:
	movq	%r14, %rdi
	callq	_strlen
	movq	%rax, %rbx
	leal	1(%rax), %r15d
	movq	%r12, %rdi
	callq	_buf_forward_capacity_total
	cmpl	%eax, %r15d
	jge	LBB0_2
## %bb.3:
	notl	%ebx
	addl	(%r12), %ebx
	addl	4(%r12), %ebx
	movslq	%ebx, %rdi
	movq	%r14, %rsi
	movl	%r15d, %edx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_strncpynt                      ## TAILCALL
LBB0_2:
	popq	%rbx
	popq	%r12
	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	_buf_catrunc                    ; -- Begin function buf_catrunc
	.p2align	2
_buf_catrunc:                           ; @buf_catrunc
	.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	x19, x1
	mov	x20, x0
	bl	_buf_forward_capacity
	cmp	w0, #1
	b.gt	LBB0_3
; %bb.1:
	mov	x0, x19
	bl	_strlen
	mov	x22, x0
	add	w21, w22, #1
	mov	x0, x20
	bl	_buf_forward_capacity_total
	cmp	w21, w0
	b.ge	LBB0_3
; %bb.2:
	ldp	w8, w9, [x20]
	mvn	w10, w22
	add	w8, w8, w10
	add	w8, w8, w9
	sxtw	x0, w8
	mov	x1, x19
	mov	x2, x21
	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	_strncpynt
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
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
