	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_lambda_matrix_right_hermite    ## -- Begin function lambda_matrix_right_hermite
	.p2align	4, 0x90
_lambda_matrix_right_hermite:           ## @lambda_matrix_right_hermite
	.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
	movq	%r8, %rbx
	movq	%rcx, %r14
	movl	%edx, %r15d
	movl	%esi, %r12d
	movq	%rcx, %rsi
	movl	%r12d, %edx
	movl	%r15d, %ecx
	callq	_lambda_matrix_copy
	movq	%rbx, -96(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	movl	%r12d, %esi
	callq	_lambda_matrix_id
	testl	%r15d, %r15d
	jle	LBB0_5
## %bb.1:
	movslq	%r12d, %rax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movl	%r15d, %r13d
	xorl	%edi, %edi
	xorl	%ebx, %ebx
	movl	%r15d, -56(%rbp)                ## 4-byte Spill
	movl	%r12d, -52(%rbp)                ## 4-byte Spill
	movq	%r13, -80(%rbp)                 ## 8-byte Spill
	movq	-96(%rbp), %r15                 ## 8-byte Reload
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%rdi
	cmpq	%r13, %rdi
	je	LBB0_5
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_8 Depth 2
                                        ##       Child Loop BB0_12 Depth 3
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movq	(%r14,%rdi,8), %rdi
	movl	%r12d, %esi
	movl	%ebx, %edx
	callq	_lambda_vector_first_nz
	cmpl	%r12d, %eax
	jge	LBB0_3
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	incl	%ebx
	cmpl	%r12d, %ebx
	jge	LBB0_3
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%ebx, -60(%rbp)                 ## 4-byte Spill
	movslq	%ebx, %rax
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	movq	-88(%rbp), %r13                 ## 8-byte Reload
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_8 Depth=2
	cmpq	-104(%rbp), %r13                ## 8-byte Folded Reload
	jle	LBB0_10
LBB0_8:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_12 Depth 3
	movq	%r13, %rax
	decq	%r13
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	-8(%r14,%rax,8), %rax
	movq	(%rax,%rdi,8), %rcx
	testq	%rcx, %rcx
	movl	-56(%rbp), %esi                 ## 4-byte Reload
	je	LBB0_9
## %bb.11:                              ##   in Loop: Header=BB0_8 Depth=2
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	addl	$-2, %eax
	movl	%eax, -64(%rbp)                 ## 4-byte Spill
	.p2align	4, 0x90
LBB0_12:                                ##   Parent Loop BB0_2 Depth=1
                                        ##     Parent Loop BB0_8 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	-16(%r14,%rax,8), %rax
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movl	(%rax,%rdx,8), %edx
	movl	%edx, %ebx
	imull	%ecx, %ebx
	movl	%edx, %eax
	negl	%eax
	cmovsl	%edx, %eax
	movl	%ecx, %edi
	negl	%edi
	cmovsl	%ecx, %edi
	xorl	%edx, %edx
	divl	%edi
	movl	%eax, %r12d
	negl	%r12d
	testl	%ebx, %ebx
	cmovsl	%eax, %r12d
	movq	%r14, %rdi
	movl	%r13d, %edx
	movl	-64(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %ecx
	movl	%r12d, %r8d
	callq	_lambda_matrix_row_add
	movq	%r14, %rdi
	movl	%r13d, %esi
	movl	%ebx, %edx
	callq	_lambda_matrix_row_exchange
	movq	%r15, %rdi
	movl	-52(%rbp), %esi                 ## 4-byte Reload
	movl	%r13d, %edx
	movl	%ebx, %ecx
	movl	%r12d, %r8d
	callq	_lambda_matrix_row_add
	movq	%r15, %rdi
	movl	%r13d, %esi
	movl	%ebx, %edx
	callq	_lambda_matrix_row_exchange
	movl	-56(%rbp), %esi                 ## 4-byte Reload
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	(%r14,%r13,8), %rax
	movq	(%rax,%rdi,8), %rcx
	testq	%rcx, %rcx
	jne	LBB0_12
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	-52(%rbp), %r12d                ## 4-byte Reload
	movq	-80(%rbp), %r13                 ## 8-byte Reload
	movl	-60(%rbp), %ebx                 ## 4-byte Reload
	jmp	LBB0_4
LBB0_5:
	addq	$72, %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	_lambda_matrix_right_hermite    ; -- Begin function lambda_matrix_right_hermite
	.p2align	2
_lambda_matrix_right_hermite:           ; @lambda_matrix_right_hermite
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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, x4
	mov	x20, x3
	mov	x21, x2
	mov	x22, x1
	mov	x1, x3
	mov	x2, x22
	mov	x3, x21
	bl	_lambda_matrix_copy
	mov	x0, x19
	mov	x1, x22
	bl	_lambda_matrix_id
	cmp	w21, #1
	b.lt	LBB0_11
; %bb.1:
	mov	x27, #0
	mov	w23, #0
	sxtw	x8, w22
	mov	w24, w21
	stp	x24, x8, [sp, #8]               ; 16-byte Folded Spill
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x23, [sp, #24]                  ; 8-byte Folded Reload
	ldr	x24, [sp, #8]                   ; 8-byte Folded Reload
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x27, x27, #1
	cmp	x27, x24
	b.eq	LBB0_11
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_8 Depth 2
                                        ;       Child Loop BB0_10 Depth 3
	ldr	x0, [x20, x27, lsl #3]
	mov	x1, x22
	mov	x2, x23
	bl	_lambda_vector_first_nz
	cmp	w0, w22
	b.ge	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	add	w23, w23, #1
	cmp	w23, w22
	b.ge	LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	str	x23, [sp, #24]                  ; 8-byte Folded Spill
	sxtw	x28, w23
	ldr	x24, [sp, #16]                  ; 8-byte Folded Reload
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=2
	cmp	x24, x28
	b.le	LBB0_2
LBB0_8:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_10 Depth 3
	mov	x9, x24
	sub	x24, x24, #1
	ldr	x8, [x20, x24, lsl #3]
	ldr	x8, [x8, x27, lsl #3]
	cbz	x8, LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=2
	sub	x25, x9, #2
LBB0_10:                                ;   Parent Loop BB0_4 Depth=1
                                        ;     Parent Loop BB0_8 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	ldr	x9, [x20, x25, lsl #3]
	lsl	x23, x27, #3
	ldr	w9, [x9, x23]
	mul	w10, w9, w8
	cmp	w9, #0
	cneg	w9, w9, mi
	cmp	w8, #0
	cneg	w8, w8, mi
	udiv	w8, w9, w8
	cmp	w10, #0
	cneg	w26, w8, ge
	mov	x0, x20
	mov	x1, x21
	mov	x2, x24
	mov	x3, x25
	mov	x4, x26
	bl	_lambda_matrix_row_add
	mov	x0, x20
	mov	x1, x24
	mov	x2, x25
	bl	_lambda_matrix_row_exchange
	mov	x0, x19
	mov	x1, x22
	mov	x2, x24
	mov	x3, x25
	mov	x4, x26
	bl	_lambda_matrix_row_add
	mov	x0, x19
	mov	x1, x24
	mov	x2, x25
	bl	_lambda_matrix_row_exchange
	ldr	x8, [x20, x24, lsl #3]
	ldr	x8, [x8, x23]
	cbnz	x8, LBB0_10
	b	LBB0_7
LBB0_11:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
