	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_WhoamiGetUser                  ## -- Begin function WhoamiGetUser
	.p2align	4, 0x90
_WhoamiGetUser:                         ## @WhoamiGetUser
	.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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %r14d
	xorl	%eax, %eax
	callq	_GetProcessHeap
	movq	_HEAP_ZERO_MEMORY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_MAX_PATH@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	movl	%eax, %edi
	callq	_HeapAlloc
	movq	%rax, %rbx
	movl	(%r15), %eax
	movl	%eax, -28(%rbp)
	testq	%rbx, %rbx
	je	LBB0_4
## %bb.1:
	leaq	-28(%rbp), %rdx
	movl	%r14d, %edi
	movq	%rbx, %rsi
	callq	_GetUserNameExW
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	%rbx, %rdi
	callq	_CharLowerW
	jmp	LBB0_5
LBB0_3:
	xorl	%eax, %eax
	callq	_GetProcessHeap
	movl	%eax, %edi
	xorl	%esi, %esi
	movq	%rbx, %rdx
	callq	_HeapFree
LBB0_4:
	xorl	%ebx, %ebx
LBB0_5:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HEAP_ZERO_MEMORY,4,2           ## @HEAP_ZERO_MEMORY
	.comm	_MAX_PATH,4,2                   ## @MAX_PATH
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_WhoamiGetUser                  ; -- Begin function WhoamiGetUser
	.p2align	2
_WhoamiGetUser:                         ; @WhoamiGetUser
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x20, x0
	bl	_GetProcessHeap
Lloh0:
	adrp	x8, _HEAP_ZERO_MEMORY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HEAP_ZERO_MEMORY@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x21, _MAX_PATH@GOTPAGE
Lloh4:
	ldr	x21, [x21, _MAX_PATH@GOTPAGEOFF]
	ldr	w2, [x21]
	bl	_HeapAlloc
	mov	x19, x0
	ldr	w8, [x21]
	str	w8, [sp, #12]
	cbz	x0, LBB0_4
; %bb.1:
	add	x2, sp, #12
	mov	x0, x20
	mov	x1, x19
	bl	_GetUserNameExW
	cbz	x0, LBB0_3
; %bb.2:
	mov	x0, x19
	bl	_CharLowerW
	b	LBB0_4
LBB0_3:
	bl	_GetProcessHeap
	mov	w1, #0
	mov	x2, x19
	bl	_HeapFree
	mov	x19, #0
LBB0_4:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_HEAP_ZERO_MEMORY,4,2           ; @HEAP_ZERO_MEMORY
	.comm	_MAX_PATH,4,2                   ; @MAX_PATH
.subsections_via_symbols
