	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function similar
_similar:                               ## @similar
	.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	%rsi, %r14
	movb	(%rdi), %al
	testb	%al, %al
	je	LBB0_6
## %bb.1:
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	(%r14,%rdx), %ecx
	testb	%cl, %cl
	je	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpb	%cl, %al
	jne	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movzbl	1(%rdi,%rdx), %eax
	incq	%rdx
	testb	%al, %al
	jne	LBB0_2
LBB0_5:
	addq	%rdx, %r14
	addq	%rdx, %rdi
LBB0_6:
	xorl	%r15d, %r15d
LBB0_47:
	callq	_strlen
	movq	%rax, %rbx
	movq	%r14, %rdi
	callq	_strlen
	addl	%ebx, %eax
	addl	%r15d, %eax
	cmpl	$4, %eax
	jl	LBB0_17
LBB0_16:
	movq	_INT_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_17:
                                        ## kill: def $eax killed $eax killed $rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	leaq	(%rdi,%rdx), %r9
	incq	%r9
	movb	1(%rdi,%rdx), %bl
	leaq	(%r14,%rdx), %r8
	incq	%r8
	movb	1(%r14,%rdx), %sil
	cmpb	%sil, %bl
	je	LBB0_12
## %bb.8:
	cmpb	%sil, %al
	jne	LBB0_14
## %bb.9:
	cmpb	%cl, %bl
	jne	LBB0_14
## %bb.10:
	leaq	(%rdi,%rdx), %r9
	addq	$2, %r9
	addq	%rdx, %r14
	addq	$2, %r14
LBB0_11:
	movb	(%r9), %bl
	movq	%r14, %r8
LBB0_12:
	movl	$1, %r15d
	testb	%bl, %bl
	je	LBB0_13
## %bb.18:
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_19:                                ## =>This Inner Loop Header: Depth=1
	movzbl	(%r8,%rsi), %eax
	testb	%al, %al
	je	LBB0_49
## %bb.20:                              ##   in Loop: Header=BB0_19 Depth=1
	cmpb	%al, %bl
	jne	LBB0_21
## %bb.48:                              ##   in Loop: Header=BB0_19 Depth=1
	movzbl	1(%r9,%rsi), %ebx
	incq	%rsi
	testb	%bl, %bl
	jne	LBB0_19
LBB0_49:
	addq	%rsi, %r8
	addq	%rsi, %r9
LBB0_13:
	movq	%r9, %rdi
	movq	%r8, %r14
	jmp	LBB0_47
LBB0_14:
	addq	%rdx, %rdi
	addq	%rdx, %r14
	cmpb	%sil, %al
	cmoveq	%rdi, %r9
	cmoveq	%r8, %r14
	je	LBB0_11
## %bb.15:
	cmpb	%cl, %bl
	jne	LBB0_16
	jmp	LBB0_11
LBB0_21:
	leaq	(%r9,%rsi), %rdi
	incq	%rdi
	movb	1(%r9,%rsi), %dl
	leaq	(%r8,%rsi), %r14
	incq	%r14
	movb	1(%r8,%rsi), %cl
	cmpb	%cl, %dl
	je	LBB0_28
## %bb.22:
	cmpb	%cl, %bl
	jne	LBB0_24
## %bb.23:
	cmpb	%al, %dl
	jne	LBB0_24
## %bb.26:
	leaq	(%r9,%rsi), %rdi
	addq	$2, %rdi
	addq	%rsi, %r8
	addq	$2, %r8
	jmp	LBB0_27
LBB0_24:
	addq	%rsi, %r9
	addq	%rsi, %r8
	cmpb	%cl, %bl
	cmoveq	%r9, %rdi
	cmoveq	%r14, %r8
	je	LBB0_27
## %bb.25:
	cmpb	%al, %dl
	jne	LBB0_16
LBB0_27:
	movb	(%rdi), %dl
	movq	%r8, %r14
LBB0_28:
	movl	$2, %r15d
	testb	%dl, %dl
	je	LBB0_47
## %bb.29:
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_30:                                ## =>This Inner Loop Header: Depth=1
	movzbl	(%r14,%rsi), %eax
	testb	%al, %al
	je	LBB0_46
## %bb.31:                              ##   in Loop: Header=BB0_30 Depth=1
	cmpb	%al, %dl
	jne	LBB0_32
