	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function TH32CreateSnapshot
_TH32CreateSnapshot:                    ## @TH32CreateSnapshot
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %r13
	movq	%r8, %r14
	movl	%esi, %r12d
	movl	%edi, %r15d
	movq	_STATUS_SUCCESS@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	$0, (%rdx)
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movq	$0, (%rcx)
	movq	$0, (%r8)
	movl	$0, (%r9)
	movq	_TH32CS_SNAPHEAPLIST@GOTPCREL(%rip), %rax
	testl	%edi, (%rax)
	je	LBB0_4
## %bb.1:
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edi, %edi
	callq	_RtlCreateQueryDebugBuffer
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%rcx)
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	_RTL_DEBUG_QUERY_HEAPS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%r12d, %edi
	movq	%rax, %rdx
	callq	_RtlQueryProcessDebugInformation
	movq	%rax, %rbx
	jmp	LBB0_4
LBB0_3:
	movq	_STATUS_UNSUCCESSFUL@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
LBB0_4:
	movq	_TH32CS_SNAPMODULE@GOTPCREL(%rip), %rax
	testl	%r15d, (%rax)
	je	LBB0_9
## %bb.5:
	movq	%rbx, %rdi
	callq	_NT_SUCCESS
	testq	%rax, %rax
	je	LBB0_9
## %bb.6:
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edi, %edi
	callq	_RtlCreateQueryDebugBuffer
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%rcx)
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movq	_RTL_DEBUG_QUERY_MODULES@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%r12d, %edi
	movq	%rax, %rdx
	callq	_RtlQueryProcessDebugInformation
	movq	%rax, %rbx
	jmp	LBB0_9
LBB0_8:
	movq	_STATUS_UNSUCCESSFUL@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
LBB0_9:
	movq	_TH32CS_SNAPPROCESS@GOTPCREL(%rip), %rax
	movq	_TH32CS_SNAPTHREAD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	testl	%r15d, %ecx
	je	LBB0_15
## %bb.10:
	movq	%rbx, %rdi
	callq	_NT_SUCCESS
	testq	%rax, %rax
	je	LBB0_15
## %bb.11:
	movq	_PAGE_READWRITE@GOTPCREL(%rip), %r12
	movq	_STATUS_INFO_LENGTH_MISMATCH@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	addl	$65536, (%r13)                  ## imm = 0x10000
	xorl	%eax, %eax
	callq	_NtCurrentProcess
	movq	_MEM_COMMIT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r8d
	movl	(%r12), %r9d
	movl	%eax, %edi
	movq	%r14, %rsi
	xorl	%edx, %edx
	movq	%r13, %rcx
	callq	_NtAllocateVirtualMemory
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_NT_SUCCESS
	testq	%rax, %rax
	je	LBB0_15
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	_SystemProcessInformation@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%r14), %rsi
	movl	(%r13), %edx
	xorl	%ecx, %ecx
	callq	_NtQuerySystemInformation
	cmpq	(%r15), %rax
	jne	LBB0_14
## %bb.18:                              ##   in Loop: Header=BB0_12 Depth=1
	xorl	%eax, %eax
	callq	_NtCurrentProcess
	movq	_MEM_RELEASE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%eax, %edi
	movq	%r14, %rsi
	movq	%r13, %rdx
	callq	_NtFreeVirtualMemory
	movq	$0, (%r14)
	jmp	LBB0_12
LBB0_14:
	movq	%rax, %rbx
LBB0_15:
	movq	%rbx, %rdi
	callq	_NT_SUCCESS
	testq	%rax, %rax
	jne	LBB0_17
## %bb.16:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rdi
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rsi
	movq	(%r14), %rdx
	movl	(%r13), %ecx
	callq	_TH32FreeAllocatedResources
