	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function compare_right
_compare_right:                         ## @compare_right
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	xorl	%r8d, %r8d
	movl	$1, %r9d
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_1 Depth=1
	cmpl	$1, %r8d
	movl	$0, %eax
	sbbl	%eax, %eax
	orl	%eax, %r8d
LBB0_15:                                ##   in Loop: Header=BB0_1 Depth=1
	incq	%r10
	movq	%r10, (%rdi)
	incq	(%rdx)
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rdi), %r10
	cmpq	%rsi, %r10
	je	LBB0_3
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movzbl	(%r10), %r11d
	movl	%r11d, %eax
	addl	$-48, %eax
	cmpl	$10, %eax
	jb	LBB0_9
LBB0_3:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	(%rdx), %rax
	cmpq	%rcx, %rax
	je	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_1 Depth=1
	movzbl	(%rax), %eax
	addl	$-58, %eax
	cmpl	$-10, %eax
	jb	LBB0_16
## %bb.6:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpq	%rsi, %r10
	je	LBB0_16
## %bb.7:                               ##   in Loop: Header=BB0_1 Depth=1
	movzbl	(%r10), %r11d
	movl	%r11d, %eax
	addl	$-48, %eax
	cmpl	$9, %eax
	ja	LBB0_8
LBB0_9:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	(%rdx), %rbx
	movl	$1, %eax
	cmpq	%rcx, %rbx
	je	LBB0_17
## %bb.10:                              ##   in Loop: Header=BB0_1 Depth=1
	movzbl	(%rbx), %r14d
	leal	-48(%r14), %ebx
	cmpl	$9, %ebx
	ja	LBB0_17
## %bb.11:                              ##   in Loop: Header=BB0_1 Depth=1
	cmpb	%r14b, %r11b
	jl	LBB0_12
## %bb.13:                              ##   in Loop: Header=BB0_1 Depth=1
	jle	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_1 Depth=1
	testl	%r8d, %r8d
	cmovel	%r9d, %r8d
	jmp	LBB0_15
LBB0_4:
	movl	%r8d, %eax
	jmp	LBB0_17
LBB0_16:
	cmpl	$-10, %eax
	movl	$-1, %eax
	cmovbl	%r8d, %eax
	jmp	LBB0_17
LBB0_8:
	movl	$-1, %eax
LBB0_17:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_compare_right
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function compare_right
_compare_right:                         ; @compare_right
	.cfi_startproc
; %bb.0:
	mov	x8, x0
	mov	w0, #0
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x8]
	cmp	x9, x1
	b.eq	LBB0_3
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	ldrb	w10, [x9]
	sub	w11, w10, #48
	cmp	w11, #10
	b.lo	LBB0_6
LBB0_3:                                 ;   in Loop: Header=BB0_1 Depth=1
	ldr	x10, [x2]
	cmp	x10, x3
	b.eq	LBB0_11
; %bb.4:                                ;   in Loop: Header=BB0_1 Depth=1
	ldrb	w10, [x10]
	sub	w10, w10, #58
	cmn	w10, #10
	ccmp	x9, x1, #4, hs
	b.eq	LBB0_10
; %bb.5:                                ;   in Loop: Header=BB0_1 Depth=1
	ldrb	w10, [x9]
	sub	w11, w10, #48
	cmp	w11, #9
	b.hi	LBB0_12
LBB0_6:                                 ;   in Loop: Header=BB0_1 Depth=1
	ldr	x11, [x2]
	cmp	x11, x3
	b.eq	LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_1 Depth=1
	ldrb	w11, [x11]
	sub	w12, w11, #48
	cmp	w12, #9
	b.hi	LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_1 Depth=1
	sxtb	w11, w11
	cmp	w0, #0
	csinc	w12, w0, wzr, ne
	cmp	w11, w10, sxtb
	csel	w12, w0, w12, ge
	cmp	w0, #0
	csinv	w13, w0, wzr, ne
	cmp	w11, w10, sxtb
	csel	w0, w12, w13, le
	add	x9, x9, #1
	str	x9, [x8]
	ldr	x9, [x2]
	add	x9, x9, #1
	str	x9, [x2]
	b	LBB0_1
LBB0_9:
	mov	w0, #1
	ret
LBB0_10:
	cmn	w10, #10
	csinv	w0, w0, wzr, lo
LBB0_11:
	ret
LBB0_12:
	mov	w0, #-1
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_compare_right
.subsections_via_symbols