## %bb.45:                              ##   in Loop: Header=BB0_30 Depth=1
	movzbl	1(%rdi,%rsi), %edx
	incq	%rsi
	testb	%dl, %dl
	jne	LBB0_30
LBB0_46:
	addq	%rsi, %r14
	addq	%rsi, %rdi
	jmp	LBB0_47
LBB0_32:
	leaq	(%rdi,%rsi), %r8
	incq	%r8
	movb	1(%rdi,%rsi), %bl
	leaq	(%r14,%rsi), %rcx
	incq	%rcx
	movb	1(%r14,%rsi), %r9b
	cmpb	%r9b, %bl
	je	LBB0_39
## %bb.33:
	cmpb	%r9b, %dl
	jne	LBB0_35
## %bb.34:
	cmpb	%al, %bl
	jne	LBB0_35
## %bb.37:
	leaq	(%rdi,%rsi), %r8
	addq	$2, %r8
	addq	%rsi, %r14
	addq	$2, %r14
LBB0_38:
	movb	(%r8), %bl
	movq	%r14, %rcx
LBB0_39:
	movl	$3, %r15d
	testb	%bl, %bl
	je	LBB0_41
LBB0_42:                                ## =>This Inner Loop Header: Depth=1
	movzbl	(%rcx), %eax
	testb	%al, %al
	je	LBB0_41
## %bb.43:                              ##   in Loop: Header=BB0_42 Depth=1
	cmpb	%al, %bl
	jne	LBB0_16
## %bb.44:                              ##   in Loop: Header=BB0_42 Depth=1
	incq	%rcx
	movzbl	1(%r8), %ebx
	incq	%r8
	testb	%bl, %bl
	jne	LBB0_42
LBB0_41:
	movq	%r8, %rdi
	movq	%rcx, %r14
	jmp	LBB0_47
LBB0_35:
	addq	%rsi, %rdi
	addq	%rsi, %r14
	cmpb	%r9b, %dl
	cmoveq	%rdi, %r8
	cmoveq	%rcx, %r14
	je	LBB0_38
## %bb.36:
	cmpb	%al, %bl
	jne	LBB0_16
	jmp	LBB0_38
	.cfi_endproc
                                        ## -- End function
	.comm	_INT_MAX,4,2                    ## @INT_MAX
	.no_dead_strip	_similar
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function similar
_similar:                               ; @similar
	.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, x1
	ldrb	w10, [x0]
	cbz	w10, LBB0_6
