	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ## -- Begin function main
	.p2align	4, 0x90
_main:                                  ## @main
	.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	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movl	%edi, %r15d
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	xorl	%eax, %eax
	callq	_getuid
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	xorl	%eax, %eax
	callq	_geteuid
	testq	%rax, %rax
	jne	LBB0_10
LBB0_2:
	movq	_invoker_root@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
	movq	_UNPRIV_NAME@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_getpwnam
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	movq	%rax, %rbx
	cmpq	$0, (%rax)
	jle	LBB0_5
## %bb.4:
	movq	8(%rbx), %rdi
	jmp	LBB0_6
LBB0_5:
	movq	_UNPRIV_UGID@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
LBB0_6:
	callq	_setgid
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	callq	_err
LBB0_8:
	movq	(%rbx), %rdi
	callq	_setuid
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	leaq	L_.str.1(%rip), %rsi
	movl	$1, %edi
	callq	_err
LBB0_10:
	movq	_LC_ALL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	callq	_setlocale
	movq	_oflag@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
	leaq	L_.str.3(%rip), %rdi
	callq	_getenv
	movq	%rax, -56(%rbp)
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	leaq	_main.myname(%rip), %rax
	movq	%rax, -64(%rbp)
	movq	$0, -48(%rbp)
	leaq	-64(%rbp), %rsi
	movl	$2, %edi
	callq	_option
LBB0_12:
	movl	%r15d, %edi
	movq	%r14, %rsi
	callq	_option
	movslq	%eax, %rbx
	movq	_now@GOTPCREL(%rip), %rdi
	callq	_time
	movl	$1, %edi
	callq	_setpassent
	cmpq	$0, (%r14,%rbx,8)
	je	LBB0_13
## %bb.17:
	leaq	(%r14,%rbx,8), %rsi
	subl	%ebx, %r15d
	movl	%r15d, %edi
	callq	_userlist
	movq	_sflag@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jne	LBB0_19
## %bb.18:
	movq	_lflag@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
	jmp	LBB0_19
LBB0_13:
	movq	_lflag@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jne	LBB0_15
## %bb.14:
	movq	_sflag@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
LBB0_15:
	xorl	%eax, %eax
	callq	_loginlist
	movq	_entries@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jne	LBB0_20
## %bb.16:
	leaq	L_str(%rip), %rdi
	callq	_puts
LBB0_19:
	movq	_entries@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_23
LBB0_20:
	movq	_lflag@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_22
## %bb.21:
	xorl	%eax, %eax
	callq	_lflag_print
	jmp	LBB0_23
LBB0_22:
	xorl	%eax, %eax
	callq	_sflag_print
LBB0_23:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-32(%rbp), %rax
	jne	LBB0_25
## %bb.24:
	xorl	%eax, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_25:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__DATA,__data
_main.myname:                           ## @main.myname
	.asciz	"finger"

	.comm	_invoker_root,4,2               ## @invoker_root
	.comm	_UNPRIV_NAME,4,2                ## @UNPRIV_NAME
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"setgid()"

L_.str.1:                               ## @.str.1
	.asciz	"setuid()"

	.comm	_UNPRIV_UGID,8,3                ## @UNPRIV_UGID
	.comm	_LC_ALL,4,2                     ## @LC_ALL
L_.str.2:                               ## @.str.2
	.space	1

	.comm	_oflag,4,2                      ## @oflag
L_.str.3:                               ## @.str.3
	.asciz	"FINGER"

	.comm	_now,4,2                        ## @now
	.comm	_lflag,4,2                      ## @lflag
	.comm	_sflag,4,2                      ## @sflag
	.comm	_entries,8,3                    ## @entries
L_str:                                  ## @str
	.asciz	"No one logged on."

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ; -- Begin function main
	.p2align	2
_main:                                  ; @main
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	bl	_getuid
	cbz	x0, LBB0_2
; %bb.1:
	bl	_geteuid
	cbnz	x0, LBB0_9
LBB0_2:
Lloh3:
	adrp	x8, _invoker_root@GOTPAGE
Lloh4:
	ldr	x8, [x8, _invoker_root@GOTPAGEOFF]
	mov	w9, #1
Lloh5:
	str	w9, [x8]
Lloh6:
	adrp	x8, _UNPRIV_NAME@GOTPAGE
