	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lambda_matrix_inverse_hard
_lambda_matrix_inverse_hard:            ## @lambda_matrix_inverse_hard
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r12d
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movl	%edx, %edi
	movl	%edx, %esi
	callq	_lambda_matrix_new
	movq	%rbx, %rdi
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	%rax, %rsi
	movl	%r12d, %edx
	movl	%r12d, %ecx
	callq	_lambda_matrix_copy
	movq	%r14, %rdi
	movl	%r12d, %esi
	callq	_lambda_matrix_id
	testl	%r12d, %r12d
	jle	LBB0_1
## %bb.5:
	movq	%r14, -80(%rbp)                 ## 8-byte Spill
	movl	%r12d, %r13d
	movl	$1, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	xorl	%r14d, %r14d
	movq	%r12, -96(%rbp)                 ## 8-byte Spill
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_6 Depth=1
	incq	-56(%rbp)                       ## 8-byte Folded Spill
	cmpq	%r13, %r14
	je	LBB0_4
LBB0_6:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_7 Depth 2
                                        ##     Child Loop BB0_13 Depth 2
                                        ##       Child Loop BB0_15 Depth 3
	movq	%r14, %rbx
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax,%r14,8), %r15
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_7 Depth=2
	incq	%r14
	cmpq	%r14, %r13
	je	LBB0_10
LBB0_7:                                 ##   Parent Loop BB0_6 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpl	$0, (%r15,%r14,4)
	jns	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=2
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movl	%r12d, %esi
	movl	%r14d, %edx
	callq	_lambda_matrix_col_negate
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movl	%r12d, %esi
	movl	%r14d, %edx
	callq	_lambda_matrix_col_negate
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_6 Depth=1
	leaq	1(%rbx), %r14
	movq	%r15, %rdi
	movl	%r12d, %esi
	movl	%r14d, %edx
	callq	_lambda_vector_first_nz
	cmpl	%r13d, %eax
	jge	LBB0_3
## %bb.11:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_13 Depth=2
	movq	%r15, %rdi
	movq	-96(%rbp), %r12                 ## 8-byte Reload
	movl	%r12d, %esi
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movl	%r14d, %edx
	callq	_lambda_vector_first_nz
	cmpl	%r12d, %eax
	jge	LBB0_3
LBB0_13:                                ##   Parent Loop BB0_6 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_15 Depth 3
	movq	%r15, %rdi
	movl	%r12d, %esi
	movl	%ebx, %edx
	callq	_lambda_vector_min_nz
	movl	%eax, %r14d
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movl	%r12d, %esi
	movl	%ebx, %edx
	movl	%eax, %ecx
	callq	_lambda_matrix_col_exchange
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movl	%r12d, %esi
	movl	%ebx, %edx
	movl	%r14d, %ecx
	callq	_lambda_matrix_col_exchange
	cmpq	%r13, -64(%rbp)                 ## 8-byte Folded Reload
	jae	LBB0_12
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=2
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_15 Depth=3
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movl	%r13d, %esi
	movl	%ebx, %edx
	movl	%r14d, %ecx
	movl	%r12d, %r8d
	callq	_lambda_matrix_col_add
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movq	-96(%rbp), %rsi                 ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	movl	%ebx, %edx
	movl	%r14d, %ecx
	movl	%r12d, %r8d
	callq	_lambda_matrix_col_add
	incq	%r14
	cmpq	%r14, %r13
	je	LBB0_12
LBB0_15:                                ##   Parent Loop BB0_6 Depth=1
                                        ##     Parent Loop BB0_13 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	xorl	%r12d, %r12d
	subl	(%r15,%r14,4), %r12d
	movl	(%r15,%rbx,4), %ecx
	cmpl	$1, %ecx
	je	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_15 Depth=3
	movl	%r12d, %eax
	cltd
	idivl	%ecx
	movl	%eax, %r12d
	jmp	LBB0_17
