	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function char_poly
_char_poly:                             ## @char_poly
	.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	%rcx, %r13
	movq	%rdx, %r15
	movl	%esi, %ebx
	movq	%rdi, %r12
	movq	(%rdi), %rdi
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	callq	_OSM_LOG_ENTER
	testq	%r15, %r15
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	je	LBB0_1
## %bb.2:
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_poly_alloc
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	%r12, %rdi
	movl	%ebx, %esi
	movl	%ebx, %edx
	callq	_pm_alloc
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, %r14
	movq	%r13, -64(%rbp)                 ## 8-byte Spill
	testl	%ebx, %ebx
	jle	LBB0_13
## %bb.6:
	movl	-44(%rbp), %r9d                 ## 4-byte Reload
	leaq	-1(%r9), %r8
	movl	%r9d, %edx
	andl	$3, %edx
	movl	%r9d, %r11d
	andl	$-4, %r11d
	xorl	%r10d, %r10d
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	(%rbx,%r10,8), %rax
	movl	$-1, 4(%rax)
	incq	%r10
	cmpq	%r9, %r10
	je	LBB0_13
LBB0_7:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_8 Depth 2
                                        ##     Child Loop BB0_11 Depth 2
	movq	(%r15,%r10,8), %rcx
	movq	(%r14,%r10,8), %rbx
	xorl	%eax, %eax
	cmpq	$3, %r8
	jb	LBB0_9
	.p2align	4, 0x90
LBB0_8:                                 ##   Parent Loop BB0_7 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%rcx,%rax,4), %edi
	movq	(%rbx,%rax,8), %rsi
	movl	%edi, (%rsi)
	movl	4(%rcx,%rax,4), %esi
	movq	8(%rbx,%rax,8), %rdi
	movl	%esi, (%rdi)
	movl	8(%rcx,%rax,4), %esi
	movq	16(%rbx,%rax,8), %rdi
	movl	%esi, (%rdi)
	movl	12(%rcx,%rax,4), %esi
	movq	24(%rbx,%rax,8), %rdi
	movl	%esi, (%rdi)
	addq	$4, %rax
	cmpq	%rax, %r11
	jne	LBB0_8
LBB0_9:                                 ##   in Loop: Header=BB0_7 Depth=1
	testq	%rdx, %rdx
	je	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_7 Depth=1
	leaq	(%rbx,%rax,8), %rdi
	leaq	(%rcx,%rax,4), %rax
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_11:                                ##   Parent Loop BB0_7 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%rax,%rcx,4), %esi
	movq	(%rdi,%rcx,8), %r13
	movl	%esi, (%r13)
	incq	%rcx
	cmpq	%rcx, %rdx
	jne	LBB0_11
	jmp	LBB0_12
LBB0_1:
	xorl	%r14d, %r14d
	xorl	%ebx, %ebx
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	movl	$-1, %r15d
	jmp	LBB0_16
LBB0_13:
	movq	%r12, %rdi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movl	%edx, %esi
	movq	%r14, %rcx
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %r8
	callq	_determinant
	testq	%rax, %rax
	je	LBB0_17
## %bb.14:
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	movl	$-1, %r15d
	jmp	LBB0_15
LBB0_4:
	xorl	%r14d, %r14d
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	movl	$-1, %r15d
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
LBB0_15:
	movq	%rbx, %rdi
	callq	_free
	xorl	%ebx, %ebx
	jmp	LBB0_16
LBB0_17:
	xorl	%r15d, %r15d
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	movq	-56(%rbp), %r12                 ## 8-byte Reload
LBB0_16:
	movq	%r14, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_pm_free
	movq	%rbx, (%r13)
	movq	%r12, %rdi
	callq	_OSM_LOG_EXIT
	movl	%r15d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_char_poly
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function char_poly
_char_poly:                             ; @char_poly
	.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	x19, x3
	mov	x25, x2
	mov	x21, x1
	mov	x24, x0
	ldr	x20, [x0]
	mov	x0, x20
	bl	_OSM_LOG_ENTER
	cbz	x25, LBB0_10
; %bb.1:
	mov	x0, x24
	mov	x1, x21
	bl	_poly_alloc
	mov	x22, x0
	cbz	x0, LBB0_12
; %bb.2:
	mov	x0, x24
	mov	x1, x21
	mov	x2, x21
	bl	_pm_alloc
	mov	x23, x0
	cbz	x0, LBB0_9
; %bb.3:
	cmp	w21, #1
	b.lt	LBB0_8
; %bb.4:
	mov	x8, #0
	mov	w9, w21
	mov	w10, #-1
LBB0_5:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_6 Depth 2
	lsl	x12, x8, #3
	ldr	x11, [x25, x12]
	ldr	x12, [x23, x12]
	mov	x13, x9
	mov	x14, x12
LBB0_6:                                 ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w15, [x11], #4
	ldr	x16, [x14], #8
	str	w15, [x16]
	subs	x13, x13, #1
	b.ne	LBB0_6
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x11, [x12, x8, lsl #3]
	str	w10, [x11, #4]
	add	x8, x8, #1
	cmp	x8, x9
	b.ne	LBB0_5
LBB0_8:
	mov	x0, x24
	mov	x1, x21
	mov	x2, x21
	mov	x3, x23
	mov	x4, x22
	bl	_determinant
	cbz	x0, LBB0_15
LBB0_9:
	mov	x0, x22
	bl	_free
	b	LBB0_11
LBB0_10:
	mov	x23, #0
LBB0_11:
	mov	x22, #0
	b	LBB0_13
LBB0_12:
	mov	x23, #0
LBB0_13:
	mov	w24, #-1
LBB0_14:
	mov	x0, x23
	mov	x1, x21
	bl	_pm_free
	str	x22, [x19]
	mov	x0, x20
	bl	_OSM_LOG_EXIT
	mov	x0, x24
	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
LBB0_15:
	mov	w24, #0
	b	LBB0_14
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_char_poly
.subsections_via_symbols
