	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function compare_scalars
_compare_scalars:                       ## @compare_scalars
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movl	(%rdi), %ebx
	movl	4(%rdi), %edi
	movl	(%rsi), %r15d
	movl	4(%rsi), %edx
	movl	8(%r14), %r8d
	xorl	%esi, %esi
	xorl	%ecx, %ecx
	callq	_ApplySortComparator
	testl	%eax, %eax
	jne	LBB0_6
## %bb.1:
	movslq	%ebx, %rdx
	movslq	%r15d, %rax
	movq	(%r14), %rcx
	cmpl	%eax, (%rcx,%rdx,4)
	jge	LBB0_3
## %bb.2:
	movl	%r15d, (%rcx,%rdx,4)
LBB0_3:
	cmpl	%ebx, (%rcx,%rax,4)
	jge	LBB0_5
## %bb.4:
	movl	%ebx, (%rcx,%rax,4)
LBB0_5:
	subl	%r15d, %ebx
	movl	%ebx, %eax
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_compare_scalars
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function compare_scalars
_compare_scalars:                       ; @compare_scalars
	.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
	mov	x19, x2
	ldp	w20, w8, [x0]
	ldp	w21, w2, [x1]
	ldr	w4, [x19, #8]
	mov	x0, x8
	mov	w1, #0
	mov	w3, #0
	bl	_ApplySortComparator
	cbnz	w0, LBB0_6
; %bb.1:
	sxtw	x10, w20
	sxtw	x8, w21
	ldr	x9, [x19]
	ldr	w11, [x9, x10, lsl #2]
	cmp	w11, w21
	b.ge	LBB0_3
; %bb.2:
	str	w21, [x9, x10, lsl #2]
LBB0_3:
	ldr	w10, [x9, x8, lsl #2]
	cmp	w10, w20
	b.ge	LBB0_5
; %bb.4:
	str	w20, [x9, x8, lsl #2]
LBB0_5:
	sub	w0, w20, w21
LBB0_6:
	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
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_compare_scalars
.subsections_via_symbols
