	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ProcessPage_OnSetAffinity      ## -- Begin function ProcessPage_OnSetAffinity
	.p2align	4, 0x90
_ProcessPage_OnSetAffinity:             ## @ProcessPage_OnSetAffinity
	.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	$2080, %rsp                     ## imm = 0x820
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -24(%rbp)
	xorl	%eax, %eax
	callq	_GetSelectedProcessId
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movq	_PROCESS_QUERY_INFORMATION@GOTPCREL(%rip), %rcx
	movq	_PROCESS_SET_INFORMATION@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edi
	orl	(%rcx), %edi
	movq	_FALSE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%rax, %rdx
	callq	_OpenProcess
	movq	_hProcessAffinityHandle@GOTPCREL(%rip), %r14
	movq	%rax, (%r14)
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	_hInst@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_IDD_AFFINITY_DIALOG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_MAKEINTRESOURCEW
	movq	_hMainWnd@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	_AffinityDialogWndProc@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_DialogBoxW
	movq	(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_5
## %bb.4:
	callq	_CloseHandle
	movq	$0, (%r14)
	jmp	LBB0_5
LBB0_2:
	leaq	-1072(%rbp), %r14
	movq	%r14, %rdi
	movl	$260, %esi                      ## imm = 0x104
	callq	_GetLastErrorText
	movq	_hInst@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_IDS_MSG_ACCESSPROCESSAFF@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-2096(%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_5:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-24(%rbp), %rax
	jne	LBB0_7
## %bb.6:
	addq	$2080, %rsp                     ## imm = 0x820
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_7:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_PROCESS_QUERY_INFORMATION,4,2  ## @PROCESS_QUERY_INFORMATION
	.comm	_PROCESS_SET_INFORMATION,4,2    ## @PROCESS_SET_INFORMATION
	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_hProcessAffinityHandle,8,3     ## @hProcessAffinityHandle
	.comm	_hInst,4,2                      ## @hInst
	.comm	_IDS_MSG_ACCESSPROCESSAFF,4,2   ## @IDS_MSG_ACCESSPROCESSAFF
	.comm	_hMainWnd,4,2                   ## @hMainWnd
	.comm	_MB_OK,4,2                      ## @MB_OK
	.comm	_MB_ICONSTOP,4,2                ## @MB_ICONSTOP
	.comm	_IDD_AFFINITY_DIALOG,4,2        ## @IDD_AFFINITY_DIALOG
	.comm	_AffinityDialogWndProc,4,2      ## @AffinityDialogWndProc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ProcessPage_OnSetAffinity      ; -- Begin function ProcessPage_OnSetAffinity
	.p2align	2
_ProcessPage_OnSetAffinity:             ; @ProcessPage_OnSetAffinity
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w27, -40
	.cfi_offset w28, -48
	sub	sp, sp, #2080
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
	bl	_GetSelectedProcessId
	cbz	x0, LBB0_5
; %bb.1:
	mov	x2, x0
Lloh3:
	adrp	x8, _PROCESS_QUERY_INFORMATION@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PROCESS_QUERY_INFORMATION@GOTPAGEOFF]
Lloh5:
	adrp	x9, _PROCESS_SET_INFORMATION@GOTPAGE
Lloh6:
	ldr	x9, [x9, _PROCESS_SET_INFORMATION@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
Lloh8:
	ldr	w9, [x9]
	orr	w0, w9, w8
Lloh9:
	adrp	x8, _FALSE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	bl	_OpenProcess
Lloh12:
	adrp	x20, _hProcessAffinityHandle@GOTPAGE
Lloh13:
	ldr	x20, [x20, _hProcessAffinityHandle@GOTPAGEOFF]
	str	x0, [x20]
	cbz	x0, LBB0_4
; %bb.2:
Lloh14:
	adrp	x8, _hInst@GOTPAGE
Lloh15:
	ldr	x8, [x8, _hInst@GOTPAGEOFF]
Lloh16:
	ldr	w19, [x8]
Lloh17:
	adrp	x8, _IDD_AFFINITY_DIALOG@GOTPAGE
Lloh18:
	ldr	x8, [x8, _IDD_AFFINITY_DIALOG@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
	bl	_MAKEINTRESOURCEW
	mov	x1, x0
Lloh20:
	adrp	x8, _hMainWnd@GOTPAGE
Lloh21:
	ldr	x8, [x8, _hMainWnd@GOTPAGEOFF]
Lloh22:
	ldr	w2, [x8]
Lloh23:
	adrp	x8, _AffinityDialogWndProc@GOTPAGE
Lloh24:
	ldr	x8, [x8, _AffinityDialogWndProc@GOTPAGEOFF]
Lloh25:
	ldr	w3, [x8]
	mov	x0, x19
	bl	_DialogBoxW
	ldr	x0, [x20]
	cbz	x0, LBB0_5
; %bb.3:
	bl	_CloseHandle
	str	xzr, [x20]
	b	LBB0_5
LBB0_4:
	add	x0, sp, #1032
	mov	w1, #260
	bl	_GetLastErrorText
Lloh26:
	adrp	x8, _hInst@GOTPAGE
Lloh27:
	ldr	x8, [x8, _hInst@GOTPAGEOFF]
Lloh28:
	ldr	w0, [x8]
Lloh29:
	adrp	x8, _IDS_MSG_ACCESSPROCESSAFF@GOTPAGE
Lloh30:
	ldr	x8, [x8, _IDS_MSG_ACCESSPROCESSAFF@GOTPAGEOFF]
Lloh31:
	ldr	w1, [x8]
	add	x2, sp, #8
	mov	w3, #256
	bl	_LoadStringW
Lloh32:
	adrp	x8, _hMainWnd@GOTPAGE
Lloh33:
	ldr	x8, [x8, _hMainWnd@GOTPAGEOFF]
Lloh34:
	adrp	x9, _MB_OK@GOTPAGE
Lloh35:
	ldr	x9, [x9, _MB_OK@GOTPAGEOFF]
Lloh36:
	ldr	w0, [x8]
Lloh37:
	ldr	w8, [x9]
Lloh38:
	adrp	x9, _MB_ICONSTOP@GOTPAGE
Lloh39:
	ldr	x9, [x9, _MB_ICONSTOP@GOTPAGEOFF]
Lloh40:
	ldr	w9, [x9]
	orr	w3, w9, w8
	add	x1, sp, #1032
	add	x2, sp, #8
	bl	_MessageBoxW
LBB0_5:
	ldur	x8, [x29, #-40]
Lloh41:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh42:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh43:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_7
; %bb.6:
	add	sp, sp, #2080
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_7:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh7
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh36
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.cfi_endproc
                                        ; -- End function
	.comm	_PROCESS_QUERY_INFORMATION,4,2  ; @PROCESS_QUERY_INFORMATION
	.comm	_PROCESS_SET_INFORMATION,4,2    ; @PROCESS_SET_INFORMATION
	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_hProcessAffinityHandle,8,3     ; @hProcessAffinityHandle
	.comm	_hInst,4,2                      ; @hInst
	.comm	_IDS_MSG_ACCESSPROCESSAFF,4,2   ; @IDS_MSG_ACCESSPROCESSAFF
	.comm	_hMainWnd,4,2                   ; @hMainWnd
	.comm	_MB_OK,4,2                      ; @MB_OK
	.comm	_MB_ICONSTOP,4,2                ; @MB_ICONSTOP
	.comm	_IDD_AFFINITY_DIALOG,4,2        ; @IDD_AFFINITY_DIALOG
	.comm	_AffinityDialogWndProc,4,2      ; @AffinityDialogWndProc
.subsections_via_symbols
