	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sort_cmp
_sort_cmp:                              ## @sort_cmp
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r14
	movl	%ecx, %r12d
	movl	%edx, %ebx
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	testq	%rsi, %rsi
	je	LBB0_4
## %bb.1:
	movl	%ebx, -56(%rbp)
	movl	%r12d, -52(%rbp)
	movq	_DISPATCH_METHOD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-56(%rbp), %r8
	leaq	-60(%rbp), %r9
	movq	%rsi, %rdi
	xorl	%esi, %esi
	movl	$2, %ecx
	callq	_jsdisp_call_value
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_FAILED
	testq	%rax, %rax
	jne	LBB0_16
## %bb.2:
	movl	-60(%rbp), %esi
	leaq	-72(%rbp), %rdx
	movq	%r15, %rdi
	callq	_to_number
	movl	%eax, %ebx
	movl	-60(%rbp), %edi
	callq	_jsval_release
	movl	%ebx, %edi
	callq	_FAILED
	testq	%rax, %rax
	jne	LBB0_16
## %bb.3:
	movsd	-72(%rbp), %xmm0                ## xmm0 = mem[0],zero
	xorpd	%xmm1, %xmm1
	xorl	%eax, %eax
	ucomisd	%xmm1, %xmm0
	seta	%al
	addl	%eax, %eax
	decl	%eax
	movl	%eax, (%r14)
	jmp	LBB0_15
LBB0_4:
	movl	%ebx, %edi
	callq	_is_undefined
	movq	%rax, %r13
	movl	%r12d, %edi
	callq	_is_undefined
	testq	%r13, %r13
	je	LBB0_6
## %bb.5:
	xorl	%ecx, %ecx
	testq	%rax, %rax
	sete	%cl
	movl	%ecx, (%r14)
	jmp	LBB0_15
LBB0_6:
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movl	$-1, (%r14)
LBB0_15:
	movq	_S_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_16:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_18
## %bb.17:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movl	%ebx, %edi
	callq	_is_number
	testq	%rax, %rax
	je	LBB0_11
## %bb.9:
	movl	%r12d, %edi
	callq	_is_number
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	movl	%ebx, %edi
	callq	_get_number
	movsd	%xmm0, -80(%rbp)                ## 8-byte Spill
	movl	%r12d, %edi
	callq	_get_number
	movsd	-80(%rbp), %xmm1                ## 8-byte Reload
                                        ## xmm1 = mem[0],zero
	subsd	%xmm0, %xmm1
	xorpd	%xmm0, %xmm0
	xorl	%eax, %eax
	ucomisd	%xmm1, %xmm0
	seta	%al
	negl	%eax
	ucomisd	%xmm0, %xmm1
	movl	$1, %ecx
	cmovbel	%eax, %ecx
	movl	%ecx, (%r14)
	jmp	LBB0_15
LBB0_11:
	leaq	-56(%rbp), %rdx
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_to_string
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_FAILED
	testq	%rax, %rax
	jne	LBB0_16
## %bb.12:
	leaq	-72(%rbp), %rdx
	movq	%r15, %rdi
	movl	%r12d, %esi
	callq	_to_string
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_SUCCEEDED
	testq	%rax, %rax
	je	LBB0_14
## %bb.13:
	movq	-56(%rbp), %rdi
	movq	-72(%rbp), %rsi
	callq	_jsstr_cmp
	movl	%eax, (%r14)
	movq	-72(%rbp), %rdi
	callq	_jsstr_release
LBB0_14:
	movq	-56(%rbp), %rdi
	callq	_jsstr_release
	movl	%ebx, %edi
	callq	_FAILED
	testq	%rax, %rax
	jne	LBB0_16
	jmp	LBB0_15
LBB0_18:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_DISPATCH_METHOD,4,2            ## @DISPATCH_METHOD
	.comm	_S_OK,4,2                       ## @S_OK
	.no_dead_strip	_sort_cmp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sort_cmp
_sort_cmp:                              ; @sort_cmp
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	d9, d8, [sp, #32]               ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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 b8, -72
	.cfi_offset b9, -80
	mov	x19, x4
	mov	x22, x3
	mov	x21, x2
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	cbz	x1, LBB0_5
; %bb.1:
	stp	w21, w22, [sp, #16]
Lloh3:
	adrp	x8, _DISPATCH_METHOD@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DISPATCH_METHOD@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	add	x4, sp, #16
	add	x5, sp, #12
	mov	x0, x1
	mov	x1, #0
	mov	w3, #2
	bl	_jsdisp_call_value
	mov	x21, x0
	bl	_FAILED
	cbnz	x0, LBB0_11
; %bb.2:
	ldr	w1, [sp, #12]
	mov	x2, sp
	mov	x0, x20
	bl	_to_number
	mov	x21, x0
	ldr	w0, [sp, #12]
	bl	_jsval_release
	mov	x0, x21
	bl	_FAILED
	cbnz	x0, LBB0_11
; %bb.3:
	ldr	d0, [sp]
	fcmp	d0, #0.0
	mov	w8, #-1
LBB0_4:
	csinc	w8, w8, wzr, le
	b	LBB0_9
LBB0_5:
	mov	x0, x21
	bl	_is_undefined
	mov	x23, x0
	mov	x0, x22
	bl	_is_undefined
	cbz	x23, LBB0_7
; %bb.6:
	cmp	x0, #0
	cset	w8, eq
	b	LBB0_9
LBB0_7:
	cbz	x0, LBB0_13
; %bb.8:
	mov	w8, #-1
LBB0_9:
	str	w8, [x19]
LBB0_10:
Lloh6:
	adrp	x8, _S_OK@GOTPAGE
Lloh7:
	ldr	x8, [x8, _S_OK@GOTPAGEOFF]
Lloh8:
	ldr	w21, [x8]
LBB0_11:
	ldr	x8, [sp, #24]
Lloh9:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh10:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_20
; %bb.12:
	mov	x0, x21
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #32]               ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_13:
	mov	x0, x21
	bl	_is_number
	cbz	x0, LBB0_16
; %bb.14:
	mov	x0, x22
	bl	_is_number
	cbz	x0, LBB0_16
; %bb.15:
	mov	x0, x21
	bl	_get_number
	fmov	d8, d0
	mov	x0, x22
	bl	_get_number
	fsub	d0, d8, d0
	fcmp	d0, #0.0
	csetm	w8, mi
	b	LBB0_4
LBB0_16:
	add	x2, sp, #16
	mov	x0, x20
	mov	x1, x21
	bl	_to_string
	mov	x21, x0
	bl	_FAILED
	cbnz	x0, LBB0_11
; %bb.17:
	mov	x2, sp
	mov	x0, x20
	mov	x1, x22
	bl	_to_string
	mov	x21, x0
	bl	_SUCCEEDED
	cbz	x0, LBB0_19
; %bb.18:
	ldr	x0, [sp, #16]
	ldr	x1, [sp]
	bl	_jsstr_cmp
	str	w0, [x19]
	ldr	x0, [sp]
	bl	_jsstr_release
LBB0_19:
	ldr	x0, [sp, #16]
	bl	_jsstr_release
	mov	x0, x21
	bl	_FAILED
	cbnz	x0, LBB0_11
	b	LBB0_10
LBB0_20:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_DISPATCH_METHOD,4,2            ; @DISPATCH_METHOD
	.comm	_S_OK,4,2                       ; @S_OK
	.no_dead_strip	_sort_cmp
.subsections_via_symbols
