	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_BotLoadChatMessage             ## -- Begin function BotLoadChatMessage
	.p2align	4, 0x90
_BotLoadChatMessage:                    ## @BotLoadChatMessage
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r13
	movq	%rdi, %rbx
	movb	$0, (%rsi)
	leaq	-88(%rbp), %r15
	movq	_TT_STRING@GOTPCREL(%rip), %r12
	leaq	L_.str.4(%rip), %r14
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_PC_ExpectAnyToken
	testl	%eax, %eax
	je	LBB0_20
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	-88(%rbp), %rax
	cmpq	(%r12), %rax
	jne	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	-80(%rbp), %rdi
	callq	_StripDoubleQuotes
	movq	%r13, %rdi
	callq	_strlen
	movq	%r13, %rbx
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	-80(%rbp), %r13
	movq	%r13, %rdi
	callq	_strlen
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	addq	%rcx, %rax
	incq	%rax
	movq	_MAX_MESSAGE_SIZE@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	cmpq	%rcx, %rax
	ja	LBB0_4
## %bb.16:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_strcat
	movq	%rbx, %r13
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_17
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	_TT_NUMBER@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_12
## %bb.6:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	_TT_INTEGER@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, -72(%rbp)
	je	LBB0_12
## %bb.7:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%r13, %rdi
	callq	_strlen
	leaq	7(%rax), %rcx
	movq	_MAX_MESSAGE_SIZE@GOTPCREL(%rip), %rdx
	movslq	(%rdx), %rdx
	cmpq	%rdx, %rcx
	ja	LBB0_8
## %bb.10:                              ##   in Loop: Header=BB0_1 Depth=1
	addq	%r13, %rax
	movq	_ESCAPE_CHAR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	-64(%rbp), %rcx
	movq	%rax, %rdi
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	_TT_NAME@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_15
## %bb.13:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	%r13, %rdi
	callq	_strlen
	leaq	7(%rax), %rcx
	movq	_MAX_MESSAGE_SIZE@GOTPCREL(%rip), %rdx
	movslq	(%rdx), %rdx
	cmpq	%rdx, %rcx
	ja	LBB0_8
## %bb.14:                              ##   in Loop: Header=BB0_1 Depth=1
	addq	%r13, %rax
	movq	_ESCAPE_CHAR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	-80(%rbp), %rcx
	movq	%rax, %rdi
	leaq	L_.str.2(%rip), %rsi
LBB0_11:                                ##   in Loop: Header=BB0_1 Depth=1
	movl	%edx, %r8d
	callq	_sprintf
LBB0_17:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_PC_CheckTokenString
	testq	%rax, %rax
	jne	LBB0_18
## %bb.19:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	%rbx, %rdi
	leaq	L_.str.5(%rip), %rsi
	callq	_PC_ExpectTokenString
	testl	%eax, %eax
	jne	LBB0_1
	jmp	LBB0_20
LBB0_18:
	movq	_qtrue@GOTPCREL(%rip), %rax
	jmp	LBB0_21
LBB0_4:
	leaq	L_.str(%rip), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	jmp	LBB0_9
LBB0_8:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
LBB0_9:
	xorl	%eax, %eax
	callq	_SourceError
	jmp	LBB0_20
LBB0_15:
	movq	-80(%rbp), %rdx
	leaq	L_.str.3(%rip), %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_SourceError
LBB0_20:
	movq	_qfalse@GOTPCREL(%rip), %rax
LBB0_21:
	movl	(%rax), %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_qfalse,4,2                     ## @qfalse
	.comm	_TT_STRING,8,3                  ## @TT_STRING
	.comm	_MAX_MESSAGE_SIZE,4,2           ## @MAX_MESSAGE_SIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"chat message too long\n"

	.comm	_TT_NUMBER,8,3                  ## @TT_NUMBER
	.comm	_TT_INTEGER,4,2                 ## @TT_INTEGER
L_.str.1:                               ## @.str.1
	.asciz	"%cv%ld%c"

	.comm	_ESCAPE_CHAR,4,2                ## @ESCAPE_CHAR
	.comm	_TT_NAME,8,3                    ## @TT_NAME
L_.str.2:                               ## @.str.2
	.asciz	"%cr%s%c"

L_.str.3:                               ## @.str.3
	.asciz	"unknown message component %s\n"

L_.str.4:                               ## @.str.4
	.asciz	";"

L_.str.5:                               ## @.str.5
	.asciz	","

	.comm	_qtrue,4,2                      ## @qtrue
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_BotLoadChatMessage             ; -- Begin function BotLoadChatMessage
	.p2align	2
_BotLoadChatMessage:                    ; @BotLoadChatMessage
	.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
	mov	x20, x1
	mov	x19, x0
	strb	wzr, [x1]
Lloh0:
	adrp	x28, _TT_STRING@GOTPAGE
Lloh1:
	ldr	x28, [x28, _TT_STRING@GOTPAGEOFF]
Lloh2:
	adrp	x23, _MAX_MESSAGE_SIZE@GOTPAGE
Lloh3:
	ldr	x23, [x23, _MAX_MESSAGE_SIZE@GOTPAGEOFF]
