	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_BotEnterChat                   ## -- Begin function BotEnterChat
	.p2align	4, 0x90
_BotEnterChat:                          ## @BotEnterChat
	.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
	movl	%edx, %r15d
	movl	%esi, %r14d
	callq	_BotChatStateFromHandle
	testq	%rax, %rax
	je	LBB0_12
## %bb.1:
	movq	%rax, %rbx
	movl	(%rax), %edi
	callq	_strlen
	testq	%rax, %rax
	je	LBB0_12
## %bb.2:
	movl	(%rbx), %edi
	callq	_BotRemoveTildes
	leaq	L_.str(%rip), %rdi
	callq	_LibVarGetValue
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	_botimport@GOTPCREL(%rip), %rax
	movq	_PRT_MESSAGE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movl	(%rbx), %edx
	leaq	L_.str.1(%rip), %rsi
	callq	*(%rax)
	jmp	LBB0_11
LBB0_12:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	cmpl	$128, %r15d
	je	LBB0_7
## %bb.5:
	cmpl	$129, %r15d
	jne	LBB0_8
## %bb.6:
	movl	(%rbx), %esi
	movl	4(%rbx), %r14d
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_9
LBB0_7:
	movl	(%rbx), %edx
	movl	4(%rbx), %r15d
	leaq	L_.str.3(%rip), %rdi
	movl	%r14d, %esi
	xorl	%eax, %eax
	callq	_va
	movl	%r15d, %edi
	jmp	LBB0_10
LBB0_8:
	movl	(%rbx), %esi
	movl	4(%rbx), %r14d
	leaq	L_.str.4(%rip), %rdi
LBB0_9:
	xorl	%eax, %eax
	callq	_va
	movl	%r14d, %edi
LBB0_10:
	movl	%eax, %esi
	callq	_EA_Command
LBB0_11:
	movl	(%rbx), %edi
	leaq	L_.str.5(%rip), %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_strcpy                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"bot_testichat"

	.comm	_botimport,8,3                  ## @botimport
	.comm	_PRT_MESSAGE,4,2                ## @PRT_MESSAGE
L_.str.1:                               ## @.str.1
	.asciz	"%s\n"

L_.str.2:                               ## @.str.2
	.asciz	"say_team %s"

L_.str.3:                               ## @.str.3
	.asciz	"tell %d %s"

L_.str.4:                               ## @.str.4
	.asciz	"say %s"

L_.str.5:                               ## @.str.5
	.space	1

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_BotEnterChat                   ; -- Begin function BotEnterChat
	.p2align	2
_BotEnterChat:                          ; @BotEnterChat
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x21, x2
	mov	x20, x1
	bl	_BotChatStateFromHandle
	cbz	x0, LBB0_4
; %bb.1:
	mov	x19, x0
	ldr	w0, [x0]
	bl	_strlen
	cbz	x0, LBB0_4
; %bb.2:
	ldr	w0, [x19]
	bl	_BotRemoveTildes
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_LibVarGetValue
	cbz	x0, LBB0_5
; %bb.3:
Lloh2:
	adrp	x8, _botimport@GOTPAGE
Lloh3:
	ldr	x8, [x8, _botimport@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
Lloh5:
	adrp	x9, _PRT_MESSAGE@GOTPAGE
Lloh6:
	ldr	x9, [x9, _PRT_MESSAGE@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x9]
	ldr	w2, [x19]
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	blr	x8
	b	LBB0_12
LBB0_4:
	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
	add	sp, sp, #64
	ret
LBB0_5:
	cmp	w21, #128
	b.eq	LBB0_8
; %bb.6:
	cmp	w21, #129
	b.ne	LBB0_9
; %bb.7:
	ldp	w1, w20, [x19]
Lloh10:
	adrp	x0, l_.str.2@PAGE
Lloh11:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_10
LBB0_8:
	ldp	w8, w21, [x19]
	str	x8, [sp]
Lloh12:
	adrp	x0, l_.str.3@PAGE
Lloh13:
	add	x0, x0, l_.str.3@PAGEOFF
	mov	x1, x20
	bl	_va
	mov	x1, x0
	mov	x0, x21
	b	LBB0_11
LBB0_9:
	ldp	w1, w20, [x19]
Lloh14:
	adrp	x0, l_.str.4@PAGE
Lloh15:
	add	x0, x0, l_.str.4@PAGEOFF
LBB0_10:
	bl	_va
	mov	x1, x0
	mov	x0, x20
LBB0_11:
	bl	_EA_Command
LBB0_12:
	ldr	w0, [x19]
Lloh16:
	adrp	x1, l_.str.5@PAGE
Lloh17:
	add	x1, x1, l_.str.5@PAGEOFF
	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
	add	sp, sp, #64
	b	_strcpy
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"bot_testichat"

	.comm	_botimport,8,3                  ; @botimport
	.comm	_PRT_MESSAGE,4,2                ; @PRT_MESSAGE
l_.str.1:                               ; @.str.1
	.asciz	"%s\n"

l_.str.2:                               ; @.str.2
	.asciz	"say_team %s"

l_.str.3:                               ; @.str.3
	.asciz	"tell %d %s"

l_.str.4:                               ; @.str.4
	.asciz	"say %s"

l_.str.5:                               ; @.str.5
	.space	1

.subsections_via_symbols
