	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sub_determinant
_sub_determinant:                       ## @sub_determinant
	.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	$104, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, -144(%rbp)                 ## 8-byte Spill
	movl	%r8d, %r12d
	movl	%ecx, -64(%rbp)                 ## 4-byte Spill
	movl	%edx, %r15d
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movq	16(%rbp), %r13
	leal	-1(%r15), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	callq	_poly_alloc
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	testq	%rax, %rax
	je	LBB0_32
## %bb.1:
	cmpl	$1, %r15d
	jg	LBB0_4
## %bb.2:
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movl	$1, (%r14)
	xorl	%r15d, %r15d
	xorl	%ebx, %ebx
	jmp	LBB0_34
LBB0_4:
	movq	%rbx, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movl	%r14d, %edx
	callq	_pm_alloc
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	testq	%rax, %rax
	je	LBB0_31
## %bb.5:
	movq	%rbx, -88(%rbp)                 ## 8-byte Spill
	leal	1(%r14), %eax
	movl	%r12d, %r9d
	movl	-64(%rbp), %ecx                 ## 4-byte Reload
	movl	%r15d, %esi
	movl	%eax, %edx
	andl	$-8, %edx
	movq	%rdx, -128(%rbp)                ## 8-byte Spill
	addq	$-8, %rdx
	movq	%rdx, -120(%rbp)                ## 8-byte Spill
	shrq	$3, %rdx
	incq	%rdx
	movl	%edx, %ebx
	andl	$3, %ebx
	andq	$-4, %rdx
	movq	%rdx, -104(%rbp)                ## 8-byte Spill
	movl	%eax, %edx
	andl	$3, %edx
	movq	%rdx, -136(%rbp)                ## 8-byte Spill
	movq	%rbx, -112(%rbp)                ## 8-byte Spill
	shlq	$5, %rbx
	xorl	%r12d, %r12d
	xorl	%edx, %edx
	movq	%rcx, -96(%rbp)                 ## 8-byte Spill
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_8 Depth=1
	movl	-68(%rbp), %edx                 ## 4-byte Reload
	incl	%edx
	movq	-96(%rbp), %rcx                 ## 8-byte Reload
LBB0_7:                                 ##   in Loop: Header=BB0_8 Depth=1
	incq	%r12
	cmpq	%rsi, %r12
	je	LBB0_29
LBB0_8:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_12 Depth 2
                                        ##       Child Loop BB0_20 Depth 3
                                        ##       Child Loop BB0_23 Depth 3
                                        ##       Child Loop BB0_26 Depth 3
                                        ##       Child Loop BB0_28 Depth 3
	cmpq	%rcx, %r12
	je	LBB0_7
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movl	%edx, -68(%rbp)                 ## 4-byte Spill
	movslq	%edx, %rcx
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	xorl	%r8d, %r8d
	xorl	%r10d, %r10d
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_12 Depth=2
	incl	%r10d
LBB0_11:                                ##   in Loop: Header=BB0_12 Depth=2
	incq	%r8
	cmpq	%rsi, %r8
	je	LBB0_6
LBB0_12:                                ##   Parent Loop BB0_8 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_20 Depth 3
                                        ##       Child Loop BB0_23 Depth 3
                                        ##       Child Loop BB0_26 Depth 3
                                        ##       Child Loop BB0_28 Depth 3
	cmpq	%r9, %r8
	je	LBB0_11
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=2
	testl	%r14d, %r14d
	js	LBB0_10
## %bb.14:                              ##   in Loop: Header=BB0_12 Depth=2
	movq	-144(%rbp), %rcx                ## 8-byte Reload
	movq	(%rcx,%r12,8), %rcx
	movq	(%rcx,%r8,8), %r11
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movq	(%rcx,%rdx,8), %rcx
	movslq	%r10d, %rdx
	movq	(%rcx,%rdx,8), %r13
	cmpl	$8, %eax
	jb	LBB0_18
## %bb.15:                              ##   in Loop: Header=BB0_12 Depth=2
	movq	%r13, %rcx
	subq	%r11, %rcx
	movl	$0, %r15d
	cmpq	$32, %rcx
	jb	LBB0_25
## %bb.16:                              ##   in Loop: Header=BB0_12 Depth=2
	cmpq	$24, -120(%rbp)                 ## 8-byte Folded Reload
	jae	LBB0_19
## %bb.17:                              ##   in Loop: Header=BB0_12 Depth=2
	xorl	%edx, %edx
	jmp	LBB0_21
LBB0_18:                                ##   in Loop: Header=BB0_12 Depth=2
	xorl	%r15d, %r15d
	jmp	LBB0_25
