	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_BotFindMatch                   ## -- Begin function BotFindMatch
	.p2align	4, 0x90
_BotFindMatch:                          ## @BotFindMatch
	.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	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %rsi
	movq	(%r15), %rdi
	movq	_MAX_MESSAGE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_strncpy
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rdi
	callq	_strlen
	testl	%eax, %eax
	je	LBB0_4
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	(%r15), %rbx
	movq	%rbx, %rdi
	callq	_strlen
	cltq
	cmpb	$10, -1(%rax,%rbx)
	jne	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	(%r15), %rbx
	movq	%rbx, %rdi
	callq	_strlen
	cltq
	movb	$0, -1(%rax,%rbx)
	jmp	LBB0_1
LBB0_4:
	movq	_matchtemplates@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	_qfalse@GOTPCREL(%rip), %r12
	testq	%rbx, %rbx
	je	LBB0_13
## %bb.5:
	movq	_MAX_MATCHVARIABLES@GOTPCREL(%rip), %r13
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_6 Depth=1
	movl	16(%rbx), %edi
	movq	%r15, %rsi
	callq	_StringsMatch
	testq	%rax, %rax
	jne	LBB0_11
LBB0_12:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	24(%rbx), %rbx
	testq	%rbx, %rbx
	je	LBB0_13
LBB0_6:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_9 Depth 2
	testq	%r14, (%rbx)
	je	LBB0_12
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	cmpl	$0, (%r13)
	jle	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	16(%r15), %rax
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_9:                                 ##   Parent Loop BB0_6 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	$-1, (%rax,%rcx,4)
	incq	%rcx
	movslq	(%r13), %rdx
	cmpq	%rdx, %rcx
	jl	LBB0_9
	jmp	LBB0_10
LBB0_11:
	movl	12(%rbx), %eax
	movl	%eax, 12(%r15)
	movl	8(%rbx), %eax
	movl	%eax, 8(%r15)
	movq	_qtrue@GOTPCREL(%rip), %r12
LBB0_13:
	movl	(%r12), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_MESSAGE_SIZE,4,2           ## @MAX_MESSAGE_SIZE
	.comm	_matchtemplates,8,3             ## @matchtemplates
	.comm	_MAX_MATCHVARIABLES,4,2         ## @MAX_MATCHVARIABLES
	.comm	_qtrue,4,2                      ## @qtrue
	.comm	_qfalse,4,2                     ## @qfalse
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_BotFindMatch                   ; -- Begin function BotFindMatch
	.p2align	2
_BotFindMatch:                          ; @BotFindMatch
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x20, x2
	mov	x19, x1
	mov	x1, x0
	ldr	x0, [x19]
Lloh0:
	adrp	x8, _MAX_MESSAGE_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MAX_MESSAGE_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	bl	_strncpy
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x19]
	bl	_strlen
	cbz	w0, LBB0_4
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	x21, [x19]
	mov	x0, x21
	bl	_strlen
	add	x8, x21, w0, sxtw
	ldurb	w8, [x8, #-1]
	cmp	w8, #10
	b.ne	LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	x21, [x19]
	mov	x0, x21
	bl	_strlen
	add	x8, x21, w0, sxtw
	sturb	wzr, [x8, #-1]
	b	LBB0_1
LBB0_4:
Lloh3:
	adrp	x8, _matchtemplates@GOTPAGE
Lloh4:
	ldr	x8, [x8, _matchtemplates@GOTPAGEOFF]
Lloh5:
	ldr	x22, [x8]
	cbz	x22, LBB0_12
; %bb.5:
Lloh6:
	adrp	x21, _qfalse@GOTPAGE
Lloh7:
	ldr	x21, [x21, _qfalse@GOTPAGEOFF]
Lloh8:
	adrp	x23, _MAX_MATCHVARIABLES@GOTPAGE
Lloh9:
	ldr	x23, [x23, _MAX_MATCHVARIABLES@GOTPAGEOFF]
	mov	w24, #-1
	b	LBB0_8
LBB0_6:                                 ;   in Loop: Header=BB0_8 Depth=1
	ldr	w0, [x22, #16]
	mov	x1, x19
	bl	_StringsMatch
	cbnz	x0, LBB0_13
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	ldr	x22, [x22, #24]
	cbz	x22, LBB0_14
LBB0_8:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_11 Depth 2
	ldr	x8, [x22]
	tst	x8, x20
	b.eq	LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	w8, [x23]
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=1
	mov	x8, #0
	ldr	x9, [x19, #16]
LBB0_11:                                ;   Parent Loop BB0_8 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	str	w24, [x9, x8, lsl #2]
	add	x8, x8, #1
	ldrsw	x10, [x23]
	cmp	x8, x10
	b.lt	LBB0_11
	b	LBB0_6
LBB0_12:
Lloh10:
	adrp	x21, _qfalse@GOTPAGE
Lloh11:
	ldr	x21, [x21, _qfalse@GOTPAGEOFF]
	b	LBB0_14
LBB0_13:
	ldr	d0, [x22, #8]
	str	d0, [x19, #8]
Lloh12:
	adrp	x21, _qtrue@GOTPAGE
Lloh13:
	ldr	x21, [x21, _qtrue@GOTPAGEOFF]
LBB0_14:
	ldr	w0, [x21]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_MESSAGE_SIZE,4,2           ; @MAX_MESSAGE_SIZE
	.comm	_matchtemplates,8,3             ; @matchtemplates
	.comm	_MAX_MATCHVARIABLES,4,2         ; @MAX_MATCHVARIABLES
	.comm	_qtrue,4,2                      ; @qtrue
	.comm	_qfalse,4,2                     ; @qfalse
.subsections_via_symbols
