	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function SetActiveComputerNameToRegistry
_SetActiveComputerNameToRegistry:       ## @SetActiveComputerNameToRegistry
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %rbx
	movq	%rdx, %r15
	movq	%rsi, %r12
	movq	%rdi, %r14
	movq	%rcx, %rdi
	callq	_wcslen
	movl	%eax, %r13d
	cltq
	movq	_MAXULONG@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	shrq	$2, %rcx
	decq	%rcx
	movq	_FALSE@GOTPCREL(%rip), %rdx
	cmpq	%rax, %rcx
	jb	LBB0_8
## %bb.1:
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	movq	%r15, -80(%rbp)                 ## 8-byte Spill
	leaq	-60(%rbp), %r15
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_RtlInitUnicodeString
	movq	_OBJ_CASE_INSENSITIVE@GOTPCREL(%rip), %r14
	movl	(%r14), %edx
	leaq	-64(%rbp), %rbx
	movq	%rbx, %rdi
	movq	%r15, %rsi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_InitializeObjectAttributes
	movq	_KEY_WRITE@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	leaq	-48(%rbp), %rdi
	movq	%rbx, %rdx
	callq	_NtOpenKey
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_NT_SUCCESS
	testl	%eax, %eax
	je	LBB0_2
## %bb.3:
	leaq	-60(%rbp), %rbx
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_RtlInitUnicodeString
	movl	(%r14), %edx
	movq	-48(%rbp), %rcx
	movq	%r15, %r14
	leaq	-64(%rbp), %r15
	movq	%r15, %rdi
	movq	%rbx, %rsi
	xorl	%r8d, %r8d
	callq	_InitializeObjectAttributes
	movl	(%r14), %esi
	movq	_REG_OPTION_VOLATILE@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	leaq	-84(%rbp), %rax
	movq	%rax, (%rsp)
	leaq	-56(%rbp), %rdi
	movq	%r15, %rdx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_NtCreateKey
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_NT_SUCCESS
	testl	%eax, %eax
	je	LBB0_4
## %bb.5:
	leaq	-88(%rbp), %rbx
	movq	%rbx, %rdi
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	callq	_RtlInitUnicodeString
	movq	-56(%rbp), %rdi
	movq	_REG_SZ@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leal	4(,%r13,4), %r9d
	movq	%rbx, %rsi
	xorl	%edx, %edx
	movq	-72(%rbp), %r8                  ## 8-byte Reload
                                        ## kill: def $r8d killed $r8d killed $r8
	callq	_NtSetValueKey
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_NT_SUCCESS
	movq	-56(%rbp), %rdi
	testl	%eax, %eax
	je	LBB0_6
## %bb.7:
	callq	_NtFlushKey
	movq	-56(%rbp), %rdi
	callq	_NtClose
	movq	-48(%rbp), %rdi
	callq	_NtClose
	movq	_TRUE@GOTPCREL(%rip), %rdx
	jmp	LBB0_8
LBB0_6:
	callq	_NtClose
LBB0_4:
	movq	-48(%rbp), %rdi
	callq	_NtClose
LBB0_2:
	movl	%ebx, %edi
	callq	_BaseSetLastNTError
	movq	_FALSE@GOTPCREL(%rip), %rdx
LBB0_8:
	movl	(%rdx), %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAXULONG,4,2                   ## @MAXULONG
	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_OBJ_CASE_INSENSITIVE,4,2       ## @OBJ_CASE_INSENSITIVE
	.comm	_KEY_WRITE,4,2                  ## @KEY_WRITE
	.comm	_REG_OPTION_VOLATILE,4,2        ## @REG_OPTION_VOLATILE
	.comm	_REG_SZ,4,2                     ## @REG_SZ
	.comm	_TRUE,4,2                       ## @TRUE
	.no_dead_strip	_SetActiveComputerNameToRegistry
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function SetActiveComputerNameToRegistry
_SetActiveComputerNameToRegistry:       ; @SetActiveComputerNameToRegistry
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x3
	mov	x20, x2
	mov	x22, x1
	mov	x23, x0
	mov	x0, x3
	bl	_wcslen
Lloh0:
	adrp	x8, _MAXULONG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MAXULONG@GOTPAGEOFF]
