	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function textlog_chat
_textlog_chat:                          ## @textlog_chat
	.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	$3160, %rsp                     ## imm = 0xC58
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movl	(%rdi), %edi
	leaq	L_.str(%rip), %rsi
	callq	_r_config_get
	movq	%rax, %rbx
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_eprintf
	leaq	L_.str.2(%rip), %rdx
	leaq	-112(%rbp), %r14
	movq	%r14, %rdi
	movl	$63, %esi
	movq	%rbx, -3192(%rbp)               ## 8-byte Spill
	movq	%rbx, %rcx
	xorl	%eax, %eax
	callq	_snprintf
	movq	%r14, %rdi
	callq	_r_line_set_prompt
	movq	%r12, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_r_core_log_list
	movq	8(%r12), %rax
	movl	(%rax), %ebx
	leaq	-1136(%rbp), %rdi
	movl	$1023, %esi                     ## imm = 0x3FF
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_r_cons_fgets
	movl	$1, %r13d
	testq	%rax, %rax
	js	LBB0_18
## %bb.1:
	leaq	-1136(%rbp), %r13
	movl	$1818585135, %r14d              ## imm = 0x6C65682F
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_4 Depth=1
	leaq	L_.str.4(%rip), %rdi
	xorl	%eax, %eax
	callq	_eprintf
	leaq	L_.str.5(%rip), %rdi
	xorl	%eax, %eax
	callq	_eprintf
	leaq	L_.str.6(%rip), %rdi
	xorl	%eax, %eax
	callq	_eprintf
	leaq	L_.str.7(%rip), %rdi
	xorl	%eax, %eax
	callq	_eprintf
LBB0_3:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	%r12, %rdi
	movl	%ebx, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_r_core_log_list
	movq	8(%r12), %rax
	movl	(%rax), %ebx
	movq	%r13, %rdi
	movl	$1023, %esi                     ## imm = 0x3FF
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_r_cons_fgets
	testq	%rax, %rax
	js	LBB0_13
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	cmpb	$0, -1136(%rbp)
	je	LBB0_3
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	-1136(%rbp), %eax
	xorl	%r14d, %eax
	movzwl	-1132(%rbp), %ecx
	xorl	$112, %ecx
	orl	%eax, %ecx
	je	LBB0_2
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%r13, %rdi
	leaq	L_.str.8(%rip), %rsi
	movl	$6, %edx
	callq	_strncmp
	testl	%eax, %eax
	je	LBB0_14
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	-1136(%rbp), %eax
	movl	$1735355439, %ecx               ## imm = 0x676F6C2F
	xorl	%ecx, %eax
	movzbl	-1132(%rbp), %ecx
	orl	%eax, %ecx
	je	LBB0_15
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	-1136(%rbp), %eax
	movl	$1701602095, %ecx               ## imm = 0x656C632F
	xorl	%ecx, %eax
	movl	-1133(%rbp), %ecx
	movl	$7496037, %edx                  ## imm = 0x726165
	xorl	%edx, %ecx
	orl	%eax, %ecx
	je	LBB0_16
## %bb.9:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	-1136(%rbp), %eax
	movl	$1769304367, %ecx               ## imm = 0x6975712F
	xorl	%ecx, %eax
	movzwl	-1132(%rbp), %ecx
	xorl	$116, %ecx
	orl	%eax, %ecx
	je	LBB0_17
## %bb.10:                              ##   in Loop: Header=BB0_4 Depth=1
	cmpb	$47, -1136(%rbp)
	jne	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_4 Depth=1
	leaq	L_.str.14(%rip), %rdi
	movq	%r13, %rsi
	xorl	%eax, %eax
	callq	_eprintf
	jmp	LBB0_3
LBB0_12:                                ##   in Loop: Header=BB0_4 Depth=1
	leaq	-3184(%rbp), %r15
	movq	%r15, %rdi
	movl	$2048, %esi                     ## imm = 0x800
	leaq	L_.str.15(%rip), %rdx
	movq	-3192(%rbp), %rcx               ## 8-byte Reload
	movq	%r13, %r8
	xorl	%eax, %eax
	callq	_snprintf
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_r_core_log_add
	jmp	LBB0_3
LBB0_13:
	movl	$1, %r13d
	jmp	LBB0_18
LBB0_14:
	leaq	-1130(%rbp), %r14
	leaq	L_.str.9(%rip), %rdx
	xorl	%r13d, %r13d
	leaq	-3184(%rbp), %rbx
	movq	%rbx, %rdi
	movl	$2047, %esi                     ## imm = 0x7FF
	movq	-3192(%rbp), %rcx               ## 8-byte Reload
	movq	%r14, %r8
	xorl	%eax, %eax
	callq	_snprintf
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_r_core_log_add
	movl	(%r12), %edi
	leaq	L_.str(%rip), %rbx
	movq	%rbx, %rsi
	movq	%r14, %rdx
	callq	_r_config_set
	movl	(%r12), %edi
	movq	%rbx, %rsi
	callq	_r_config_get
	leaq	L_.str.2(%rip), %rdx
	leaq	-112(%rbp), %rbx
	movq	%rbx, %rdi
	movl	$63, %esi
	movq	%rax, %rcx
	xorl	%eax, %eax
	callq	_snprintf
	movq	%rbx, %rdi
	callq	_r_line_set_prompt
	jmp	LBB0_18