; %bb.1:
	mov	x8, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w11, [x19, x8]
	cbz	w11, LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x12, x0, x8
	cmp	w10, w11
	b.ne	LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	ldrb	w10, [x12, #1]
	add	x8, x8, #1
	cbnz	w10, LBB0_2
LBB0_5:
	mov	w21, #0
	add	x19, x19, x8
	add	x0, x0, x8
	b	LBB0_21
LBB0_6:
	mov	w21, #0
	b	LBB0_21
LBB0_7:
	mov	x13, x12
	ldrb	w9, [x13, #1]!
	add	x15, x19, x8
	mov	x14, x15
	ldrb	w16, [x14, #1]!
	cmp	w9, w16
	b.ne	LBB0_9
; %bb.8:
	mov	x0, x13
	mov	x19, x14
	cbnz	w9, LBB0_15
	b	LBB0_20
LBB0_9:
	cmp	w10, w16
	ccmp	w9, w11, #0, eq
	b.eq	LBB0_13
; %bb.10:
	cmp	w10, w16
	csel	x0, x12, x13, eq
	csel	x19, x14, x15, eq
	b.eq	LBB0_14
; %bb.11:
	cmp	w9, w11
	b.eq	LBB0_14
LBB0_12:
Lloh0:
	adrp	x8, _INT_MAX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _INT_MAX@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	b	LBB0_22
LBB0_13:
	add	x9, x0, x8
	add	x0, x9, #2
	add	x8, x19, x8
	add	x19, x8, #2
LBB0_14:
	ldrb	w9, [x0]
	cbz	w9, LBB0_20
LBB0_15:
	mov	x10, #0
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	ldrb	w11, [x19, x10]
	cbz	w11, LBB0_19
; %bb.17:                               ;   in Loop: Header=BB0_16 Depth=1
	add	x12, x0, x10
	cmp	w9, w11
	b.ne	LBB0_23
; %bb.18:                               ;   in Loop: Header=BB0_16 Depth=1
	ldrb	w9, [x12, #1]
	add	x10, x10, #1
	cbnz	w9, LBB0_16
LBB0_19:
	add	x19, x19, x10
	add	x0, x0, x10
LBB0_20:
	mov	w21, #1
LBB0_21:
	bl	_strlen
	mov	x20, x0
	mov	x0, x19
	bl	_strlen
	add	w8, w0, w20
	add	w8, w21, w8
Lloh3:
	adrp	x9, _INT_MAX@GOTPAGE
Lloh4:
	ldr	x9, [x9, _INT_MAX@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w8, #3
	csel	w0, w9, w8, gt
LBB0_22:
	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
LBB0_23:
	mov	x13, x12
	ldrb	w8, [x13, #1]!
	add	x15, x19, x10
	mov	x14, x15
	ldrb	w16, [x14, #1]!
	cmp	w8, w16
	b.ne	LBB0_25
; %bb.24:
	mov	x0, x13
	mov	x19, x14
	b	LBB0_30
LBB0_25:
	cmp	w9, w16
	ccmp	w8, w11, #0, eq
	b.eq	LBB0_28
; %bb.26:
	cmp	w9, w16
	csel	x0, x12, x13, eq
	csel	x19, x14, x15, eq
	b.eq	LBB0_29
; %bb.27:
	cmp	w8, w11
	b.ne	LBB0_12
	b	LBB0_29
LBB0_28:
	add	x8, x0, x10
	add	x0, x8, #2
	add	x8, x19, x10
	add	x19, x8, #2
LBB0_29:
	ldrb	w8, [x0]
LBB0_30:
	cbz	w8, LBB0_36
; %bb.31:
	mov	x10, #0
LBB0_32:                                ; =>This Inner Loop Header: Depth=1
	ldrb	w11, [x19, x10]
	cbz	w11, LBB0_35
; %bb.33:                               ;   in Loop: Header=BB0_32 Depth=1
	add	x12, x0, x10
	cmp	w8, w11
	b.ne	LBB0_37
; %bb.34:                               ;   in Loop: Header=BB0_32 Depth=1
	ldrb	w8, [x12, #1]
	add	x10, x10, #1
	cbnz	w8, LBB0_32
LBB0_35:
	add	x19, x19, x10
	add	x0, x0, x10
LBB0_36:
	mov	w21, #2
	b	LBB0_21
LBB0_37:
	mov	x13, x12
	ldrb	w9, [x13, #1]!
	add	x15, x19, x10
	mov	x14, x15
	ldrb	w16, [x14, #1]!
	cmp	w9, w16
	b.ne	LBB0_39
; %bb.38:
	mov	x0, x13
	mov	x19, x14
	b	LBB0_44
LBB0_39:
	cmp	w8, w16
	ccmp	w9, w11, #0, eq
	b.eq	LBB0_42
; %bb.40:
	cmp	w8, w16
	csel	x0, x12, x13, eq
	csel	x19, x14, x15, eq
	b.eq	LBB0_43
; %bb.41:
	cmp	w9, w11
	b.ne	LBB0_12
	b	LBB0_43
LBB0_42:
	add	x8, x0, x10
	add	x0, x8, #2
	add	x8, x19, x10
	add	x19, x8, #2
LBB0_43:
	ldrb	w9, [x0]
LBB0_44:
	mov	w21, #3
	cbz	w9, LBB0_21
LBB0_45:                                ; =>This Inner Loop Header: Depth=1
	ldrb	w8, [x19]
	cbz	w8, LBB0_48
; %bb.46:                               ;   in Loop: Header=BB0_45 Depth=1
	cmp	w9, w8
	b.ne	LBB0_12
; %bb.47:                               ;   in Loop: Header=BB0_45 Depth=1
	ldrb	w9, [x0, #1]!
	add	x19, x19, #1
	cbnz	w9, LBB0_45
	b	LBB0_21
LBB0_48:
	mov	w21, #3
	b	LBB0_21
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_INT_MAX,4,2                    ; @INT_MAX
	.no_dead_strip	_similar
.subsections_via_symbols
