	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_TransposeMesh                  ## -- Begin function TransposeMesh
	.p2align	4, 0x90
_TransposeMesh:                         ## @TransposeMesh
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movl	$16, %edi
	callq	_malloc
	movq	%rax, %r14
	movl	4(%rbx), %edi
	movl	%edi, (%rax)
	movl	(%rbx), %eax
	movl	%eax, 4(%r14)
	imull	%eax, %edi
	shll	$2, %edi
	callq	_malloc
	movq	%rax, 8(%r14)
	movl	4(%rbx), %esi
	testl	%esi, %esi
	jle	LBB0_8
## %bb.1:
	movl	(%rbx), %edx
	xorl	%ecx, %ecx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	4(%rbx), %esi
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	incl	%ecx
	cmpl	%esi, %ecx
	jge	LBB0_8
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
	testl	%edx, %edx
	jle	LBB0_7
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%rbx), %r8
	imull	%ecx, %edx
	movslq	%edx, %rdx
	movl	(%r8,%rdx,4), %edx
	movl	%ecx, %edi
	movl	%edx, (%rax,%rdi,4)
	movl	(%rbx), %edx
	cmpl	$2, %edx
	jl	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	$1, %edi
	.p2align	4, 0x90
LBB0_5:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	imull	%ecx, %edx
	movslq	%edx, %rdx
	addq	%rdi, %rdx
	movl	(%r8,%rdx,4), %edx
	movl	4(%rbx), %esi
	imull	%edi, %esi
	addl	%ecx, %esi
	movslq	%esi, %rsi
	movl	%edx, (%rax,%rsi,4)
	movl	(%rbx), %edx
	incq	%rdi
	cmpl	%edx, %edi
	jl	LBB0_5
	jmp	LBB0_6
LBB0_8:
	movq	%rbx, %rdi
	callq	_FreeMesh
	movq	%r14, %rax
	popq	%rbx
	popq	%r14
	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	_TransposeMesh                  ; -- Begin function TransposeMesh
	.p2align	2
_TransposeMesh:                         ; @TransposeMesh
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	mov	w0, #16
	bl	_malloc
	mov	x20, x0
	ldr	w8, [x19, #4]
	str	w8, [x0]
	ldr	w9, [x19]
	str	w9, [x0, #4]
	mul	w8, w8, w9
	lsl	w0, w8, #2
	bl	_malloc
	str	x0, [x20, #8]
	ldr	w10, [x19, #4]
	cmp	w10, #1
	b.lt	LBB0_8
; %bb.1:
	mov	w8, #0
	ldr	w9, [x19]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w10, [x19, #4]
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	w8, w8, #1
	cmp	w8, w10
	b.ge	LBB0_8
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
	cmp	w9, #1
	b.lt	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x10, [x19, #8]
	mul	w9, w9, w8
	ldr	w9, [x10, w9, sxtw #2]
	str	w9, [x0, w8, uxtw #2]
	ldr	w9, [x19]
	cmp	w9, #2
	b.lt	LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	w11, #1
LBB0_7:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w12, [x19, #4]
	mul	w9, w8, w9
	add	x9, x11, w9, sxtw
	ldr	w9, [x10, x9, lsl #2]
	madd	w12, w12, w11, w8
	str	w9, [x0, w12, sxtw #2]
	ldr	w9, [x19]
	add	x11, x11, #1
	cmp	w11, w9
	b.lt	LBB0_7
	b	LBB0_2
LBB0_8:
	mov	x0, x19
	bl	_FreeMesh
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