LBB0_4:
	leal	-2(%r12), %r14d
	leal	-1(%r12), %eax
	movl	$1, -44(%rbp)                   ## 4-byte Folded Spill
	movl	$0, -84(%rbp)                   ## 4-byte Folded Spill
	movq	%r13, %rbx
	jmp	LBB0_19
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_19 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	leal	-1(%rax), %r14d
	movl	-88(%rbp), %eax                 ## 4-byte Reload
	decl	%eax
	decl	-84(%rbp)                       ## 4-byte Folded Spill
	cmpq	$2, -104(%rbp)                  ## 8-byte Folded Reload
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	-96(%rbp), %r12                 ## 8-byte Reload
	jl	LBB0_2
LBB0_19:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_22 Depth 2
                                        ##     Child Loop BB0_24 Depth 2
                                        ##     Child Loop BB0_28 Depth 2
	movl	%eax, -88(%rbp)                 ## 4-byte Spill
	leaq	-1(%rbx), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movl	%eax, %ecx
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax,%rcx,8), %rax
	movq	%rax, -120(%rbp)                ## 8-byte Spill
	movq	%rcx, -128(%rbp)                ## 8-byte Spill
	movl	(%rax,%rcx,4), %r15d
	movl	%r15d, %edi
	callq	_gcc_assert
	cmpl	$1, %r15d
	movq	%rbx, -104(%rbp)                ## 8-byte Spill
	je	LBB0_26
## %bb.20:                              ##   in Loop: Header=BB0_19 Depth=1
	movl	%r14d, -108(%rbp)               ## 4-byte Spill
	cmpq	$2, %rbx
	movq	-80(%rbp), %r14                 ## 8-byte Reload
	movl	-88(%rbp), %eax                 ## 4-byte Reload
	jb	LBB0_23
## %bb.21:                              ##   in Loop: Header=BB0_19 Depth=1
	xorl	%ebx, %ebx
	movl	%r15d, -56(%rbp)                ## 4-byte Spill
	.p2align	4, 0x90
LBB0_22:                                ##   Parent Loop BB0_19 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%r14, %rdi
	movl	%r12d, %esi
	movl	%ebx, %edx
	movl	%r15d, %ecx
	movq	%r14, %r15
	movl	%eax, %r14d
	callq	_lambda_matrix_col_mc
	movl	%r14d, %eax
	movq	%r15, %r14
	movl	-56(%rbp), %r15d                ## 4-byte Reload
	incl	%ebx
	cmpl	%ebx, %eax
	jne	LBB0_22
