	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_WhoamiGetTokenInfo             ## -- Begin function WhoamiGetTokenInfo
	.p2align	4, 0x90
_WhoamiGetTokenInfo:                    ## @WhoamiGetTokenInfo
	.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
	movl	%edi, %r14d
	movl	$0, -24(%rbp)
	movl	$0, -20(%rbp)
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_GetCurrentProcess
	movq	_TOKEN_READ@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	leaq	-24(%rbp), %rdx
	movl	%eax, %edi
	callq	_OpenProcessToken
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movl	-24(%rbp), %edi
	xorl	%ebx, %ebx
	leaq	-20(%rbp), %r8
	movl	%r14d, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_GetTokenInformation
	xorl	%eax, %eax
	callq	_GetLastError
	cltq
	movq	_ERROR_INSUFFICIENT_BUFFER@GOTPCREL(%rip), %rcx
	cmpq	%rax, (%rcx)
	jne	LBB0_3
## %bb.2:
	xorl	%eax, %eax
	callq	_GetProcessHeap
	movq	_HEAP_ZERO_MEMORY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	-20(%rbp), %edx
	movl	%eax, %edi
	callq	_HeapAlloc
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_6
LBB0_3:
	movl	-24(%rbp), %edi
	movl	-20(%rbp), %ecx
	leaq	-20(%rbp), %r8
	movl	%r14d, %esi
	movq	%rbx, %rdx
	callq	_GetTokenInformation
	testl	%eax, %eax
	je	LBB0_7
## %bb.4:
	movl	-24(%rbp), %edi
	callq	_CloseHandle
