	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function find_reduced_matrix
_find_reduced_matrix:                   ## @find_reduced_matrix
	.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	%rdi, -72(%rbp)                 ## 8-byte Spill
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	testl	%ecx, %ecx
	jle	LBB0_9
## %bb.1:
	movl	%r8d, %r14d
	movl	%esi, %r13d
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	xorl	%r15d, %r15d
	cmpl	%edx, %esi
	setle	%r15b
	movslq	%esi, %rbx
	xorl	%edi, %edi
	cmpl	%ebx, %edx
	setle	%dil
	movl	%edi, -56(%rbp)                 ## 4-byte Spill
	movl	%ebx, %edx
	movq	%rdx, -88(%rbp)                 ## 8-byte Spill
	movq	%rax, -112(%rbp)                ## 8-byte Spill
	leaq	(,%rax,4), %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	%rbx, -104(%rbp)                ## 8-byte Spill
	leaq	(,%rbx,4), %rax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	movl	$0, -48(%rbp)                   ## 4-byte Folded Spill
	movl	%esi, -64(%rbp)                 ## 4-byte Spill
	movl	%r15d, -60(%rbp)                ## 4-byte Spill
	movl	%r8d, -52(%rbp)                 ## 4-byte Spill
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
                                        ##     Child Loop BB0_6 Depth 2
	testl	%r13d, %r13d
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	jle	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-88(%rbp), %rbx                 ## 8-byte Reload
	movq	-72(%rbp), %r12                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	leaq	(%r12,%rax), %rdx
	movq	%r12, %rdi
	movl	%r13d, %esi
	movl	%r15d, %ecx
	movl	%r14d, %r8d
	callq	_adjust_dual
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	addq	$4, %r12
	decq	%rbx
	jne	LBB0_4
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	xorl	%ebx, %ebx
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	xorl	%r14d, %r14d
	movl	-56(%rbp), %r13d                ## 4-byte Reload
	movq	-96(%rbp), %r15                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_6:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	leaq	(%rdi,%r15), %r12
	movl	$1, %esi
	movq	%r12, %rdx
	movl	%r13d, %ecx
	movl	-52(%rbp), %r8d                 ## 4-byte Reload
	callq	_adjust_dual
	addl	%eax, %r14d
	addq	-104(%rbp), %rbx                ## 8-byte Folded Reload
	movq	%r12, %rdi
	cmpq	-112(%rbp), %rbx                ## 8-byte Folded Reload
	jl	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	testl	%r14d, %r14d
	movl	-64(%rbp), %r13d                ## 4-byte Reload
	movl	-60(%rbp), %r15d                ## 4-byte Reload
	movl	-52(%rbp), %r14d                ## 4-byte Reload
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	incl	%eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	cmpl	-44(%rbp), %eax                 ## 4-byte Folded Reload
	jne	LBB0_2
LBB0_9:
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_find_reduced_matrix
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function find_reduced_matrix
_find_reduced_matrix:                   ; @find_reduced_matrix
	.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
	stp	x1, x0, [sp, #24]               ; 16-byte Folded Spill
	str	w3, [sp, #20]                   ; 4-byte Folded Spill
	cmp	w3, #1
	b.lt	LBB0_9
; %bb.1:
	mov	x19, x4
	str	wzr, [sp, #44]                  ; 4-byte Folded Spill
	ldr	w8, [sp, #20]                   ; 4-byte Folded Reload
	mov	w27, w8
	ldr	x8, [sp, #24]                   ; 8-byte Folded Reload
	cmp	w8, w2
	sxtw	x28, w8
	cset	w23, le
	cmp	w2, w8
	cset	w24, le
	lsl	x20, x27, #2
	sbfiz	x22, x8, #2, #32
	mov	w8, w8
	str	x8, [sp, #8]                    ; 8-byte Folded Spill
LBB0_2:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_4 Depth 2
                                        ;     Child Loop BB0_6 Depth 2
	ldr	x26, [sp, #24]                  ; 8-byte Folded Reload
	cmp	w26, #1
	b.lt	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x21, [sp, #8]                   ; 8-byte Folded Reload
	ldr	x25, [sp, #32]                  ; 8-byte Folded Reload
LBB0_4:                                 ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	x2, x25, x20
	mov	x0, x25
	mov	x1, x26
	mov	x3, x23
	mov	x4, x19
	bl	_adjust_dual
	add	x25, x25, #4
	subs	x21, x21, #1
	b.ne	LBB0_4
LBB0_5:                                 ;   in Loop: Header=BB0_2 Depth=1
	mov	x21, #0
	mov	w26, #0
	ldr	x0, [sp, #32]                   ; 8-byte Folded Reload
LBB0_6:                                 ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	x25, x0, x22
	mov	w1, #1
	mov	x2, x25
	mov	x3, x24
	mov	x4, x19
	bl	_adjust_dual
	add	w26, w26, w0
	add	x21, x21, x28
	cmp	x21, x27
	mov	x0, x25
	b.lt	LBB0_6
; %bb.7:                                ;   in Loop: Header=BB0_2 Depth=1
	cbz	w26, LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w9, [sp, #44]                   ; 4-byte Folded Reload
	add	w9, w9, #1
	ldr	w8, [sp, #20]                   ; 4-byte Folded Reload
	str	w9, [sp, #44]                   ; 4-byte Folded Spill
	cmp	w9, w8
	b.ne	LBB0_2
LBB0_9:
	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	_find_reduced_matrix
.subsections_via_symbols
