	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function makemsg
_makemsg:                               ## @makemsg
	.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	$376, %rsp                      ## imm = 0x178
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, -384(%rbp)                ## 8-byte Spill
	movq	%rsp, -392(%rbp)                ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_MAXHOSTNAMELEN@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	%r13, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r12
	movq	__PATH_TMP@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	leaq	L_.str(%rip), %rdx
	leaq	-368(%rbp), %rbx
	movq	%rbx, %rdi
	movl	$64, %esi
	callq	_snprintf
	movq	%rbx, %rdi
	callq	_mkstemp
	movl	%eax, -372(%rbp)                ## 4-byte Spill
	cmpl	$-1, %eax
	je	LBB0_2
## %bb.1:
	leaq	L_.str.1(%rip), %rsi
	movl	-372(%rbp), %edi                ## 4-byte Reload
	callq	_fdopen
	movq	%rax, %r14
	testq	%rax, %rax
	jne	LBB0_3
LBB0_2:
	leaq	L_.str.2(%rip), %rsi
	xorl	%r14d, %r14d
	movl	$1, %edi
	xorl	%eax, %eax
	callq	_err
LBB0_3:
	leaq	-368(%rbp), %rdi
	callq	_unlink
	xorl	%eax, %eax
	callq	_getlogin
	movq	%rax, %r15
	testq	%rax, %rax
	jne	LBB0_7
## %bb.4:
	xorl	%eax, %eax
	callq	_getuid
	movl	%eax, %edi
	callq	_getpwuid
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movq	(%rax), %r15
	jmp	LBB0_7
LBB0_5:
	leaq	L_.str.3(%rip), %r15
