	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function reduce_matrix
LCPI0_0:
	.quad	0x3ff0000000000000              ## double 1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_reduce_matrix:                         ## @reduce_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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %ebx
	movq	%rsi, %r13
	movq	%rdi, %r12
	movq	(%rdi), %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	movq	8(%r12), %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	movq	16(%r12), %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	movl	24(%r12), %esi
	movslq	%ebx, %rax
	testl	%esi, %esi
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	jle	LBB0_18
## %bb.1:
	movl	28(%r12), %r8d
	leaq	(,%rax,8), %r11
	xorl	%ecx, %ecx
	xorpd	%xmm0, %xmm0
	movq	%r13, %r10
	movq	%r13, %rbx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_2 Depth=1
	incq	%rcx
	movslq	24(%r12), %rsi
	addq	%r11, %rbx
	addq	$8, %r10
	cmpq	%rsi, %rcx
	jge	LBB0_18
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_6 Depth 2
                                        ##     Child Loop BB0_13 Depth 2
	testl	%r8d, %r8d
	jle	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rcx, %rax
	imulq	-48(%rbp), %rax                 ## 8-byte Folded Reload
	movl	%r8d, %edx
	movsd	(%r13,%rax,8), %xmm1            ## xmm1 = mem[0],zero
	movb	$1, %r9b
	ucomisd	%xmm0, %xmm1
	jne	LBB0_9
	jp	LBB0_9
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	$1, %eax
	.p2align	4, 0x90
LBB0_6:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%rax, %rdi
	cmpq	%rax, %rdx
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=2
	movsd	(%rbx,%rdi,8), %xmm1            ## xmm1 = mem[0],zero
	leaq	1(%rdi), %rax
	ucomisd	%xmm0, %xmm1
	jne	LBB0_8
	jnp	LBB0_6
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	cmpq	%rdx, %rdi
	setb	%r9b
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	cmpq	%rdx, %rcx
	jl	LBB0_10
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_2 Depth=1
	movslq	%r8d, %rdx
	xorl	%r9d, %r9d
	cmpq	%rdx, %rcx
	jge	LBB0_14
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	testl	%esi, %esi
	jle	LBB0_14
## %bb.11:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	%esi, %edx
	movq	%r10, %rsi
	.p2align	4, 0x90
LBB0_13:                                ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movsd	(%rsi), %xmm1                   ## xmm1 = mem[0],zero
	ucomisd	%xmm0, %xmm1
	jne	LBB0_17
	jp	LBB0_17
## %bb.12:                              ##   in Loop: Header=BB0_13 Depth=2
	addq	%r11, %rsi
	decq	%rdx
	jne	LBB0_13
LBB0_14:                                ##   in Loop: Header=BB0_2 Depth=1
	testb	%r9b, %r9b
	jne	LBB0_17
## %bb.15:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r12), %rax
	movl	$1, (%rax,%rcx,4)
	decq	32(%r12)
	movslq	28(%r12), %r8
	cmpq	%r8, %rcx
	jge	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_2 Depth=1
	decq	40(%r12)
	jmp	LBB0_17
LBB0_18:
	leaq	32(%r12), %rax
	cmpq	$0, 32(%r12)
	je	LBB0_26
## %bb.19:
	cmpq	$0, 40(%r12)
	je	LBB0_26
## %bb.20:
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movl	28(%r12), %edi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_FFMIN
	testl	%eax, %eax
	jle	LBB0_21
## %bb.27:
	movq	-48(%rbp), %r9                  ## 8-byte Reload
	leaq	(,%r9,8), %r14
	xorl	%ebx, %ebx
	movsd	LCPI0_0(%rip), %xmm1            ## xmm1 = mem[0],zero
	xorpd	%xmm2, %xmm2
	movq	%r13, %r15
	jmp	LBB0_28
	.p2align	4, 0x90
LBB0_40:                                ##   in Loop: Header=BB0_28 Depth=1
	testl	%r8d, %r8d
	je	LBB0_42
LBB0_41:                                ##   in Loop: Header=BB0_28 Depth=1
	movq	8(%r12), %rax
	movl	$1, (%rax,%rbx,4)
	decq	40(%r12)
	movl	24(%r12), %esi
