	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rescan_pid_table               ## -- Begin function rescan_pid_table
	.p2align	4, 0x90
_rescan_pid_table:                      ## @rescan_pid_table
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_CData@GOTPCREL(%rip), %r13
	movq	(%r13), %rax
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	_am_monitor@GOTPCREL(%rip), %rcx
	cmpq	$0, (%rcx)
	je	LBB0_4
## %bb.3:
	movq	$0, 8(%rax)
LBB0_4:
	movq	_prev_active_pids@GOTPCREL(%rip), %r14
	movq	(%r14), %rdi
	movq	_active_pids@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	_active_pnum@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	shll	$2, %edx
	callq	_memcpy
	movq	(%r14), %rax
	movslq	(%rbx), %rcx
	movl	$2147483647, (%rax,%rcx,4)      ## imm = 0x7FFFFFFF
	movq	_CDATA_PIDS@GOTPCREL(%rip), %r15
	cmpl	$0, (%r15)
	jle	LBB0_5
## %bb.12:
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	leaq	L_.str(%rip), %r14
	xorl	%r12d, %r12d
	xorl	%r13d, %r13d
	jmp	LBB0_13
LBB0_1:
	movl	$-1, %edx
	jmp	LBB0_11
LBB0_5:
	xorl	%r12d, %r12d
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_7
LBB0_24:                                ##   in Loop: Header=BB0_13 Depth=1
	movl	$1, %edi
	leaq	L_.str.1(%rip), %rsi
	movl	%r13d, %edx
	callq	_vkprintf
LBB0_25:                                ##   in Loop: Header=BB0_13 Depth=1
	movq	_active_pids@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movslq	%edx, %rcx
	incl	%edx
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movl	%r13d, (%rax,%rcx,4)
	.p2align	4, 0x90
LBB0_26:                                ##   in Loop: Header=BB0_13 Depth=1
	incl	%r13d
	cmpl	(%r15), %r13d
	jge	LBB0_6
LBB0_13:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_21 Depth 2
	movl	%r13d, %edi
	callq	_get_proc_status
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_assert
	movq	(%rbx), %rax
	cmpl	%r13d, (%rax)
	jne	LBB0_26
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=1
	cmpl	%r13d, 24(%rax)
	jne	LBB0_26
## %bb.15:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	8(%rax), %rcx
	testq	%rcx, %rcx
	jle	LBB0_26
## %bb.16:                              ##   in Loop: Header=BB0_13 Depth=1
	cmpq	%rcx, 32(%rax)
	jne	LBB0_26
## %bb.17:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	_CD_ZOMBIE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, 16(%rax)
	jne	LBB0_26
## %bb.18:                              ##   in Loop: Header=BB0_13 Depth=1
	testl	%ecx, 40(%rax)
	jne	LBB0_26
## %bb.19:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	_prev_active_pids@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	%r12d, %rbx
	movl	(%rax,%rbx,4), %edx
	cmpl	%r13d, %edx
	jge	LBB0_22
## %bb.20:                              ##   in Loop: Header=BB0_13 Depth=1
	incq	%rbx
	movq	%r14, %r15
	.p2align	4, 0x90
LBB0_21:                                ##   Parent Loop BB0_13 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	$1, %edi
	movq	%r15, %rsi
	callq	_vkprintf
	movq	_CData@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	$1, (%rax)
	movq	_prev_active_pids@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax,%rbx,4), %edx
	incl	%r12d
	incq	%rbx
	cmpl	%r13d, %edx
	jl	LBB0_21
LBB0_22:                                ##   in Loop: Header=BB0_13 Depth=1
	cmpl	%r13d, %edx
	movq	_CDATA_PIDS@GOTPCREL(%rip), %r15
	jne	LBB0_24
## %bb.23:                              ##   in Loop: Header=BB0_13 Depth=1
	incl	%r12d
	jmp	LBB0_25
LBB0_6:
	movq	_prev_active_pids@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	movq	_CData@GOTPCREL(%rip), %r13
LBB0_7:
	movslq	%r12d, %rcx
	movl	(%rax,%rcx,4), %edx
	cmpl	$2147483647, %edx               ## imm = 0x7FFFFFFF
	je	LBB0_10
