	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_WhoamiLogonId                  ## -- Begin function WhoamiLogonId
	.p2align	4, 0x90
_WhoamiLogonId:                         ## @WhoamiLogonId
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_TokenGroups@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_WhoamiGetTokenInfo
	movq	$0, -24(%rbp)
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movslq	%eax, %r14
	movq	(%r14), %r9
	testq	%r9, %r9
	je	LBB0_15
## %bb.3:
	movq	8(%r14), %r8
	movq	_SE_GROUP_LOGON_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	cmpq	$1, %r9
	jne	LBB0_5
## %bb.4:
	xorl	%edi, %edi
	xorl	%esi, %esi
LBB0_11:
	testb	$1, %r9b
	je	LBB0_14
## %bb.12:
	shlq	$4, %rsi
	movl	(%r8,%rsi), %eax
	notl	%eax
	testl	%eax, %ecx
	jne	LBB0_14
## %bb.13:
	movq	8(%r8,%rsi), %rdi
LBB0_14:
	testq	%rdi, %rdi
	je	LBB0_15
## %bb.17:
	leaq	-24(%rbp), %rsi
	callq	_ConvertSidToStringSidW
	testl	%eax, %eax
	je	LBB0_18
## %bb.19:
	movq	-24(%rbp), %rsi
	leaq	l_.str.2(%rip), %rdi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_wprintf
	movq	-24(%rbp), %rdi
	callq	_LocalFree
	movq	%r14, %rdi
	callq	_WhoamiFree
	jmp	LBB0_20
LBB0_15:
	movq	%r14, %rdi
	callq	_WhoamiFree
	leaq	l_.str(%rip), %rdi
	jmp	LBB0_16
LBB0_1:
	xorl	%ebx, %ebx
	jmp	LBB0_20
LBB0_5:
	movq	%r9, %rdx
	andq	$-2, %rdx
	leaq	24(%r8), %rax
	xorl	%edi, %edi
	xorl	%esi, %esi
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_6 Depth=1
	addq	$2, %rsi
	addq	$32, %rax
	cmpq	%rsi, %rdx
	je	LBB0_11
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	-24(%rax), %ebx
	notl	%ebx
	testl	%ebx, %ecx
	jne	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	-16(%rax), %rdi
LBB0_8:                                 ##   in Loop: Header=BB0_6 Depth=1
	movl	-8(%rax), %ebx
	notl	%ebx
	testl	%ebx, %ecx
	jne	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	(%rax), %rdi
	jmp	LBB0_10
LBB0_18:
	movq	%r14, %rdi
	callq	_WhoamiFree
	leaq	l_.str.1(%rip), %rdi
LBB0_16:
	xorl	%eax, %eax
	callq	_wprintf
	movl	$1, %ebx
LBB0_20:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TokenGroups,4,2                ## @TokenGroups
	.comm	_SE_GROUP_LOGON_ID,4,2          ## @SE_GROUP_LOGON_ID
	.section	__TEXT,__const
	.p2align	2                               ## @.str
l_.str:
	.long	69                              ## 0x45
	.long	82                              ## 0x52
	.long	82                              ## 0x52
	.long	79                              ## 0x4f
	.long	82                              ## 0x52
	.long	58                              ## 0x3a
	.long	32                              ## 0x20
	.long	67                              ## 0x43
	.long	111                             ## 0x6f
	.long	117                             ## 0x75
	.long	108                             ## 0x6c
	.long	100                             ## 0x64
	.long	110                             ## 0x6e
	.long	39                              ## 0x27
	.long	116                             ## 0x74
	.long	32                              ## 0x20
	.long	102                             ## 0x66
	.long	105                             ## 0x69
	.long	110                             ## 0x6e
	.long	100                             ## 0x64
	.long	32                              ## 0x20
	.long	116                             ## 0x74
	.long	104                             ## 0x68
	.long	101                             ## 0x65
	.long	32                              ## 0x20
	.long	108                             ## 0x6c
	.long	111                             ## 0x6f
	.long	103                             ## 0x67
	.long	111                             ## 0x6f
	.long	110                             ## 0x6e
	.long	32                              ## 0x20
	.long	83                              ## 0x53
	.long	73                              ## 0x49
	.long	68                              ## 0x44
	.long	46                              ## 0x2e
	.long	10                              ## 0xa
	.long	0                               ## 0x0

	.p2align	2                               ## @.str.1