LBB0_23:                                ##   in Loop: Header=BB0_19 Depth=1
	movl	-84(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, %ebx
	cmpq	%r13, -104(%rbp)                ## 8-byte Folded Reload
	jge	LBB0_25
	.p2align	4, 0x90
LBB0_24:                                ##   Parent Loop BB0_19 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	leal	(%r12,%rbx), %edx
	movq	%r14, %rdi
	movl	%r12d, %esi
	movl	%r15d, %ecx
	callq	_lambda_matrix_col_mc
	incl	%ebx
	jne	LBB0_24
LBB0_25:                                ##   in Loop: Header=BB0_19 Depth=1
	movq	-120(%rbp), %rax                ## 8-byte Reload
	movq	-128(%rbp), %rcx                ## 8-byte Reload
	movl	$1, (%rax,%rcx,4)
	movq	-104(%rbp), %rbx                ## 8-byte Reload
	movl	-108(%rbp), %r14d               ## 4-byte Reload
LBB0_26:                                ##   in Loop: Header=BB0_19 Depth=1
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	imull	%r15d, %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	cmpq	$2, %rbx
	jl	LBB0_2
## %bb.27:                              ##   in Loop: Header=BB0_19 Depth=1
	movl	%r14d, %ebx
	movq	-120(%rbp), %rax                ## 8-byte Reload
	leaq	(%rax,%rbx,4), %r12
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_28
	.p2align	4, 0x90
LBB0_30:                                ##   in Loop: Header=BB0_28 Depth=2
	movl	%ebx, %eax
	decq	%rbx
	addq	$-4, %r12
	testl	%eax, %eax
	jle	LBB0_18
LBB0_28:                                ##   Parent Loop BB0_19 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%r12), %r15d
	testl	%r15d, %r15d
	je	LBB0_30
## %bb.29:                              ##   in Loop: Header=BB0_28 Depth=2
	negl	%r15d
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	-96(%rbp), %r14                 ## 8-byte Reload
	movl	%r14d, %esi
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
                                        ## kill: def $edx killed $edx killed $rdx
	movl	%ebx, %ecx
	movl	%r15d, %r8d
	callq	_lambda_matrix_col_add
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movl	%r14d, %esi
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
                                        ## kill: def $edx killed $edx killed $rdx
	movl	%ebx, %ecx
	movl	%r15d, %r8d
	callq	_lambda_matrix_col_add
	jmp	LBB0_30
LBB0_1:
	movl	$1, -44(%rbp)                   ## 4-byte Folded Spill
LBB0_2:
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_lambda_matrix_inverse_hard
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lambda_matrix_inverse_hard
_lambda_matrix_inverse_hard:            ; @lambda_matrix_inverse_hard
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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, x2
	mov	x20, x1
	mov	x22, x0
	mov	x0, x2
	mov	x1, x2
	bl	_lambda_matrix_new
	mov	x21, x0
	mov	x0, x22
	mov	x1, x21
	mov	x2, x19
	mov	x3, x19
	bl	_lambda_matrix_copy
	mov	x0, x20
	mov	x1, x19
	bl	_lambda_matrix_id
	cmp	w19, #1
	b.lt	LBB0_28
; %bb.1:
	mov	x23, #0
	mov	w22, w19
	mov	w28, #1
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x28, x28, #1
	mov	x23, x25
	cmp	x25, x22
	b.eq	LBB0_14
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
                                        ;     Child Loop BB0_9 Depth 2
                                        ;       Child Loop BB0_12 Depth 3
	ldr	x24, [x21, x23, lsl #3]
	mov	x25, x23
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=2
	add	x25, x25, #1
	cmp	x22, x25
	b.eq	LBB0_7
LBB0_5:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w8, [x24, x25, lsl #2]
	tbz	w8, #31, LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=2
	mov	x0, x21
	mov	x1, x19
	mov	x2, x25
	bl	_lambda_matrix_col_negate
	mov	x0, x20
	mov	x1, x19
	mov	x2, x25
	bl	_lambda_matrix_col_negate
	b	LBB0_4
LBB0_7:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x25, x23, #1
	mov	x0, x24
	mov	x1, x19
	mov	x2, x25
	bl	_lambda_vector_first_nz
	cmp	w0, w22
	b.lt	LBB0_9
	b	LBB0_2
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=2
	mov	x0, x24
	mov	x1, x19
	mov	x2, x25
	bl	_lambda_vector_first_nz
	cmp	w0, w19
	b.ge	LBB0_2
LBB0_9:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_12 Depth 3
	mov	x0, x24
	mov	x1, x19
	mov	x2, x23
	bl	_lambda_vector_min_nz
	mov	x26, x0
	mov	x0, x21
	mov	x1, x19
	mov	x2, x23
	mov	x3, x26
	bl	_lambda_matrix_col_exchange
	mov	x0, x20
	mov	x1, x19
	mov	x2, x23
	mov	x3, x26
	bl	_lambda_matrix_col_exchange
	cmp	x25, x22
	b.hs	LBB0_8
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=2
	mov	x26, x28
	b	LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=3
	mov	x0, x21
	mov	x1, x22
	mov	x2, x23
	mov	x3, x26
	mov	x4, x27
	bl	_lambda_matrix_col_add
	mov	x0, x20
	mov	x1, x19
	mov	x2, x23
	mov	x3, x26
	mov	x4, x27
	bl	_lambda_matrix_col_add
	add	x26, x26, #1
	cmp	x22, x26
	b.eq	LBB0_8
LBB0_12:                                ;   Parent Loop BB0_3 Depth=1
                                        ;     Parent Loop BB0_9 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	ldr	w8, [x24, x26, lsl #2]
	neg	w27, w8
	ldr	w8, [x24, x23, lsl #2]
	cmp	w8, #1
	b.eq	LBB0_11
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=3
	sdiv	w27, w27, w8
	b	LBB0_11
LBB0_14:
	mov	w27, #0
	sub	w23, w19, #2
	mov	x28, x22
	mov	w8, #1
	str	w8, [sp, #12]                   ; 4-byte Folded Spill
	b	LBB0_16
LBB0_15:                                ;   in Loop: Header=BB0_16 Depth=1
	sub	w23, w23, #1
	ldr	w27, [sp, #8]                   ; 4-byte Folded Reload
	sub	w27, w27, #1
	cmp	x28, #2
	mov	x28, x24
	b.lt	LBB0_29
LBB0_16:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_19 Depth 2
                                        ;     Child Loop BB0_21 Depth 2
                                        ;     Child Loop BB0_26 Depth 2
	sub	x24, x28, #1
	ldr	x26, [x21, w24, uxtw #3]
	ldr	w25, [x26, w24, uxtw #2]
	mov	x0, x25
	bl	_gcc_assert
	cmp	w25, #1
	b.eq	LBB0_23
; %bb.17:                               ;   in Loop: Header=BB0_16 Depth=1
	str	w23, [sp, #8]                   ; 4-byte Folded Spill
	cmp	x28, #2
	b.lo	LBB0_20
; %bb.18:                               ;   in Loop: Header=BB0_16 Depth=1
	mov	w23, #1
LBB0_19:                                ;   Parent Loop BB0_16 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	sub	w2, w23, #1
	mov	x0, x20
	mov	x1, x19
	mov	x3, x25
	bl	_lambda_matrix_col_mc
	add	w23, w23, #1
	cmp	w28, w23
	b.ne	LBB0_19
LBB0_20:                                ;   in Loop: Header=BB0_16 Depth=1
	mov	x23, x27
	cmp	x28, x22
	b.ge	LBB0_22
LBB0_21:                                ;   Parent Loop BB0_16 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	w2, w19, w23
	mov	x0, x20
	mov	x1, x19
	mov	x3, x25
	bl	_lambda_matrix_col_mc
	adds	w23, w23, #1
	b.lo	LBB0_21
LBB0_22:                                ;   in Loop: Header=BB0_16 Depth=1
	and	x8, x24, #0xffffffff
	mov	w9, #1
	str	w9, [x26, x8, lsl #2]
	ldr	w23, [sp, #8]                   ; 4-byte Folded Reload
LBB0_23:                                ;   in Loop: Header=BB0_16 Depth=1
	ldr	w8, [sp, #12]                   ; 4-byte Folded Reload
	mul	w8, w25, w8
	str	w8, [sp, #12]                   ; 4-byte Folded Spill
	cmp	x28, #2
	b.lt	LBB0_29
; %bb.24:                               ;   in Loop: Header=BB0_16 Depth=1
	str	w27, [sp, #8]                   ; 4-byte Folded Spill
	mov	w23, w23
	add	x27, x26, x23, lsl #2
	mov	x25, x23
	b	LBB0_26
LBB0_25:                                ;   in Loop: Header=BB0_26 Depth=2
	mov	x8, x25
	sub	x25, x25, #1
	sub	x27, x27, #4
	cmp	w8, #0
	b.le	LBB0_15
LBB0_26:                                ;   Parent Loop BB0_16 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w8, [x27]
	cbz	w8, LBB0_25
; %bb.27:                               ;   in Loop: Header=BB0_26 Depth=2
	neg	w26, w8
	mov	x0, x21
	mov	x1, x19
	mov	x2, x24
	mov	x3, x25
	mov	x4, x26
	bl	_lambda_matrix_col_add
	mov	x0, x20
	mov	x1, x19
	mov	x2, x24
	mov	x3, x25
	mov	x4, x26
	bl	_lambda_matrix_col_add
	b	LBB0_25
LBB0_28:
	mov	w8, #1
	str	w8, [sp, #12]                   ; 4-byte Folded Spill
LBB0_29:
	ldr	w0, [sp, #12]                   ; 4-byte Folded Reload
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_lambda_matrix_inverse_hard
.subsections_via_symbols