## %bb.8:
	leaq	4(,%rcx,4), %rbx
	leaq	L_.str(%rip), %r15
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movl	$1, %edi
	movq	%r15, %rsi
	callq	_vkprintf
	movq	(%r13), %rax
	movl	$1, (%rax)
	movq	(%r14), %rax
	movl	(%rax,%rbx), %edx
	addq	$4, %rbx
	cmpl	$2147483647, %edx               ## imm = 0x7FFFFFFF
	jne	LBB0_9
LBB0_10:
	movq	_active_pnum@GOTPCREL(%rip), %rax
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movl	%edx, (%rax)
	movq	_active_pids@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	%edx, %rcx
	movl	$2147483647, (%rax,%rcx,4)      ## imm = 0x7FFFFFFF
LBB0_11:
	movl	%edx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CData,8,3                      ## @CData
	.comm	_am_monitor,8,3                 ## @am_monitor
	.comm	_prev_active_pids,8,3           ## @prev_active_pids
	.comm	_active_pids,8,3                ## @active_pids
	.comm	_active_pnum,4,2                ## @active_pnum
	.comm	_CDATA_PIDS,4,2                 ## @CDATA_PIDS
	.comm	_CD_ZOMBIE,4,2                  ## @CD_ZOMBIE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"monitor: process %d deleted\n"

L_.str.1:                               ## @.str.1
	.asciz	"monitor: found new process %d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rescan_pid_table               ; -- Begin function rescan_pid_table
	.p2align	2
_rescan_pid_table:                      ; @rescan_pid_table
	.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
Lloh0:
	adrp	x24, _CData@GOTPAGE
Lloh1:
	ldr	x24, [x24, _CData@GOTPAGEOFF]
	ldr	x8, [x24]
	cbz	x8, LBB0_5
; %bb.1:
Lloh2:
	adrp	x9, _am_monitor@GOTPAGE
