	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function chat_send
_chat_send:                             ## @chat_send
	.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	%rdi, %rbx
	movq	_chat_debug@GOTPCREL(%rip), %r15
	movq	_CHATDEBUG_SEND@GOTPCREL(%rip), %r13
	movl	(%r13), %eax
	testl	%eax, (%r15)
	je	LBB0_2
## %bb.1:
	movq	_LOG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	%rbx, %rdi
	callq	_strlen
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_cleanstr
	leaq	L_.str(%rip), %rsi
	movl	%r14d, %edi
	movl	%eax, %edx
	callq	_syslog
LBB0_2:
	cmpb	$0, (%rbx)
	je	LBB0_3
## %bb.4:
	movq	_chat_alarm@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_alarm
	movq	_alarmed@GOTPCREL(%rip), %r12
	movq	$0, (%r12)
	movb	(%rbx), %al
	xorl	%r14d, %r14d
	testb	%al, %al
	je	LBB0_14
## %bb.5:
	incq	%rbx
	movq	_PAUSE_CH@GOTPCREL(%rip), %r13
	leaq	-41(%rbp), %r15
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_6 Depth=1
	movl	$500000, %edi                   ## imm = 0x7A120
	callq	_usleep
LBB0_10:                                ##   in Loop: Header=BB0_6 Depth=1
	movzbl	(%rbx), %eax
	incq	%rbx
	testb	%al, %al
	je	LBB0_13
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movb	%al, -41(%rbp)
	cmpq	$0, (%r12)
	jne	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	cmpb	(%r13), %al
	je	LBB0_9
## %bb.11:                              ##   in Loop: Header=BB0_6 Depth=1
	movl	$10000, %edi                    ## imm = 0x2710
	callq	_usleep
	movq	_STDOUT_FILENO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	movl	$1, %edx
	callq	_write
	cmpl	$1, %eax
	je	LBB0_10
## %bb.12:
	cmpq	$1, (%r12)
	movl	$3, %r14d
	sbbl	$0, %r14d
	jmp	LBB0_13
LBB0_3:
	xorl	%r14d, %r14d
	jmp	LBB0_15
LBB0_7:
	movl	$3, %r14d
LBB0_13:
	movq	_chat_debug@GOTPCREL(%rip), %r15
	movq	_CHATDEBUG_SEND@GOTPCREL(%rip), %r13
LBB0_14:
	xorl	%edi, %edi
	callq	_alarm
	xorl	%eax, %eax
	callq	_chat_unalarm
	movq	$0, (%r12)
LBB0_15:
	movl	(%r13), %eax
	testl	%eax, (%r15)
	je	LBB0_17
## %bb.16:
	movq	_LOG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	%r14d, %edi
	callq	_result
	leaq	L_.str.1(%rip), %rsi
	movl	%ebx, %edi
	movl	%eax, %edx
	callq	_syslog
LBB0_17:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_chat_debug,4,2                 ## @chat_debug
	.comm	_CHATDEBUG_SEND,4,2             ## @CHATDEBUG_SEND
	.comm	_LOG_DEBUG,4,2                  ## @LOG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"chat_send '%s'"

	.comm	_chat_alarm,4,2                 ## @chat_alarm
	.comm	_alarmed,8,3                    ## @alarmed
	.comm	_PAUSE_CH,1,0                   ## @PAUSE_CH
	.comm	_STDOUT_FILENO,4,2              ## @STDOUT_FILENO
L_.str.1:                               ## @.str.1
	.asciz	"chat_send %s"

	.no_dead_strip	_chat_send
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function chat_send
_chat_send:                             ; @chat_send
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.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
	mov	x19, x0
Lloh0:
	adrp	x22, _chat_debug@GOTPAGE
Lloh1:
	ldr	x22, [x22, _chat_debug@GOTPAGEOFF]
	ldr	w8, [x22]
Lloh2:
	adrp	x23, _CHATDEBUG_SEND@GOTPAGE
Lloh3:
	ldr	x23, [x23, _CHATDEBUG_SEND@GOTPAGEOFF]
	ldr	w9, [x23]
Lloh4:
	adrp	x21, _LOG_DEBUG@GOTPAGE
Lloh5:
	ldr	x21, [x21, _LOG_DEBUG@GOTPAGEOFF]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
	ldr	w20, [x21]
	mov	x0, x19
	bl	_strlen
	mov	x1, x0
	mov	x0, x19
	bl	_cleanstr
	mov	x2, x0
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_syslog
LBB0_2:
	ldrb	w8, [x19]
	cbz	w8, LBB0_12
; %bb.3:
Lloh8:
	adrp	x8, _chat_alarm@GOTPAGE
Lloh9:
	ldr	x8, [x8, _chat_alarm@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	bl	_alarm
Lloh11:
	adrp	x20, _alarmed@GOTPAGE
Lloh12:
	ldr	x20, [x20, _alarmed@GOTPAGEOFF]
	str	xzr, [x20]
	ldrb	w8, [x19]
	cbz	w8, LBB0_11
; %bb.4:
	add	x19, x19, #1
Lloh13:
	adrp	x24, _PAUSE_CH@GOTPAGE
Lloh14:
	ldr	x24, [x24, _PAUSE_CH@GOTPAGEOFF]
Lloh15:
	adrp	x25, _STDOUT_FILENO@GOTPAGE
Lloh16:
	ldr	x25, [x25, _STDOUT_FILENO@GOTPAGEOFF]
	b	LBB0_7
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=1
	mov	w0, #41248
	movk	w0, #7, lsl #16
	bl	_usleep
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	ldrb	w8, [x19], #1
	cbz	w8, LBB0_11
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	strb	w8, [sp, #15]
	ldr	x9, [x20]
	cbnz	x9, LBB0_13
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldrb	w9, [x24]
	cmp	w8, w9
	b.eq	LBB0_5
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	w0, #10000
	bl	_usleep
	ldr	w0, [x25]
	add	x1, sp, #15
	mov	w2, #1
	bl	_write
	cmp	w0, #1
	b.eq	LBB0_6
; %bb.10:
	ldr	x8, [x20]
	cmp	x8, #0
	mov	w8, #2
	cinc	w19, w8, ne
	b	LBB0_14
LBB0_11:
	mov	w19, #0
	b	LBB0_14
LBB0_12:
	mov	w19, #0
	b	LBB0_15
LBB0_13:
	mov	w19, #3
LBB0_14:
	mov	w0, #0
	bl	_alarm
	bl	_chat_unalarm
	str	xzr, [x20]
LBB0_15:
	ldr	w8, [x22]
	ldr	w9, [x23]
	tst	w9, w8
	b.eq	LBB0_17
; %bb.16:
	ldr	w20, [x21]
	mov	x0, x19
	bl	_result
	mov	x2, x0
Lloh17:
	adrp	x1, l_.str.1@PAGE
Lloh18:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_syslog
LBB0_17:
	mov	x0, x19
	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
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpAdd	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_chat_debug,4,2                 ; @chat_debug
	.comm	_CHATDEBUG_SEND,4,2             ; @CHATDEBUG_SEND
	.comm	_LOG_DEBUG,4,2                  ; @LOG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"chat_send '%s'"

	.comm	_chat_alarm,4,2                 ; @chat_alarm
	.comm	_alarmed,8,3                    ; @alarmed
	.comm	_PAUSE_CH,1,0                   ; @PAUSE_CH
	.comm	_STDOUT_FILENO,4,2              ; @STDOUT_FILENO
l_.str.1:                               ; @.str.1
	.asciz	"chat_send %s"

	.no_dead_strip	_chat_send
.subsections_via_symbols
