	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lambda_lattice_compute_base
_lambda_lattice_compute_base:           ## @lambda_lattice_compute_base
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %r15d
	callq	_LN_DEPTH
	movl	%eax, %ebx
	movl	%r15d, %edi
	callq	_LN_INVARIANTS
	movl	%ebx, %edi
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	%eax, %esi
	callq	_lambda_lattice_new
	movl	%eax, %r14d
	movl	%eax, %edi
	callq	_LATTICE_BASE
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	testl	%ebx, %ebx
	jle	LBB0_20
## %bb.1:
	movl	%ebx, %eax
	movl	%ebx, %ecx
	addl	$-2, %eax
	movl	%eax, -64(%rbp)                 ## 4-byte Spill
	movq	%rcx, -88(%rbp)                 ## 8-byte Spill
	leaq	(,%rcx,4), %rax
	movq	%rax, -112(%rbp)                ## 8-byte Spill
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	xorl	%r13d, %r13d
	movl	%r15d, -76(%rbp)                ## 4-byte Spill
	movl	%r14d, -68(%rbp)                ## 4-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	-96(%rbp), %r13                 ## 8-byte Reload
	cmpq	-88(%rbp), %r13                 ## 8-byte Folded Reload
	movl	-76(%rbp), %r15d                ## 4-byte Reload
	je	LBB0_20
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_13 Depth 2
                                        ##     Child Loop BB0_18 Depth 2
                                        ##     Child Loop BB0_5 Depth 2
	leaq	1(%r13), %rax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	movl	%r15d, %edi
	callq	_LN_LOOPS
	movl	(%rax,%r13,4), %ebx
	movl	%ebx, %edi
	callq	_gcc_assert
	movl	%ebx, %edi
	callq	_LL_STEP
	cmpl	$1, %eax
	jne	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax,%r13,8), %rbx
	movq	%rbx, %rdi
	movq	-112(%rbp), %rsi                ## 8-byte Reload
	callq	___bzero
	movl	$1, (%rbx,%r13,4)
	movl	%r14d, %edi
	callq	_LATTICE_ORIGIN
	movq	$0, (%rax,%r13,8)
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	movq	-104(%rbp), %r15                ## 8-byte Reload
	jle	LBB0_19
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_5:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	%r14d, %edi
	callq	_LATTICE_ORIGIN_INVARIANTS
	movq	(%rax,%r13,8), %rax
	movq	$0, (%rax,%rbx,8)
	incq	%rbx
	cmpq	%rbx, %r15
	jne	LBB0_5
	jmp	LBB0_19
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	%eax, %r12d
	movl	%ebx, %edi
	callq	_LL_LOWER_BOUND
	testl	%eax, %eax
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	je	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_LLE_NEXT
	testl	%eax, %eax
	je	LBB0_9
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	xorl	%eax, %eax
	jmp	LBB0_10
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	%ebx, %edi
	callq	_LLE_DENOMINATOR
	cmpl	$1, %eax
	sete	%al
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movzbl	%al, %edi
	callq	_gcc_assert
	testq	%r13, %r13
	movl	%r12d, -72(%rbp)                ## 4-byte Spill
	je	LBB0_11
## %bb.12:                              ##   in Loop: Header=BB0_2 Depth=1
	xorl	%ebx, %ebx
	movl	%r15d, %r14d
	movl	-60(%rbp), %r12d                ## 4-byte Reload
	.p2align	4, 0x90
