	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_lca_inner                      ## -- Begin function lca_inner
	.p2align	4, 0x90
_lca_inner:                             ## @lca_inner
	.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
	testl	%esi, %esi
	jle	LBB0_22
## %bb.1:
	movq	%rdi, %rcx
	movq	(%rdi), %rdi
	movl	(%rdi), %r12d
	testl	%r12d, %r12d
	je	LBB0_22
## %bb.2:
	decl	%r12d
	cmpl	$2, %esi
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	jb	LBB0_16
## %bb.3:
	movl	%esi, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	leaq	8(%rcx), %r14
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_4 Depth=1
	xorl	%r12d, %r12d
LBB0_14:                                ##   in Loop: Header=BB0_4 Depth=1
	addq	$8, %r14
	movq	%r14, %rax
	subq	%rcx, %rax
	sarq	$3, %rax
	cmpq	-56(%rbp), %rax                 ## 8-byte Folded Reload
	jge	LBB0_15
LBB0_4:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_9 Depth 2
	movq	(%r14), %rax
	movl	(%rax), %eax
	cmpl	$1, %eax
	je	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	testl	%eax, %eax
	je	LBB0_22
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	(%rcx), %rdi
	callq	_LTREE_FIRST
	movq	%rax, %r15
	movq	(%r14), %rdi
	callq	_LTREE_FIRST
	movq	%rax, %rbx
	movq	(%r14), %rax
	movl	(%rax), %esi
	decl	%esi
	movl	%r12d, %edi
	callq	_Min
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	$0, %r12d
	testl	%eax, %eax
	jle	LBB0_14
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	%eax, %r13d
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_9:                                 ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%r15), %rdx
	cmpq	(%rbx), %rdx
	jne	LBB0_13
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=2
	movl	8(%r15), %edi
	movl	8(%rbx), %esi
	callq	_memcmp
	testq	%rax, %rax
	jne	LBB0_13
## %bb.11:                              ##   in Loop: Header=BB0_9 Depth=2
	incl	%r12d
	movq	%r15, %rdi
	callq	_LEVEL_NEXT
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_LEVEL_NEXT
	movq	%rax, %rbx
	cmpl	%r12d, %r13d
	jne	LBB0_9
## %bb.12:                              ##   in Loop: Header=BB0_4 Depth=1
	movl	%r13d, %r12d
LBB0_13:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	jmp	LBB0_14
LBB0_22:
	xorl	%r15d, %r15d
	jmp	LBB0_23
LBB0_15:
	movq	(%rcx), %rdi
LBB0_16:
	movq	_LTREE_HDRSIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	callq	_LTREE_FIRST
	testl	%r12d, %r12d
	jle	LBB0_19
## %bb.17:
	movq	%rax, %r15
	movq	_LEVEL_HDRSIZE@GOTPCREL(%rip), %r14
	movl	%r12d, %ebx
	.p2align	4, 0x90
LBB0_18:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %rdi
	addq	(%r15), %rdi
	callq	_MAXALIGN
	addl	%eax, %r13d
	movq	%r15, %rdi
	callq	_LEVEL_NEXT
	movq	%rax, %r15
	decl	%ebx
	jne	LBB0_18
LBB0_19:
	movl	%r13d, %edi
	callq	_palloc0
	movq	%rax, %r15
	movq	%rax, %rdi
	movl	%r13d, %esi
	callq	_SET_VARSIZE
	movl	%r12d, (%r15)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rdi
	callq	_LTREE_FIRST
	movq	%rax, %rbx
	movq	%r15, %rdi
	callq	_LTREE_FIRST
	testl	%r12d, %r12d
	jle	LBB0_23
## %bb.20:
	movq	%rax, %r14
	movq	_LEVEL_HDRSIZE@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_21:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r13), %rdi
	addq	(%rbx), %rdi
	callq	_MAXALIGN
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movq	%rax, %rdx
	callq	_memcpy
	movq	%rbx, %rdi
	callq	_LEVEL_NEXT
	movq	%rax, %rbx
	movq	%r14, %rdi
	callq	_LEVEL_NEXT
	movq	%rax, %r14
	decl	%r12d
	jne	LBB0_21
LBB0_23:
	movq	%r15, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LTREE_HDRSIZE,4,2              ## @LTREE_HDRSIZE
	.comm	_LEVEL_HDRSIZE,8,3              ## @LEVEL_HDRSIZE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_lca_inner                      ; -- Begin function lca_inner
	.p2align	2