Lloh7:
	ldr	x8, [x8, _UNPRIV_NAME@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_getpwnam
	cbz	x0, LBB0_5
; %bb.3:
	mov	x21, x0
	ldr	x8, [x0]
	cmp	x8, #1
	b.lt	LBB0_5
; %bb.4:
	ldr	x0, [x21, #8]
	bl	_setgid
	cbnz	x0, LBB0_6
	b	LBB0_7
LBB0_5:
Lloh9:
	adrp	x21, _UNPRIV_UGID@GOTPAGE
Lloh10:
	ldr	x21, [x21, _UNPRIV_UGID@GOTPAGEOFF]
	ldr	x0, [x21]
	bl	_setgid
	cbz	x0, LBB0_7
LBB0_6:
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_7:
	ldr	x0, [x21]
	bl	_setuid
	cbz	x0, LBB0_9
; %bb.8:
Lloh13:
	adrp	x1, l_.str.1@PAGE
Lloh14:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_9:
Lloh15:
	adrp	x8, _LC_ALL@GOTPAGE
Lloh16:
	ldr	x8, [x8, _LC_ALL@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
Lloh18:
	adrp	x1, l_.str.2@PAGE
Lloh19:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_setlocale
Lloh20:
	adrp	x8, _oflag@GOTPAGE
Lloh21:
	ldr	x8, [x8, _oflag@GOTPAGEOFF]
	mov	w9, #1
Lloh22:
	str	w9, [x8]
Lloh23:
	adrp	x0, l_.str.3@PAGE
Lloh24:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_getenv
	str	x0, [sp, #8]
	cbz	x0, LBB0_11
; %bb.10:
Lloh25:
	adrp	x8, _main.myname@PAGE
Lloh26:
	add	x8, x8, _main.myname@PAGEOFF
	str	x8, [sp]
	str	xzr, [sp, #16]
	mov	x1, sp
	mov	w0, #2
	bl	_option
LBB0_11:
	mov	x0, x19
	mov	x1, x20
	bl	_option
	mov	x21, x0
	add	x20, x20, w0, sxtw #3
Lloh27:
	adrp	x0, _now@GOTPAGE
Lloh28:
	ldr	x0, [x0, _now@GOTPAGEOFF]
	bl	_time
	mov	w0, #1
	bl	_setpassent
	ldr	x8, [x20]
Lloh29:
	adrp	x22, _entries@GOTPAGE
Lloh30:
	ldr	x22, [x22, _entries@GOTPAGEOFF]
	cbz	x8, LBB0_15
; %bb.12:
	sub	w0, w19, w21
	mov	x1, x20
	bl	_userlist
Lloh31:
	adrp	x8, _sflag@GOTPAGE
Lloh32:
	ldr	x8, [x8, _sflag@GOTPAGEOFF]
Lloh33:
	ldr	w8, [x8]
	cbnz	w8, LBB0_14
; %bb.13:
Lloh34:
	adrp	x8, _lflag@GOTPAGE
Lloh35:
	ldr	x8, [x8, _lflag@GOTPAGEOFF]
	mov	w9, #1
Lloh36:
	str	w9, [x8]
LBB0_14:
	ldr	x8, [x22]
	cbnz	x8, LBB0_19
	b	LBB0_22
LBB0_15:
Lloh37:
	adrp	x8, _lflag@GOTPAGE
Lloh38:
	ldr	x8, [x8, _lflag@GOTPAGEOFF]
Lloh39:
	ldr	w8, [x8]
	cbnz	w8, LBB0_17
; %bb.16:
Lloh40:
	adrp	x8, _sflag@GOTPAGE
Lloh41:
	ldr	x8, [x8, _sflag@GOTPAGEOFF]
	mov	w9, #1
Lloh42:
	str	w9, [x8]
LBB0_17:
	bl	_loginlist
	ldr	x8, [x22]
	cbnz	x8, LBB0_19
; %bb.18:
Lloh43:
	adrp	x0, l_str@PAGE
Lloh44:
	add	x0, x0, l_str@PAGEOFF
	bl	_puts
	ldr	x8, [x22]
	cbz	x8, LBB0_22
LBB0_19:
Lloh45:
	adrp	x8, _lflag@GOTPAGE
Lloh46:
	ldr	x8, [x8, _lflag@GOTPAGEOFF]
Lloh47:
	ldr	w8, [x8]
	cbz	w8, LBB0_21
; %bb.20:
	bl	_lflag_print
	b	LBB0_22
LBB0_21:
	bl	_sflag_print
LBB0_22:
	ldr	x8, [sp, #24]
Lloh48:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh49:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh50:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_24
; %bb.23:
	mov	w0, #0
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_24:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotStr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotStr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotStr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotStr	Lloh40, Lloh41, Lloh42
	.loh AdrpAdd	Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.cfi_endproc
                                        ; -- End function
	.section	__DATA,__data
_main.myname:                           ; @main.myname
	.asciz	"finger"

	.comm	_invoker_root,4,2               ; @invoker_root
	.comm	_UNPRIV_NAME,4,2                ; @UNPRIV_NAME
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"setgid()"

l_.str.1:                               ; @.str.1
	.asciz	"setuid()"

	.comm	_UNPRIV_UGID,8,3                ; @UNPRIV_UGID
	.comm	_LC_ALL,4,2                     ; @LC_ALL
l_.str.2:                               ; @.str.2
	.space	1

	.comm	_oflag,4,2                      ; @oflag
l_.str.3:                               ; @.str.3
	.asciz	"FINGER"

	.comm	_now,4,2                        ; @now
	.comm	_lflag,4,2                      ; @lflag
	.comm	_sflag,4,2                      ; @sflag
	.comm	_entries,8,3                    ; @entries
l_str:                                  ; @str
	.asciz	"No one logged on."

.subsections_via_symbols
