	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rd_reset                       ## -- Begin function rd_reset
	.p2align	4, 0x90
_rd_reset:                              ## @rd_reset
	.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	%rdi, %r14
	movq	_RD_ERR@GOTPCREL(%rip), %r12
	movl	(%r12), %r13d
	movq	_KERN_PROC_PID@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movl	(%rdi), %ebx
	movl	4(%rdi), %edi
	callq	_proc_getpid
	leaq	-44(%rbp), %rcx
	movl	%ebx, %edi
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	_procstat_getprocs
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	movq	%rax, %r15
	xorl	%edi, %edi
	cmpl	$1, -44(%rbp)
	sete	%dil
	callq	_assert
	movl	(%r14), %edi
	leaq	-44(%rbp), %rdx
	movq	%r15, %rsi
	callq	_procstat_getauxv
	testq	%rax, %rax
	je	LBB0_25
## %bb.2:
	movq	%rax, %r12
	movl	-44(%rbp), %eax
	testl	%eax, %eax
	jle	LBB0_7
## %bb.3:
	movq	_AT_BASE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	movq	%r12, %rdx
	addq	$8, %rdx
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%rsi, -8(%rdx)
	je	LBB0_9
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	incq	%rcx
	addq	$16, %rdx
	cmpq	%rcx, %rax
	jne	LBB0_4
	jmp	LBB0_24
LBB0_6:
	movl	(%r12), %r13d
	jmp	LBB0_26
LBB0_7:
	movl	%r13d, %ebx
	xorl	%ecx, %ecx
	xorl	%r13d, %r13d
	cmpl	%eax, %ecx
	jne	LBB0_10
	jmp	LBB0_8
LBB0_9:
	movl	%r13d, %ebx
	movq	(%rdx), %r13
	cmpl	%eax, %ecx
	je	LBB0_8
LBB0_10:
	movl	(%r14), %edi
	leaq	-44(%rbp), %rdx
	movq	%r15, %rsi
	callq	_procstat_getvmmap
	testq	%rax, %rax
	je	LBB0_8
## %bb.11:
	movl	-44(%rbp), %edi
	testl	%edi, %edi
	jle	LBB0_17
## %bb.12:
	movq	%rax, %rdx
	addq	$8, %rdx
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	cmpq	%r13, -8(%rdx)
	je	LBB0_19
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=1
	incq	%rcx
	addq	$16, %rdx
	cmpq	%rcx, %rdi
	jne	LBB0_13
	jmp	LBB0_18
LBB0_8:
	movl	%ebx, %r13d
	jmp	LBB0_24
LBB0_17:
	xorl	%ecx, %ecx
	xorl	%esi, %esi
	cmpl	%edi, %ecx
	jne	LBB0_20
LBB0_18:
	movl	%ebx, %r13d
	jmp	LBB0_23
LBB0_19:
	movq	(%rdx), %rsi
	cmpl	%edi, %ecx
	je	LBB0_18
LBB0_20:
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdi
	movq	%r13, %rdx
	callq	_rtld_syms
	testq	%rax, %rax
	movl	%ebx, %r13d
	jne	LBB0_22
## %bb.21:
	movq	_RD_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
LBB0_22:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
LBB0_23:
	movl	(%r14), %edi
	movq	%rax, %rsi
	callq	_procstat_freevmmap
LBB0_24:
	movl	(%r14), %edi
	movq	%r12, %rsi
	callq	_procstat_freeauxv
LBB0_25:
	movl	(%r14), %edi
	movq	%r15, %rsi
	callq	_procstat_freeprocs
LBB0_26:
	movl	%r13d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RD_ERR,4,2                     ## @RD_ERR
	.comm	_KERN_PROC_PID,4,2              ## @KERN_PROC_PID
	.comm	_AT_BASE,8,3                    ## @AT_BASE
	.comm	_RD_OK,4,2                      ## @RD_OK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rd_reset                       ; -- Begin function rd_reset
	.p2align	2
