	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function compare
_compare:                               ## @compare
	.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
	movb	(%rdi), %r12b
	testb	%r12b, %r12b
	je	LBB0_13
## %bb.1:
	movq	%rdx, %r14
	movq	%rsi, %rbx
	cmpq	%rdx, %rsi
	jae	LBB0_13
## %bb.2:
	movq	%rdi, %r15
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	cmpb	$10, (%rbx)
	je	LBB0_13
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	%r14d, %edx
	subl	%ebx, %edx
	leaq	-41(%rbp), %rdi
	movq	%rbx, %rsi
	xorl	%ecx, %ecx
	callq	_mbrtowc
	movq	%rax, %r13
	cmpq	$-2, %rax
	jb	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movzbl	(%rbx), %eax
	movb	%al, -41(%rbp)
	movl	$1, %r13d
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	_fflag@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	movzbl	-41(%rbp), %edi
	callq	_towlower
	movb	%al, -41(%rbp)
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	_dflag@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_14
## %bb.9:                               ##   in Loop: Header=BB0_3 Depth=1
	movzbl	-41(%rbp), %edi
	callq	_iswalnum
	testl	%eax, %eax
	je	LBB0_10
LBB0_14:                                ##   in Loop: Header=BB0_3 Depth=1
	cmpb	-41(%rbp), %r12b
	je	LBB0_11
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_3 Depth=1
	decq	%r15
LBB0_11:                                ##   in Loop: Header=BB0_3 Depth=1
	movzbl	1(%r15), %r12d
	testb	%r12b, %r12b
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_3 Depth=1
	incq	%r15
	addq	%r13, %rbx
	cmpq	%r14, %rbx
	jb	LBB0_3
LBB0_13:
	testb	%r12b, %r12b
	sete	%cl
	movq	_EQUAL@GOTPCREL(%rip), %rax
	testb	%cl, %cl
	jne	LBB0_18
LBB0_17:
	movq	_GREATER@GOTPCREL(%rip), %rax
LBB0_18:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	setb	%cl
	movq	_LESS@GOTPCREL(%rip), %rax
	testb	%cl, %cl
	je	LBB0_17
	jmp	LBB0_18
	.cfi_endproc
                                        ## -- End function
	.comm	_fflag,8,3                      ## @fflag
	.comm	_dflag,8,3                      ## @dflag
	.comm	_LESS,4,2                       ## @LESS
	.comm	_GREATER,4,2                    ## @GREATER
	.comm	_EQUAL,4,2                      ## @EQUAL
	.no_dead_strip	_compare
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function compare
_compare:                               ; @compare
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	ldrb	w23, [x0]
	cmp	w23, #0
	ccmp	x1, x2, #2, ne
	b.lo	LBB0_3
LBB0_1:
	cmp	w23, #0
	cset	w8, eq
Lloh0:
	adrp	x9, _EQUAL@GOTPAGE
Lloh1:
	ldr	x9, [x9, _EQUAL@GOTPAGEOFF]
LBB0_2:
Lloh2:
	adrp	x10, _GREATER@GOTPAGE
Lloh3:
	ldr	x10, [x10, _GREATER@GOTPAGEOFF]
	cmp	w8, #0
	csel	x8, x9, x10, ne
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_3:
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
Lloh4:
	adrp	x24, _fflag@GOTPAGE
Lloh5:
	ldr	x24, [x24, _fflag@GOTPAGEOFF]
Lloh6:
	adrp	x25, _dflag@GOTPAGE
Lloh7:
	ldr	x25, [x25, _dflag@GOTPAGEOFF]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w8, [x20]
	cmp	w8, #10
	b.eq	LBB0_1
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	sub	w2, w19, w20
	add	x0, sp, #15
	mov	x1, x20
	mov	x3, #0
	bl	_mbrtowc
	mov	x22, x0
	cmn	x0, #2
	b.lo	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldrb	w8, [x20]
	strb	w8, [sp, #15]
	mov	w22, #1
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x24]
	cbz	x8, LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	ldrb	w0, [sp, #15]
	bl	_towlower
	strb	w0, [sp, #15]
LBB0_9:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x25]
	cbz	x8, LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_4 Depth=1
	ldrb	w0, [sp, #15]
	bl	_iswalnum
	cbz	w0, LBB0_14
LBB0_11:                                ;   in Loop: Header=BB0_4 Depth=1
	ldrb	w8, [sp, #15]
	cmp	w23, w8
	b.ne	LBB0_15
; %bb.12:                               ;   in Loop: Header=BB0_4 Depth=1
	ldrb	w23, [x21, #1]!
	cbz	w23, LBB0_1
LBB0_13:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x20, x20, x22
	cmp	x20, x19
	b.lo	LBB0_4
	b	LBB0_1
LBB0_14:                                ;   in Loop: Header=BB0_4 Depth=1
	sub	x21, x21, #1
	ldrb	w23, [x21, #1]!
	cbnz	w23, LBB0_13
	b	LBB0_1
LBB0_15:
	cset	w8, lo
Lloh8:
	adrp	x9, _LESS@GOTPAGE
Lloh9:
	ldr	x9, [x9, _LESS@GOTPAGEOFF]
	b	LBB0_2
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_fflag,8,3                      ; @fflag
	.comm	_dflag,8,3                      ; @dflag
	.comm	_LESS,4,2                       ; @LESS
	.comm	_GREATER,4,2                    ; @GREATER
	.comm	_EQUAL,4,2                      ; @EQUAL
	.no_dead_strip	_compare
.subsections_via_symbols