LBB0_17:
	movq	%rbx, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_STATUS_SUCCESS,8,3             ## @STATUS_SUCCESS
	.comm	_TH32CS_SNAPHEAPLIST,4,2        ## @TH32CS_SNAPHEAPLIST
	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_RTL_DEBUG_QUERY_HEAPS,4,2      ## @RTL_DEBUG_QUERY_HEAPS
	.comm	_STATUS_UNSUCCESSFUL,8,3        ## @STATUS_UNSUCCESSFUL
	.comm	_TH32CS_SNAPMODULE,4,2          ## @TH32CS_SNAPMODULE
	.comm	_RTL_DEBUG_QUERY_MODULES,4,2    ## @RTL_DEBUG_QUERY_MODULES
	.comm	_TH32CS_SNAPPROCESS,4,2         ## @TH32CS_SNAPPROCESS
	.comm	_TH32CS_SNAPTHREAD,4,2          ## @TH32CS_SNAPTHREAD
	.comm	_MEM_COMMIT,4,2                 ## @MEM_COMMIT
	.comm	_PAGE_READWRITE,4,2             ## @PAGE_READWRITE
	.comm	_SystemProcessInformation,4,2   ## @SystemProcessInformation
	.comm	_STATUS_INFO_LENGTH_MISMATCH,8,3 ## @STATUS_INFO_LENGTH_MISMATCH
	.comm	_MEM_RELEASE,4,2                ## @MEM_RELEASE
	.no_dead_strip	_TH32CreateSnapshot
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function TH32CreateSnapshot
_TH32CreateSnapshot:                    ; @TH32CreateSnapshot
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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 w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x5
	mov	x20, x4
	mov	x21, x3
	mov	x22, x2
	mov	x25, x1
	mov	x24, x0
Lloh0:
	adrp	x8, _STATUS_SUCCESS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _STATUS_SUCCESS@GOTPAGEOFF]
Lloh2:
	ldr	x23, [x8]
	str	xzr, [x2]
	str	xzr, [x3]
	str	xzr, [x4]
	str	wzr, [x5]
Lloh3:
	adrp	x8, _TH32CS_SNAPHEAPLIST@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TH32CS_SNAPHEAPLIST@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x26, _FALSE@GOTPAGE
Lloh7:
	ldr	x26, [x26, _FALSE@GOTPAGEOFF]
	tst	w8, w0
	b.eq	LBB0_4
; %bb.1:
	ldr	w1, [x26]
	mov	w0, #0
	bl	_RtlCreateQueryDebugBuffer
	str	x0, [x22]
	cbz	x0, LBB0_3
; %bb.2:
	mov	x2, x0
Lloh8:
	adrp	x8, _RTL_DEBUG_QUERY_HEAPS@GOTPAGE
Lloh9:
	ldr	x8, [x8, _RTL_DEBUG_QUERY_HEAPS@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x25
	bl	_RtlQueryProcessDebugInformation
	mov	x23, x0
	b	LBB0_4
LBB0_3:
Lloh11:
	adrp	x8, _STATUS_UNSUCCESSFUL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _STATUS_UNSUCCESSFUL@GOTPAGEOFF]
Lloh13:
	ldr	x23, [x8]
LBB0_4:
Lloh14:
	adrp	x8, _TH32CS_SNAPMODULE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _TH32CS_SNAPMODULE@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	tst	w8, w24
	b.eq	LBB0_9
; %bb.5:
	mov	x0, x23
	bl	_NT_SUCCESS
	cbz	x0, LBB0_9
; %bb.6:
	ldr	w1, [x26]
	mov	w0, #0
	bl	_RtlCreateQueryDebugBuffer
	str	x0, [x21]
	cbz	x0, LBB0_8
; %bb.7:
	mov	x2, x0
Lloh17:
	adrp	x8, _RTL_DEBUG_QUERY_MODULES@GOTPAGE
