	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function RunInstallReactOS
_RunInstallReactOS:                     ## @RunInstallReactOS
	.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
	movq	%rsi, %r14
	movl	%edi, %r15d
	leaq	l_.str(%rip), %rdi
	callq	_LoadLibraryW
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movq	%rax, %rbx
	leaq	L_.str.2(%rip), %rdi
	callq	_DPRINT
	leaq	L_.str.3(%rip), %rsi
	movq	%rbx, %rdi
	callq	_GetProcAddress
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movl	%r15d, %edi
	movq	%r14, %rsi
	callq	*%rax
	movl	%eax, %r14d
	jmp	LBB0_4
LBB0_5:
	leaq	L_.str.1(%rip), %rdi
	callq	_DPRINT
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_GetLastError                   ## TAILCALL
LBB0_2:
	xorl	%eax, %eax
	callq	_GetLastError
	movl	%eax, %r14d
	leaq	L_.str.4(%rip), %rdi
	callq	_DPRINT
LBB0_4:
	movq	%rbx, %rdi
	callq	_FreeLibrary
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	2                               ## @.str
l_.str:
	.long	115                             ## 0x73
	.long	121                             ## 0x79
	.long	115                             ## 0x73
	.long	115                             ## 0x73
	.long	101                             ## 0x65
	.long	116                             ## 0x74
	.long	117                             ## 0x75
	.long	112                             ## 0x70
	.long	46                              ## 0x2e
	.long	100                             ## 0x64
	.long	108                             ## 0x6c
	.long	108                             ## 0x6c
	.long	0                               ## 0x0

	.section	__TEXT,__cstring,cstring_literals
L_.str.1:                               ## @.str.1
	.asciz	"Failed to load 'syssetup.dll'!\n"

L_.str.2:                               ## @.str.2
	.asciz	"Loaded 'syssetup.dll'!\n"

L_.str.3:                               ## @.str.3
	.asciz	"InstallWindowsNt"

L_.str.4:                               ## @.str.4
	.asciz	"Failed to get address for 'InstallWindowsNt()'!\n"

	.no_dead_strip	_RunInstallReactOS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function RunInstallReactOS
_RunInstallReactOS:                     ; @RunInstallReactOS
	.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
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_LoadLibraryW
	cbz	x0, LBB0_3
; %bb.1:
	mov	x19, x0
Lloh2:
	adrp	x0, l_.str.2@PAGE
Lloh3:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_DPRINT
Lloh4:
	adrp	x1, l_.str.3@PAGE
Lloh5:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_GetProcAddress
	cbz	x0, LBB0_4
; %bb.2:
	mov	x8, x0
	mov	x0, x21
	mov	x1, x20
	blr	x8
	mov	x20, x0
	b	LBB0_5
LBB0_3:
Lloh6:
	adrp	x0, l_.str.1@PAGE
Lloh7:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DPRINT
	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
	b	_GetLastError
LBB0_4:
	bl	_GetLastError
	mov	x20, x0
Lloh8:
	adrp	x0, l_.str.4@PAGE
Lloh9:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_DPRINT
LBB0_5:
	mov	x0, x19
	bl	_FreeLibrary
	mov	x0, x20
	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
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
	.p2align	2                               ; @.str
l_.str:
	.long	115                             ; 0x73
	.long	121                             ; 0x79
	.long	115                             ; 0x73
	.long	115                             ; 0x73
	.long	101                             ; 0x65
	.long	116                             ; 0x74
	.long	117                             ; 0x75
	.long	112                             ; 0x70
	.long	46                              ; 0x2e
	.long	100                             ; 0x64
	.long	108                             ; 0x6c
	.long	108                             ; 0x6c
	.long	0                               ; 0x0

	.section	__TEXT,__cstring,cstring_literals
l_.str.1:                               ; @.str.1
	.asciz	"Failed to load 'syssetup.dll'!\n"

l_.str.2:                               ; @.str.2
	.asciz	"Loaded 'syssetup.dll'!\n"

l_.str.3:                               ; @.str.3
	.asciz	"InstallWindowsNt"

l_.str.4:                               ; @.str.4
	.asciz	"Failed to get address for 'InstallWindowsNt()'!\n"

	.no_dead_strip	_RunInstallReactOS
.subsections_via_symbols
