	.file	"extr_cm_patch.c_CM_TransposeGrid.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	CM_TransposeGrid, @function
CM_TransposeGrid:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rdi
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	eax, DWORD PTR [rdi]
	mov	edx, DWORD PTR 4[rdi]
	cmp	eax, edx
	jg	.L2
	xor	r12d, r12d
	xor	r14d, r14d
	test	eax, eax
	jle	.L4
	.p2align 4,,10
	.p2align 3
.L3:
	add	r14d, 1
	cmp	r14d, edx
	jge	.L10
	movsx	rbp, r14d
	lea	r13, [r12+r12]
	mov	r15d, r14d
	sal	rbp, 2
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L22:
	xor	r8d, r8d
	mov	esi, r8d
	mov	DWORD PTR 12[rsp], r8d
	call	VectorCopy@PLT
	mov	rax, QWORD PTR 16[rbx]
	mov	rdx, QWORD PTR [rax+rbp*2]
	mov	rax, QWORD PTR [rax+r13]
	mov	esi, DWORD PTR [rdx+r12]
	mov	edi, DWORD PTR [rax+rbp]
	call	VectorCopy@PLT
	mov	rax, QWORD PTR 16[rbx]
	mov	r8d, DWORD PTR 12[rsp]
	mov	rax, QWORD PTR [rax+r13]
	mov	edi, r8d
	mov	esi, DWORD PTR [rax+rbp]
	call	VectorCopy@PLT
.L12:
	mov	edx, DWORD PTR 4[rbx]
	add	r15d, 1
	mov	eax, DWORD PTR [rbx]
	add	rbp, 4
	cmp	edx, r15d
	jle	.L10
.L13:
	mov	rdx, QWORD PTR 16[rbx]
	mov	rcx, QWORD PTR [rdx+rbp*2]
	mov	edi, DWORD PTR [rcx+r12]
	cmp	r15d, eax
	jl	.L22
	mov	rax, QWORD PTR [rdx+r13]
	mov	esi, edi
	mov	r8d, DWORD PTR [rax+rbp]
	mov	edi, r8d
	call	VectorCopy@PLT
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L2:
	test	edx, edx
	jg	.L23
.L4:
	mov	DWORD PTR [rbx], edx
	mov	edx, DWORD PTR 8[rbx]
	mov	DWORD PTR 4[rbx], eax
	mov	eax, DWORD PTR 12[rbx]
	mov	DWORD PTR 12[rbx], edx
	mov	DWORD PTR 8[rbx], eax
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	add	r12, 4
	cmp	r14d, eax
	jl	.L3
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L23:
	xor	r12d, r12d
	xor	r13d, r13d
	.p2align 4,,10
	.p2align 3
.L9:
	add	r13d, 1
	cmp	r13d, eax
	jge	.L5
	movsx	rbp, r13d
	lea	r15, [r12+r12]
	mov	r14d, r13d
	sal	rbp, 2
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L24:
	xor	r8d, r8d
	mov	esi, r8d
	mov	DWORD PTR 12[rsp], r8d
	call	VectorCopy@PLT
	mov	rax, QWORD PTR 16[rbx]
	mov	rdx, QWORD PTR [rax+r15]
	mov	rax, QWORD PTR [rax+rbp*2]
	mov	esi, DWORD PTR [rdx+rbp]
	mov	edi, DWORD PTR [rax+r12]
	call	VectorCopy@PLT
	mov	rax, QWORD PTR 16[rbx]
	mov	r8d, DWORD PTR 12[rsp]
	mov	rax, QWORD PTR [rax+rbp*2]
	mov	edi, r8d
	mov	esi, DWORD PTR [rax+r12]
	call	VectorCopy@PLT
.L7:
	mov	eax, DWORD PTR [rbx]
	add	r14d, 1
	mov	edx, DWORD PTR 4[rbx]
	add	rbp, 4
	cmp	eax, r14d
	jle	.L5
