	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function is_based
_is_based:                              ## @is_based
	.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
	subq	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, -88(%rbp)                 ## 8-byte Spill
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	cmpl	$0, (%rdi)
	je	LBB0_4
## %bb.1:
	js	LBB0_25
## %bb.2:
	movq	%rdx, %r15
	movq	%rsi, %rbx
	movq	%rsi, %rdi
	movq	%rdx, %rsi
	callq	_strstr
	testq	%rax, %rax
	je	LBB0_6
LBB0_25:
	movl	$1, %ebx
	jmp	LBB0_26
LBB0_4:
	xorl	%ebx, %ebx
LBB0_26:
	movl	%ebx, %eax
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	callq	_strlen
	movl	%eax, %esi
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %eax
	xorl	%ebx, %ebx
	cmpl	%eax, %esi
	jge	LBB0_9
## %bb.7:
	xorl	%r14d, %r14d
LBB0_8:
	movq	%r14, %rdi
	callq	_clean
	jmp	LBB0_26
LBB0_9:
	leal	1(%rsi), %ecx
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movslq	%esi, %rcx
	movq	%rcx, -112(%rbp)                ## 8-byte Spill
	xorl	%edi, %edi
	xorl	%r14d, %r14d
	movq	%r15, -104(%rbp)                ## 8-byte Spill
	movq	%rsi, -96(%rbp)                 ## 8-byte Spill
	jmp	LBB0_12
LBB0_10:                                ##   in Loop: Header=BB0_12 Depth=1
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %eax
	xorl	%ebx, %ebx
	movq	-104(%rbp), %r15                ## 8-byte Reload
	movq	-96(%rbp), %rsi                 ## 8-byte Reload
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
LBB0_11:                                ##   in Loop: Header=BB0_12 Depth=1
	leaq	1(%rdi), %rcx
	movl	%esi, %edx
	subl	%eax, %edx
	movslq	%edx, %rdx
	cmpq	%rdx, %rdi
	movq	%rcx, %rdi
	jge	LBB0_8
LBB0_12:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_14 Depth 2
                                        ##       Child Loop BB0_18 Depth 3
	leal	(%rax,%rdi), %ecx
	cmpl	%esi, %ecx
	jg	LBB0_11
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	leaq	(%r15,%rdi), %r12
	movslq	%eax, %r13
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
LBB0_14:                                ##   Parent Loop BB0_12 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_18 Depth 3
	movb	(%rbx), %al
	testb	%al, %al
	je	LBB0_10
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=2
	movslq	%ecx, %rcx
	movq	-88(%rbp), %rdx                 ## 8-byte Reload
	addq	%rcx, %rdx
	movq	%rdx, -120(%rbp)                ## 8-byte Spill
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	subl	%ecx, %edx
	movl	%edx, -68(%rbp)                 ## 4-byte Spill
	xorl	%r15d, %r15d
	jmp	LBB0_18
LBB0_16:                                ##   in Loop: Header=BB0_18 Depth=3
	movq	%r14, %rdi
	movq	-88(%rbp), %rsi                 ## 8-byte Reload
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movl	%r15d, %edx
	callq	_memcpy
	leaq	(%r14,%r15), %rdi
	movq	-120(%rbp), %rsi                ## 8-byte Reload
	movl	-68(%rbp), %edx                 ## 4-byte Reload
	callq	_memcpy
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %rsi
	callq	_is_simple
	movl	$1, %r15d
	testq	%rax, %rax
	jne	LBB0_24
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_18 Depth=3
	movzbl	1(%rbx), %eax
	incq	%rbx
	testb	%al, %al
	je	LBB0_22
LBB0_18:                                ##   Parent Loop BB0_12 Depth=1
                                        ##     Parent Loop BB0_14 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	cmpb	(%r12), %al
	jne	LBB0_17
## %bb.19:                              ##   in Loop: Header=BB0_18 Depth=3
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movl	%r13d, %edx
	callq	_strncmp
	testl	%eax, %eax
	jne	LBB0_17
## %bb.20:                              ##   in Loop: Header=BB0_18 Depth=3
	testq	%r14, %r14
	jne	LBB0_16
## %bb.21:                              ##   in Loop: Header=BB0_18 Depth=3
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_malloc
	movq	%rax, %r14
	testq	%rax, %rax
	jne	LBB0_16
	jmp	LBB0_25
	.p2align	4, 0x90
LBB0_22:                                ##   in Loop: Header=BB0_14 Depth=2
	testl	%r15d, %r15d
	je	LBB0_10
## %bb.23:                              ##   in Loop: Header=BB0_14 Depth=2
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rax,%r13), %rcx
	incq	%rcx
	incq	%r13
	cmpq	-112(%rbp), %rcx                ## 8-byte Folded Reload
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	jle	LBB0_14
	jmp	LBB0_10
