	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_InvertMesh                     ## -- Begin function InvertMesh
	.p2align	4, 0x90
_InvertMesh:                            ## @InvertMesh
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	(%rdi), %eax
	testl	%eax, %eax
	jle	LBB0_7
## %bb.1:
	movl	4(%rdi), %edx
	xorl	%r8d, %r8d
	movl	$1, %r9d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	incl	%r8d
	incl	%r9d
	cmpl	%eax, %r8d
	jge	LBB0_7
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
	cmpl	$2, %edx
	jl	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%rdi), %r10
	movl	$-1, %eax
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	%r8d, %esi
	imull	%edx, %esi
	movslq	%esi, %rsi
	addq	%rcx, %rsi
	movl	(%r10,%rsi,4), %r11d
	imull	%r9d, %edx
	addl	%eax, %edx
	movslq	%edx, %rdx
	movl	(%r10,%rdx,4), %edx
	movl	%edx, (%r10,%rsi,4)
	movl	4(%rdi), %edx
	imull	%r9d, %edx
	addl	%eax, %edx
	movslq	%edx, %rdx
	movl	%r11d, (%r10,%rdx,4)
	movl	4(%rdi), %edx
	movl	%edx, %esi
	shrl	$31, %esi
	addl	%edx, %esi
	sarl	%esi
	incq	%rcx
	decl	%eax
	cmpl	%esi, %ecx
	jl	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	(%rdi), %eax
	jmp	LBB0_6
LBB0_7:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_InvertMesh                     ; -- Begin function InvertMesh
	.p2align	2
_InvertMesh:                            ; @InvertMesh
	.cfi_startproc
; %bb.0:
	ldr	w11, [x0]
	cmp	w11, #1
	b.lt	LBB0_7
; %bb.1:
	mov	w8, #0
	ldr	w10, [x0, #4]
	mov	w9, #1
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	w8, w8, #1
	add	w9, w9, #1
	cmp	w8, w11
	b.ge	LBB0_7
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
	cmp	w10, #2
	b.lt	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x11, #0
	ldr	x12, [x0, #8]
	mov	w13, #-1
LBB0_5:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mul	w14, w8, w10
	add	x14, x11, w14, sxtw
	lsl	x14, x14, #2
	ldr	w15, [x12, x14]
	madd	w10, w9, w10, w13
	ldr	w10, [x12, w10, sxtw #2]
	str	w10, [x12, x14]
	ldr	w10, [x0, #4]
	madd	w10, w9, w10, w13
	str	w15, [x12, w10, sxtw #2]
	ldr	w10, [x0, #4]
	cmp	w10, #0
	cinc	w14, w10, lt
	add	x11, x11, #1
	sub	w13, w13, #1
	cmp	w11, w14, asr #1
	b.lt	LBB0_5
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w11, [x0]
	b	LBB0_2
LBB0_7:
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
