	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_jsstr_cmp                      ## -- Begin function jsstr_cmp
	.p2align	4, 0x90
_jsstr_cmp:                             ## @jsstr_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	%rdi, %r13
	callq	_jsstr_length
	movl	%eax, %r14d
	movq	%r12, %rdi
	callq	_jsstr_length
	movl	%eax, %r15d
	movq	%r12, %rdi
	callq	_jsstr_try_flat
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%rax, %rbx
	movl	%r14d, %edi
	movl	%r15d, %esi
	callq	_min
	movq	%r13, %rdi
	movq	%rbx, %rsi
	movl	%eax, %edx
	callq	_jsstr_cmp_str
	movl	%eax, %ecx
	cmpl	%r15d, %r14d
	movl	$-1, %eax
	cmovel	%ecx, %eax
	testl	%ecx, %ecx
	cmovnel	%ecx, %eax
	jmp	LBB0_4
LBB0_2:
	movq	%r13, %rdi
	callq	_jsstr_try_flat
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	movq	%rax, %rbx
	movl	%r14d, %edi
	movl	%r15d, %esi
	callq	_min
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movl	%eax, %edx
	callq	_jsstr_cmp_str
	movl	%eax, %ecx
	negl	%ecx
	cmpl	%r15d, %r14d
	movl	$1, %edx
	cmovel	%ecx, %edx
	negl	%eax
	cmovael	%edx, %eax
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	%r13, %rdi
	callq	_jsstr_as_rope
	movl	%eax, %ebx
	movq	%r12, %rdi
	callq	_jsstr_as_rope
	movl	%ebx, %edi
	movl	%eax, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ropes_cmp                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_jsstr_cmp                      ; -- Begin function jsstr_cmp
	.p2align	2
_jsstr_cmp:                             ; @jsstr_cmp
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x21, x1
	mov	x22, x0
	bl	_jsstr_length
	mov	x19, x0
	mov	x0, x21
	bl	_jsstr_length
	mov	x20, x0
	mov	x0, x21
	bl	_jsstr_try_flat
	cbz	x0, LBB0_2
; %bb.1:
	mov	x23, x0
	mov	x0, x19
	mov	x1, x20
	bl	_min
	mov	x2, x0
	mov	x0, x22
	mov	x1, x23
	bl	_jsstr_cmp_str
	cmp	w19, w20
	ccmp	w0, #0, #0, ne
	csinv	w0, w0, wzr, ne
	b	LBB0_4
LBB0_2:
	mov	x0, x22
	bl	_jsstr_try_flat
	cbz	x0, LBB0_5
; %bb.3:
	mov	x23, x0
	mov	x0, x19
	mov	x1, x20
	bl	_min
	mov	x2, x0
	mov	x0, x21
	mov	x1, x23
	bl	_jsstr_cmp_str
	cmp	w19, w20
	ccmp	w0, #0, #0, ne
	mov	w8, #1
	csneg	w0, w8, w0, eq
LBB0_4:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_5:
	mov	x0, x22
	bl	_jsstr_as_rope
	mov	x19, x0
	mov	x0, x21
	bl	_jsstr_as_rope
	mov	x1, x0
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_ropes_cmp
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