l_.str.1:
	.long	69                              ## 0x45
	.long	82                              ## 0x52
	.long	82                              ## 0x52
	.long	79                              ## 0x4f
	.long	82                              ## 0x52
	.long	58                              ## 0x3a
	.long	32                              ## 0x20
	.long	67                              ## 0x43
	.long	111                             ## 0x6f
	.long	117                             ## 0x75
	.long	108                             ## 0x6c
	.long	100                             ## 0x64
	.long	110                             ## 0x6e
	.long	39                              ## 0x27
	.long	116                             ## 0x74
	.long	32                              ## 0x20
	.long	99                              ## 0x63
	.long	111                             ## 0x6f
	.long	110                             ## 0x6e
	.long	118                             ## 0x76
	.long	101                             ## 0x65
	.long	114                             ## 0x72
	.long	116                             ## 0x74
	.long	32                              ## 0x20
	.long	116                             ## 0x74
	.long	104                             ## 0x68
	.long	101                             ## 0x65
	.long	32                              ## 0x20
	.long	108                             ## 0x6c
	.long	111                             ## 0x6f
	.long	103                             ## 0x67
	.long	111                             ## 0x6f
	.long	110                             ## 0x6e
	.long	32                              ## 0x20
	.long	83                              ## 0x53
	.long	73                              ## 0x49
	.long	68                              ## 0x44
	.long	32                              ## 0x20
	.long	116                             ## 0x74
	.long	111                             ## 0x6f
	.long	32                              ## 0x20
	.long	97                              ## 0x61
	.long	32                              ## 0x20
	.long	115                             ## 0x73
	.long	116                             ## 0x74
	.long	114                             ## 0x72
	.long	105                             ## 0x69
	.long	110                             ## 0x6e
	.long	103                             ## 0x67
	.long	46                              ## 0x2e
	.long	10                              ## 0xa
	.long	0                               ## 0x0

	.p2align	2                               ## @.str.2
l_.str.2:
	.long	37                              ## 0x25
	.long	115                             ## 0x73
	.long	10                              ## 0xa
	.long	0                               ## 0x0

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_WhoamiLogonId                  ; -- Begin function WhoamiLogonId
	.p2align	2
_WhoamiLogonId:                         ; @WhoamiLogonId
	.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