LBB0_42:                                ##   in Loop: Header=BB0_28 Depth=1
	incq	%rbx
	movl	28(%r12), %edi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_FFMIN
	xorpd	%xmm2, %xmm2
	movsd	LCPI0_0(%rip), %xmm1            ## xmm1 = mem[0],zero
	movq	-48(%rbp), %r9                  ## 8-byte Reload
	cltq
	addq	%r14, %r15
	cmpq	%rax, %rbx
	jge	LBB0_22
LBB0_28:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_30 Depth 2
                                        ##       Child Loop BB0_35 Depth 3
	movl	24(%r12), %esi
	testl	%esi, %esi
	jle	LBB0_41
## %bb.29:                              ##   in Loop: Header=BB0_28 Depth=1
	movq	%rbx, %rax
	imulq	%r9, %rax
	addq	%rbx, %rax
	movl	$1, %r8d
	xorl	%edx, %edx
	jmp	LBB0_30
	.p2align	4, 0x90
LBB0_31:                                ##   in Loop: Header=BB0_30 Depth=2
	movq	%rdx, %rcx
	imulq	%r9, %rcx
	addq	%rbx, %rcx
	movsd	(%r13,%rcx,8), %xmm0            ## xmm0 = mem[0],zero
	ucomisd	%xmm2, %xmm0
	jne	LBB0_42
	jp	LBB0_42
LBB0_39:                                ##   in Loop: Header=BB0_30 Depth=2
	incq	%rdx
	cmpq	%rsi, %rdx
	je	LBB0_40
LBB0_30:                                ##   Parent Loop BB0_28 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_35 Depth 3
	cmpq	%rbx, %rdx
	jne	LBB0_31
## %bb.32:                              ##   in Loop: Header=BB0_30 Depth=2
	movsd	(%r13,%rax,8), %xmm0            ## xmm0 = mem[0],zero
	ucomisd	%xmm1, %xmm0
	jne	LBB0_42
	jp	LBB0_42
## %bb.33:                              ##   in Loop: Header=BB0_30 Depth=2
	movl	28(%r12), %edi
	testl	%edi, %edi
	jle	LBB0_39
## %bb.34:                              ##   in Loop: Header=BB0_30 Depth=2
	xorl	%ecx, %ecx
	jmp	LBB0_35
	.p2align	4, 0x90
LBB0_38:                                ##   in Loop: Header=BB0_35 Depth=3
	incq	%rcx
	cmpq	%rcx, %rdi
	je	LBB0_39
LBB0_35:                                ##   Parent Loop BB0_28 Depth=1
                                        ##     Parent Loop BB0_30 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	cmpq	%rcx, %rbx
	je	LBB0_38
## %bb.36:                              ##   in Loop: Header=BB0_35 Depth=3
	movsd	(%r15,%rcx,8), %xmm0            ## xmm0 = mem[0],zero
	ucomisd	%xmm2, %xmm0
	jne	LBB0_37
	jnp	LBB0_38
LBB0_37:                                ##   in Loop: Header=BB0_30 Depth=2
	xorl	%r8d, %r8d
	jmp	LBB0_39
LBB0_26:
	xorpd	%xmm0, %xmm0
	movupd	%xmm0, (%rax)
	jmp	LBB0_67
LBB0_21:
	xorl	%ebx, %ebx
	movq	-48(%rbp), %r9                  ## 8-byte Reload
LBB0_22:
	movl	28(%r12), %edi
	cmpl	%edi, %ebx
	jge	LBB0_46
## %bb.23:
	movl	%ebx, %eax
	leaq	(,%rax,8), %rbx
	addq	%r13, %rbx
	leaq	(,%r9,8), %rdx
	xorpd	%xmm0, %xmm0
	jmp	LBB0_24
	.p2align	4, 0x90
LBB0_25:                                ##   in Loop: Header=BB0_24 Depth=1
	movq	8(%r12), %rcx
	movl	$1, (%rcx,%rax,4)
	decq	40(%r12)
	movl	28(%r12), %edi
LBB0_45:                                ##   in Loop: Header=BB0_24 Depth=1
	incq	%rax
	movslq	%edi, %rcx
	addq	$8, %rbx
	cmpq	%rcx, %rax
	jge	LBB0_46
LBB0_24:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_44 Depth 2
	movl	24(%r12), %esi
	movq	%rbx, %rcx
	testl	%esi, %esi
	jle	LBB0_25
	.p2align	4, 0x90