LBB0_15:
	xorl	%r13d, %r13d
	movq	%r12, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_r_core_log_list
	jmp	LBB0_18
LBB0_16:
	leaq	L_.str.12(%rip), %rsi
	movq	%r12, %rdi
	callq	_r_core_cmd0
LBB0_17:
	xorl	%r13d, %r13d
LBB0_18:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_20
## %bb.19:
	movl	%r13d, %eax
	addq	$3160, %rsp                     ## imm = 0xC58
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_20:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cfg.user"

L_.str.1:                               ## @.str.1
	.asciz	"Type '/help' for commands:\n"

L_.str.2:                               ## @.str.2
	.asciz	"[%s]> "

L_.str.3:                               ## @.str.3
	.asciz	"/help"

L_.str.4:                               ## @.str.4
	.asciz	"/quit           quit the chat (same as ^D)\n"

L_.str.5:                               ## @.str.5
	.asciz	"/name <nick>    set cfg.user name\n"

L_.str.6:                               ## @.str.6
	.asciz	"/log            show full log\n"

L_.str.7:                               ## @.str.7
	.asciz	"/clear          clear text log messages\n"

L_.str.8:                               ## @.str.8
	.asciz	"/name "

L_.str.9:                               ## @.str.9
	.asciz	"* '%s' is now known as '%s'"

L_.str.10:                              ## @.str.10
	.asciz	"/log"

L_.str.11:                              ## @.str.11
	.asciz	"/clear"

L_.str.12:                              ## @.str.12
	.asciz	"T-"

L_.str.13:                              ## @.str.13
	.asciz	"/quit"

L_.str.14:                              ## @.str.14
	.asciz	"Unknown command: %s\n"

L_.str.15:                              ## @.str.15
	.asciz	"[%s] %s"

	.no_dead_strip	_textlog_chat
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function textlog_chat
_textlog_chat:                          ; @textlog_chat
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	sub	sp, sp, #3168
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-96]
	ldr	w0, [x0]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_r_config_get
	mov	x20, x0
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_eprintf
Lloh7:
	adrp	x2, l_.str.2@PAGE
