	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_LaunchProcess                  ## -- Begin function LaunchProcess
	.p2align	4, 0x90
_LaunchProcess:                         ## @LaunchProcess
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %ebx
	movq	%rsp, %r13
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_MAX_PATH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r12
	movq	%r12, %rdi
	callq	_ARRAYSIZE
	movl	%ebx, %edi
	movq	%r12, %rsi
	movl	%eax, %edx
	callq	_ExpandEnvironmentStringsW
	leaq	-104(%rbp), %r14
	movq	%r14, %rdi
	movl	$20, %esi
	callq	_ZeroMemory
	leaq	-80(%rbp), %r15
	movq	%r15, %rdi
	movl	$20, %esi
	callq	_ZeroMemory
	movl	$20, -80(%rbp)
	movq	_STARTF_USESHOWWINDOW@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -64(%rbp)
	movq	_SW_SHOWNORMAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -68(%rbp)
	xorl	%eax, %eax
	callq	_GetCurrentProcess
	movq	_TOKEN_QUERY@GOTPCREL(%rip), %rcx
	movq	_TOKEN_DUPLICATE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %esi
	orl	(%rcx), %esi
	leaq	-52(%rbp), %rdx
	movl	%eax, %edi
	callq	_OpenProcessToken
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movl	-52(%rbp), %edi
	movq	_TOKEN_ALL_ACCESS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SecurityIdentification@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_TokenPrimary@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	leaq	-56(%rbp), %r9
	xorl	%edx, %edx
	callq	_DuplicateTokenEx
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movl	-56(%rbp), %edi
	movq	_FALSE@GOTPCREL(%rip), %rbx
	movq	(%rbx), %r9
	subq	$48, %rsp
	movq	%r14, 32(%rsp)
	movq	%r15, 24(%rsp)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 8(%rsp)
	movl	$0, (%rsp)
	xorl	%esi, %esi
	movq	%r12, %rdx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_CreateProcessAsUserW
	addq	$48, %rsp
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movl	-96(%rbp), %edi
	callq	_CloseHandle
	movl	-100(%rbp), %edi
	callq	_CloseHandle
	movl	-52(%rbp), %edi
	callq	_CloseHandle
	movl	-56(%rbp), %edi
	callq	_CloseHandle
	movq	_TRUE@GOTPCREL(%rip), %rbx
	jmp	LBB0_7
LBB0_1:
	xorl	%eax, %eax
	callq	_GetLastError
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_DPRINT
	movq	_FALSE@GOTPCREL(%rip), %rbx
	jmp	LBB0_7
LBB0_3:
	xorl	%eax, %eax
	callq	_GetLastError
	leaq	L_.str.1(%rip), %rdi
	movl	%eax, %esi
	callq	_DPRINT
	movl	-52(%rbp), %edi
	callq	_CloseHandle
	movq	_FALSE@GOTPCREL(%rip), %rbx
	jmp	LBB0_7
LBB0_5:
	xorl	%eax, %eax
	callq	_GetLastError
	leaq	L_.str.2(%rip), %rdi
	movl	%eax, %esi
	callq	_DPRINT
	movl	-52(%rbp), %edi
	callq	_CloseHandle
	movl	-56(%rbp), %edi
	callq	_CloseHandle
LBB0_7:
	movq	(%rbx), %rax
	movq	%r13, %rsp
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_9
## %bb.8:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_PATH,4,2                   ## @MAX_PATH
	.comm	_STARTF_USESHOWWINDOW,4,2       ## @STARTF_USESHOWWINDOW
	.comm	_SW_SHOWNORMAL,4,2              ## @SW_SHOWNORMAL
	.comm	_TOKEN_QUERY,4,2                ## @TOKEN_QUERY
	.comm	_TOKEN_DUPLICATE,4,2            ## @TOKEN_DUPLICATE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"OpenProcessToken() failed with error -> %lu\n"

	.comm	_FALSE,8,3                      ## @FALSE
	.comm	_TOKEN_ALL_ACCESS,4,2           ## @TOKEN_ALL_ACCESS
	.comm	_SecurityIdentification,4,2     ## @SecurityIdentification
	.comm	_TokenPrimary,4,2               ## @TokenPrimary
L_.str.1:                               ## @.str.1
	.asciz	"DuplicateTokenEx() failed with error -> %lu\n"

L_.str.2:                               ## @.str.2
	.asciz	"CreateProcessAsUserW() failed with error -> %lu\n"

	.comm	_TRUE,8,3                       ## @TRUE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_LaunchProcess                  ; -- Begin function LaunchProcess
	.p2align	2
_LaunchProcess:                         ; @LaunchProcess
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	sub	sp, sp, #64
	mov	x20, x0
	mov	x21, sp
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
Lloh3:
	adrp	x8, _MAX_PATH@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAX_PATH@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	lsl	x8, x8, #2
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x19, x9, x8
	mov	sp, x19
	mov	x0, x19
	bl	_ARRAYSIZE
	mov	x2, x0
	mov	x0, x20
	mov	x1, x19
	bl	_ExpandEnvironmentStringsW
	mov	w20, #20
	sub	x0, x29, #88
	mov	w1, #20
	bl	_ZeroMemory
	sub	x0, x29, #64
	mov	w1, #20
	bl	_ZeroMemory