LBB0_44:                                ##   Parent Loop BB0_24 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movsd	(%rcx), %xmm1                   ## xmm1 = mem[0],zero
	ucomisd	%xmm0, %xmm1
	jne	LBB0_45
	jp	LBB0_45
## %bb.43:                              ##   in Loop: Header=BB0_44 Depth=2
	addq	%rdx, %rcx
	decq	%rsi
	jne	LBB0_44
	jmp	LBB0_25
LBB0_46:
	cmpq	$0, 40(%r12)
	je	LBB0_68
## %bb.47:
	movq	%r13, -72(%rbp)                 ## 8-byte Spill
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	movl	24(%r12), %esi
	callq	_FFMIN
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	testl	%eax, %eax
	jle	LBB0_65
## %bb.48:
	leaq	(,%rdx,8), %r13
	xorl	%r12d, %r12d
	movsd	LCPI0_0(%rip), %xmm1            ## xmm1 = mem[0],zero
	xorpd	%xmm2, %xmm2
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %r8
	xorl	%r15d, %r15d
	jmp	LBB0_49
	.p2align	4, 0x90
LBB0_64:                                ##   in Loop: Header=BB0_49 Depth=1
	incq	%r15
                                        ## kill: def $edi killed $edi killed $rdi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_FFMIN
	cltq
	decq	%r12
	addq	%r13, %r14
	movq	%rbx, %r8
	addq	$8, %r8
	cmpq	%rax, %r15
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movsd	LCPI0_0(%rip), %xmm1            ## xmm1 = mem[0],zero
	xorpd	%xmm2, %xmm2
	jge	LBB0_65
LBB0_49:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_52 Depth 2
                                        ##     Child Loop BB0_58 Depth 2
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	28(%rax), %edi
	testl	%edi, %edi
	jle	LBB0_50
## %bb.51:                              ##   in Loop: Header=BB0_49 Depth=1
	movq	%r15, %rcx
	imulq	%rdx, %rcx
	addq	%r15, %rcx
	movq	%rdi, %rdx
	negq	%rdx
	movb	$1, %al
	movl	$1, %esi
	.p2align	4, 0x90
LBB0_52:                                ##   Parent Loop BB0_49 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	leaq	(%r12,%rsi), %rbx
	cmpq	$1, %rbx
	jne	LBB0_53
## %bb.69:                              ##   in Loop: Header=BB0_52 Depth=2
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movsd	(%rbx,%rcx,8), %xmm0            ## xmm0 = mem[0],zero
	ucomisd	%xmm1, %xmm0
	jne	LBB0_56
	jnp	LBB0_55
	jmp	LBB0_56
	.p2align	4, 0x90
LBB0_53:                                ##   in Loop: Header=BB0_52 Depth=2
	movsd	-8(%r14,%rsi,8), %xmm0          ## xmm0 = mem[0],zero
	ucomisd	%xmm2, %xmm0
	jne	LBB0_56
	jp	LBB0_56
LBB0_55:                                ##   in Loop: Header=BB0_52 Depth=2
	cmpq	%rdi, %rsi
	setb	%al
	leaq	(%rdx,%rsi), %rbx
	incq	%rbx
	incq	%rsi
	cmpq	$1, %rbx
	jne	LBB0_52
	jmp	LBB0_56
	.p2align	4, 0x90
LBB0_50:                                ##   in Loop: Header=BB0_49 Depth=1
	xorl	%eax, %eax
LBB0_56:                                ##   in Loop: Header=BB0_49 Depth=1
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	24(%rcx), %esi
	testl	%esi, %esi
	jle	LBB0_62
## %bb.57:                              ##   in Loop: Header=BB0_49 Depth=1
	movq	%r8, %rcx
	xorl	%edx, %edx
	jmp	LBB0_58
	.p2align	4, 0x90
LBB0_61:                                ##   in Loop: Header=BB0_58 Depth=2
	incq	%rdx
	addq	%r13, %rcx
	cmpq	%rdx, %rsi
	je	LBB0_62
LBB0_58:                                ##   Parent Loop BB0_49 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpq	%rdx, %r15
	je	LBB0_61
## %bb.59:                              ##   in Loop: Header=BB0_58 Depth=2
	movsd	(%rcx), %xmm0                   ## xmm0 = mem[0],zero
	ucomisd	%xmm2, %xmm0
	jne	LBB0_60
	jnp	LBB0_61
