	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_TaskManager_OnFileNew          ## -- Begin function TaskManager_OnFileNew
	.p2align	4, 0x90
_TaskManager_OnFileNew:                 ## @TaskManager_OnFileNew
	.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	%rbx
	subq	$1192, %rsp                     ## imm = 0x4A8
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	movq	_hInst@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	movq	_IDS_CREATENEWTASK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-192(%rbp), %rdx
	movl	$40, %ecx
	callq	_LoadStringW
	movl	(%r15), %edi
	movq	_IDS_CREATENEWTASK_DESC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-1216(%rbp), %rdx
	movl	$256, %ecx                      ## imm = 0x100
	callq	_LoadStringW
	leaq	l_.str(%rip), %rdi
	callq	_LoadLibraryW
	movl	%eax, %r14d
	movl	%eax, %edi
	movl	$61, %esi
	callq	_GetProcAddress
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%rax, %rbx
	movl	(%r15), %r15d
	movq	_IDI_TASKMANAGER@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_MAKEINTRESOURCEW
	movl	%r15d, %edi
	movl	%eax, %esi
	callq	_LoadIconW
	movl	%eax, %r15d
	movq	_hMainWnd@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_RFF_CALCDIRECTORY@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	leaq	-192(%rbp), %rcx
	leaq	-1216(%rbp), %r8
	movl	%r15d, %esi
	xorl	%edx, %edx
	callq	*%rbx
	movl	%r15d, %edi
	callq	_DeleteObject
LBB0_2:
	movl	%r14d, %edi
	callq	_FreeLibrary
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-32(%rbp), %rax
	jne	LBB0_4
## %bb.3:
	addq	$1192, %rsp                     ## imm = 0x4A8
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_hInst,4,2                      ## @hInst
	.comm	_IDS_CREATENEWTASK,4,2          ## @IDS_CREATENEWTASK
	.comm	_IDS_CREATENEWTASK_DESC,4,2     ## @IDS_CREATENEWTASK_DESC
	.section	__TEXT,__const
	.p2align	2                               ## @.str
l_.str:
	.long	83                              ## 0x53
	.long	72                              ## 0x48
	.long	69                              ## 0x45
	.long	76                              ## 0x4c
	.long	76                              ## 0x4c
	.long	51                              ## 0x33
	.long	50                              ## 0x32
	.long	46                              ## 0x2e
	.long	68                              ## 0x44
	.long	76                              ## 0x4c
	.long	76                              ## 0x4c
	.long	0                               ## 0x0

	.comm	_IDI_TASKMANAGER,4,2            ## @IDI_TASKMANAGER
	.comm	_hMainWnd,4,2                   ## @hMainWnd
	.comm	_RFF_CALCDIRECTORY,4,2          ## @RFF_CALCDIRECTORY
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_TaskManager_OnFileNew          ; -- Begin function TaskManager_OnFileNew
	.p2align	2
_TaskManager_OnFileNew:                 ; @TaskManager_OnFileNew
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [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 w21, -40
	.cfi_offset w22, -48
	sub	sp, sp, #1200
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
Lloh3:
	adrp	x21, _hInst@GOTPAGE
Lloh4:
	ldr	x21, [x21, _hInst@GOTPAGEOFF]
	ldr	w0, [x21]
Lloh5:
	adrp	x8, _IDS_CREATENEWTASK@GOTPAGE
Lloh6:
	ldr	x8, [x8, _IDS_CREATENEWTASK@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	sub	x2, x29, #200
	mov	w3, #40
	bl	_LoadStringW
	ldr	w0, [x21]
Lloh8:
	adrp	x8, _IDS_CREATENEWTASK_DESC@GOTPAGE
Lloh9:
	ldr	x8, [x8, _IDS_CREATENEWTASK_DESC@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	add	x2, sp, #8
	mov	w3, #256
	bl	_LoadStringW
Lloh11:
	adrp	x0, l_.str@PAGE
Lloh12:
	add	x0, x0, l_.str@PAGEOFF
	bl	_LoadLibraryW
	mov	x19, x0
	mov	w1, #61
	bl	_GetProcAddress
	cbz	x0, LBB0_2
; %bb.1:
	mov	x20, x0
	ldr	w21, [x21]
Lloh13:
	adrp	x8, _IDI_TASKMANAGER@GOTPAGE
Lloh14:
	ldr	x8, [x8, _IDI_TASKMANAGER@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
	bl	_MAKEINTRESOURCEW
	mov	x1, x0
	mov	x0, x21
	bl	_LoadIconW
	mov	x21, x0
Lloh16:
	adrp	x8, _hMainWnd@GOTPAGE
Lloh17:
	ldr	x8, [x8, _hMainWnd@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
Lloh19:
	adrp	x8, _RFF_CALCDIRECTORY@GOTPAGE
Lloh20:
	ldr	x8, [x8, _RFF_CALCDIRECTORY@GOTPAGEOFF]
Lloh21:
	ldr	w5, [x8]
	sub	x3, x29, #200
	add	x4, sp, #8
	mov	x1, x21
	mov	x2, #0
	blr	x20
	mov	x0, x21
	bl	_DeleteObject
LBB0_2:
	mov	x0, x19
	bl	_FreeLibrary
	ldur	x8, [x29, #-40]
Lloh22:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh23:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh24:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_4
; %bb.3:
	add	sp, sp, #1200
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_4:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_hInst,4,2                      ; @hInst
	.comm	_IDS_CREATENEWTASK,4,2          ; @IDS_CREATENEWTASK
	.comm	_IDS_CREATENEWTASK_DESC,4,2     ; @IDS_CREATENEWTASK_DESC
	.section	__TEXT,__const
	.p2align	2                               ; @.str
l_.str:
	.long	83                              ; 0x53
	.long	72                              ; 0x48
	.long	69                              ; 0x45
	.long	76                              ; 0x4c
	.long	76                              ; 0x4c
	.long	51                              ; 0x33
	.long	50                              ; 0x32
	.long	46                              ; 0x2e
	.long	68                              ; 0x44
	.long	76                              ; 0x4c
	.long	76                              ; 0x4c
	.long	0                               ; 0x0

	.comm	_IDI_TASKMANAGER,4,2            ; @IDI_TASKMANAGER
	.comm	_hMainWnd,4,2                   ; @hMainWnd
	.comm	_RFF_CALCDIRECTORY,4,2          ; @RFF_CALCDIRECTORY
.subsections_via_symbols
