	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fix_down                       ## -- Begin function fix_down
	.p2align	4, 0x90
_fix_down:                              ## @fix_down
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
	movq	%rsi, %rbx
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movl	$1, %r13d
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	leal	(%r13,%r13), %r12d
	movslq	%r13d, %r14
	movl	%r13d, %r15d
	cmpl	%edx, %r12d
	jg	LBB0_5
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movslq	%r12d, %rax
	movl	(%rbx,%rax,4), %esi
	movl	(%rbx,%r14,4), %edx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	callq	_object_cmp
	movl	%r12d, %r15d
	testq	%rax, %rax
	js	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	%r13d, %r15d
LBB0_4:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	-44(%rbp), %edx                 ## 4-byte Reload
LBB0_5:                                 ##   in Loop: Header=BB0_1 Depth=1
	orl	$1, %r12d
	cmpl	%edx, %r12d
	jg	LBB0_9
## %bb.6:                               ##   in Loop: Header=BB0_1 Depth=1
	movslq	%r12d, %rax
	movl	(%rbx,%rax,4), %esi
	movslq	%r15d, %rax
	movl	(%rbx,%rax,4), %edx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	callq	_object_cmp
	testq	%rax, %rax
	js	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	%r15d, %r12d
LBB0_8:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	%r12d, %r15d
	movl	-44(%rbp), %edx                 ## 4-byte Reload
LBB0_9:                                 ##   in Loop: Header=BB0_1 Depth=1
	cmpl	%r13d, %r15d
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_1 Depth=1
	movslq	%r15d, %rax
	movl	(%rbx,%rax,4), %ecx
	movl	(%rbx,%r14,4), %esi
	movl	%esi, (%rbx,%rax,4)
	movl	%ecx, (%rbx,%r14,4)
	movl	%r15d, %r13d
	jmp	LBB0_1
LBB0_11:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	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	_fix_down                       ; -- Begin function fix_down
	.p2align	2
_fix_down:                              ; @fix_down
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x3
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
	mov	w23, #1
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	sxtw	x24, w23
	sbfiz	x26, x23, #1, #32
	mov	x25, x23
	cmp	w26, w20
	b.gt	LBB0_3
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	w1, [x21, x26, lsl #2]
	ldr	w2, [x21, x24, lsl #2]
	mov	x0, x22
	mov	x3, x19
	bl	_object_cmp
	cmp	x0, #0
	csel	w25, w26, w23, lt
LBB0_3:                                 ;   in Loop: Header=BB0_1 Depth=1
	orr	w26, w26, #0x1
	cmp	w26, w20
	b.gt	LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	w1, [x21, w26, sxtw #2]
	ldr	w2, [x21, w25, sxtw #2]
	mov	x0, x22
	mov	x3, x19
	bl	_object_cmp
	cmp	x0, #0
	csel	w25, w26, w25, lt
LBB0_5:                                 ;   in Loop: Header=BB0_1 Depth=1
	cmp	w25, w23
	b.eq	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_1 Depth=1
	sbfiz	x8, x25, #2, #32
	ldr	w9, [x21, x8]
	lsl	x10, x24, #2
	ldr	w11, [x21, x10]
	str	w11, [x21, x8]
	str	w9, [x21, x10]
	mov	x23, x25
	b	LBB0_1
LBB0_7:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
