	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_NtOnline                       ## -- Begin function NtOnline
	.p2align	4, 0x90
_NtOnline:                              ## @NtOnline
	.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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	_ERR_NO_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movl	4(%rdi), %edi
	callq	_Lock
	cmpl	$0, (%rbx)
	je	LBB0_2
## %bb.1:
	movq	_ERR_ALREADY_ONLINE@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_2:
	movq	24(%rbx), %rsi
	testq	%rsi, %rsi
	je	LBB0_5
## %bb.3:
	movq	16(%rbx), %rdx
	testq	%rdx, %rdx
	je	LBB0_5
## %bb.4:
	movl	$1, (%rbx)
	movl	32(%rbx), %edi
	leaq	8(%rbx), %rcx
	movq	%rbx, %r8
	callq	_NewVirtualHostEx
	movl	%eax, 36(%rbx)
	jmp	LBB0_7
LBB0_5:
	movq	_ERR_ACCOUNT_NOT_PRESENT@GOTPCREL(%rip), %rax
LBB0_6:
	movl	(%rax), %r14d
LBB0_7:
	movl	4(%rbx), %edi
	callq	_Unlock
	movq	%rbx, %rdi
	callq	_NiWriteConfig
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ERR_NO_ERROR,4,2               ## @ERR_NO_ERROR
	.comm	_ERR_ALREADY_ONLINE,4,2         ## @ERR_ALREADY_ONLINE
	.comm	_ERR_ACCOUNT_NOT_PRESENT,4,2    ## @ERR_ACCOUNT_NOT_PRESENT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_NtOnline                       ; -- Begin function NtOnline
	.p2align	2
_NtOnline:                              ; @NtOnline
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x8, _ERR_NO_ERROR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ERR_NO_ERROR@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
	ldr	w0, [x0, #4]
	bl	_Lock
	ldr	w8, [x19]
	cbz	w8, LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _ERR_ALREADY_ONLINE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ERR_ALREADY_ONLINE@GOTPAGEOFF]
	b	LBB0_6
LBB0_2:
	ldr	x1, [x19, #24]
	cbz	x1, LBB0_5
; %bb.3:
	ldr	x2, [x19, #16]
	cbz	x2, LBB0_5
; %bb.4:
	mov	w8, #1
	str	w8, [x19]
	ldr	w0, [x19, #32]
	add	x3, x19, #8
	mov	x4, x19
	bl	_NewVirtualHostEx
	str	w0, [x19, #36]
	b	LBB0_7
LBB0_5:
Lloh5:
	adrp	x8, _ERR_ACCOUNT_NOT_PRESENT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ERR_ACCOUNT_NOT_PRESENT@GOTPAGEOFF]
LBB0_6:
	ldr	w20, [x8]
LBB0_7:
	ldr	w0, [x19, #4]
	bl	_Unlock
	mov	x0, x19
	bl	_NiWriteConfig
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_ERR_NO_ERROR,4,2               ; @ERR_NO_ERROR
	.comm	_ERR_ALREADY_ONLINE,4,2         ; @ERR_ALREADY_ONLINE
	.comm	_ERR_ACCOUNT_NOT_PRESENT,4,2    ; @ERR_ACCOUNT_NOT_PRESENT
.subsections_via_symbols