LBB0_5:
	movq	%rbx, %rax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_7:
	xorl	%eax, %eax
	callq	_GetLastError
	leaq	l_.str.1(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_wprintf
	movq	%rbx, %rdi
	callq	_WhoamiFree
	movl	$1, %edi
	callq	_exit
LBB0_6:
	leaq	l_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_wprintf
	movl	$1, %edi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.comm	_TOKEN_READ,4,2                 ## @TOKEN_READ
	.comm	_ERROR_INSUFFICIENT_BUFFER,8,3  ## @ERROR_INSUFFICIENT_BUFFER
	.comm	_HEAP_ZERO_MEMORY,4,2           ## @HEAP_ZERO_MEMORY
	.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	110                             ## 0x6e
	.long	111                             ## 0x6f
	.long	116                             ## 0x74
	.long	32                              ## 0x20
	.long	101                             ## 0x65
	.long	110                             ## 0x6e
	.long	111                             ## 0x6f
	.long	117                             ## 0x75
	.long	103                             ## 0x67
	.long	104                             ## 0x68
	.long	32                              ## 0x20
	.long	109                             ## 0x6d
	.long	101                             ## 0x65
	.long	109                             ## 0x6d
	.long	111                             ## 0x6f
	.long	114                             ## 0x72
	.long	121                             ## 0x79
	.long	32                              ## 0x20
	.long	116                             ## 0x74
	.long	111                             ## 0x6f
	.long	32                              ## 0x20
	.long	97                              ## 0x61
	.long	108                             ## 0x6c
	.long	108                             ## 0x6c
	.long	111                             ## 0x6f
	.long	99                              ## 0x63
	.long	97                              ## 0x61
	.long	116                             ## 0x74
	.long	101                             ## 0x65
	.long	32                              ## 0x20
	.long	116                             ## 0x74
	.long	104                             ## 0x68
	.long	101                             ## 0x65
	.long	32                              ## 0x20
	.long	116                             ## 0x74
	.long	111                             ## 0x6f
	.long	107                             ## 0x6b
	.long	101                             ## 0x65
	.long	110                             ## 0x6e
	.long	32                              ## 0x20
	.long	115                             ## 0x73
	.long	116                             ## 0x74
	.long	114                             ## 0x72
	.long	117                             ## 0x75
	.long	99                              ## 0x63
	.long	116                             ## 0x74
	.long	117                             ## 0x75
	.long	114                             ## 0x72
	.long	101                             ## 0x65
	.long	46                              ## 0x2e
	.long	13                              ## 0xd
	.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	32                              ## 0x20
	.long	48                              ## 0x30
	.long	120                             ## 0x78
	.long	37                              ## 0x25
	.long	120                             ## 0x78
	.long	58                              ## 0x3a
	.long	32                              ## 0x20
	.long	99                              ## 0x63
	.long	111                             ## 0x6f
	.long	117                             ## 0x75
	.long	108                             ## 0x6c
	.long	100                             ## 0x64
	.long	32                              ## 0x20
	.long	110                             ## 0x6e
	.long	111                             ## 0x6f
	.long	116                             ## 0x74
	.long	32                              ## 0x20
	.long	103                             ## 0x67
	.long	101                             ## 0x65
	.long	116                             ## 0x74
	.long	32                              ## 0x20
	.long	116                             ## 0x74
	.long	111                             ## 0x6f
	.long	107                             ## 0x6b
	.long	101                             ## 0x65
	.long	110                             ## 0x6e
	.long	32                              ## 0x20
	.long	105                             ## 0x69
	.long	110                             ## 0x6e
	.long	102                             ## 0x66
	.long	111                             ## 0x6f
	.long	114                             ## 0x72
	.long	109                             ## 0x6d
	.long	97                              ## 0x61
	.long	116                             ## 0x74
	.long	105                             ## 0x69
	.long	111                             ## 0x6f
	.long	110                             ## 0x6e
	.long	46                              ## 0x2e
	.long	13                              ## 0xd
	.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	_WhoamiGetTokenInfo             ; -- Begin function WhoamiGetTokenInfo
	.p2align	2
_WhoamiGetTokenInfo:                    ; @WhoamiGetTokenInfo
	.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
	mov	x19, x0
	str	xzr, [sp, #8]
	bl	_GetCurrentProcess
Lloh0:
	adrp	x8, _TOKEN_READ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TOKEN_READ@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x2, sp, #12
	bl	_OpenProcessToken
	cbz	x0, LBB0_5
; %bb.1:
	ldr	w0, [sp, #12]
	add	x4, sp, #8
	mov	x1, x19
	mov	x2, #0
	mov	w3, #0
	bl	_GetTokenInformation
	bl	_GetLastError
	mov	x20, #0
Lloh3:
	adrp	x8, _ERROR_INSUFFICIENT_BUFFER@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ERROR_INSUFFICIENT_BUFFER@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x8, w0, sxtw
	b.ne	LBB0_3
; %bb.2:
	bl	_GetProcessHeap
Lloh6:
	adrp	x8, _HEAP_ZERO_MEMORY@GOTPAGE
Lloh7:
	ldr	x8, [x8, _HEAP_ZERO_MEMORY@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	ldr	w2, [sp, #8]
	bl	_HeapAlloc
	mov	x20, x0
	cbz	x0, LBB0_8
LBB0_3:
	ldp	w3, w0, [sp, #8]
	add	x4, sp, #8
	mov	x1, x19
	mov	x2, x20
	bl	_GetTokenInformation
	cbz	w0, LBB0_7
; %bb.4:
	ldr	w0, [sp, #12]
	bl	_CloseHandle
	b	LBB0_6
LBB0_5:
	mov	x20, #0
LBB0_6:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_7:
	bl	_GetLastError
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh9:
	adrp	x0, l_.str.1@PAGE
Lloh10:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_wprintf
	mov	x0, x20
	bl	_WhoamiFree
	mov	w0, #1
	bl	_exit
LBB0_8:
Lloh11:
	adrp	x0, l_.str@PAGE
Lloh12:
	add	x0, x0, l_.str@PAGEOFF
	bl	_wprintf
	mov	w0, #1
	bl	_exit
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_TOKEN_READ,4,2                 ; @TOKEN_READ
	.comm	_ERROR_INSUFFICIENT_BUFFER,8,3  ; @ERROR_INSUFFICIENT_BUFFER
	.comm	_HEAP_ZERO_MEMORY,4,2           ; @HEAP_ZERO_MEMORY
	.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	110                             ; 0x6e
	.long	111                             ; 0x6f
	.long	116                             ; 0x74
	.long	32                              ; 0x20
	.long	101                             ; 0x65
	.long	110                             ; 0x6e
	.long	111                             ; 0x6f
	.long	117                             ; 0x75
	.long	103                             ; 0x67
	.long	104                             ; 0x68
	.long	32                              ; 0x20
	.long	109                             ; 0x6d
	.long	101                             ; 0x65
	.long	109                             ; 0x6d
	.long	111                             ; 0x6f
	.long	114                             ; 0x72
	.long	121                             ; 0x79
	.long	32                              ; 0x20
	.long	116                             ; 0x74
	.long	111                             ; 0x6f
	.long	32                              ; 0x20
	.long	97                              ; 0x61
	.long	108                             ; 0x6c
	.long	108                             ; 0x6c
	.long	111                             ; 0x6f
	.long	99                              ; 0x63
	.long	97                              ; 0x61
	.long	116                             ; 0x74
	.long	101                             ; 0x65
	.long	32                              ; 0x20
	.long	116                             ; 0x74
	.long	104                             ; 0x68
	.long	101                             ; 0x65
	.long	32                              ; 0x20
	.long	116                             ; 0x74
	.long	111                             ; 0x6f
	.long	107                             ; 0x6b
	.long	101                             ; 0x65
	.long	110                             ; 0x6e
	.long	32                              ; 0x20
	.long	115                             ; 0x73
	.long	116                             ; 0x74
	.long	114                             ; 0x72
	.long	117                             ; 0x75
	.long	99                              ; 0x63
	.long	116                             ; 0x74
	.long	117                             ; 0x75
	.long	114                             ; 0x72
	.long	101                             ; 0x65
	.long	46                              ; 0x2e
	.long	13                              ; 0xd
	.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	32                              ; 0x20
	.long	48                              ; 0x30
	.long	120                             ; 0x78
	.long	37                              ; 0x25
	.long	120                             ; 0x78
	.long	58                              ; 0x3a
	.long	32                              ; 0x20
	.long	99                              ; 0x63
	.long	111                             ; 0x6f
	.long	117                             ; 0x75
	.long	108                             ; 0x6c
	.long	100                             ; 0x64
	.long	32                              ; 0x20
	.long	110                             ; 0x6e
	.long	111                             ; 0x6f
	.long	116                             ; 0x74
	.long	32                              ; 0x20
	.long	103                             ; 0x67
	.long	101                             ; 0x65
	.long	116                             ; 0x74
	.long	32                              ; 0x20
	.long	116                             ; 0x74
	.long	111                             ; 0x6f
	.long	107                             ; 0x6b
	.long	101                             ; 0x65
	.long	110                             ; 0x6e
	.long	32                              ; 0x20
	.long	105                             ; 0x69
	.long	110                             ; 0x6e
	.long	102                             ; 0x66
	.long	111                             ; 0x6f
	.long	114                             ; 0x72
	.long	109                             ; 0x6d
	.long	97                              ; 0x61
	.long	116                             ; 0x74
	.long	105                             ; 0x69
	.long	111                             ; 0x6f
	.long	110                             ; 0x6e
	.long	46                              ; 0x2e
	.long	13                              ; 0xd
	.long	10                              ; 0xa
	.long	0                               ; 0x0

.subsections_via_symbols