Lloh8:
	add	x2, x2, l_.str.2@PAGEOFF
	sub	x0, x29, #160
	mov	w1, #63
	mov	x3, x20
	bl	_snprintf
	sub	x0, x29, #160
	bl	_r_line_set_prompt
	mov	x0, x19
	mov	w1, #0
	mov	w2, #0
	mov	w3, #0
	bl	_r_core_log_list
	ldr	x8, [x19, #8]
	ldr	w21, [x8]
	add	x0, sp, #2064
	mov	w1, #1023
	mov	w2, #0
	mov	x3, #0
	bl	_r_cons_fgets
	tbnz	x0, #63, LBB0_14
; %bb.1:
	mov	w28, #26671
	movk	w28, #27749, lsl #16
Lloh9:
	adrp	x26, l_.str.8@PAGE
Lloh10:
	add	x26, x26, l_.str.8@PAGEOFF
	mov	w22, #27695
	movk	w22, #26479, lsl #16
	mov	w23, #25391
	movk	w23, #25964, lsl #16
	mov	w24, #24933
	movk	w24, #114, lsl #16
	mov	w25, #28975
	movk	w25, #26997, lsl #16
	mov	w27, #116
	b	LBB0_5
LBB0_2:                                 ;   in Loop: Header=BB0_5 Depth=1
Lloh11:
	adrp	x0, l_.str.4@PAGE
Lloh12:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_eprintf
Lloh13:
	adrp	x0, l_.str.5@PAGE
Lloh14:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_eprintf
Lloh15:
	adrp	x0, l_.str.6@PAGE
Lloh16:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	_eprintf
Lloh17:
	adrp	x0, l_.str.7@PAGE
Lloh18:
	add	x0, x0, l_.str.7@PAGEOFF
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	bl	_eprintf
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x19
	mov	x1, x21
	mov	w2, #0
	mov	w3, #0
	bl	_r_core_log_list
	ldr	x8, [x19, #8]
	ldr	w21, [x8]
	add	x0, sp, #2064
	mov	w1, #1023
	mov	w2, #0
	mov	x3, #0
	bl	_r_cons_fgets
	tbnz	x0, #63, LBB0_14
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w8, [sp, #2064]
	cbz	w8, LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [sp, #2064]
	eor	w8, w8, w28
	ldrh	w9, [sp, #2068]
	eor	w9, w9, #0x70
	orr	w8, w8, w9
	cbz	w8, LBB0_2
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x0, sp, #2064
	mov	x1, x26
	mov	w2, #6
	bl	_strncmp
	cbz	w0, LBB0_15
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [sp, #2064]
	eor	w8, w8, w22
	ldrb	w9, [sp, #2068]
	orr	w8, w8, w9
	cbz	w8, LBB0_16
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [sp, #2064]
	eor	w8, w8, w23
	add	x9, sp, #1812
	ldur	w9, [x9, #255]
	eor	w9, w9, w24
	orr	w8, w8, w9
	cbz	w8, LBB0_17
; %bb.10:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [sp, #2064]
	eor	w8, w8, w25
	ldrh	w9, [sp, #2068]
	eor	w9, w9, w27
	orr	w8, w8, w9
	cbz	w8, LBB0_18
; %bb.11:                               ;   in Loop: Header=BB0_5 Depth=1
	ldrb	w8, [sp, #2064]
	cmp	w8, #47
	b.ne	LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_5 Depth=1
	add	x8, sp, #2064
	str	x8, [sp]
Lloh19:
	adrp	x0, l_.str.14@PAGE
Lloh20:
	add	x0, x0, l_.str.14@PAGEOFF
	b	LBB0_3
LBB0_13:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x8, sp, #2064
	str	x8, [sp]
	add	x0, sp, #16
	mov	w1, #2048
Lloh21:
	adrp	x2, l_.str.15@PAGE
Lloh22:
	add	x2, x2, l_.str.15@PAGEOFF
	mov	x3, x20
	bl	_snprintf
	add	x1, sp, #16
	mov	x0, x19
	bl	_r_core_log_add
	b	LBB0_4
LBB0_14:
	mov	w0, #1
	b	LBB0_19
LBB0_15:
	add	x8, sp, #2064
	add	x21, x8, #6
	str	x21, [sp]
Lloh23:
	adrp	x2, l_.str.9@PAGE
Lloh24:
	add	x2, x2, l_.str.9@PAGEOFF
	add	x0, sp, #16
	mov	w1, #2047
	mov	x3, x20
	bl	_snprintf
	add	x1, sp, #16
	mov	x0, x19
	bl	_r_core_log_add
	ldr	w0, [x19]
Lloh25:
	adrp	x20, l_.str@PAGE
Lloh26:
	add	x20, x20, l_.str@PAGEOFF
	mov	x1, x20
	mov	x2, x21
	bl	_r_config_set
	ldr	w0, [x19]
	mov	x1, x20
	bl	_r_config_get
	mov	x3, x0
Lloh27:
	adrp	x2, l_.str.2@PAGE
Lloh28:
	add	x2, x2, l_.str.2@PAGEOFF
	sub	x0, x29, #160
	mov	w1, #63
	bl	_snprintf
	sub	x0, x29, #160
	bl	_r_line_set_prompt
	mov	w0, #0
	b	LBB0_19
LBB0_16:
	mov	x0, x19
	mov	w1, #0
	mov	w2, #0
	mov	w3, #0
	bl	_r_core_log_list
	mov	w0, #0
	b	LBB0_19
LBB0_17:
Lloh29:
	adrp	x1, l_.str.12@PAGE
Lloh30:
	add	x1, x1, l_.str.12@PAGEOFF
	mov	x0, x19
	bl	_r_core_cmd0
LBB0_18:
	mov	w0, #0
LBB0_19:
	ldur	x8, [x29, #-96]
Lloh31:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh32:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh33:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_21
; %bb.20:
	add	sp, sp, #3168
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_21:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cfg.user"

l_.str.1:                               ; @.str.1
	.asciz	"Type '/help' for commands:\n"

l_.str.2:                               ; @.str.2
	.asciz	"[%s]> "

l_.str.3:                               ; @.str.3
	.asciz	"/help"

l_.str.4:                               ; @.str.4
	.asciz	"/quit           quit the chat (same as ^D)\n"

l_.str.5:                               ; @.str.5
	.asciz	"/name <nick>    set cfg.user name\n"

l_.str.6:                               ; @.str.6
	.asciz	"/log            show full log\n"

l_.str.7:                               ; @.str.7
	.asciz	"/clear          clear text log messages\n"

l_.str.8:                               ; @.str.8
	.asciz	"/name "

l_.str.9:                               ; @.str.9
	.asciz	"* '%s' is now known as '%s'"

l_.str.10:                              ; @.str.10
	.asciz	"/log"

l_.str.11:                              ; @.str.11
	.asciz	"/clear"

l_.str.12:                              ; @.str.12
	.asciz	"T-"

l_.str.13:                              ; @.str.13
	.asciz	"/quit"

l_.str.14:                              ; @.str.14
	.asciz	"Unknown command: %s\n"

l_.str.15:                              ; @.str.15
	.asciz	"[%s] %s"

	.no_dead_strip	_textlog_chat
.subsections_via_symbols