Lloh18:
	ldr	x8, [x8, _RTL_DEBUG_QUERY_MODULES@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	mov	x0, x25
	bl	_RtlQueryProcessDebugInformation
	mov	x23, x0
	b	LBB0_9
LBB0_8:
Lloh20:
	adrp	x8, _STATUS_UNSUCCESSFUL@GOTPAGE
Lloh21:
	ldr	x8, [x8, _STATUS_UNSUCCESSFUL@GOTPAGEOFF]
Lloh22:
	ldr	x23, [x8]
LBB0_9:
Lloh23:
	adrp	x8, _TH32CS_SNAPPROCESS@GOTPAGE
Lloh24:
	ldr	x8, [x8, _TH32CS_SNAPPROCESS@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
Lloh26:
	adrp	x9, _TH32CS_SNAPTHREAD@GOTPAGE
Lloh27:
	ldr	x9, [x9, _TH32CS_SNAPTHREAD@GOTPAGEOFF]
Lloh28:
	ldr	w9, [x9]
	orr	w8, w9, w8
	tst	w8, w24
	b.eq	LBB0_16
; %bb.10:
	mov	x0, x23
	bl	_NT_SUCCESS
	cbz	x0, LBB0_16
; %bb.11:
Lloh29:
	adrp	x24, _MEM_COMMIT@GOTPAGE
Lloh30:
	ldr	x24, [x24, _MEM_COMMIT@GOTPAGEOFF]
Lloh31:
	adrp	x25, _PAGE_READWRITE@GOTPAGE
Lloh32:
	ldr	x25, [x25, _PAGE_READWRITE@GOTPAGEOFF]
Lloh33:
	adrp	x26, _SystemProcessInformation@GOTPAGE
Lloh34:
	ldr	x26, [x26, _SystemProcessInformation@GOTPAGEOFF]
Lloh35:
	adrp	x27, _STATUS_INFO_LENGTH_MISMATCH@GOTPAGE
Lloh36:
	ldr	x27, [x27, _STATUS_INFO_LENGTH_MISMATCH@GOTPAGEOFF]
Lloh37:
	adrp	x28, _MEM_RELEASE@GOTPAGE
Lloh38:
	ldr	x28, [x28, _MEM_RELEASE@GOTPAGEOFF]
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x19]
	add	w8, w8, #16, lsl #12            ; =65536
	str	w8, [x19]
	bl	_NtCurrentProcess
	ldr	w4, [x24]
	ldr	w5, [x25]
	mov	x1, x20
	mov	w2, #0
	mov	x3, x19
	bl	_NtAllocateVirtualMemory
	mov	x23, x0
	bl	_NT_SUCCESS
	cbz	x0, LBB0_16
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	w0, [x26]
	ldr	x1, [x20]
	ldr	w2, [x19]
	mov	x3, #0
	bl	_NtQuerySystemInformation
	ldr	x8, [x27]
	cmp	x0, x8
	b.ne	LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_12 Depth=1
	bl	_NtCurrentProcess
	ldr	w3, [x28]
	mov	x1, x20
	mov	x2, x19
	bl	_NtFreeVirtualMemory
	str	xzr, [x20]
	b	LBB0_12
LBB0_15:
	mov	x23, x0
LBB0_16:
	mov	x0, x23
	bl	_NT_SUCCESS
	cbnz	x0, LBB0_18
; %bb.17:
	ldr	x0, [x22]
	ldr	x1, [x21]
	ldr	x2, [x20]
	ldr	w3, [x19]
	bl	_TH32FreeAllocatedResources
LBB0_18:
	mov	x0, x23
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh37, Lloh38
	.loh AdrpLdrGot	Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_STATUS_SUCCESS,8,3             ; @STATUS_SUCCESS
	.comm	_TH32CS_SNAPHEAPLIST,4,2        ; @TH32CS_SNAPHEAPLIST
	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_RTL_DEBUG_QUERY_HEAPS,4,2      ; @RTL_DEBUG_QUERY_HEAPS
	.comm	_STATUS_UNSUCCESSFUL,8,3        ; @STATUS_UNSUCCESSFUL
	.comm	_TH32CS_SNAPMODULE,4,2          ; @TH32CS_SNAPMODULE
	.comm	_RTL_DEBUG_QUERY_MODULES,4,2    ; @RTL_DEBUG_QUERY_MODULES
	.comm	_TH32CS_SNAPPROCESS,4,2         ; @TH32CS_SNAPPROCESS
	.comm	_TH32CS_SNAPTHREAD,4,2          ; @TH32CS_SNAPTHREAD
	.comm	_MEM_COMMIT,4,2                 ; @MEM_COMMIT
	.comm	_PAGE_READWRITE,4,2             ; @PAGE_READWRITE
	.comm	_SystemProcessInformation,4,2   ; @SystemProcessInformation
	.comm	_STATUS_INFO_LENGTH_MISMATCH,8,3 ; @STATUS_INFO_LENGTH_MISMATCH
	.comm	_MEM_RELEASE,4,2                ; @MEM_RELEASE
	.no_dead_strip	_TH32CreateSnapshot
.subsections_via_symbols
