	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function trim_common_tail
_trim_common_tail:                      ## @trim_common_tail
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %rax
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movq	8(%rdi), %rcx
	movq	(%rsi), %rdx
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	8(%rsi), %r14
	cmpq	%r14, %rcx
	leaq	-1024(%r14,%rdx), %rbx
	cmovlq	%rcx, %r14
	addq	%rax, %rcx
	addq	$-1024, %rcx                    ## imm = 0xFC00
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r13, %r15
	movq	%rcx, %r12
	addq	$1024, %r13                     ## imm = 0x400
	cmpq	%r14, %r13
	jg	LBB0_3
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movl	$1024, %edx                     ## imm = 0x400
	callq	_memcmp
	leaq	-1024(%r12), %rcx
	addq	$-1024, %rbx                    ## imm = 0xFC00
	testl	%eax, %eax
	je	LBB0_1
LBB0_3:
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%rcx, %r15
	je	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	leaq	1(%rcx), %rax
	cmpb	$10, 1024(%r12,%rcx)
	movq	%rax, %rcx
	jne	LBB0_4
	jmp	LBB0_7
LBB0_5:
	movq	%r15, %rax
LBB0_7:
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movq	8(%rdx), %rcx
	addq	%rax, %rcx
	subq	%r15, %rcx
	movq	%rcx, 8(%rdx)
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	addq	8(%rcx), %rax
	subq	%r15, %rax
	movq	%rax, 8(%rcx)
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_trim_common_tail
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function trim_common_tail
_trim_common_tail:                      ; @trim_common_tail
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x1
	mov	x20, x0
	mov	x25, #0
	ldp	x8, x9, [x0]
	add	x22, x8, x9
	ldp	x8, x10, [x1]
	cmp	x9, x10
	csel	x26, x9, x10, lt
	add	x8, x10, x8
	sub	x21, x8, #1024
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	mov	x23, x25
	mov	x24, x22
	add	x25, x25, #1024
	cmp	x25, x26
	b.gt	LBB0_3
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	sub	x22, x24, #1024
	mov	x0, x22
	mov	x1, x21
	mov	w2, #1024
	bl	_memcmp
	sub	x21, x21, #1024
	cbz	w0, LBB0_1
LBB0_3:
	mov	x9, #0
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	cmp	x23, x9
	b.eq	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x8, x9, #1
	ldrb	w10, [x24, x9]
	mov	x9, x8
	cmp	w10, #10
	b.ne	LBB0_4
	b	LBB0_7
LBB0_6:
	mov	x8, x23
LBB0_7:
	ldr	x9, [x20, #8]
	add	x9, x8, x9
	sub	x9, x9, x23
	str	x9, [x20, #8]
	ldr	x9, [x19, #8]
	add	x8, x8, x9
	sub	x8, x8, x23
	str	x8, [x19, #8]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_trim_common_tail
.subsections_via_symbols