LBB0_60:                                ##   in Loop: Header=BB0_49 Depth=1
	movq	%r8, %rbx
	jmp	LBB0_64
	.p2align	4, 0x90
LBB0_62:                                ##   in Loop: Header=BB0_49 Depth=1
	movq	%r8, %rbx
	testb	$1, %al
	jne	LBB0_64
## %bb.63:                              ##   in Loop: Header=BB0_49 Depth=1
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	16(%rcx), %rax
	movl	$1, (%rax,%r15,4)
	decq	32(%rcx)
	movl	24(%rcx), %esi
	movl	28(%rcx), %edi
	jmp	LBB0_64
LBB0_65:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	cmpq	$0, (%rax)
	jne	LBB0_67
## %bb.66:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	$0, 40(%rax)
	jmp	LBB0_67
LBB0_68:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	$0, (%rax)
LBB0_67:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_reduce_matrix
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function reduce_matrix
_reduce_matrix:                         ; @reduce_matrix
	.cfi_startproc
; %bb.0:
	stp	d9, d8, [sp, #-112]!            ; 16-byte Folded Spill
	.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
	.cfi_offset b8, -104
	.cfi_offset b9, -112
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
	ldr	x0, [x0]
	mov	w1, #0
	mov	w2, #8
	bl	_memset
	ldr	x0, [x19, #8]
	mov	w1, #0
	mov	w2, #8
	bl	_memset
	ldr	x0, [x19, #16]
	mov	w1, #0
	mov	w2, #8
	bl	_memset
	ldr	w1, [x19, #24]
	cmp	w1, #1
	b.lt	LBB0_18
; %bb.1:
	mov	x8, #0
	sxtw	x9, w21
	ldr	w13, [x19, #28]
	sbfiz	x10, x21, #3, #32
	mov	w11, #1
	mov	x12, x20
	mov	x14, x20
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x8, x8, #1
	ldrsw	x1, [x19, #24]
	add	x14, x14, x10
	add	x12, x12, #8
	cmp	x8, x1
	b.ge	LBB0_18
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_8 Depth 2
                                        ;     Child Loop BB0_13 Depth 2
	cmp	w13, #0
	b.le	LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mul	x15, x8, x9
	mov	w16, w13
	ldr	d0, [x20, x15, lsl #3]
	fcmp	d0, #0.0
	b.eq	LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	w15, #1
	cmp	x8, x16
	b.lt	LBB0_11
	b	LBB0_15
LBB0_6:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	w15, #0
	mov	x16, x13
	sxtw	x16, w16
	cmp	x8, x16
	b.lt	LBB0_11
	b	LBB0_15
LBB0_7:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	w17, #1
LBB0_8:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x15, x17
	cmp	x16, x17
	b.eq	LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=2
	ldr	d0, [x14, x15, lsl #3]
	add	x17, x15, #1
	fcmp	d0, #0.0
	b.eq	LBB0_8
LBB0_10:                                ;   in Loop: Header=BB0_3 Depth=1
	cmp	x15, x16
	cset	w15, lo
	cmp	x8, x16
	b.ge	LBB0_15
LBB0_11:                                ;   in Loop: Header=BB0_3 Depth=1
	cmp	w1, #1
	b.lt	LBB0_15
; %bb.12:                               ;   in Loop: Header=BB0_3 Depth=1
	mov	w16, w1
	mov	x17, x12
LBB0_13:                                ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	d0, [x17]
	fcmp	d0, #0.0
	b.ne	LBB0_2
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=2
	add	x17, x17, x10
	subs	x16, x16, #1
	b.ne	LBB0_13
LBB0_15:                                ;   in Loop: Header=BB0_3 Depth=1
	tbnz	w15, #0, LBB0_2
; %bb.16:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	x13, [x19]
	str	w11, [x13, x8, lsl #2]
	ldr	x13, [x19, #32]
	sub	x13, x13, #1
	str	x13, [x19, #32]
	ldrsw	x13, [x19, #28]
	cmp	x8, x13
	b.ge	LBB0_2
; %bb.17:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	x15, [x19, #40]
	sub	x15, x15, #1
	str	x15, [x19, #40]
	b	LBB0_2
LBB0_18:
	mov	x22, x19
	ldr	x8, [x22, #32]!
	cbz	x8, LBB0_37
; %bb.19:
	ldr	x8, [x19, #40]
	cbz	x8, LBB0_37
; %bb.20:
	ldr	w0, [x19, #28]
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_FFMIN
	cmp	w0, #1
	b.lt	LBB0_38
; %bb.21:
	mov	x23, #0
	mov	x8, x21
	sxtw	x24, w8
	sbfiz	x25, x8, #3, #32
	fmov	d8, #1.00000000
	mov	w26, #1
	mov	x27, x20
	b	LBB0_25
LBB0_22:                                ;   in Loop: Header=BB0_25 Depth=1
	cbz	w10, LBB0_24
LBB0_23:                                ;   in Loop: Header=BB0_25 Depth=1
	ldr	x8, [x19, #8]
	str	w26, [x8, x23, lsl #2]
	ldr	x8, [x19, #40]
	sub	x8, x8, #1
	str	x8, [x19, #40]
	ldr	w1, [x19, #24]
LBB0_24:                                ;   in Loop: Header=BB0_25 Depth=1
	add	x23, x23, #1
	ldr	w0, [x19, #28]
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_FFMIN
	add	x27, x27, x25
	cmp	x23, w0, sxtw
	b.ge	LBB0_39
LBB0_25:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_29 Depth 2
                                        ;       Child Loop BB0_34 Depth 3
	ldr	w1, [x19, #24]
	cmp	w1, #1
	b.lt	LBB0_23
; %bb.26:                               ;   in Loop: Header=BB0_25 Depth=1
	mov	x8, #0
	madd	x9, x23, x24, x23
	mov	w10, #1
	b	LBB0_29
LBB0_27:                                ;   in Loop: Header=BB0_29 Depth=2
	madd	x11, x8, x24, x23
	ldr	d0, [x20, x11, lsl #3]
	fcmp	d0, #0.0
	b.ne	LBB0_24
LBB0_28:                                ;   in Loop: Header=BB0_29 Depth=2
	add	x8, x8, #1
	cmp	x8, x1
	b.eq	LBB0_22
LBB0_29:                                ;   Parent Loop BB0_25 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_34 Depth 3
	cmp	x8, x23
	b.ne	LBB0_27
; %bb.30:                               ;   in Loop: Header=BB0_29 Depth=2
	ldr	d0, [x20, x9, lsl #3]
	fcmp	d0, d8
	b.ne	LBB0_24
; %bb.31:                               ;   in Loop: Header=BB0_29 Depth=2
	ldr	w11, [x19, #28]
	cmp	w11, #1
	b.lt	LBB0_28
; %bb.32:                               ;   in Loop: Header=BB0_29 Depth=2
	mov	x12, #0
	b	LBB0_34
LBB0_33:                                ;   in Loop: Header=BB0_34 Depth=3
	add	x12, x12, #1
	cmp	x11, x12
	b.eq	LBB0_28
LBB0_34:                                ;   Parent Loop BB0_25 Depth=1
                                        ;     Parent Loop BB0_29 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	cmp	x23, x12
	b.eq	LBB0_33
; %bb.35:                               ;   in Loop: Header=BB0_34 Depth=3
	ldr	d0, [x27, x12, lsl #3]
	fcmp	d0, #0.0
	b.eq	LBB0_33
; %bb.36:                               ;   in Loop: Header=BB0_29 Depth=2
	mov	w10, #0
	b	LBB0_28
LBB0_37:
	stp	xzr, xzr, [x22]
	b	LBB0_67
LBB0_38:
	mov	w23, #0
LBB0_39:
	ldr	w0, [x19, #28]
	cmp	w23, w0
	b.ge	LBB0_46
; %bb.40:
	mov	w8, w23
	mov	x9, x21
	sbfiz	x9, x9, #3, #32
	mov	w10, #1
	add	x11, x20, w23, uxtw #3
	b	LBB0_43
LBB0_41:                                ;   in Loop: Header=BB0_43 Depth=1
	ldr	x12, [x19, #8]
	str	w10, [x12, x8, lsl #2]
	ldr	x12, [x19, #40]
	sub	x12, x12, #1
	str	x12, [x19, #40]
	ldr	w0, [x19, #28]
LBB0_42:                                ;   in Loop: Header=BB0_43 Depth=1
	add	x8, x8, #1
	add	x11, x11, #8
	cmp	x8, w0, sxtw
	b.ge	LBB0_46
LBB0_43:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_44 Depth 2
	ldr	w12, [x19, #24]
	mov	x13, x11
	cmp	w12, #1
	b.lt	LBB0_41
LBB0_44:                                ;   Parent Loop BB0_43 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	d0, [x13]
	fcmp	d0, #0.0
	b.ne	LBB0_42
; %bb.45:                               ;   in Loop: Header=BB0_44 Depth=2
	add	x13, x13, x9
	subs	x12, x12, #1
	b.ne	LBB0_44
	b	LBB0_41
LBB0_46:
	ldr	x8, [x19, #40]
	cbz	x8, LBB0_66
; %bb.47:
	ldr	w1, [x19, #24]
	bl	_FFMIN
	cmp	w0, #1
	b.lt	LBB0_64
; %bb.48:
	mov	x23, #0
	mov	x8, x21
	sxtw	x21, w8
	sbfiz	x24, x8, #3, #32
	fmov	d8, #1.00000000
	mov	w25, #1
	mov	x26, x20
	mov	x27, x20
	b	LBB0_50
LBB0_49:                                ;   in Loop: Header=BB0_50 Depth=1
	add	x23, x23, #1
                                        ; kill: def $w0 killed $w0 killed $x0
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_FFMIN
	add	x27, x27, x24
	add	x26, x26, #8
	cmp	x23, w0, sxtw
	b.ge	LBB0_64
LBB0_50:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_54 Depth 2
                                        ;     Child Loop BB0_60 Depth 2
	ldr	w0, [x19, #28]
	cmp	w0, #1
	b.lt	LBB0_56
; %bb.51:                               ;   in Loop: Header=BB0_50 Depth=1
	mov	x9, #0
	mul	x8, x23, x21
	add	x10, x23, x8
	mov	w8, #1
	b	LBB0_54
LBB0_52:                                ;   in Loop: Header=BB0_54 Depth=2
	ldr	d0, [x20, x10, lsl #3]
	fcmp	d0, d8
	b.ne	LBB0_57
LBB0_53:                                ;   in Loop: Header=BB0_54 Depth=2
	add	x9, x9, #1
	cmp	x9, x0
	cset	w8, lo
	cmp	x0, x9
	b.eq	LBB0_57
LBB0_54:                                ;   Parent Loop BB0_50 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	cmp	x23, x9
	b.eq	LBB0_52
; %bb.55:                               ;   in Loop: Header=BB0_54 Depth=2
	ldr	d0, [x27, x9, lsl #3]
	fcmp	d0, #0.0
	b.eq	LBB0_53
	b	LBB0_57
LBB0_56:                                ;   in Loop: Header=BB0_50 Depth=1
	mov	w8, #0
LBB0_57:                                ;   in Loop: Header=BB0_50 Depth=1
	ldr	w1, [x19, #24]
	cmp	w1, #1
	b.lt	LBB0_62
; %bb.58:                               ;   in Loop: Header=BB0_50 Depth=1
	mov	x9, #0
	mov	x10, x26
	b	LBB0_60
LBB0_59:                                ;   in Loop: Header=BB0_60 Depth=2
	add	x9, x9, #1
	add	x10, x10, x24
	cmp	x1, x9
	b.eq	LBB0_62
LBB0_60:                                ;   Parent Loop BB0_50 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	cmp	x23, x9
	b.eq	LBB0_59
; %bb.61:                               ;   in Loop: Header=BB0_60 Depth=2
	ldr	d0, [x10]
	fcmp	d0, #0.0
	b.eq	LBB0_59
	b	LBB0_49
LBB0_62:                                ;   in Loop: Header=BB0_50 Depth=1
	tbnz	w8, #0, LBB0_49
; %bb.63:                               ;   in Loop: Header=BB0_50 Depth=1
	ldr	x8, [x19, #16]
	str	w25, [x8, x23, lsl #2]
	ldr	x8, [x19, #32]
	sub	x8, x8, #1
	str	x8, [x19, #32]
	ldp	w1, w0, [x19, #24]
	b	LBB0_49
LBB0_64:
	ldr	x8, [x22]
	cbnz	x8, LBB0_67
; %bb.65:
	str	xzr, [x19, #40]
	b	LBB0_67
LBB0_66:
	str	xzr, [x22]
LBB0_67:
	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
	ldp	d9, d8, [sp], #112              ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_reduce_matrix
.subsections_via_symbols