_rd_reset:                              ; @rd_reset
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x20, x0
Lloh0:
	adrp	x23, _RD_ERR@GOTPAGE
Lloh1:
	ldr	x23, [x23, _RD_ERR@GOTPAGEOFF]
	ldr	w19, [x23]
Lloh2:
	adrp	x8, _KERN_PROC_PID@GOTPAGE
Lloh3:
	ldr	x8, [x8, _KERN_PROC_PID@GOTPAGEOFF]
Lloh4:
	ldr	w21, [x8]
	ldp	w22, w0, [x0]
	bl	_proc_getpid
	mov	x2, x0
	add	x3, sp, #12
	mov	x0, x22
	mov	x1, x21
	bl	_procstat_getprocs
	cbz	x0, LBB0_6
; %bb.1:
	mov	x21, x0
	ldr	w8, [sp, #12]
	cmp	w8, #1
	cset	w0, eq
	bl	_assert
	ldr	w0, [x20]
	add	x2, sp, #12
	mov	x1, x21
	bl	_procstat_getauxv
	cbz	x0, LBB0_20
; %bb.2:
	mov	x22, x0
	ldr	w8, [sp, #12]
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.3:
	mov	x9, #0
Lloh5:
	adrp	x10, _AT_BASE@GOTPAGE
Lloh6:
	ldr	x10, [x10, _AT_BASE@GOTPAGEOFF]
Lloh7:
	ldr	x11, [x10]
	add	x10, x22, #8
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldur	x12, [x10, #-8]
	cmp	x12, x11
	b.eq	LBB0_8
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x9, x9, #1
	add	x10, x10, #16
	cmp	x8, x9
	b.ne	LBB0_4
	b	LBB0_19
LBB0_6:
	ldr	w19, [x23]
	b	LBB0_21
LBB0_7:
	mov	w9, #0
	mov	x23, #0
	cmp	w9, w8
	b.ne	LBB0_9
	b	LBB0_19
LBB0_8:
	ldr	x23, [x10]
	cmp	w9, w8
	b.eq	LBB0_19
LBB0_9:
	ldr	w0, [x20]
	add	x2, sp, #12
	mov	x1, x21
	bl	_procstat_getvmmap
	cbz	x0, LBB0_19
; %bb.10:
	mov	x24, x0
	ldr	w8, [sp, #12]
	cmp	w8, #1
	b.lt	LBB0_14
; %bb.11:
	mov	x9, #0
	add	x10, x24, #8
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldur	x11, [x10, #-8]
	cmp	x11, x23
	b.eq	LBB0_15
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	add	x9, x9, #1
	add	x10, x10, #16
	cmp	x8, x9
	b.ne	LBB0_12
	b	LBB0_18
LBB0_14:
	mov	w9, #0
	mov	x1, #0
	b	LBB0_16
LBB0_15:
	ldr	x1, [x10]
LBB0_16:
	cmp	w9, w8
	b.eq	LBB0_18
; %bb.17:
	mov	x0, x20
	mov	x2, x23
	bl	_rtld_syms
Lloh8:
	adrp	x8, _RD_OK@GOTPAGE
Lloh9:
	ldr	x8, [x8, _RD_OK@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	cmp	x0, #0
	csel	w19, w8, w19, eq
LBB0_18:
	ldr	w0, [x20]
	mov	x1, x24
	bl	_procstat_freevmmap
LBB0_19:
	ldr	w0, [x20]
	mov	x1, x22
	bl	_procstat_freeauxv
LBB0_20:
	ldr	w0, [x20]
	mov	x1, x21
	bl	_procstat_freeprocs
LBB0_21:
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_RD_ERR,4,2                     ; @RD_ERR
	.comm	_KERN_PROC_PID,4,2              ; @KERN_PROC_PID
	.comm	_AT_BASE,8,3                    ; @AT_BASE
	.comm	_RD_OK,4,2                      ; @RD_OK
.subsections_via_symbols