Lloh8:
	adrp	x8, _STARTF_USESHOWWINDOW@GOTPAGE
Lloh9:
	ldr	x8, [x8, _STARTF_USESHOWWINDOW@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	stur	w8, [x29, #-48]
Lloh11:
	adrp	x8, _SW_SHOWNORMAL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _SW_SHOWNORMAL@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	stur	w20, [x29, #-64]
	stur	w8, [x29, #-52]
	bl	_GetCurrentProcess
Lloh14:
	adrp	x8, _TOKEN_QUERY@GOTPAGE
Lloh15:
	ldr	x8, [x8, _TOKEN_QUERY@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
Lloh17:
	adrp	x9, _TOKEN_DUPLICATE@GOTPAGE
Lloh18:
	ldr	x9, [x9, _TOKEN_DUPLICATE@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	orr	w1, w9, w8
	sub	x2, x29, #92
	bl	_OpenProcessToken
	cbz	x0, LBB0_4
; %bb.1:
	ldur	w0, [x29, #-92]
Lloh20:
	adrp	x8, _TOKEN_ALL_ACCESS@GOTPAGE
Lloh21:
	ldr	x8, [x8, _TOKEN_ALL_ACCESS@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
Lloh23:
	adrp	x8, _SecurityIdentification@GOTPAGE
Lloh24:
	ldr	x8, [x8, _SecurityIdentification@GOTPAGEOFF]
Lloh25:
	ldr	w3, [x8]
Lloh26:
	adrp	x8, _TokenPrimary@GOTPAGE
Lloh27:
	ldr	x8, [x8, _TokenPrimary@GOTPAGEOFF]
Lloh28:
	ldr	w4, [x8]
	sub	x5, x29, #96
	mov	x2, #0
	bl	_DuplicateTokenEx
	cbz	x0, LBB0_5
; %bb.2:
	ldur	w0, [x29, #-96]
Lloh29:
	adrp	x8, _FALSE@GOTPAGE
Lloh30:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh31:
	ldr	x5, [x8]
	sub	sp, sp, #32
	sub	x8, x29, #88
	str	x8, [sp, #16]
	sub	x8, x29, #64
	stp	xzr, x8, [sp]
	mov	x1, #0
	mov	x2, x19
	mov	x3, #0
	mov	x4, #0
	mov	w6, #0
	mov	x7, #0
	bl	_CreateProcessAsUserW
	add	sp, sp, #32
	cbz	x0, LBB0_6
; %bb.3:
	ldur	w0, [x29, #-80]
	bl	_CloseHandle
	ldur	w0, [x29, #-84]
	bl	_CloseHandle
	ldur	w0, [x29, #-92]
	bl	_CloseHandle
	ldur	w0, [x29, #-96]
	bl	_CloseHandle
Lloh32:
	adrp	x8, _TRUE@GOTPAGE
Lloh33:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
	b	LBB0_9
LBB0_4:
	bl	_GetLastError
	mov	x1, x0
Lloh34:
	adrp	x0, l_.str@PAGE
Lloh35:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DPRINT
	b	LBB0_8
LBB0_5:
	bl	_GetLastError
	mov	x1, x0
Lloh36:
	adrp	x0, l_.str.1@PAGE
Lloh37:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DPRINT
	ldur	w0, [x29, #-92]
	b	LBB0_7
LBB0_6:
	bl	_GetLastError
	mov	x1, x0
Lloh38:
	adrp	x0, l_.str.2@PAGE
Lloh39:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_DPRINT
	ldur	w0, [x29, #-92]
	bl	_CloseHandle
	ldur	w0, [x29, #-96]
LBB0_7:
	bl	_CloseHandle
LBB0_8:
Lloh40:
	adrp	x8, _FALSE@GOTPAGE
Lloh41:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
LBB0_9:
	ldr	x0, [x8]
	mov	sp, x21
	ldur	x8, [x29, #-40]
Lloh42:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh43:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh44:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_11
; %bb.10:
	sub	sp, x29, #32
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_11:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpLdrGot	Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_PATH,4,2                   ; @MAX_PATH
	.comm	_STARTF_USESHOWWINDOW,4,2       ; @STARTF_USESHOWWINDOW
	.comm	_SW_SHOWNORMAL,4,2              ; @SW_SHOWNORMAL
	.comm	_TOKEN_QUERY,4,2                ; @TOKEN_QUERY
	.comm	_TOKEN_DUPLICATE,4,2            ; @TOKEN_DUPLICATE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"OpenProcessToken() failed with error -> %lu\n"

	.comm	_FALSE,8,3                      ; @FALSE
	.comm	_TOKEN_ALL_ACCESS,4,2           ; @TOKEN_ALL_ACCESS
	.comm	_SecurityIdentification,4,2     ; @SecurityIdentification
	.comm	_TokenPrimary,4,2               ; @TokenPrimary
l_.str.1:                               ; @.str.1
	.asciz	"DuplicateTokenEx() failed with error -> %lu\n"

l_.str.2:                               ; @.str.2
	.asciz	"CreateProcessAsUserW() failed with error -> %lu\n"

	.comm	_TRUE,8,3                       ; @TRUE
.subsections_via_symbols
