	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ltree_compare                  ## -- Begin function ltree_compare
	.p2align	4, 0x90
_ltree_compare:                         ## @ltree_compare
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	callq	_LTREE_FIRST
	movq	%rax, %r13
	movq	%r14, %rdi
	callq	_LTREE_FIRST
	movq	%rax, %r15
	movl	(%rbx), %ecx
	movl	(%r14), %eax
	testl	%ecx, %ecx
	jle	LBB0_9
## %bb.1:
	testl	%eax, %eax
	jle	LBB0_9
## %bb.2:
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movq	%r14, -72(%rbp)                 ## 8-byte Spill
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	leal	(%rcx,%rcx,4), %eax
	leal	(%rax,%rax), %r12d
	addl	$10, %r12d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rcx, %r14
	movl	8(%r13), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	8(%r15), %ebx
	movq	(%r13), %rdi
	movq	(%r15), %rsi
	callq	_Min
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_memcmp
	testl	%eax, %eax
	jne	LBB0_11
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	(%r13), %rax
	movq	(%r15), %rcx
	cmpq	%rcx, %rax
	jne	LBB0_12
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r14, %rbx
	decl	%r14d
	movq	%r13, %rdi
	callq	_LEVEL_NEXT
	movq	%rax, %r13
	movq	%r15, %rdi
	callq	_LEVEL_NEXT
	cmpl	$2, %ebx
	jl	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%rax, %r15
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	leal	-1(%rdx), %eax
	addl	$-10, %r12d
	movl	%r14d, %ecx
	cmpl	$1, %edx
                                        ## kill: def $eax killed $eax def $rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	jg	LBB0_3
LBB0_7:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %ecx
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %eax
	jmp	LBB0_10
LBB0_9:
	movl	%ecx, %r14d
LBB0_10:
	subl	%eax, %ecx
	leal	(%r14,%r14,4), %eax
	leal	(%rax,%rax), %r12d
	addl	$10, %r12d
	imull	%ecx, %r12d
	jmp	LBB0_13
LBB0_11:
	movl	$-10, %eax
	movl	$10, %ecx
	cmovsl	%eax, %ecx
	incl	%r14d
	imull	%ecx, %r14d
	movl	%r14d, %r12d
	jmp	LBB0_13
LBB0_12:
	subl	%ecx, %eax
	imull	%eax, %r12d
LBB0_13:
	movl	%r12d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	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	_ltree_compare                  ; -- Begin function ltree_compare
	.p2align	2
_ltree_compare:                         ; @ltree_compare
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x1
	mov	x20, x0
	bl	_LTREE_FIRST
	mov	x21, x0
	mov	x0, x19
	bl	_LTREE_FIRST
	ldr	w26, [x20]
	ldr	w25, [x19]
	cmp	w26, #1
	ccmp	w25, #1, #8, ge
	b.ge	LBB0_2
; %bb.1:
	mov	x23, x26
	b	LBB0_8
LBB0_2:
	mov	x22, x0
	mov	w8, #10
	mul	w8, w26, w8
	add	w27, w8, #10
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w23, [x21, #8]
	ldr	w24, [x22, #8]
	ldr	x0, [x21]
	ldr	x1, [x22]
	bl	_Min
	mov	x2, x0
	mov	x0, x23
	mov	x1, x24
	bl	_memcmp
	cbnz	w0, LBB0_9
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x21]
	ldr	x9, [x22]
	cmp	x8, x9
	b.ne	LBB0_10
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	sub	w23, w26, #1
	mov	x0, x21
	bl	_LEVEL_NEXT
	mov	x21, x0
	mov	x0, x22
	bl	_LEVEL_NEXT
	cmp	w26, #2
	b.lt	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x22, x0
	sub	w8, w25, #1
	sub	w27, w27, #10
	mov	x26, x23
	cmp	w25, #1
	mov	x25, x8
	b.gt	LBB0_3
LBB0_7:
	ldr	w26, [x20]
	ldr	w25, [x19]
LBB0_8:
	sub	w8, w26, w25
	mov	w9, #10
	mul	w9, w23, w9
	add	w9, w9, #10
	mul	w0, w9, w8
	b	LBB0_11
LBB0_9:
	cmp	w0, #0
	mov	w8, #-10
	cneg	w8, w8, ge
	madd	w0, w8, w26, w8
	b	LBB0_11
LBB0_10:
	sub	w8, w8, w9
	mul	w0, w27, w8
LBB0_11:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
