	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_eedi2_sort_metrics             ## -- Begin function eedi2_sort_metrics
	.p2align	4, 0x90
_eedi2_sort_metrics:                    ## @eedi2_sort_metrics
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	cmpl	$2, %esi
	jl	LBB0_7
## %bb.1:
	movl	%esi, %r8d
	movl	$1, %r9d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movslq	%ecx, %rax
	movl	%edx, (%rdi,%rax,4)
	incq	%r9
	cmpq	%r8, %r9
	je	LBB0_7
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_3 Depth 2
	movl	(%rdi,%r9,4), %edx
	movq	%r9, %rcx
	.p2align	4, 0x90
LBB0_3:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	leaq	-1(%rcx), %rsi
	movl	%esi, %eax
	movl	(%rdi,%rax,4), %eax
	cmpl	%edx, %eax
	jle	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=2
	movl	%eax, (%rdi,%rcx,4)
	leaq	1(%rsi), %rax
	movq	%rsi, %rcx
	cmpq	$1, %rax
	jg	LBB0_3
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%ecx, %ecx
	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	_eedi2_sort_metrics             ; -- Begin function eedi2_sort_metrics
	.p2align	2
_eedi2_sort_metrics:                    ; @eedi2_sort_metrics
	.cfi_startproc
; %bb.0:
	cmp	w1, #2
	b.lt	LBB0_7
; %bb.1:
	mov	w8, w1
	mov	w9, #1
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	sbfiz	x11, x11, #2, #32
	str	w10, [x0, x11]
	add	x9, x9, #1
	cmp	x9, x8
	b.eq	LBB0_7
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_4 Depth 2
	ldr	w10, [x0, x9, lsl #2]
	mov	x11, x9
LBB0_4:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	sub	x12, x11, #1
	ldr	w13, [x0, w12, uxtw #2]
	cmp	w13, w10
	b.le	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=2
	str	w13, [x0, x11, lsl #2]
	add	x13, x12, #1
	mov	x11, x12
	cmp	x13, #1
	b.gt	LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x11, #0
	b	LBB0_2
LBB0_7:
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
