	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_proc_dir_read                  ## -- Begin function proc_dir_read
	.p2align	4, 0x90
_proc_dir_read:                         ## @proc_dir_read
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	%rdx, %r10
	movq	8(%rdi), %rax
	movq	(%rax), %rcx
	testq	%rcx, %rcx
	je	LBB0_1
## %bb.6:
	movq	%r10, %rdx
	popq	%rbp
	jmpq	*%rcx                           ## TAILCALL
LBB0_1:
	movq	16(%rax), %r8
	testq	%r8, %r8
	je	LBB0_4
## %bb.2:
	movslq	8(%rax), %rax
	movabsq	$-6148914691236517205, %rcx     ## imm = 0xAAAAAAAAAAAAAAAB
	mulq	%rcx
	movq	(%rsi), %r9
	shrq	$4, %rdx
	xorl	%eax, %eax
	cmpq	%rdx, %r9
	jae	LBB0_5
## %bb.3:
	leaq	(%r9,%r9,2), %rax
	leaq	(%r8,%rax,8), %rax
	movq	%rax, 8(%r10)
	movl	(%rdi), %eax
	movl	%eax, (%r10)
	incq	%r9
	movq	%r9, (%rsi)
	movl	$1, %eax
	popq	%rbp
	retq
LBB0_4:
	xorl	%edi, %edi
	callq	_assert
                                        ## implicit-def: $eax
LBB0_5:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_proc_dir_read                  ; -- Begin function proc_dir_read
	.p2align	2
_proc_dir_read:                         ; @proc_dir_read
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	ldr	x10, [x0, #8]
	ldr	x3, [x10]
	cbz	x3, LBB0_2
; %bb.1:
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	br	x3
LBB0_2:
	ldr	x8, [x10, #16]
	cbz	x8, LBB0_5
; %bb.3:
	ldr	x9, [x1]
	ldrsw	x10, [x10, #8]
	mov	x11, #-6148914691236517206
	movk	x11, #43691
	umulh	x10, x10, x11
	cmp	x9, x10, lsr #4
	b.hs	LBB0_6
; %bb.4:
	mov	w10, #24
	madd	x8, x9, x10, x8
	str	x8, [x2, #8]
	ldr	w8, [x0]
	str	w8, [x2]
	add	x8, x9, #1
	str	x8, [x1]
	mov	w0, #1
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_5:
	mov	w0, #0
	bl	_assert
                                        ; implicit-def: $w0
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_6:
	mov	w0, #0
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