LBB0_7:
	movq	%r12, %rdi
	movl	%r13d, %esi
	callq	_gethostname
	leaq	-404(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_time
	movq	%rbx, %rdi
	callq	_localtime
	movq	%rax, %r13
	leaq	L_.str.4(%rip), %rsi
	movq	%r14, %rdi
	movq	%r15, %rdx
	movq	%r12, %rcx
	xorl	%eax, %eax
	callq	_fprintf
	movq	_STDERR_FILENO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_ttyname
	testq	%rax, %rax
	jne	LBB0_9
## %bb.8:
	movq	_notty@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
LBB0_9:
	movl	(%r13), %ecx
	movl	4(%r13), %r8d
	leaq	L_.str.5(%rip), %rsi
	movq	%r14, %rdi
	movq	%rax, %rdx
	xorl	%eax, %eax
	callq	_fprintf
	movl	$10, %edi
	movq	%r14, %rsi
	callq	_putc
	movq	-384(%rbp), %rbx                ## 8-byte Reload
	testq	%rbx, %rbx
	movl	-372(%rbp), %r12d               ## 4-byte Reload
	je	LBB0_12
## %bb.10:
	movq	_stdin@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.6(%rip), %rsi
	movq	%rbx, %rdi
	callq	_freopen
	testl	%eax, %eax
	jne	LBB0_12
## %bb.11:
	leaq	L_.str.7(%rip), %rsi
	movl	$1, %edi
	movq	%rbx, %rdx
	xorl	%eax, %eax
	callq	_err
LBB0_12:
	movq	_stdin@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	leaq	-304(%rbp), %rdi
	movl	$256, %esi                      ## imm = 0x100
	callq	_fgets
	testq	%rax, %rax
	je	LBB0_15
## %bb.13:
	leaq	-304(%rbp), %rbx
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_fputs
	movl	(%r15), %edx
	movq	%rbx, %rdi
	movl	$256, %esi                      ## imm = 0x100
	callq	_fgets
	testq	%rax, %rax
	jne	LBB0_14
LBB0_15:
	movq	%r14, %rdi
	callq	_rewind
	leaq	-400(%rbp), %rsi
	movl	%r12d, %edi
	callq	_fstat
	testq	%rax, %rax
	je	LBB0_17
## %bb.16:
	leaq	L_.str.8(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	callq	_err
LBB0_17:
	movq	-400(%rbp), %r15
	movq	%r15, %rdi
	callq	_malloc
	movq	_mbuf@GOTPCREL(%rip), %rbx
	movq	%rax, (%rbx)
	testq	%rax, %rax
	jne	LBB0_19
## %bb.18:
	leaq	L_.str.9(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	callq	_err
	movq	(%rbx), %rax
LBB0_19:
	movq	%rax, %rdi
	movl	$4, %esi
	movq	%r15, %rdx
	movq	%r14, %rcx
	callq	_fread
	cmpq	%r15, %rax
	je	LBB0_21
## %bb.20:
	leaq	L_.str.10(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	callq	_err
LBB0_21:
	movl	%r12d, %edi
	callq	_close
	movq	-392(%rbp), %rsp                ## 8-byte Reload
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_23
## %bb.22:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_23:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAXHOSTNAMELEN,4,2             ## @MAXHOSTNAMELEN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s/wall.XXXXXX"

	.comm	__PATH_TMP,8,3                  ## @_PATH_TMP
L_.str.1:                               ## @.str.1
	.asciz	"r+"

L_.str.2:                               ## @.str.2
	.asciz	"can't open temporary file"

L_.str.3:                               ## @.str.3
	.asciz	"???"

L_.str.4:                               ## @.str.4
	.asciz	"Remote Broadcast Message from %s@%s\n"

	.comm	_STDERR_FILENO,4,2              ## @STDERR_FILENO
	.comm	_notty,8,3                      ## @notty
L_.str.5:                               ## @.str.5
	.asciz	"        (%s) at %d:%02d ...\n"

L_.str.6:                               ## @.str.6
	.asciz	"r"

	.comm	_stdin,4,2                      ## @stdin
L_.str.7:                               ## @.str.7
	.asciz	"can't read %s"

L_.str.8:                               ## @.str.8
	.asciz	"can't stat temporary file"

	.comm	_mbuf,8,3                       ## @mbuf
L_.str.9:                               ## @.str.9
	.asciz	"out of memory"

L_.str.10:                              ## @.str.10
	.asciz	"can't read temporary file"

	.no_dead_strip	_makemsg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function makemsg
_makemsg:                               ; @makemsg
	.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, #352
	mov	x19, sp
	mov	x22, x0
	mov	x26, sp
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x8, _MAXHOSTNAMELEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAXHOSTNAMELEN@GOTPAGEOFF]
Lloh5:
	ldr	w24, [x8]
	mov	x9, x24
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x24, #15
	and	x9, x9, #0x1fffffff0
	sub	x23, x8, x9
	mov	sp, x23
Lloh8:
	adrp	x8, __PATH_TMP@GOTPAGE
Lloh9:
	ldr	x8, [x8, __PATH_TMP@GOTPAGEOFF]
Lloh10:
	ldr	x3, [x8]
Lloh11:
	adrp	x2, l_.str@PAGE
Lloh12:
	add	x2, x2, l_.str@PAGEOFF
	add	x0, x19, #24
	mov	w1, #64
	bl	_snprintf
	add	x0, x19, #24
	bl	_mkstemp
	mov	x20, x0
	cmn	w0, #1
	b.eq	LBB0_2
; %bb.1:
Lloh13:
	adrp	x1, l_.str.1@PAGE
Lloh14:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_fdopen
	mov	x21, x0
	cbnz	x0, LBB0_3
LBB0_2:
Lloh15:
	adrp	x1, l_.str.2@PAGE
Lloh16:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w0, #1
	bl	_err
	mov	x21, #0
LBB0_3:
	add	x0, x19, #24
	bl	_unlink
	bl	_getlogin
	mov	x25, x0
	cbnz	x0, LBB0_7
; %bb.4:
	bl	_getuid
	bl	_getpwuid
	cbz	x0, LBB0_6
; %bb.5:
	ldr	x25, [x0]
	b	LBB0_7
LBB0_6:
Lloh17:
	adrp	x25, l_.str.3@PAGE
Lloh18:
	add	x25, x25, l_.str.3@PAGEOFF
LBB0_7:
	mov	x0, x23
	mov	x1, x24
	bl	_gethostname
	add	x0, x19, #12
	bl	_time
	add	x0, x19, #12
	bl	_localtime
	mov	x24, x0
	str	x23, [sp, #-16]!
Lloh19:
	adrp	x1, l_.str.4@PAGE
Lloh20:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x21
	mov	x2, x25
	bl	_fprintf
	add	sp, sp, #16
Lloh21:
	adrp	x8, _STDERR_FILENO@GOTPAGE
Lloh22:
	ldr	x8, [x8, _STDERR_FILENO@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
	bl	_ttyname
Lloh24:
	adrp	x8, _notty@GOTPAGE
Lloh25:
	ldr	x8, [x8, _notty@GOTPAGEOFF]
Lloh26:
	ldr	x8, [x8]
	cmp	x0, #0
	csel	x2, x8, x0, eq
	ldp	w8, w9, [x24]
	stp	x8, x9, [sp, #-16]!
Lloh27:
	adrp	x1, l_.str.5@PAGE
Lloh28:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x21
	bl	_fprintf
	add	sp, sp, #16
	mov	w0, #10
	mov	x1, x21
	bl	_putc
Lloh29:
	adrp	x23, _stdin@GOTPAGE
Lloh30:
	ldr	x23, [x23, _stdin@GOTPAGEOFF]
	cbz	x22, LBB0_11
; %bb.8:
	ldr	w2, [x23]
Lloh31:
	adrp	x1, l_.str.6@PAGE
Lloh32:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x22
	bl	_freopen
	cbnz	w0, LBB0_11
; %bb.9:
	str	x22, [sp, #-16]!
Lloh33:
	adrp	x1, l_.str.7@PAGE
Lloh34:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	w0, #1
	bl	_err
	add	sp, sp, #16
	b	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=1
	add	x0, x19, #88
	mov	x1, x21
	bl	_fputs
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	w2, [x23]
	add	x0, x19, #88
	mov	w1, #256
	bl	_fgets
	cbnz	x0, LBB0_10
; %bb.12:
	mov	x0, x21
	bl	_rewind
	add	x1, x19, #16
	mov	x0, x20
	bl	_fstat
	cbz	x0, LBB0_14
; %bb.13:
Lloh35:
	adrp	x1, l_.str.8@PAGE
Lloh36:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_14:
	ldr	x22, [x19, #16]
	mov	x0, x22
	bl	_malloc
Lloh37:
	adrp	x23, _mbuf@GOTPAGE
Lloh38:
	ldr	x23, [x23, _mbuf@GOTPAGEOFF]
	str	x0, [x23]
	cbnz	x0, LBB0_16
; %bb.15:
Lloh39:
	adrp	x1, l_.str.9@PAGE
Lloh40:
	add	x1, x1, l_.str.9@PAGEOFF
	mov	w0, #1
	bl	_err
	ldr	x0, [x23]
LBB0_16:
	mov	w1, #4
	mov	x2, x22
	mov	x3, x21
	bl	_fread
	cmp	x0, x22
	b.eq	LBB0_18
; %bb.17:
Lloh41:
	adrp	x1, l_.str.10@PAGE
Lloh42:
	add	x1, x1, l_.str.10@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_18:
	mov	x0, x20
	bl	_close
	mov	sp, x26
	ldur	x8, [x29, #-88]
Lloh43:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh44:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh45:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_20
; %bb.19:
	sub	sp, x29, #80
	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_20:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh37, Lloh38
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.cfi_endproc
                                        ; -- End function
	.comm	_MAXHOSTNAMELEN,4,2             ; @MAXHOSTNAMELEN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s/wall.XXXXXX"

	.comm	__PATH_TMP,8,3                  ; @_PATH_TMP
l_.str.1:                               ; @.str.1
	.asciz	"r+"

l_.str.2:                               ; @.str.2
	.asciz	"can't open temporary file"

l_.str.3:                               ; @.str.3
	.asciz	"???"

l_.str.4:                               ; @.str.4
	.asciz	"Remote Broadcast Message from %s@%s\n"

	.comm	_STDERR_FILENO,4,2              ; @STDERR_FILENO
	.comm	_notty,8,3                      ; @notty
l_.str.5:                               ; @.str.5
	.asciz	"        (%s) at %d:%02d ...\n"

l_.str.6:                               ; @.str.6
	.asciz	"r"

	.comm	_stdin,4,2                      ; @stdin
l_.str.7:                               ; @.str.7
	.asciz	"can't read %s"

l_.str.8:                               ; @.str.8
	.asciz	"can't stat temporary file"

	.comm	_mbuf,8,3                       ; @mbuf
l_.str.9:                               ; @.str.9
	.asciz	"out of memory"

l_.str.10:                              ; @.str.10
	.asciz	"can't read temporary file"

	.no_dead_strip	_makemsg
.subsections_via_symbols
