	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wallmsg
_wallmsg:                               ## @wallmsg
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	_wallmsg.reenter(%rip), %eax
	leal	1(%rax), %ecx
	movl	%ecx, _wallmsg.reenter(%rip)
	testl	%eax, %eax
	jne	LBB0_12
## %bb.1:
	movq	%rdi, %r12
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	xorl	%eax, %eax
	callq	_setutxent
	xorl	%eax, %eax
	callq	_getutxent
	testq	%rax, %rax
	je	LBB0_11
## %bb.2:
	movq	%rax, %rbx
	movq	_USER_PROCESS@GOTPCREL(%rip), %r13
	movq	_MAXUNAMES@GOTPCREL(%rip), %r14
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_3 Depth=1
	xorl	%eax, %eax
	callq	_getutxent
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_11
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_14 Depth 2
	movq	(%rbx), %rax
	cmpq	(%r13), %rax
	jne	LBB0_10
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	(%r12), %rax
	movq	_F_WALL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	8(%rbx), %edx
	movq	_TTYMSGTIME@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_ttymsg
	testq	%rax, %rax
	je	LBB0_10
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	_errno@GOTPCREL(%rip), %rcx
	movq	$0, (%rcx)
	movq	%rax, %rdi
	callq	_logerror
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	cmpl	$0, (%r14)
	jle	LBB0_10
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_14:                                ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	8(%r12), %rax
	movq	(%rax,%r15,8), %rdi
	cmpl	$0, (%rdi)
	je	LBB0_10
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=2
	movl	12(%rbx), %esi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_16
## %bb.13:                              ##   in Loop: Header=BB0_14 Depth=2
	incq	%r15
	movslq	(%r14), %rax
	cmpq	%rax, %r15
	jl	LBB0_14
	jmp	LBB0_10
LBB0_16:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	8(%rbx), %edx
	movq	_TTYMSGTIME@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_ttymsg_check
	testq	%rax, %rax
	jne	LBB0_9
	jmp	LBB0_10
LBB0_11:
	xorl	%eax, %eax
	callq	_endutxent
	movl	$0, _wallmsg.reenter(%rip)
LBB0_12:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_wallmsg.reenter,4,2 ## @wallmsg.reenter
	.comm	_USER_PROCESS,8,3               ## @USER_PROCESS
	.comm	_F_WALL,8,3                     ## @F_WALL
	.comm	_TTYMSGTIME,4,2                 ## @TTYMSGTIME
	.comm	_errno,8,3                      ## @errno
	.comm	_MAXUNAMES,4,2                  ## @MAXUNAMES
	.no_dead_strip	_wallmsg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wallmsg
_wallmsg:                               ; @wallmsg
	.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
	adrp	x23, _wallmsg.reenter@PAGE
	ldr	w8, [x23, _wallmsg.reenter@PAGEOFF]
	add	w9, w8, #1
	str	w9, [x23, _wallmsg.reenter@PAGEOFF]
	cbnz	w8, LBB0_15
; %bb.1:
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	bl	_setutxent
	bl	_getutxent
	cbz	x0, LBB0_14
; %bb.2:
	mov	x22, x0
Lloh0:
	adrp	x24, _USER_PROCESS@GOTPAGE
Lloh1:
	ldr	x24, [x24, _USER_PROCESS@GOTPAGEOFF]
Lloh2:
	adrp	x25, _F_WALL@GOTPAGE
Lloh3:
	ldr	x25, [x25, _F_WALL@GOTPAGEOFF]
Lloh4:
	adrp	x26, _TTYMSGTIME@GOTPAGE
Lloh5:
	ldr	x26, [x26, _TTYMSGTIME@GOTPAGEOFF]
Lloh6:
	adrp	x28, _MAXUNAMES@GOTPAGE
Lloh7:
	ldr	x28, [x28, _MAXUNAMES@GOTPAGEOFF]
	b	LBB0_6
LBB0_3:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	w2, [x22, #8]
	ldr	w3, [x26]
	mov	x0, x20
	mov	x1, x19
	bl	_ttymsg
	cbz	x0, LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
Lloh8:
	adrp	x8, _errno@GOTPAGE
Lloh9:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh10:
	str	xzr, [x8]
	bl	_logerror
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	bl	_getutxent
	mov	x22, x0
	cbz	x0, LBB0_14
LBB0_6:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_10 Depth 2
	ldr	x8, [x22]
	ldr	x9, [x24]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x21]
	ldr	x9, [x25]
	cmp	x8, x9
	b.eq	LBB0_3
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w8, [x28]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x27, #0
LBB0_10:                                ;   Parent Loop BB0_6 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x21, #8]
	ldr	x0, [x8, x27, lsl #3]
	ldr	w8, [x0]
	cbz	w8, LBB0_5
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=2
	ldr	w1, [x22, #12]
	bl	_strcmp
	cbz	w0, LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_10 Depth=2
	add	x27, x27, #1
	ldrsw	x8, [x28]
	cmp	x27, x8
	b.lt	LBB0_10
	b	LBB0_5
LBB0_13:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w2, [x22, #8]
	ldr	w3, [x26]
	mov	x0, x20
	mov	x1, x19
	bl	_ttymsg_check
	cbnz	x0, LBB0_4
	b	LBB0_5
LBB0_14:
	bl	_endutxent
	str	wzr, [x23, _wallmsg.reenter@PAGEOFF]
LBB0_15:
	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
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotStr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_wallmsg.reenter,4,2 ; @wallmsg.reenter
	.comm	_USER_PROCESS,8,3               ; @USER_PROCESS
	.comm	_F_WALL,8,3                     ; @F_WALL
	.comm	_TTYMSGTIME,4,2                 ; @TTYMSGTIME
	.comm	_errno,8,3                      ; @errno
	.comm	_MAXUNAMES,4,2                  ; @MAXUNAMES
	.no_dead_strip	_wallmsg
.subsections_via_symbols