Lloh2:
	ldrsw	x8, [x8]
	lsr	x8, x8, #2
	sub	x8, x8, #1
	cmp	x8, w0, sxtw
	b.lo	LBB0_9
; %bb.1:
	mov	x21, x0
	add	x0, sp, #40
	mov	x1, x23
	bl	_RtlInitUnicodeString
Lloh3:
	adrp	x24, _OBJ_CASE_INSENSITIVE@GOTPAGE
Lloh4:
	ldr	x24, [x24, _OBJ_CASE_INSENSITIVE@GOTPAGEOFF]
	ldr	w2, [x24]
	add	x0, sp, #44
	add	x1, sp, #40
	mov	x3, #0
	mov	x4, #0
	bl	_InitializeObjectAttributes
Lloh5:
	adrp	x25, _KEY_WRITE@GOTPAGE
Lloh6:
	ldr	x25, [x25, _KEY_WRITE@GOTPAGEOFF]
	ldr	w1, [x25]
	add	x0, sp, #24
	add	x2, sp, #44
	bl	_NtOpenKey
	mov	x23, x0
	bl	_NT_SUCCESS
	cbz	w0, LBB0_5
; %bb.2:
	add	x0, sp, #40
	mov	x1, x22
	bl	_RtlInitUnicodeString
	ldr	w2, [x24]
	ldr	x3, [sp, #24]
	add	x0, sp, #44
	add	x1, sp, #40
	mov	x4, #0
	bl	_InitializeObjectAttributes
	ldr	w1, [x25]
Lloh7:
	adrp	x8, _REG_OPTION_VOLATILE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _REG_OPTION_VOLATILE@GOTPAGEOFF]
Lloh9:
	ldr	w5, [x8]
	add	x0, sp, #16
	add	x2, sp, #44
	add	x6, sp, #12
	mov	w3, #0
	mov	x4, #0
	bl	_NtCreateKey
	mov	x22, x0
	bl	_NT_SUCCESS
	cbz	w0, LBB0_6
; %bb.3:
	add	x0, sp, #36
	mov	x1, x20
	bl	_RtlInitUnicodeString
	ldr	x0, [sp, #16]
Lloh10:
	adrp	x8, _REG_SZ@GOTPAGE
Lloh11:
	ldr	x8, [x8, _REG_SZ@GOTPAGEOFF]
Lloh12:
	ldr	w3, [x8]
	lsl	w8, w21, #2
	add	w5, w8, #4
	add	x1, sp, #36
	mov	w2, #0
	mov	x4, x19
	bl	_NtSetValueKey
	mov	x19, x0
	bl	_NT_SUCCESS
	mov	x8, x0
	ldr	x0, [sp, #16]
	cbz	w8, LBB0_7
; %bb.4:
	bl	_NtFlushKey
	ldr	x0, [sp, #16]
	bl	_NtClose
	ldr	x0, [sp, #24]
	bl	_NtClose
Lloh13:
	adrp	x8, _TRUE@GOTPAGE
Lloh14:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
	b	LBB0_10
LBB0_5:
	mov	x0, x23
	b	LBB0_8
LBB0_6:
	ldr	x0, [sp, #24]
	bl	_NtClose
	mov	x0, x22
	b	LBB0_8
LBB0_7:
	bl	_NtClose
	ldr	x0, [sp, #24]
	bl	_NtClose
	mov	x0, x19
LBB0_8:
	bl	_BaseSetLastNTError
LBB0_9:
Lloh15:
	adrp	x8, _FALSE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
LBB0_10:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_MAXULONG,4,2                   ; @MAXULONG
	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_OBJ_CASE_INSENSITIVE,4,2       ; @OBJ_CASE_INSENSITIVE
	.comm	_KEY_WRITE,4,2                  ; @KEY_WRITE
	.comm	_REG_OPTION_VOLATILE,4,2        ; @REG_OPTION_VOLATILE
	.comm	_REG_SZ,4,2                     ; @REG_SZ
	.comm	_TRUE,4,2                       ; @TRUE
	.no_dead_strip	_SetActiveComputerNameToRegistry
.subsections_via_symbols
