	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ShutdownProcessTreeHelper      ## -- Begin function ShutdownProcessTreeHelper
	.p2align	4, 0x90
_ShutdownProcessTreeHelper:             ## @ShutdownProcessTreeHelper
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rsi, -88(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r13
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -80(%rbp)
	movaps	%xmm0, -64(%rbp)
	movl	$32, -80(%rbp)
	leaq	-80(%rbp), %rsi
	callq	_Process32FirstW
	testq	%rax, %rax
	je	LBB0_9
## %bb.1:
	movq	_PROCESS_QUERY_INFORMATION@GOTPCREL(%rip), %r14
	leaq	-80(%rbp), %r12
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	callq	_CloseHandle
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r13, %rdi
	movq	%r12, %rsi
	callq	_Process32NextW
	testq	%rax, %rax
	je	LBB0_9
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%r15, -72(%rbp)
	jne	LBB0_8
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r14), %edi
	movq	_PROCESS_TERMINATE@GOTPCREL(%rip), %rax
	orl	(%rax), %edi
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-64(%rbp), %rdx
	callq	_OpenProcess
	testq	%rax, %rax
	je	LBB0_8
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IsCriticalProcess
	testq	%rax, %rax
	jne	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-64(%rbp), %rdx
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_ShutdownProcessTreeHelper
	testl	%eax, %eax
	jne	LBB0_7
## %bb.6:
	movq	%rbx, %rdi
	callq	_CloseHandle
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_10
LBB0_9:
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	xorl	%esi, %esi
	callq	_TerminateProcess
LBB0_10:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PROCESS_TERMINATE,4,2          ## @PROCESS_TERMINATE
	.comm	_PROCESS_QUERY_INFORMATION,4,2  ## @PROCESS_QUERY_INFORMATION
	.comm	_FALSE,4,2                      ## @FALSE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ShutdownProcessTreeHelper      ; -- Begin function ShutdownProcessTreeHelper
	.p2align	2
_ShutdownProcessTreeHelper:             ; @ShutdownProcessTreeHelper
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	mov	x20, x2
	mov	x19, x1
	mov	x21, x0
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [sp]
	mov	w8, #32
	str	w8, [sp]
	mov	x1, sp
	bl	_Process32FirstW
	cbz	x0, LBB0_9
; %bb.1:
Lloh0:
	adrp	x24, _PROCESS_TERMINATE@GOTPAGE
Lloh1:
	ldr	x24, [x24, _PROCESS_TERMINATE@GOTPAGEOFF]
Lloh2:
	adrp	x25, _PROCESS_QUERY_INFORMATION@GOTPAGE
Lloh3:
	ldr	x25, [x25, _PROCESS_QUERY_INFORMATION@GOTPAGEOFF]
Lloh4:
	adrp	x23, _FALSE@GOTPAGE
Lloh5:
	ldr	x23, [x23, _FALSE@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x22
	bl	_CloseHandle
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x1, sp
	mov	x0, x21
	bl	_Process32NextW
	cbz	x0, LBB0_9
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [sp, #8]
	cmp	x8, x20
	b.ne	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x24]
	ldr	w9, [x25]
	orr	w0, w9, w8
	ldr	w1, [x23]
	ldr	x2, [sp, #16]
	bl	_OpenProcess
	cbz	x0, LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x22, x0
	bl	_IsCriticalProcess
	cbnz	x0, LBB0_2
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x2, [sp, #16]
	mov	x0, x21
	mov	x1, x22
	bl	_ShutdownProcessTreeHelper
	cbnz	w0, LBB0_2
; %bb.8:
	mov	x0, x22
	bl	_CloseHandle
	ldr	w0, [x23]
	b	LBB0_10
LBB0_9:
	mov	x0, x19
	mov	w1, #0
	bl	_TerminateProcess
LBB0_10:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_PROCESS_TERMINATE,4,2          ; @PROCESS_TERMINATE
	.comm	_PROCESS_QUERY_INFORMATION,4,2  ; @PROCESS_QUERY_INFORMATION
	.comm	_FALSE,4,2                      ; @FALSE
.subsections_via_symbols