_lca_inner:                             ; @lca_inner
	.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
	cmp	w1, #1
	b.lt	LBB0_14
; %bb.1:
	mov	x20, x0
	ldr	x0, [x0]
	ldr	w8, [x0]
	cbz	w8, LBB0_14
; %bb.2:
	sub	w19, w8, #1
	cmp	w1, #2
	b.lo	LBB0_16
; %bb.3:
	mov	w24, w1
	add	x25, x20, #8
	b	LBB0_6
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	mov	w19, #0
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x25, x25, #8
	sub	x8, x25, x20
	cmp	x24, x8, asr #3
	b.le	LBB0_15
LBB0_6:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_10 Depth 2
	ldr	x8, [x25]
	ldr	w8, [x8]
	cmp	w8, #1
	b.eq	LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	cbz	w8, LBB0_14
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x0, [x20]
	bl	_LTREE_FIRST
	mov	x21, x0
	ldr	x0, [x25]
	bl	_LTREE_FIRST
	mov	x22, x0
	ldr	x8, [x25]
	ldr	w8, [x8]
	sub	w1, w8, #1
	mov	x0, x19
	bl	_Min
	cmp	w0, #1
	b.lt	LBB0_4
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x23, x0
	mov	w19, #0
LBB0_10:                                ;   Parent Loop BB0_6 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x2, [x21]
	ldr	x8, [x22]
	cmp	x2, x8
	b.ne	LBB0_5
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=2
	ldr	w0, [x21, #8]
	ldr	w1, [x22, #8]
	bl	_memcmp
	cbnz	x0, LBB0_5
; %bb.12:                               ;   in Loop: Header=BB0_10 Depth=2
	add	w19, w19, #1
	mov	x0, x21
	bl	_LEVEL_NEXT
	mov	x21, x0
	mov	x0, x22
	bl	_LEVEL_NEXT
	mov	x22, x0
	cmp	w23, w19
	b.ne	LBB0_10
; %bb.13:                               ;   in Loop: Header=BB0_6 Depth=1
	mov	x19, x23
	b	LBB0_5
LBB0_14:
	mov	x21, #0
	b	LBB0_22
LBB0_15:
	ldr	x0, [x20]
LBB0_16:
Lloh0:
	adrp	x8, _LTREE_HDRSIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LTREE_HDRSIZE@GOTPAGEOFF]
Lloh2:
	ldr	w22, [x8]
	bl	_LTREE_FIRST
Lloh3:
	adrp	x23, _LEVEL_HDRSIZE@GOTPAGE
Lloh4:
	ldr	x23, [x23, _LEVEL_HDRSIZE@GOTPAGEOFF]
	cmp	w19, #1
	b.lt	LBB0_19
; %bb.17:
	mov	x21, x0
	mov	x24, x19
LBB0_18:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21]
	ldr	x9, [x23]
	add	x0, x9, x8
	bl	_MAXALIGN
	add	w22, w22, w0
	mov	x0, x21
	bl	_LEVEL_NEXT
	mov	x21, x0
	subs	w24, w24, #1
	b.ne	LBB0_18
LBB0_19:
	mov	x0, x22
	bl	_palloc0
	mov	x21, x0
	mov	x1, x22
	bl	_SET_VARSIZE
	str	w19, [x21]
	ldr	x0, [x20]
	bl	_LTREE_FIRST
	mov	x20, x0
	mov	x0, x21
	bl	_LTREE_FIRST
	cmp	w19, #1
	b.lt	LBB0_22
; %bb.20:
	mov	x22, x0
LBB0_21:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20]
	ldr	x9, [x23]
	add	x0, x9, x8
	bl	_MAXALIGN
	mov	x2, x0
	mov	x0, x22
	mov	x1, x20
	bl	_memcpy
	mov	x0, x20
	bl	_LEVEL_NEXT
	mov	x20, x0
	mov	x0, x22
	bl	_LEVEL_NEXT
	mov	x22, x0
	subs	w19, w19, #1
	b.ne	LBB0_21
LBB0_22:
	mov	x0, x21
	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
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_LTREE_HDRSIZE,4,2              ; @LTREE_HDRSIZE
	.comm	_LEVEL_HDRSIZE,8,3              ; @LEVEL_HDRSIZE
.subsections_via_symbols
