	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_setup_debug_privileges         ## -- Begin function setup_debug_privileges
	.p2align	4, 0x90
_setup_debug_privileges:                ## @setup_debug_privileges
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	subq	$16, %rsp
	xorl	%eax, %eax
	callq	_GetCurrentProcess
	movq	_TOKEN_ADJUST_PRIVILEGES@GOTPCREL(%rip), %rcx
	movq	_TOKEN_QUERY@GOTPCREL(%rip), %rdx
	movl	(%rdx), %esi
	orl	(%rcx), %esi
	leaq	-4(%rbp), %rdx
	movl	%eax, %edi
	callq	_OpenProcessToken
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movq	_SE_DEBUG_NAME@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-8(%rbp), %rdx
	xorl	%edi, %edi
	callq	_LookupPrivilegeValue
	movl	-4(%rbp), %edi
	callq	_CloseHandle
LBB0_2:
	xorl	%eax, %eax
	addq	$16, %rsp
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TOKEN_ADJUST_PRIVILEGES,4,2    ## @TOKEN_ADJUST_PRIVILEGES
	.comm	_TOKEN_QUERY,4,2                ## @TOKEN_QUERY
	.comm	_SE_DEBUG_NAME,4,2              ## @SE_DEBUG_NAME
	.comm	_SE_PRIVILEGE_ENABLED,4,2       ## @SE_PRIVILEGE_ENABLED
	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_ERROR_SUCCESS,8,3              ## @ERROR_SUCCESS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_setup_debug_privileges         ; -- Begin function setup_debug_privileges
	.p2align	2
_setup_debug_privileges:                ; @setup_debug_privileges
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #32
	.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
	bl	_GetCurrentProcess
Lloh0:
	adrp	x8, _TOKEN_ADJUST_PRIVILEGES@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TOKEN_ADJUST_PRIVILEGES@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _TOKEN_QUERY@GOTPAGE
Lloh4:
	ldr	x9, [x9, _TOKEN_QUERY@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w1, w9, w8
	sub	x2, x29, #4
	bl	_OpenProcessToken
	cbz	w0, LBB0_2
; %bb.1:
Lloh6:
	adrp	x8, _SE_DEBUG_NAME@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SE_DEBUG_NAME@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	add	x2, sp, #8
	mov	x0, #0
	bl	_LookupPrivilegeValue
	ldur	w0, [x29, #-4]
	bl	_CloseHandle
LBB0_2:
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #32
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_TOKEN_ADJUST_PRIVILEGES,4,2    ; @TOKEN_ADJUST_PRIVILEGES
	.comm	_TOKEN_QUERY,4,2                ; @TOKEN_QUERY
	.comm	_SE_DEBUG_NAME,4,2              ; @SE_DEBUG_NAME
	.comm	_SE_PRIVILEGE_ENABLED,4,2       ; @SE_PRIVILEGE_ENABLED
	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_ERROR_SUCCESS,8,3              ; @ERROR_SUCCESS
.subsections_via_symbols
