	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function SortNewShader
_SortNewShader:                         ## @SortNewShader
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_tr@GOTPCREL(%rip), %r14
	movq	16(%r14), %rax
	movslq	(%r14), %rcx
	leal	-2(%rcx), %ebx
	movq	-8(%rax,%rcx,8), %r15
	cmpq	$2, %rcx
	jl	LBB0_6
## %bb.1:
	movss	(%r15), %xmm0                   ## xmm0 = mem[0],zero,zero,zero
	movl	%ebx, %ebx
	movq	8(%r14), %rax
	incq	%rbx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	-8(%rax,%rbx,8), %rcx
	ucomiss	(%rcx), %xmm0
	jae	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rcx, (%rax,%rbx,8)
	movq	8(%r14), %rax
	movq	(%rax,%rbx,8), %rcx
	incl	4(%rcx)
	decq	%rbx
	jg	LBB0_2
## %bb.4:
	movl	$-1, %ebx
	jmp	LBB0_6
LBB0_5:
	decl	%ebx
LBB0_6:
	leal	1(%rbx), %r12d
	movl	%r12d, %edi
	callq	_FixRenderCommandList
	movl	%r12d, 4(%r15)
	movq	8(%r14), %rax
	movslq	%ebx, %rcx
	movq	%r15, 8(%rax,%rcx,8)
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_tr,24,3                        ## @tr
	.no_dead_strip	_SortNewShader
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function SortNewShader
_SortNewShader:                         ; @SortNewShader
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
Lloh0:
	adrp	x20, _tr@GOTPAGE
Lloh1:
	ldr	x20, [x20, _tr@GOTPAGEOFF]
	ldr	x8, [x20, #16]
	ldr	w9, [x20]
	sub	w10, w9, #1
	ldr	x21, [x8, w10, sxtw #3]
	subs	w8, w9, #2
	b.lt	LBB0_5
; %bb.1:
	ldr	s0, [x21]
	ldr	x9, [x20, #8]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x9, x8, lsl #3]
	ldr	s1, [x10]
	fcmp	s1, s0
	b.ls	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	lsl	x11, x8, #3
	add	x9, x9, x11
	str	x10, [x9, #8]
	ldr	x9, [x20, #8]
	add	x10, x9, x11
	ldr	x10, [x10, #8]
	ldr	w11, [x10, #4]
	add	w11, w11, #1
	str	w11, [x10, #4]
	sub	x10, x8, #1
	cmp	x8, #0
	mov	x8, x10
	b.gt	LBB0_2
; %bb.4:
	mov	w8, #-1
LBB0_5:
	add	w19, w8, #1
	mov	x0, x19
	bl	_FixRenderCommandList
	str	w19, [x21, #4]
	ldr	x8, [x20, #8]
	str	x21, [x8, w19, sxtw #3]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_tr,24,3                        ; @tr
	.no_dead_strip	_SortNewShader
.subsections_via_symbols
