	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_put_char                       ## -- Begin function put_char
	.p2align	4, 0x90
_put_char:                              ## @put_char
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movb	%dil, -9(%rbp)
	movl	$10000, %edi                    ## imm = 0x2710
	callq	_usleep
	movq	_STDOUT_FILENO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-9(%rbp), %rsi
	movl	$1, %edx
	callq	_write
	cmpl	$-1, %eax
	je	LBB0_3
## %bb.1:
	xorl	%ebx, %ebx
	cmpl	$1, %eax
	je	LBB0_7
## %bb.2:
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_chat_logf
LBB0_3:
	movq	_F_GETFL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edi, %edi
	xorl	%edx, %edx
	callq	_fcntl
	movl	%eax, %ebx
	cmpl	$-1, %eax
	jne	LBB0_5
## %bb.4:
	leaq	L_.str.1(%rip), %rsi
	movl	$2, %edi
	callq	_fatal
LBB0_5:
	movq	_F_SETFL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_O_NONBLOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, %ebx
	xorl	%edi, %edi
	movl	%ebx, %edx
	callq	_fcntl
	movl	$-1, %ebx
	cmpl	$-1, %eax
	jne	LBB0_7
## %bb.6:
	leaq	L_.str.2(%rip), %rsi
	movl	$2, %edi
	callq	_fatal
LBB0_7:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_STDOUT_FILENO,4,2              ## @STDOUT_FILENO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"warning: write() on stdout returned %d"

	.comm	_F_GETFL,4,2                    ## @F_GETFL
L_.str.1:                               ## @.str.1
	.asciz	"Can't get file mode flags on stdin, %m"

	.comm	_F_SETFL,4,2                    ## @F_SETFL
	.comm	_O_NONBLOCK,4,2                 ## @O_NONBLOCK
L_.str.2:                               ## @.str.2
	.asciz	"Can't set file mode flags on stdin: %m"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_put_char                       ; -- Begin function put_char
	.p2align	2
_put_char:                              ; @put_char
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	strb	w0, [sp, #15]
	mov	w0, #10000
	bl	_usleep
Lloh0:
	adrp	x8, _STDOUT_FILENO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _STDOUT_FILENO@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	add	x1, sp, #15
	mov	w2, #1
	bl	_write
	cmn	w0, #1
	b.eq	LBB0_4
; %bb.1:
	mov	x1, x0
	cmp	w0, #1
	b.ne	LBB0_3
; %bb.2:
	mov	w0, #0
	b	LBB0_9
LBB0_3:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_chat_logf
LBB0_4:
Lloh5:
	adrp	x8, _F_GETFL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _F_GETFL@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	w0, #0
	mov	w2, #0
	bl	_fcntl
	mov	x19, x0
	cmn	w0, #1
	b.ne	LBB0_6
; %bb.5:
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #2
	bl	_fatal
LBB0_6:
Lloh10:
	adrp	x8, _F_SETFL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _F_SETFL@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
Lloh13:
	adrp	x8, _O_NONBLOCK@GOTPAGE
Lloh14:
	ldr	x8, [x8, _O_NONBLOCK@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	bic	w2, w19, w8
	mov	w0, #0
	bl	_fcntl
	cmn	w0, #1
	b.ne	LBB0_8
; %bb.7:
Lloh16:
	adrp	x1, l_.str.2@PAGE
Lloh17:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w0, #2
	bl	_fatal
LBB0_8:
	mov	w0, #-1
LBB0_9:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_STDOUT_FILENO,4,2              ; @STDOUT_FILENO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"warning: write() on stdout returned %d"

	.comm	_F_GETFL,4,2                    ; @F_GETFL
l_.str.1:                               ; @.str.1
	.asciz	"Can't get file mode flags on stdin, %m"

	.comm	_F_SETFL,4,2                    ; @F_SETFL
	.comm	_O_NONBLOCK,4,2                 ; @O_NONBLOCK
l_.str.2:                               ; @.str.2
	.asciz	"Can't set file mode flags on stdin: %m"

.subsections_via_symbols
