	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_DoSetPriority                  ## -- Begin function DoSetPriority
	.p2align	4, 0x90
_DoSetPriority:                         ## @DoSetPriority
	.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	$2072, %rsp                     ## imm = 0x818
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	xorl	%eax, %eax
	callq	_GetSelectedProcessId
	testq	%rax, %rax
	je	LBB0_7
## %bb.1:
	movq	%rax, %rbx
	movq	_hInst@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	movq	_IDS_MSG_TASKMGRWARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-2112(%rbp), %r15
	movq	%r15, %rdx
	movl	$256, %ecx                      ## imm = 0x100
	callq	_LoadStringW
	movl	(%r13), %edi
	movq	_IDS_MSG_WARNINGCHANGEPRIORITY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-1088(%rbp), %r12
	movq	%r12, %rdx
	movl	$260, %ecx                      ## imm = 0x104
	callq	_LoadStringW
	movq	_hMainWnd@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_MB_YESNO@GOTPCREL(%rip), %rax
	movq	_MB_ICONWARNING@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	%r12, %rsi
	movq	%r15, %rdx
	callq	_MessageBoxW
	movq	_IDYES@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.2:
	movq	_PROCESS_SET_INFORMATION@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdx
	callq	_OpenProcess
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:
	movl	%eax, %ebx
	movl	%eax, %edi
	movq	%r14, %rsi
	callq	_SetPriorityClass
	testl	%eax, %eax
	jne	LBB0_6
## %bb.5:
	leaq	-1088(%rbp), %r14
	movq	%r14, %rdi
	movl	$260, %esi                      ## imm = 0x104
	callq	_GetLastErrorText
	movl	(%r13), %edi
	movq	_IDS_MSG_UNABLECHANGEPRIORITY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-2112(%rbp), %r15
	movq	%r15, %rdx
	movl	$256, %ecx                      ## imm = 0x100
	callq	_LoadStringW
	movq	_hMainWnd@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_MB_OK@GOTPCREL(%rip), %rax
	movq	_MB_ICONSTOP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	%r14, %rsi
	movq	%r15, %rdx
	callq	_MessageBoxW
LBB0_6:
	movl	%ebx, %edi
	callq	_CloseHandle
	jmp	LBB0_7
LBB0_3:
	leaq	-1088(%rbp), %r14
	movq	%r14, %rdi
	movl	$260, %esi                      ## imm = 0x104
	callq	_GetLastErrorText
	movl	(%r13), %edi
	movq	_IDS_MSG_UNABLECHANGEPRIORITY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-2112(%rbp), %rbx
	movq	%rbx, %rdx
	movl	$256, %ecx                      ## imm = 0x100
	callq	_LoadStringW
	movq	_hMainWnd@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_MB_OK@GOTPCREL(%rip), %rax
	movq	_MB_ICONSTOP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	%r14, %rsi
	movq	%rbx, %rdx
	callq	_MessageBoxW
LBB0_7:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_9
## %bb.8:
	addq	$2072, %rsp                     ## imm = 0x818
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_hInst,4,2                      ## @hInst
	.comm	_IDS_MSG_TASKMGRWARNING,4,2     ## @IDS_MSG_TASKMGRWARNING
	.comm	_IDS_MSG_WARNINGCHANGEPRIORITY,4,2 ## @IDS_MSG_WARNINGCHANGEPRIORITY
	.comm	_hMainWnd,4,2                   ## @hMainWnd
	.comm	_MB_YESNO,4,2                   ## @MB_YESNO
	.comm	_MB_ICONWARNING,4,2             ## @MB_ICONWARNING
	.comm	_IDYES,8,3                      ## @IDYES
	.comm	_PROCESS_SET_INFORMATION,4,2    ## @PROCESS_SET_INFORMATION
	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_IDS_MSG_UNABLECHANGEPRIORITY,4,2 ## @IDS_MSG_UNABLECHANGEPRIORITY
	.comm	_MB_OK,4,2                      ## @MB_OK
	.comm	_MB_ICONSTOP,4,2                ## @MB_ICONSTOP
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_DoSetPriority                  ; -- Begin function DoSetPriority
	.p2align	2
_DoSetPriority:                         ; @DoSetPriority
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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 w27, -56
	.cfi_offset w28, -64
	sub	sp, sp, #2080
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
	bl	_GetSelectedProcessId
	cbz	x0, LBB0_7
; %bb.1:
	mov	x20, x0
Lloh3:
	adrp	x22, _hInst@GOTPAGE
Lloh4:
	ldr	x22, [x22, _hInst@GOTPAGEOFF]
	ldr	w0, [x22]
Lloh5:
	adrp	x8, _IDS_MSG_TASKMGRWARNING@GOTPAGE