Lloh0:
	adrp	x8, _TokenGroups@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TokenGroups@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_WhoamiGetTokenInfo
                                        ; kill: def $w0 killed $w0 def $x0
	str	xzr, [sp, #8]
	cbz	w0, LBB0_12
; %bb.1:
	sxtw	x19, w0
	ldr	x8, [x19]
	cbz	x8, LBB0_9
; %bb.2:
	mov	x0, #0
	ldr	x10, [x19, #8]
Lloh3:
	adrp	x9, _SE_GROUP_LOGON_ID@GOTPAGE
Lloh4:
	ldr	x9, [x9, _SE_GROUP_LOGON_ID@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	add	x10, x10, #8
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x10, x10, #16
	subs	x8, x8, #1
	b.eq	LBB0_6
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldur	w11, [x10, #-8]
	bics	wzr, w9, w11
	b.ne	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x0, [x10]
	b	LBB0_3
LBB0_6:
	cbz	x0, LBB0_9
; %bb.7:
	add	x1, sp, #8
	bl	_ConvertSidToStringSidW
	cbz	w0, LBB0_10
; %bb.8:
	ldr	x8, [sp, #8]
	str	x8, [sp]
Lloh6:
	adrp	x0, l_.str.2@PAGE
Lloh7:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_wprintf
	ldr	x0, [sp, #8]
	bl	_LocalFree
	mov	x0, x19
	bl	_WhoamiFree
	mov	w0, #0
	b	LBB0_12
LBB0_9:
	mov	x0, x19
	bl	_WhoamiFree
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_11
LBB0_10:
	mov	x0, x19
	bl	_WhoamiFree
Lloh10:
	adrp	x0, l_.str.1@PAGE
Lloh11:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_11:
	bl	_wprintf
	mov	w0, #1
LBB0_12:
	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 AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_TokenGroups,4,2                ; @TokenGroups
	.comm	_SE_GROUP_LOGON_ID,4,2          ; @SE_GROUP_LOGON_ID
	.section	__TEXT,__const
	.p2align	2                               ; @.str
l_.str:
	.long	69                              ; 0x45
	.long	82                              ; 0x52
	.long	82                              ; 0x52
	.long	79                              ; 0x4f
	.long	82                              ; 0x52
	.long	58                              ; 0x3a
	.long	32                              ; 0x20
	.long	67                              ; 0x43
	.long	111                             ; 0x6f
	.long	117                             ; 0x75
	.long	108                             ; 0x6c
	.long	100                             ; 0x64
	.long	110                             ; 0x6e
	.long	39                              ; 0x27
	.long	116                             ; 0x74
	.long	32                              ; 0x20
	.long	102                             ; 0x66
	.long	105                             ; 0x69
	.long	110                             ; 0x6e
	.long	100                             ; 0x64
	.long	32                              ; 0x20
	.long	116                             ; 0x74
	.long	104                             ; 0x68
	.long	101                             ; 0x65
	.long	32                              ; 0x20
	.long	108                             ; 0x6c
	.long	111                             ; 0x6f
	.long	103                             ; 0x67
	.long	111                             ; 0x6f
	.long	110                             ; 0x6e
	.long	32                              ; 0x20
	.long	83                              ; 0x53
	.long	73                              ; 0x49
	.long	68                              ; 0x44
	.long	46                              ; 0x2e
	.long	10                              ; 0xa
	.long	0                               ; 0x0

	.p2align	2                               ; @.str.1
l_.str.1:
	.long	69                              ; 0x45
	.long	82                              ; 0x52
	.long	82                              ; 0x52
	.long	79                              ; 0x4f
	.long	82                              ; 0x52
	.long	58                              ; 0x3a
	.long	32                              ; 0x20
	.long	67                              ; 0x43
	.long	111                             ; 0x6f
	.long	117                             ; 0x75
	.long	108                             ; 0x6c
	.long	100                             ; 0x64
	.long	110                             ; 0x6e
	.long	39                              ; 0x27
	.long	116                             ; 0x74
	.long	32                              ; 0x20
	.long	99                              ; 0x63
	.long	111                             ; 0x6f
	.long	110                             ; 0x6e
	.long	118                             ; 0x76
	.long	101                             ; 0x65
	.long	114                             ; 0x72
	.long	116                             ; 0x74
	.long	32                              ; 0x20
	.long	116                             ; 0x74
	.long	104                             ; 0x68
	.long	101                             ; 0x65
	.long	32                              ; 0x20
	.long	108                             ; 0x6c
	.long	111                             ; 0x6f
	.long	103                             ; 0x67
	.long	111                             ; 0x6f
	.long	110                             ; 0x6e
	.long	32                              ; 0x20
	.long	83                              ; 0x53
	.long	73                              ; 0x49
	.long	68                              ; 0x44
	.long	32                              ; 0x20
	.long	116                             ; 0x74
	.long	111                             ; 0x6f
	.long	32                              ; 0x20
	.long	97                              ; 0x61
	.long	32                              ; 0x20
	.long	115                             ; 0x73
	.long	116                             ; 0x74
	.long	114                             ; 0x72
	.long	105                             ; 0x69
	.long	110                             ; 0x6e
	.long	103                             ; 0x67
	.long	46                              ; 0x2e
	.long	10                              ; 0xa
	.long	0                               ; 0x0

	.p2align	2                               ; @.str.2
l_.str.2:
	.long	37                              ; 0x25
	.long	115                             ; 0x73
	.long	10                              ; 0xa
	.long	0                               ; 0x0

.subsections_via_symbols