LBB0_24:
	movq	%r14, %rdi
	callq	_clean
	jmp	LBB0_25
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_is_based
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function is_based
_is_based:                              ; @is_based
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	ldr	w8, [x0]
	cbz	w8, LBB0_7
; %bb.1:
	tbnz	w8, #31, LBB0_3
; %bb.2:
	mov	x19, x3
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
	mov	x0, x1
	mov	x1, x2
	bl	_strstr
	cbz	x0, LBB0_4
LBB0_3:
	mov	w0, #1
	b	LBB0_8
LBB0_4:
	mov	x0, x20
	bl	_strlen
                                        ; kill: def $w0 killed $w0 def $x0
	ldr	w8, [x22]
	cmp	w0, w8
	b.ge	LBB0_9
; %bb.5:
	mov	x24, #0
LBB0_6:
	mov	x0, x24
	bl	_clean
LBB0_7:
	mov	w0, #0
LBB0_8:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_9:
	mov	x26, #0
	mov	x24, #0
	add	w9, w0, #1
	str	w9, [sp, #44]                   ; 4-byte Folded Spill
	sxtw	x9, w0
	stp	x20, x9, [sp, #16]              ; 16-byte Folded Spill
	str	x21, [sp, #32]                  ; 8-byte Folded Spill
	str	x0, [sp, #8]                    ; 8-byte Folded Spill
	b	LBB0_13
LBB0_10:                                ;   in Loop: Header=BB0_13 Depth=1
	ldr	x21, [sp, #32]                  ; 8-byte Folded Reload
LBB0_11:                                ;   in Loop: Header=BB0_13 Depth=1
	ldr	w8, [x22]
	ldp	x0, x20, [sp, #8]               ; 16-byte Folded Reload
LBB0_12:                                ;   in Loop: Header=BB0_13 Depth=1
	sub	w9, w0, w8
	cmp	x26, w9, sxtw
	add	x26, x26, #1
	b.ge	LBB0_6
LBB0_13:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_15 Depth 2
                                        ;       Child Loop BB0_18 Depth 3
	add	w9, w8, w26
	cmp	w9, w0
	b.gt	LBB0_12
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=1
	add	x27, x20, x26
	sxtw	x28, w8
LBB0_15:                                ;   Parent Loop BB0_13 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_18 Depth 3
	ldrb	w8, [x21]
	cbz	w8, LBB0_11
; %bb.16:                               ;   in Loop: Header=BB0_15 Depth=2
	mov	w25, #0
	ldr	w10, [sp, #44]                  ; 4-byte Folded Reload
	sub	w23, w10, w9
	add	x20, x19, w9, sxtw
	b	LBB0_18
LBB0_17:                                ;   in Loop: Header=BB0_18 Depth=3
	ldrb	w8, [x21, #1]!
	cbz	w8, LBB0_24
LBB0_18:                                ;   Parent Loop BB0_13 Depth=1
                                        ;     Parent Loop BB0_15 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	ldrb	w9, [x27]
	cmp	w8, w9
	b.ne	LBB0_17
; %bb.19:                               ;   in Loop: Header=BB0_18 Depth=3
	mov	x0, x21
	mov	x1, x27
	mov	x2, x28
	bl	_strncmp
	cbnz	w0, LBB0_17
; %bb.20:                               ;   in Loop: Header=BB0_18 Depth=3
	cbnz	x24, LBB0_22
; %bb.21:                               ;   in Loop: Header=BB0_18 Depth=3
	ldr	w0, [sp, #44]                   ; 4-byte Folded Reload
	bl	_malloc
	mov	x24, x0
	cbz	x0, LBB0_3
LBB0_22:                                ;   in Loop: Header=BB0_18 Depth=3
	mov	x0, x24
	mov	x1, x19
	mov	x2, x26
	bl	_memcpy
	add	x0, x24, x26
	mov	x1, x20
	mov	x2, x23
	bl	_memcpy
	mov	x0, x22
	mov	x1, x24
	bl	_is_simple
	cbnz	x0, LBB0_26
; %bb.23:                               ;   in Loop: Header=BB0_18 Depth=3
	mov	w25, #1
	b	LBB0_17
LBB0_24:                                ;   in Loop: Header=BB0_15 Depth=2
	cbz	w25, LBB0_10
; %bb.25:                               ;   in Loop: Header=BB0_15 Depth=2
	add	x28, x28, #1
	add	x9, x28, x26
	ldp	x8, x21, [sp, #24]              ; 16-byte Folded Reload
	cmp	x9, x8
	b.le	LBB0_15
	b	LBB0_11
LBB0_26:
	mov	x0, x24
	bl	_clean
	b	LBB0_3
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_is_based
.subsections_via_symbols
