	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function whoami
_whoami:                                ## @whoami
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -24
	movq	_STDIN_FILENO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_ttyname
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	__PATH_DEV@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$3, %edx
	callq	_strncmp
	xorl	%ecx, %ecx
	testq	%rax, %rax
	sete	%cl
	leaq	(%rcx,%rcx,2), %rsi
	addq	%rbx, %rsi
	jmp	LBB0_3
LBB0_1:
	leaq	L_.str(%rip), %rsi
LBB0_3:
	movl	$4, %edx
	callq	_strlcpy
	leaq	-32(%rbp), %rdi
	callq	_getutxline
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	%rax, %rbx
	movq	(%rax), %rax
	movq	_USER_PROCESS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_9
LBB0_5:
	leaq	-32(%rbp), %rbx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$24, %edx
	callq	_memset
	xorl	%eax, %eax
	callq	_getuid
	movl	%eax, %edi
	callq	_getpwuid
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	movq	(%rax), %rsi
	jmp	LBB0_8
LBB0_6:
	leaq	L_.str.1(%rip), %rsi
LBB0_8:
	movl	-20(%rbp), %edi
	movl	$4, %edx
	callq	_strlcpy
	leaq	-24(%rbp), %rdi
	xorl	%esi, %esi
	callq	_gettimeofday
LBB0_9:
	movq	%rbx, %rdi
	callq	_row
	addq	$24, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_STDIN_FILENO,4,2               ## @STDIN_FILENO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"tty??"

	.comm	__PATH_DEV,4,2                  ## @_PATH_DEV
	.comm	_USER_PROCESS,8,3               ## @USER_PROCESS
L_.str.1:                               ## @.str.1
	.asciz	"?"

	.no_dead_strip	_whoami
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function whoami
_whoami:                                ; @whoami
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x8, _STDIN_FILENO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _STDIN_FILENO@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_ttyname
	cbz	x0, LBB0_2
; %bb.1:
	mov	x19, x0
Lloh3:
	adrp	x8, __PATH_DEV@GOTPAGE
Lloh4:
	ldr	x8, [x8, __PATH_DEV@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	w20, #3
	mov	w2, #3
	bl	_strncmp
	cmp	x0, #0
	csel	x8, x20, xzr, eq
	add	x1, x19, x8
	b	LBB0_3
LBB0_2:
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
LBB0_3:
	mov	w2, #4
	bl	_strlcpy
	add	x0, sp, #8
	bl	_getutxline
	cbz	x0, LBB0_5
; %bb.4:
	mov	x19, x0
	ldr	x8, [x0]
Lloh8:
	adrp	x9, _USER_PROCESS@GOTPAGE
Lloh9:
	ldr	x9, [x9, _USER_PROCESS@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_9
LBB0_5:
	add	x19, sp, #8
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #24
	bl	_memset
	bl	_getuid
	bl	_getpwuid
	cbz	x0, LBB0_7
; %bb.6:
	ldr	x1, [x0]
	b	LBB0_8
LBB0_7:
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_8:
	ldr	w0, [sp, #20]
	mov	w2, #4
	bl	_strlcpy
	add	x0, x19, #8
	mov	x1, #0
	bl	_gettimeofday
LBB0_9:
	mov	x0, x19
	bl	_row
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_STDIN_FILENO,4,2               ; @STDIN_FILENO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"tty??"

	.comm	__PATH_DEV,4,2                  ; @_PATH_DEV
	.comm	_USER_PROCESS,8,3               ; @USER_PROCESS
l_.str.1:                               ; @.str.1
	.asciz	"?"

	.no_dead_strip	_whoami
.subsections_via_symbols