LBB0_19:                                ##   in Loop: Header=BB0_12 Depth=2
	movq	-104(%rbp), %rdi                ## 8-byte Reload
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_20:                                ##   Parent Loop BB0_8 Depth=1
                                        ##     Parent Loop BB0_12 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movups	(%r11,%rdx,4), %xmm0
	movups	16(%r11,%rdx,4), %xmm1
	movups	%xmm0, (%r13,%rdx,4)
	movups	%xmm1, 16(%r13,%rdx,4)
	movups	32(%r11,%rdx,4), %xmm0
	movups	48(%r11,%rdx,4), %xmm1
	movups	%xmm0, 32(%r13,%rdx,4)
	movups	%xmm1, 48(%r13,%rdx,4)
	movups	64(%r11,%rdx,4), %xmm0
	movups	80(%r11,%rdx,4), %xmm1
	movups	%xmm0, 64(%r13,%rdx,4)
	movups	%xmm1, 80(%r13,%rdx,4)
	movups	96(%r11,%rdx,4), %xmm0
	movups	112(%r11,%rdx,4), %xmm1
	movups	%xmm0, 96(%r13,%rdx,4)
	movups	%xmm1, 112(%r13,%rdx,4)
	addq	$32, %rdx
	addq	$-4, %rdi
	jne	LBB0_20
LBB0_21:                                ##   in Loop: Header=BB0_12 Depth=2
	cmpq	$0, -112(%rbp)                  ## 8-byte Folded Reload
	je	LBB0_24
## %bb.22:                              ##   in Loop: Header=BB0_12 Depth=2
	leaq	16(,%rdx,4), %rdi
	addq	%r13, %rdi
	leaq	(%r11,%rdx,4), %rdx
	addq	$16, %rdx
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_23:                                ##   Parent Loop BB0_8 Depth=1
                                        ##     Parent Loop BB0_12 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movups	-16(%rdx,%rcx), %xmm0
	movups	(%rdx,%rcx), %xmm1
	movups	%xmm0, -16(%rdi,%rcx)
	movups	%xmm1, (%rdi,%rcx)
	addq	$32, %rcx
	cmpq	%rcx, %rbx
	jne	LBB0_23
LBB0_24:                                ##   in Loop: Header=BB0_12 Depth=2
	movq	-128(%rbp), %rcx                ## 8-byte Reload
	movq	%rcx, %r15
	cmpq	%rax, %rcx
	je	LBB0_10
LBB0_25:                                ##   in Loop: Header=BB0_12 Depth=2
	movq	%r15, %rdx
	notq	%rdx
	addq	%rax, %rdx
	movq	-136(%rbp), %rdi                ## 8-byte Reload
	testq	%rdi, %rdi
	je	LBB0_27
	.p2align	4, 0x90
LBB0_26:                                ##   Parent Loop BB0_8 Depth=1
                                        ##     Parent Loop BB0_12 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movl	(%r11,%r15,4), %ecx
	movl	%ecx, (%r13,%r15,4)
	incq	%r15
	decq	%rdi
	jne	LBB0_26
LBB0_27:                                ##   in Loop: Header=BB0_12 Depth=2
	cmpq	$3, %rdx
	jb	LBB0_10
	.p2align	4, 0x90
LBB0_28:                                ##   Parent Loop BB0_8 Depth=1
                                        ##     Parent Loop BB0_12 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movl	(%r11,%r15,4), %ecx
	movl	%ecx, (%r13,%r15,4)
	movl	4(%r11,%r15,4), %ecx
	movl	%ecx, 4(%r13,%r15,4)
	movl	8(%r11,%r15,4), %ecx
	movl	%ecx, 8(%r13,%r15,4)
	movl	12(%r11,%r15,4), %ecx
	movl	%ecx, 12(%r13,%r15,4)
	addq	$4, %r15
	cmpq	%r15, %rax
	jne	LBB0_28
	jmp	LBB0_10