Lloh6:
	ldr	x8, [x8, _IDS_MSG_TASKMGRWARNING@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	add	x2, sp, #8
	mov	w3, #256
	bl	_LoadStringW
	ldr	w0, [x22]
Lloh8:
	adrp	x8, _IDS_MSG_WARNINGCHANGEPRIORITY@GOTPAGE
Lloh9:
	ldr	x8, [x8, _IDS_MSG_WARNINGCHANGEPRIORITY@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	add	x2, sp, #1032
	mov	w3, #260
	bl	_LoadStringW
Lloh11:
	adrp	x21, _hMainWnd@GOTPAGE
Lloh12:
	ldr	x21, [x21, _hMainWnd@GOTPAGEOFF]
Lloh13:
	adrp	x8, _MB_YESNO@GOTPAGE
Lloh14:
	ldr	x8, [x8, _MB_YESNO@GOTPAGEOFF]
	ldr	w0, [x21]
Lloh15:
	ldr	w8, [x8]
Lloh16:
	adrp	x9, _MB_ICONWARNING@GOTPAGE
Lloh17:
	ldr	x9, [x9, _MB_ICONWARNING@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	orr	w3, w9, w8
	add	x1, sp, #1032
	add	x2, sp, #8
	bl	_MessageBoxW
Lloh19:
	adrp	x8, _IDYES@GOTPAGE
Lloh20:
	ldr	x8, [x8, _IDYES@GOTPAGEOFF]
Lloh21:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_7
; %bb.2:
Lloh22:
	adrp	x8, _PROCESS_SET_INFORMATION@GOTPAGE
Lloh23:
	ldr	x8, [x8, _PROCESS_SET_INFORMATION@GOTPAGEOFF]
Lloh24:
	ldr	w0, [x8]
Lloh25:
	adrp	x8, _FALSE@GOTPAGE
Lloh26:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh27:
	ldr	w1, [x8]
	mov	x2, x20
	bl	_OpenProcess
	cbz	w0, LBB0_6
; %bb.3:
	mov	x20, x0
	mov	x1, x19
	bl	_SetPriorityClass
	cbnz	w0, LBB0_5
; %bb.4:
	add	x0, sp, #1032
	mov	w1, #260
	bl	_GetLastErrorText
	ldr	w0, [x22]
Lloh28:
	adrp	x8, _IDS_MSG_UNABLECHANGEPRIORITY@GOTPAGE
Lloh29:
	ldr	x8, [x8, _IDS_MSG_UNABLECHANGEPRIORITY@GOTPAGEOFF]
Lloh30:
	ldr	w1, [x8]
	add	x2, sp, #8
	mov	w3, #256
	bl	_LoadStringW
Lloh31:
	adrp	x8, _MB_OK@GOTPAGE
Lloh32:
	ldr	x8, [x8, _MB_OK@GOTPAGEOFF]
	ldr	w0, [x21]
Lloh33:
	ldr	w8, [x8]
Lloh34:
	adrp	x9, _MB_ICONSTOP@GOTPAGE
Lloh35:
	ldr	x9, [x9, _MB_ICONSTOP@GOTPAGEOFF]
Lloh36:
	ldr	w9, [x9]
	orr	w3, w9, w8
	add	x1, sp, #1032
	add	x2, sp, #8
	bl	_MessageBoxW
LBB0_5:
	mov	x0, x20
	bl	_CloseHandle
	b	LBB0_7
LBB0_6:
	add	x0, sp, #1032
	mov	w1, #260
	bl	_GetLastErrorText
	ldr	w0, [x22]
Lloh37:
	adrp	x8, _IDS_MSG_UNABLECHANGEPRIORITY@GOTPAGE
Lloh38:
	ldr	x8, [x8, _IDS_MSG_UNABLECHANGEPRIORITY@GOTPAGEOFF]
Lloh39:
	ldr	w1, [x8]
	add	x2, sp, #8
	mov	w3, #256
	bl	_LoadStringW
Lloh40:
	adrp	x8, _MB_OK@GOTPAGE
Lloh41:
	ldr	x8, [x8, _MB_OK@GOTPAGEOFF]
	ldr	w0, [x21]
Lloh42:
	ldr	w8, [x8]
Lloh43:
	adrp	x9, _MB_ICONSTOP@GOTPAGE
Lloh44:
	ldr	x9, [x9, _MB_ICONSTOP@GOTPAGEOFF]
Lloh45:
	ldr	w9, [x9]
	orr	w3, w9, w8
	add	x1, sp, #1032
	add	x2, sp, #8
	bl	_MessageBoxW
LBB0_7:
	ldur	x8, [x29, #-56]
Lloh46:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh47:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh48:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_9
; %bb.8:
	add	sp, sp, #2080
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_9:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.cfi_endproc
                                        ; -- End function
	.comm	_hInst,4,2                      ; @hInst
	.comm	_IDS_MSG_TASKMGRWARNING,4,2     ; @IDS_MSG_TASKMGRWARNING
	.comm	_IDS_MSG_WARNINGCHANGEPRIORITY,4,2 ; @IDS_MSG_WARNINGCHANGEPRIORITY
	.comm	_hMainWnd,4,2                   ; @hMainWnd
	.comm	_MB_YESNO,4,2                   ; @MB_YESNO
	.comm	_MB_ICONWARNING,4,2             ; @MB_ICONWARNING
	.comm	_IDYES,8,3                      ; @IDYES
	.comm	_PROCESS_SET_INFORMATION,4,2    ; @PROCESS_SET_INFORMATION
	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_IDS_MSG_UNABLECHANGEPRIORITY,4,2 ; @IDS_MSG_UNABLECHANGEPRIORITY
	.comm	_MB_OK,4,2                      ; @MB_OK
	.comm	_MB_ICONSTOP,4,2                ; @MB_ICONSTOP
.subsections_via_symbols
