	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ADVAPI_IsLocalComputer         ## -- Begin function ADVAPI_IsLocalComputer
	.p2align	4, 0x90
_ADVAPI_IsLocalComputer:                ## @ADVAPI_IsLocalComputer
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	_MAX_COMPUTERNAME_LENGTH@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	incl	%edi
	movl	%edi, -20(%rbp)
	testq	%rbx, %rbx
	je	LBB0_2
## %bb.1:
	cmpb	$0, (%rbx)
	je	LBB0_2
## %bb.3:
	shll	$2, %edi
	callq	_heap_alloc
	movl	%eax, %r14d
	leaq	-20(%rbp), %rsi
	movl	%eax, %edi
	callq	_GetComputerNameW
	testl	%eax, %eax
	je	LBB0_4
## %bb.5:
	cmpb	$92, (%rbx)
	jne	LBB0_7
## %bb.6:
	xorl	%eax, %eax
	cmpb	$92, 1(%rbx)
	sete	%al
	leaq	(%rbx,%rax,2), %rbx
LBB0_7:
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_lstrcmpW
	xorl	%ebx, %ebx
	testl	%eax, %eax
	sete	%bl
	jmp	LBB0_8
LBB0_2:
	movq	_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_9
LBB0_4:
	xorl	%ebx, %ebx
LBB0_8:
	movl	%r14d, %edi
	callq	_heap_free
LBB0_9:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_COMPUTERNAME_LENGTH,4,2    ## @MAX_COMPUTERNAME_LENGTH
	.comm	_TRUE,4,2                       ## @TRUE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ADVAPI_IsLocalComputer         ; -- Begin function ADVAPI_IsLocalComputer
	.p2align	2
_ADVAPI_IsLocalComputer:                ; @ADVAPI_IsLocalComputer
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
Lloh0:
	adrp	x8, _MAX_COMPUTERNAME_LENGTH@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MAX_COMPUTERNAME_LENGTH@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	add	w8, w8, #1
	str	w8, [sp, #12]
	cbz	x0, LBB0_6
; %bb.1:
	mov	x20, x0
	ldrb	w9, [x0]
	cbz	w9, LBB0_6
; %bb.2:
	lsl	w0, w8, #2
	bl	_heap_alloc
	mov	x19, x0
	add	x1, sp, #12
	bl	_GetComputerNameW
	cbz	w0, LBB0_7
; %bb.3:
	ldrb	w8, [x20]
	cmp	w8, #92
	b.ne	LBB0_5
; %bb.4:
	ldrb	w8, [x20, #1]
	cmp	w8, #92
	cset	w8, eq
	add	x20, x20, w8, uxtw #1
LBB0_5:
	mov	x0, x20
	mov	x1, x19
	bl	_lstrcmpW
	cmp	w0, #0
	cset	w20, eq
	b	LBB0_8
LBB0_6:
Lloh3:
	adrp	x8, _TRUE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh5:
	ldr	w20, [x8]
	b	LBB0_9
LBB0_7:
	mov	w20, #0
LBB0_8:
	mov	x0, x19
	bl	_heap_free
LBB0_9:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_COMPUTERNAME_LENGTH,4,2    ; @MAX_COMPUTERNAME_LENGTH
	.comm	_TRUE,4,2                       ; @TRUE
.subsections_via_symbols