.L8:
	mov	rax, QWORD PTR 16[rbx]
	mov	rcx, QWORD PTR [rax+r15]
	mov	edi, DWORD PTR [rcx+rbp]
	cmp	r14d, edx
	jl	.L24
	mov	rax, QWORD PTR [rax+rbp*2]
	mov	esi, edi
	mov	r8d, DWORD PTR [rax+r12]
	mov	edi, r8d
	call	VectorCopy@PLT
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L5:
	add	r12, 4
	cmp	r13d, edx
	jl	.L9
	jmp	.L4
	.cfi_endproc
.LFE0:
	.size	CM_TransposeGrid, .-CM_TransposeGrid
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_cm_patch.c_CM_TransposeGrid.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	CM_TransposeGrid, %function
CM_TransposeGrid:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, [r0]
	ldr	r2, [r0, #4]
	push	{r4, r5, r6, r7, r8, lr}
	cmp	r3, r2
	mov	r4, r0
	bgt	.L2
	cmp	r3, #0
	movgt	r8, #0
	ble	.L4
.L3:
	add	r8, r8, #1
	cmp	r8, r2
	bge	.L10
	lsl	r6, r8, #2
	mov	r5, r8
	sub	r6, r6, #4
	b	.L13
.L21:
	mov	r7, #0
	mov	r0, r1
	mov	r1, r7
	bl	VectorCopy
	ldr	r3, [r4, #16]
	ldr	r2, [r3, r5, lsl #2]
	ldr	r3, [r3, r6]
	ldr	r1, [r2, r6]
	ldr	r0, [r3, r5, lsl #2]
	bl	VectorCopy
	ldr	r3, [r4, #16]
	mov	r0, r7
	ldr	r3, [r3, r6]
	ldr	r1, [r3, r5, lsl #2]
	bl	VectorCopy
.L12:
	ldr	r2, [r4, #4]
	add	r5, r5, #1
	cmp	r2, r5
	ldr	r3, [r4]
	ble	.L10
.L13:
	ldr	r2, [r4, #16]
	cmp	r5, r3
	ldr	r3, [r2, r5, lsl #2]
	ldr	r1, [r3, r6]
	blt	.L21
	ldr	r3, [r2, r6]
	ldr	r0, [r3, r5, lsl #2]
	bl	VectorCopy
	b	.L12
.L2:
	cmp	r2, #0
	bgt	.L22
.L4:
	ldr	r0, [r4, #12]
	ldr	r1, [r4, #8]
	stm	r4, {r2, r3}
	str	r0, [r4, #8]
	str	r1, [r4, #12]
	pop	{r4, r5, r6, r7, r8, pc}
.L10:
	cmp	r8, r3
	blt	.L3
	b	.L4
.L22:
	mov	r8, #0
.L9:
	add	r8, r8, #1
	cmp	r8, r3
	bge	.L5
	lsl	r6, r8, #2
	mov	r5, r8
	sub	r6, r6, #4
	b	.L8
.L23:
	mov	r7, #0
	mov	r0, r1
	mov	r1, r7
	bl	VectorCopy
	ldr	r3, [r4, #16]
	ldr	r2, [r3, r6]
	ldr	r3, [r3, r5, lsl #2]
	ldr	r1, [r2, r5, lsl #2]
	ldr	r0, [r3, r6]
	bl	VectorCopy
	ldr	r3, [r4, #16]
	mov	r0, r7
	ldr	r3, [r3, r5, lsl #2]
	ldr	r1, [r3, r6]
	bl	VectorCopy
.L7:
	ldr	r3, [r4]
	add	r5, r5, #1
	cmp	r3, r5
	ldr	r2, [r4, #4]
	ble	.L5
.L8:
	ldr	r3, [r4, #16]
	cmp	r5, r2
	ldr	r2, [r3, r6]
	ldr	r1, [r2, r5, lsl #2]
	blt	.L23
	ldr	r3, [r3, r5, lsl #2]
	ldr	r0, [r3, r6]
	bl	VectorCopy
	b	.L7
.L5:
	cmp	r8, r2
	blt	.L9
	b	.L4
	.size	CM_TransposeGrid, .-CM_TransposeGrid
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
