	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lambda_compute_step_signs
_lambda_compute_step_signs:             ## @lambda_compute_step_signs
	.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
	movl	%edi, %ebx
	callq	_LTM_MATRIX
	movq	%rax, %r15
	movl	%ebx, %edi
	callq	_LTM_ROWSIZE
	movl	%eax, %ebx
	movl	%eax, %edi
	movl	%eax, %esi
	callq	_lambda_matrix_new
	movq	%rax, %r12
	movl	%ebx, %edi
	callq	_lambda_vector_new
	movq	%r14, %rdi
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	%rax, %rsi
	movl	%ebx, %edx
	callq	_lambda_vector_copy
	movq	%r15, %rdi
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	movq	%r12, %rsi
	movl	%ebx, %edx
	movl	%ebx, %ecx
	callq	_lambda_matrix_copy
	testl	%ebx, %ebx
	jle	LBB0_13
## %bb.1:
	movl	%ebx, %r12d
	movl	$1, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	xorl	%ebx, %ebx
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_3 Depth=1
	incq	-56(%rbp)                       ## 8-byte Folded Spill
	cmpq	%r12, %rbx
	je	LBB0_13
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
                                        ##     Child Loop BB0_10 Depth 2
                                        ##       Child Loop BB0_12 Depth 3
	movq	%rbx, %r13
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax,%rbx,8), %r15
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=2
	incq	%rbx
	cmpq	%rbx, %r12
	je	LBB0_7
LBB0_4:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpl	$0, (%r15,%rbx,4)
	jns	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=2
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%r12d, %esi
	movl	%ebx, %edx
	callq	_lambda_matrix_col_negate
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	leaq	1(%r13), %rbx
	movq	%r15, %rdi
	movl	%r12d, %esi
	movl	%ebx, %edx
	callq	_lambda_vector_first_nz
	cmpl	%r12d, %eax
	jge	LBB0_2
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_10 Depth=2
	movq	%r15, %rdi
	movl	%r12d, %esi
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movl	%ebx, %edx
	callq	_lambda_vector_first_nz
	cmpl	%r12d, %eax
	jge	LBB0_2
LBB0_10:                                ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_12 Depth 3
	movq	%r15, %rdi
	movl	%r12d, %esi
	movl	%r13d, %edx
	callq	_lambda_vector_min_nz
	movl	%eax, %r14d
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movl	%r12d, %esi
	movl	%r13d, %edx
	movl	%eax, %ecx
	callq	_lambda_matrix_col_exchange
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movl	(%rsi,%r13,4), %eax
	movslq	%r14d, %rcx
	movl	(%rsi,%rcx,4), %edx
	movl	%edx, (%rsi,%r13,4)
	movl	%eax, (%rsi,%rcx,4)
	cmpq	%r12, -72(%rbp)                 ## 8-byte Folded Reload
	jae	LBB0_9
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=2
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_12:                                ##   Parent Loop BB0_3 Depth=1
                                        ##     Parent Loop BB0_10 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movl	(%r15,%r14,4), %eax
	cltd
	idivl	(%r15,%r13,4)
	negl	%eax
	movq	%rbx, %rdi
	movl	%r12d, %esi
	movl	%r13d, %edx
	movl	%r14d, %ecx
	movl	%eax, %r8d
	callq	_lambda_matrix_col_add
	incq	%r14
	cmpq	%r14, %r12
	jne	LBB0_12
	jmp	LBB0_9
LBB0_13:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_lambda_compute_step_signs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lambda_compute_step_signs
_lambda_compute_step_signs:             ; @lambda_compute_step_signs
	.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
	mov	x22, x1
	mov	x19, x0
	bl	_LTM_MATRIX
	mov	x23, x0
	mov	x0, x19
	bl	_LTM_ROWSIZE
	mov	x21, x0
	mov	x1, x0
	bl	_lambda_matrix_new
	mov	x19, x0
	mov	x0, x21
	bl	_lambda_vector_new
	mov	x20, x0
	mov	x0, x22
	mov	x1, x20
	mov	x2, x21
	bl	_lambda_vector_copy
	mov	x0, x23
	mov	x1, x19
	mov	x2, x21
	mov	x3, x21
	bl	_lambda_matrix_copy
	cmp	w21, #1
	b.lt	LBB0_12
; %bb.1:
	mov	x22, #0
	mov	w21, w21
	mov	w26, #1
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x26, x26, #1
	mov	x22, x24
	cmp	x24, x21
	b.eq	LBB0_12
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
                                        ;     Child Loop BB0_8 Depth 2
                                        ;       Child Loop BB0_11 Depth 3
	ldr	x23, [x19, x22, lsl #3]
	mov	x24, x22
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=2
	add	x24, x24, #1
	cmp	x21, x24
	b.eq	LBB0_7
LBB0_5:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w8, [x23, x24, lsl #2]
	tbz	w8, #31, LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=2
	mov	x0, x19
	mov	x1, x21
	mov	x2, x24
	bl	_lambda_matrix_col_negate
	b	LBB0_4
LBB0_7:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x24, x22, #1
LBB0_8:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_11 Depth 3
	mov	x0, x23
	mov	x1, x21
	mov	x2, x24
	bl	_lambda_vector_first_nz
	cmp	w0, w21
	b.ge	LBB0_2
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=2
	mov	x0, x23
	mov	x1, x21
	mov	x2, x22
	bl	_lambda_vector_min_nz
	mov	x25, x0
	mov	x0, x19
	mov	x1, x21
	mov	x2, x22
	mov	x3, x25
	bl	_lambda_matrix_col_exchange
	lsl	x8, x22, #2
	ldr	w9, [x20, x8]
	sbfiz	x10, x25, #2, #32
	ldr	w11, [x20, x10]
	str	w11, [x20, x8]
	str	w9, [x20, x10]
	cmp	x24, x21
	b.hs	LBB0_8
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=2
	mov	x25, x26
LBB0_11:                                ;   Parent Loop BB0_3 Depth=1
                                        ;     Parent Loop BB0_8 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	ldr	w8, [x23, x25, lsl #2]
	ldr	w9, [x23, x22, lsl #2]
	sdiv	w8, w8, w9
	neg	w4, w8
	mov	x0, x19
	mov	x1, x21
	mov	x2, x22
	mov	x3, x25
	bl	_lambda_matrix_col_add
	add	x25, x25, #1
	cmp	x21, x25
	b.ne	LBB0_11
	b	LBB0_8
LBB0_12:
	mov	x0, x20
	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
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_lambda_compute_step_signs
.subsections_via_symbols
