	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xdl_trim_ends
_xdl_trim_ends:                         ## @xdl_trim_ends
	.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, %r15
	movq	(%rdi), %rdi
	movq	24(%r15), %r12
	movq	(%rsi), %rsi
	movq	24(%r14), %rbx
	callq	_XDL_MIN
	xorl	%esi, %esi
	testq	%rax, %rax
	jle	LBB0_4
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12,%rsi,8), %rcx
	movq	(%rcx), %rcx
	movq	(%rbx,%rsi,8), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_4
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	incq	%rsi
	cmpq	%rsi, %rax
	jne	LBB0_1
## %bb.3:
	movq	%rax, %rsi
LBB0_4:
	movq	%rsi, 8(%r14)
	movq	%rsi, 8(%r15)
	movq	(%r15), %r9
	movq	(%r14), %r8
	subq	%rsi, %rax
	testq	%rax, %rax
	jle	LBB0_5
## %bb.6:
	leaq	(,%r8,8), %r10
	addq	24(%r14), %r10
	leaq	(,%r9,8), %rbx
	addq	24(%r15), %rbx
	movq	$-8, %rcx
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rbx,%rcx), %rdx
	movq	(%rdx), %rdx
	movq	(%r10,%rcx), %rdi
	cmpq	(%rdi), %rdx
	jne	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	incq	%rsi
	addq	$-8, %rcx
	cmpq	%rsi, %rax
	jne	LBB0_7
## %bb.9:
	movq	%rax, %rsi
	jmp	LBB0_10
LBB0_5:
	xorl	%esi, %esi
LBB0_10:
	notq	%rsi
	addq	%rsi, %r9
	movq	%r9, 16(%r15)
	addq	%rsi, %r8
	movq	%r8, 16(%r14)
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_xdl_trim_ends
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xdl_trim_ends
_xdl_trim_ends:                         ; @xdl_trim_ends
	.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
	ldr	x21, [x0, #24]
	ldr	x22, [x1, #24]
	ldr	x0, [x0]
	ldr	x1, [x1]
	bl	_XDL_MIN
	cmp	x0, #1
	b.lt	LBB0_5
; %bb.1:
	mov	x10, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	lsl	x8, x10, #3
	ldr	x9, [x21, x8]
	ldr	x9, [x9]
	ldr	x8, [x22, x8]
	ldr	x8, [x8]
	cmp	x9, x8
	b.ne	LBB0_6
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x10, x10, #1
	cmp	x0, x10
	b.ne	LBB0_2
; %bb.4:
	mov	x10, x0
	b	LBB0_6
LBB0_5:
	mov	x10, #0
LBB0_6:
	str	x10, [x19, #8]
	str	x10, [x20, #8]
	ldr	x9, [x20]
	ldr	x8, [x19]
	sub	x11, x0, x10
	cmp	x11, #1
	b.lt	LBB0_11
; %bb.7:
	mov	x10, #0
	ldr	x13, [x19, #24]
	ldr	x12, [x20, #24]
	add	x12, x12, x9, lsl #3
	sub	x12, x12, #8
	add	x13, x13, x8, lsl #3
	sub	x13, x13, #8
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x14, [x12]
	ldr	x14, [x14]
	ldr	x15, [x13]
	ldr	x15, [x15]
	cmp	x14, x15
	b.ne	LBB0_12
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	add	x10, x10, #1
	sub	x12, x12, #8
	sub	x13, x13, #8
	cmp	x11, x10
	b.ne	LBB0_8
; %bb.10:
	mov	x10, x11
	b	LBB0_12
LBB0_11:
	mov	x10, #0
LBB0_12:
	mvn	x10, x10
	add	x9, x9, x10
	str	x9, [x20, #16]
	add	x8, x8, x10
	str	x8, [x19, #16]
	mov	w0, #0
	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
	.no_dead_strip	_xdl_trim_ends
.subsections_via_symbols