Lloh4:
	adrp	x21, l_.str.4@PAGE
Lloh5:
	add	x21, x21, l_.str.4@PAGEOFF
Lloh6:
	adrp	x22, l_.str.5@PAGE
Lloh7:
	add	x22, x22, l_.str.5@PAGEOFF
Lloh8:
	adrp	x24, _TT_NUMBER@GOTPAGE
Lloh9:
	ldr	x24, [x24, _TT_NUMBER@GOTPAGEOFF]
Lloh10:
	adrp	x27, _ESCAPE_CHAR@GOTPAGE
Lloh11:
	ldr	x27, [x27, _ESCAPE_CHAR@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	add	x1, sp, #16
	mov	x0, x19
	bl	_PC_ExpectAnyToken
	cbz	w0, LBB0_19
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	x8, [sp, #16]
	ldr	x9, [x28]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	x0, [sp, #24]
	bl	_StripDoubleQuotes
	mov	x0, x20
	bl	_strlen
	mov	x26, x0
	ldr	x25, [sp, #24]
	mov	x0, x25
	bl	_strlen
	add	x8, x26, x0
	add	x8, x8, #1
	ldrsw	x9, [x23]
	cmp	x8, x9
	b.hi	LBB0_15
; %bb.4:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x20
	mov	x1, x25
	bl	_strcat
	b	LBB0_13
LBB0_5:                                 ;   in Loop: Header=BB0_1 Depth=1
	ldr	x9, [x24]
	cmp	x8, x9
	b.ne	LBB0_9
; %bb.6:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	w9, [sp, #32]
Lloh12:
	adrp	x10, _TT_INTEGER@GOTPAGE
Lloh13:
	ldr	x10, [x10, _TT_INTEGER@GOTPAGEOFF]
Lloh14:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x20
	bl	_strlen
	add	x8, x0, #7
	ldrsw	x9, [x23]
	cmp	x8, x9
	b.hi	LBB0_15
; %bb.8:                                ;   in Loop: Header=BB0_1 Depth=1
	add	x0, x20, x0
	ldr	w2, [x27]
	ldr	x3, [sp, #40]
Lloh15:
	adrp	x1, l_.str.1@PAGE
Lloh16:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_12
LBB0_9:                                 ;   in Loop: Header=BB0_1 Depth=1
Lloh17:
	adrp	x9, _TT_NAME@GOTPAGE
Lloh18:
	ldr	x9, [x9, _TT_NAME@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_17
; %bb.10:                               ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x20
	bl	_strlen
	add	x8, x0, #7
	ldrsw	x9, [x23]
	cmp	x8, x9
	b.hi	LBB0_15
; %bb.11:                               ;   in Loop: Header=BB0_1 Depth=1
	add	x0, x20, x0
	ldr	w2, [x27]
	ldr	x3, [sp, #24]
Lloh20:
	adrp	x1, l_.str.2@PAGE
Lloh21:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_12:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x4, x2
	bl	_sprintf
LBB0_13:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x19
	mov	x1, x21
	bl	_PC_CheckTokenString
	cbnz	x0, LBB0_16
; %bb.14:                               ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x19
	mov	x1, x22
	bl	_PC_ExpectTokenString
	cbnz	w0, LBB0_1
	b	LBB0_19
LBB0_15:
Lloh22:
	adrp	x1, l_.str@PAGE
Lloh23:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_18
LBB0_16:
Lloh24:
	adrp	x8, _qtrue@GOTPAGE
Lloh25:
	ldr	x8, [x8, _qtrue@GOTPAGEOFF]
	b	LBB0_20
LBB0_17:
	ldr	x8, [sp, #24]
	str	x8, [sp]
Lloh26:
	adrp	x1, l_.str.3@PAGE
Lloh27:
	add	x1, x1, l_.str.3@PAGEOFF
LBB0_18:
	mov	x0, x19
	bl	_SourceError
LBB0_19:
Lloh28:
	adrp	x8, _qfalse@GOTPAGE
Lloh29:
	ldr	x8, [x8, _qfalse@GOTPAGEOFF]
LBB0_20:
	ldr	w0, [x8]
	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
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_qfalse,4,2                     ; @qfalse
	.comm	_TT_STRING,8,3                  ; @TT_STRING
	.comm	_MAX_MESSAGE_SIZE,4,2           ; @MAX_MESSAGE_SIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"chat message too long\n"

	.comm	_TT_NUMBER,8,3                  ; @TT_NUMBER
	.comm	_TT_INTEGER,4,2                 ; @TT_INTEGER
l_.str.1:                               ; @.str.1
	.asciz	"%cv%ld%c"

	.comm	_ESCAPE_CHAR,4,2                ; @ESCAPE_CHAR
	.comm	_TT_NAME,8,3                    ; @TT_NAME
l_.str.2:                               ; @.str.2
	.asciz	"%cr%s%c"

l_.str.3:                               ; @.str.3
	.asciz	"unknown message component %s\n"

l_.str.4:                               ; @.str.4
	.asciz	";"

l_.str.5:                               ; @.str.5
	.asciz	","

	.comm	_qtrue,4,2                      ; @qtrue
.subsections_via_symbols