LBB0_29:
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	movl	%r14d, %esi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movq	-80(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rcx
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %r8
	callq	_determinant
	testq	%rax, %rax
	movq	16(%rbp), %r13
	je	LBB0_35
## %bb.30:
	movq	%r14, %rdi
	callq	_free
	jmp	LBB0_33
LBB0_31:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_free
LBB0_32:
	xorl	%r15d, %r15d
LBB0_33:
	xorl	%r14d, %r14d
	movl	$-1, %ebx
LBB0_34:
	movq	%r15, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_pm_free
	movq	%r14, (%r13)
	movl	%ebx, %eax
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_35:
	xorl	%ebx, %ebx
	jmp	LBB0_34
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_sub_determinant
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sub_determinant
_sub_determinant:                       ; @sub_determinant
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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, x6
	mov	x23, x5
	mov	x28, x4
	mov	x27, x3
	mov	x26, x2
	mov	x24, x1
	mov	x25, x0
	sub	w20, w2, #1
	bl	_poly_alloc
	mov	x21, x0
	cbz	x0, LBB0_3
; %bb.1:
	cmp	w26, #1
	b.gt	LBB0_4
; %bb.2:
	mov	x22, #0
	mov	w23, #0
	mov	w8, #1
	str	w8, [x21]
	b	LBB0_24
LBB0_3:
	mov	x22, #0
	b	LBB0_23
LBB0_4:
	mov	x0, x25
	mov	x1, x20
	mov	x2, x24
	bl	_pm_alloc
	mov	x22, x0
	cbz	x0, LBB0_22
; %bb.5:
	mov	x8, #0
	mov	w9, #0
	mov	w10, w28
	add	w11, w24, #1
	mov	w12, w27
	and	x13, x11, #0xfffffff0
	mov	w14, w26
	b	LBB0_8
LBB0_6:                                 ;   in Loop: Header=BB0_8 Depth=1
	add	w9, w9, #1
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	add	x8, x8, #1
	cmp	x8, x14
	b.eq	LBB0_21
LBB0_8:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_12 Depth 2
                                        ;       Child Loop BB0_17 Depth 3
                                        ;       Child Loop BB0_20 Depth 3
	cmp	x8, x12
	b.eq	LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	x15, #0
	mov	w16, #0
	sxtw	x17, w9
	b	LBB0_12
LBB0_10:                                ;   in Loop: Header=BB0_12 Depth=2
	add	w16, w16, #1
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=2
	add	x15, x15, #1
	cmp	x15, x14
	b.eq	LBB0_6
LBB0_12:                                ;   Parent Loop BB0_8 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_17 Depth 3
                                        ;       Child Loop BB0_20 Depth 3
	cmp	x15, x10
	b.eq	LBB0_11
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=2
	tbnz	w24, #31, LBB0_10
; %bb.14:                               ;   in Loop: Header=BB0_12 Depth=2
	mov	x2, #0
	ldr	x0, [x23, x8, lsl #3]
	ldr	x0, [x0, x15, lsl #3]
	ldr	x1, [x22, x17, lsl #3]
	ldr	x1, [x1, w16, sxtw #3]
	cmp	w11, #16
	b.lo	LBB0_19
; %bb.15:                               ;   in Loop: Header=BB0_12 Depth=2
	sub	x3, x1, x0
	cmp	x3, #64
	b.lo	LBB0_19
; %bb.16:                               ;   in Loop: Header=BB0_12 Depth=2
	add	x2, x1, #32
	add	x3, x0, #32
	mov	x4, x13
LBB0_17:                                ;   Parent Loop BB0_8 Depth=1
                                        ;     Parent Loop BB0_12 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	ldp	q0, q1, [x3, #-32]
	ldp	q2, q3, [x3], #64
	stp	q0, q1, [x2, #-32]
	stp	q2, q3, [x2], #64
	subs	x4, x4, #16
	b.ne	LBB0_17
; %bb.18:                               ;   in Loop: Header=BB0_12 Depth=2
	mov	x2, x13
	cmp	x13, x11
	b.eq	LBB0_10
LBB0_19:                                ;   in Loop: Header=BB0_12 Depth=2
	lsl	x3, x2, #2
	add	x1, x1, x3
	add	x0, x0, x3
	sub	x2, x11, x2
LBB0_20:                                ;   Parent Loop BB0_8 Depth=1
                                        ;     Parent Loop BB0_12 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	ldr	w3, [x0], #4
	str	w3, [x1], #4
	subs	x2, x2, #1
	b.ne	LBB0_20
	b	LBB0_10
LBB0_21:
	mov	x0, x25
	mov	x1, x24
	mov	x2, x20
	mov	x3, x22
	mov	x4, x21
	bl	_determinant
	cbz	x0, LBB0_25
LBB0_22:
	mov	x0, x21
	bl	_free
	mov	x21, #0
LBB0_23:
	mov	w23, #-1
LBB0_24:
	mov	x0, x22
	mov	x1, x20
	bl	_pm_free
	str	x21, [x19]
	mov	x0, x23
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_25:
	mov	w23, #0
	b	LBB0_24
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_sub_determinant
.subsections_via_symbols