Lloh3:
	ldr	x9, [x9, _am_monitor@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cbz	x9, LBB0_3
; %bb.2:
	str	xzr, [x8, #8]
LBB0_3:
Lloh5:
	adrp	x26, _prev_active_pids@GOTPAGE
Lloh6:
	ldr	x26, [x26, _prev_active_pids@GOTPAGEOFF]
Lloh7:
	adrp	x28, _active_pids@GOTPAGE
Lloh8:
	ldr	x28, [x28, _active_pids@GOTPAGEOFF]
	ldr	x0, [x26]
	ldr	x1, [x28]
Lloh9:
	adrp	x27, _active_pnum@GOTPAGE
Lloh10:
	ldr	x27, [x27, _active_pnum@GOTPAGEOFF]
	ldr	w8, [x27]
	lsl	w2, w8, #2
	bl	_memcpy
	ldr	x8, [x26]
	ldrsw	x9, [x27]
	mov	w10, #2147483647
	str	w10, [x8, x9, lsl #2]
Lloh11:
	adrp	x25, _CDATA_PIDS@GOTPAGE
Lloh12:
	ldr	x25, [x25, _CDATA_PIDS@GOTPAGEOFF]
	ldr	w9, [x25]
	cmp	w9, #1
	b.lt	LBB0_6
; %bb.4:
	mov	w19, #0
	mov	w22, #0
	mov	w20, #0
Lloh13:
	adrp	x21, l_.str@PAGE
Lloh14:
	add	x21, x21, l_.str@PAGEOFF
	mov	w28, #1
	b	LBB0_10
LBB0_5:
	mov	w19, #-1
	b	LBB0_26
LBB0_6:
	mov	w22, #0
	mov	w19, #0
	b	LBB0_22
LBB0_7:                                 ;   in Loop: Header=BB0_10 Depth=1
	mov	w0, #1
Lloh15:
	adrp	x1, l_.str.1@PAGE
Lloh16:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x20
	bl	_vkprintf
LBB0_8:                                 ;   in Loop: Header=BB0_10 Depth=1
Lloh17:
	adrp	x8, _active_pids@GOTPAGE
Lloh18:
	ldr	x8, [x8, _active_pids@GOTPAGEOFF]
Lloh19:
	ldr	x8, [x8]
	str	w20, [x8, w19, sxtw #2]
	add	w19, w19, #1
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=1
	add	w20, w20, #1
	ldr	w8, [x25]
	cmp	w20, w8
	b.ge	LBB0_21
LBB0_10:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_18 Depth 2
	mov	x0, x20
	bl	_get_proc_status
	mov	x23, x0
	bl	_assert
	ldr	x8, [x23]
	ldr	w9, [x8]
	cmp	w9, w20
	b.ne	LBB0_9
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	w9, [x8, #24]
	cmp	w9, w20
	b.ne	LBB0_9
; %bb.12:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	x9, [x8, #8]
	cmp	x9, #1
	b.lt	LBB0_9
; %bb.13:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	x10, [x8, #32]
	cmp	x10, x9
	b.ne	LBB0_9
; %bb.14:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	w10, [x8, #16]
Lloh20:
	adrp	x9, _CD_ZOMBIE@GOTPAGE
Lloh21:
	ldr	x9, [x9, _CD_ZOMBIE@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	tst	w9, w10
	b.ne	LBB0_9
; %bb.15:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	w8, [x8, #40]
	tst	w8, w9
	b.ne	LBB0_9
; %bb.16:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	x8, [x26]
	ldr	w2, [x8, w22, sxtw #2]
	cmp	w2, w20
	b.ge	LBB0_19
; %bb.17:                               ;   in Loop: Header=BB0_10 Depth=1
	sxtw	x8, w22
	lsl	x8, x8, #2
	add	x23, x8, #4
LBB0_18:                                ;   Parent Loop BB0_10 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	w0, #1
	mov	x1, x21
	bl	_vkprintf
	ldr	x8, [x24]
	str	w28, [x8]
	ldr	x8, [x26]
	ldr	w2, [x8, x23]
	add	w22, w22, #1
	add	x23, x23, #4
	cmp	w2, w20
	b.lt	LBB0_18
LBB0_19:                                ;   in Loop: Header=BB0_10 Depth=1
	cmp	w2, w20
	b.ne	LBB0_7
; %bb.20:                               ;   in Loop: Header=BB0_10 Depth=1
	add	w22, w22, #1
	b	LBB0_8
LBB0_21:
	ldr	x8, [x26]
Lloh23:
	adrp	x28, _active_pids@GOTPAGE
Lloh24:
	ldr	x28, [x28, _active_pids@GOTPAGEOFF]
	mov	w10, #2147483647
LBB0_22:
	ldr	w2, [x8, w22, sxtw #2]
	cmp	w2, w10
	b.eq	LBB0_25
; %bb.23:
                                        ; kill: def $w22 killed $w22 killed $x22 def $x22
	sxtw	x8, w22
	lsl	x8, x8, #2
	add	x21, x8, #4
Lloh25:
	adrp	x20, l_.str@PAGE
Lloh26:
	add	x20, x20, l_.str@PAGEOFF
	mov	w22, #1
	mov	w23, #2147483647
LBB0_24:                                ; =>This Inner Loop Header: Depth=1
	mov	w0, #1
	mov	x1, x20
	bl	_vkprintf
	ldr	x8, [x24]
	str	w22, [x8]
	ldr	x8, [x26]
	ldr	w2, [x8, x21]
	add	x21, x21, #4
	cmp	w2, w23
	b.ne	LBB0_24
LBB0_25:
	str	w19, [x27]
	ldr	x8, [x28]
	mov	w9, #2147483647
	str	w9, [x8, w19, sxtw #2]
LBB0_26:
	mov	x0, x19
	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	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_CData,8,3                      ; @CData
	.comm	_am_monitor,8,3                 ; @am_monitor
	.comm	_prev_active_pids,8,3           ; @prev_active_pids
	.comm	_active_pids,8,3                ; @active_pids
	.comm	_active_pnum,4,2                ; @active_pnum
	.comm	_CDATA_PIDS,4,2                 ; @CDATA_PIDS
	.comm	_CD_ZOMBIE,4,2                  ; @CD_ZOMBIE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"monitor: process %d deleted\n"

l_.str.1:                               ; @.str.1
	.asciz	"monitor: found new process %d\n"

.subsections_via_symbols