LBB0_13:                                ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	%r12d, %edi
	callq	_LLE_COEFFICIENTS
	movl	(%rax,%rbx,4), %r15d
	movl	%r14d, %edi
	callq	_LN_LOOPS
	movl	(%rax,%rbx,4), %edi
	callq	_LL_STEP
	imull	%r15d, %eax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx,%r13,8), %rcx
	movl	%eax, (%rcx,%rbx,4)
	incq	%rbx
	cmpq	%rbx, %r13
	jne	LBB0_13
	jmp	LBB0_14
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r14), %rcx
LBB0_14:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	-72(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, (%rcx,%r13,4)
	movq	-96(%rbp), %rdx                 ## 8-byte Reload
	cmpq	-88(%rbp), %rdx                 ## 8-byte Folded Reload
	jae	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	-64(%rbp), %eax                 ## 4-byte Reload
                                        ## kill: def $eax killed $eax def $rax
	subl	%r13d, %eax
	leaq	4(,%rax,4), %rsi
	leaq	(%rcx,%rdx,4), %rdi
	callq	___bzero
LBB0_16:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	-60(%rbp), %r12d                ## 4-byte Reload
	movl	%r12d, %edi
	callq	_LLE_CONSTANT
	movq	%rax, %rbx
	movl	-68(%rbp), %r14d                ## 4-byte Reload
	movl	%r14d, %edi
	callq	_LATTICE_ORIGIN
	movq	%rbx, (%rax,%r13,8)
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	jle	LBB0_19
## %bb.17:                              ##   in Loop: Header=BB0_2 Depth=1
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_18:                                ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	%r12d, %edi
	callq	_LLE_INVARIANT_COEFFICIENTS
	movq	(%rax,%rbx,8), %r15
	movl	%r14d, %edi
	callq	_LATTICE_ORIGIN_INVARIANTS
	movq	(%rax,%r13,8), %rax
	movq	%r15, (%rax,%rbx,8)
	incq	%rbx
	cmpq	%rbx, -104(%rbp)                ## 8-byte Folded Reload
	jne	LBB0_18
	jmp	LBB0_19
LBB0_20:
	movl	%r14d, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_lambda_lattice_compute_base
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lambda_lattice_compute_base
_lambda_lattice_compute_base:           ; @lambda_lattice_compute_base
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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, x0
	bl	_LN_DEPTH
	mov	x23, x0
	mov	x0, x19
	bl	_LN_INVARIANTS
	mov	x1, x0
	mov	x0, x23
	str	w1, [sp, #36]                   ; 4-byte Folded Spill
	bl	_lambda_lattice_new
	mov	x21, x0
	bl	_LATTICE_BASE
	cmp	w23, #1
	b.lt	LBB0_21
; %bb.1:
	mov	x22, x0
	mov	x28, #0
	sub	w8, w23, #2
	str	w8, [sp, #12]                   ; 4-byte Folded Spill
	mov	w8, w23
	str	x8, [sp, #40]                   ; 8-byte Folded Spill
	lsl	x8, x8, #2
	str	x8, [sp, #16]                   ; 8-byte Folded Spill
	ldr	w8, [sp, #36]                   ; 4-byte Folded Reload
	mov	w8, w8
	lsl	x26, x8, #3
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x28, x27
	ldr	x8, [sp, #40]                   ; 8-byte Folded Reload
	cmp	x27, x8
	b.eq	LBB0_21
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_12 Depth 2
                                        ;     Child Loop BB0_20 Depth 2
                                        ;     Child Loop BB0_6 Depth 2
	add	x27, x28, #1
	mov	x0, x19
	bl	_LN_LOOPS
	ldr	w24, [x0, x28, lsl #2]
	mov	x0, x24
	bl	_gcc_assert
	mov	x0, x24
	bl	_LL_STEP
	cmp	w0, #1
	b.ne	LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	lsl	x20, x28, #3
	ldr	x24, [x22, x20]
	mov	x0, x24
	ldr	x1, [sp, #16]                   ; 8-byte Folded Reload
	bl	_bzero
	mov	w8, #1
	str	w8, [x24, x28, lsl #2]
	mov	x0, x21
	bl	_LATTICE_ORIGIN
	str	xzr, [x0, x20]
	ldr	w8, [sp, #36]                   ; 4-byte Folded Reload
	cmp	w8, #1
	b.lt	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x20, #0
LBB0_6:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x21
	bl	_LATTICE_ORIGIN_INVARIANTS
	ldr	x8, [x0, x28, lsl #3]
	str	xzr, [x8, x20]
	add	x20, x20, #8
	cmp	x26, x20
	b.ne	LBB0_6
	b	LBB0_2
LBB0_7:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x25, x0
	mov	x0, x24
	bl	_LL_LOWER_BOUND
	mov	x24, x0
	cbz	w0, LBB0_10
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x24
	bl	_LLE_NEXT
	cbz	w0, LBB0_14
; %bb.9:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	w0, #0
LBB0_10:                                ;   in Loop: Header=BB0_3 Depth=1
	bl	_gcc_assert
	cbz	x28, LBB0_15
LBB0_11:                                ;   in Loop: Header=BB0_3 Depth=1
	str	x27, [sp, #24]                  ; 8-byte Folded Spill
	mov	x20, #0
LBB0_12:                                ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x24
	bl	_LLE_COEFFICIENTS
	lsl	x27, x20, #2
	ldr	w23, [x0, x27]
	mov	x0, x19
	bl	_LN_LOOPS
	ldr	w0, [x0, x27]
	bl	_LL_STEP
	mul	w9, w0, w23
	ldr	x8, [x22, x28, lsl #3]
	str	w9, [x8, x27]
	add	x20, x20, #1
	cmp	x28, x20
	b.ne	LBB0_12
; %bb.13:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	x27, [sp, #24]                  ; 8-byte Folded Reload
	b	LBB0_16
LBB0_14:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x24
	bl	_LLE_DENOMINATOR
	cmp	w0, #1
	cset	w0, eq
	bl	_gcc_assert
	cbnz	x28, LBB0_11
LBB0_15:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x22]
LBB0_16:                                ;   in Loop: Header=BB0_3 Depth=1
	str	w25, [x8, x28, lsl #2]
	ldr	x9, [sp, #40]                   ; 8-byte Folded Reload
	cmp	x27, x9
	b.hs	LBB0_18
; %bb.17:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	w9, [sp, #12]                   ; 4-byte Folded Reload
	sub	w9, w9, w28
	lsl	x9, x9, #2
	add	x1, x9, #4
	add	x0, x8, x27, lsl #2
	bl	_bzero
LBB0_18:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x24
	bl	_LLE_CONSTANT
	mov	x25, x0
	mov	x0, x21
	bl	_LATTICE_ORIGIN
	str	x25, [x0, x28, lsl #3]
	ldr	w8, [sp, #36]                   ; 4-byte Folded Reload
	cmp	w8, #1
	b.lt	LBB0_2
; %bb.19:                               ;   in Loop: Header=BB0_3 Depth=1
	mov	x20, #0
LBB0_20:                                ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x24
	bl	_LLE_INVARIANT_COEFFICIENTS
	ldr	x23, [x0, x20]
	mov	x0, x21
	bl	_LATTICE_ORIGIN_INVARIANTS
	ldr	x8, [x0, x28, lsl #3]
	str	x23, [x8, x20]
	add	x20, x20, #8
	cmp	x26, x20
	b.ne	LBB0_20
	b	LBB0_2
LBB0_21:
	mov	x0, x21
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_lambda_lattice_compute_base
.subsections_via_symbols
