	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function check_admin_rights
_check_admin_rights:                    ## @check_admin_rights
	.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	_S_OK@GOTPCREL(%rip), %r14
	movl	(%r14), %ebx
	movl	(%rdi), %esi
	movl	4(%rdi), %edi
	movq	_CheckAdminRights@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-20(%rbp), %rcx
	callq	_SetupFindFirstLineW
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	leaq	-20(%rbp), %rdi
	leaq	-24(%rbp), %rdx
	movl	$1, %esi
	callq	_SetupGetIntField
	testl	%eax, %eax
	je	LBB0_1
## %bb.3:
	cmpl	$1, -24(%rbp)
	jne	LBB0_7
## %bb.4:
	xorl	%edi, %edi
	xorl	%esi, %esi
	callq	_IsNTAdmin
	testq	%rax, %rax
	jne	LBB0_6
## %bb.5:
	movq	_E_FAIL@GOTPCREL(%rip), %r14
LBB0_6:
	movl	(%r14), %ebx
	jmp	LBB0_7
LBB0_1:
	movq	_S_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_7:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_S_OK,4,2                       ## @S_OK
	.comm	_CheckAdminRights,4,2           ## @CheckAdminRights
	.comm	_E_FAIL,4,2                     ## @E_FAIL
	.no_dead_strip	_check_admin_rights
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function check_admin_rights
_check_admin_rights:                    ; @check_admin_rights
	.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	x20, _S_OK@GOTPAGE
Lloh1:
	ldr	x20, [x20, _S_OK@GOTPAGEOFF]
	ldr	w19, [x20]
	ldp	w1, w8, [x0]
Lloh2:
	adrp	x9, _CheckAdminRights@GOTPAGE
Lloh3:
	ldr	x9, [x9, _CheckAdminRights@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x9]
	add	x3, sp, #8
	mov	x0, x8
	bl	_SetupFindFirstLineW
	cbz	w0, LBB0_4
; %bb.1:
	add	x0, sp, #8
	add	x2, sp, #12
	mov	w1, #1
	bl	_SetupGetIntField
	cbz	w0, LBB0_4
; %bb.2:
	ldr	w8, [sp, #12]
	cmp	w8, #1
	b.ne	LBB0_5
; %bb.3:
	mov	w0, #0
	mov	x1, #0
	bl	_IsNTAdmin
Lloh5:
	adrp	x8, _E_FAIL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _E_FAIL@GOTPAGEOFF]
	cmp	x0, #0
	csel	x8, x8, x20, eq
	ldr	w19, [x8]
	b	LBB0_5
LBB0_4:
	ldr	w19, [x20]
LBB0_5:
	mov	x0, x19
	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	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_S_OK,4,2                       ; @S_OK
	.comm	_CheckAdminRights,4,2           ; @CheckAdminRights
	.comm	_E_FAIL,4,2                     ; @E_FAIL
	.no_dead_strip	_check_admin_rights
.subsections_via_symbols
