	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function similar_sgr
_similar_sgr:                           ## @similar_sgr
	.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	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	testq	%rdi, %rdi
	je	LBB0_14
## %bb.1:
	movq	%rsi, %r15
	testq	%rsi, %rsi
	je	LBB0_14
## %bb.2:
	movq	%rdi, %r14
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	callq	_is_csi
	movl	%eax, %r12d
	movq	%r15, %rdi
	callq	_is_csi
	movl	%eax, %r13d
	movq	_TRACE_DATABASE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	$1, %edi
	movq	%r14, %rsi
	callq	__nc_visbuf2
	movl	$2, %edi
	movq	%r15, %rsi
	callq	__nc_visbuf2
	movslq	%eax, %rsi
	movl	%ebx, %edi
	callq	_TR
	testl	%r12d, %r12d
	je	LBB0_3
## %bb.4:
	testl	%r13d, %r13d
	je	LBB0_3
## %bb.5:
	cmpl	%r13d, %r12d
	jne	LBB0_3
## %bb.6:
	movslq	%r12d, %rax
	leaq	(%r15,%rax), %rbx
	movb	(%r14,%rax), %cl
	addq	%rax, %r14
	cmpb	(%r15,%rax), %cl
	movq	_TRACE_DATABASE@GOTPCREL(%rip), %r13
	jne	LBB0_8
## %bb.7:
	movq	%rbx, %r15
	jmp	LBB0_9
LBB0_3:
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	movq	_TRACE_DATABASE@GOTPCREL(%rip), %r13
	jmp	LBB0_10
LBB0_8:
	movq	%r14, %rdi
	callq	_skip_zero
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_skip_zero
	movq	%rax, %r15
LBB0_9:
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
LBB0_10:
	movq	%r14, %rdi
	callq	_strlen
	movq	%rax, %r12
	movq	%r15, %rdi
	callq	_strlen
	testq	%r12, %r12
	je	LBB0_13
## %bb.11:
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:
	cmpq	%rax, %r12
	cmovbq	%r12, %rax
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%rax, %rdx
	callq	_strncmp
	xorl	%ebx, %ebx
	testq	%rax, %rax
	sete	%bl
LBB0_13:
	movl	(%r13), %r12d
	movl	$1, %edi
	movq	%r14, %rsi
	callq	__nc_visbuf2
	movl	$2, %edi
	movq	%r15, %rsi
	callq	__nc_visbuf2
	movslq	%eax, %rsi
	movl	%r12d, %edi
	callq	_TR
LBB0_14:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_TRACE_DATABASE,4,2             ## @TRACE_DATABASE
	.no_dead_strip	_similar_sgr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function similar_sgr
_similar_sgr:                           ; @similar_sgr
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
Lloh0:
	adrp	x8, _FALSE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh2:
	ldr	w19, [x8]
	cbz	x0, LBB0_11
; %bb.1:
	mov	x20, x1
	cbz	x1, LBB0_11
; %bb.2:
	mov	x21, x0
	bl	_is_csi
	mov	x22, x0
	mov	x0, x20
	bl	_is_csi
	mov	x23, x0
Lloh3:
	adrp	x25, _TRACE_DATABASE@GOTPAGE
Lloh4:
	ldr	x25, [x25, _TRACE_DATABASE@GOTPAGEOFF]
	ldr	w24, [x25]
	mov	w0, #1
	mov	x1, x21
	bl	__nc_visbuf2
	mov	w0, #2
	mov	x1, x20
	bl	__nc_visbuf2
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x1, w0
	mov	x0, x24
	bl	_TR
	cbz	w22, LBB0_7
; %bb.3:
	cbz	w23, LBB0_7
; %bb.4:
	cmp	w22, w23
	b.ne	LBB0_7
; %bb.5:
	sxtw	x8, w22
	add	x21, x21, x8
	add	x20, x20, x8
	ldrb	w8, [x21]
	ldrb	w9, [x20]
	cmp	w8, w9
	b.eq	LBB0_7
; %bb.6:
	mov	x0, x21
	bl	_skip_zero
	mov	x21, x0
	mov	x0, x20
	bl	_skip_zero
	mov	x20, x0
LBB0_7:
	mov	x0, x21
	bl	_strlen
	mov	x22, x0
	mov	x0, x20
	bl	_strlen
	cbz	x22, LBB0_10
; %bb.8:
	cbz	x0, LBB0_10
; %bb.9:
	cmp	x22, x0
	csel	x2, x22, x0, lo
	mov	x0, x21
	mov	x1, x20
	bl	_strncmp
	cmp	x0, #0
	cset	w19, eq
LBB0_10:
	ldr	w22, [x25]
	mov	w0, #1
	mov	x1, x21
	bl	__nc_visbuf2
	mov	w0, #2
	mov	x1, x20
	bl	__nc_visbuf2
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x1, w0
	mov	x0, x22
	bl	_TR
LBB0_11:
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_TRACE_DATABASE,4,2             ; @TRACE_DATABASE
	.no_dead_strip	_similar_sgr
.subsections_via_symbols
