	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function port_r_cnt
_port_r_cnt:                            ## @port_r_cnt
	.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
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movq	24(%rdi), %rax
	movslq	%esi, %r13
	shlq	$4, %r13
	leaq	(%rax,%r13), %r12
	movq	(%rax,%r13), %rdx
	cmpq	(%rdi), %rdx
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	jae	LBB0_3
## %bb.1:
	leaq	(%rax,%r13), %r15
	addq	$8, %r15
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%rbx), %rax
	leaq	(,%rdx,4), %rcx
	addq	(%r15), %rcx
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	*8(%rax)
	movq	(%r12), %rdx
	incq	%rdx
	movq	%rdx, (%r12)
	cmpq	(%rbx), %rdx
	jb	LBB0_2
LBB0_3:
	movq	8(%rbx), %rax
	cmpq	%rax, %rdx
	jae	LBB0_7
## %bb.4:
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	8(%rcx,%r13), %rcx
	leaq	(%rcx,%rax,4), %r15
	movq	16(%rbx), %rax
	leaq	(%rcx,%rdx,4), %r8
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movq	%r15, %rcx
	callq	*(%rax)
	movq	(%r12), %rdx
	incq	%rdx
	movq	%rdx, (%r12)
	cmpq	8(%rbx), %rdx
	jae	LBB0_7
## %bb.5:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	addq	%rax, %r13
	addq	$8, %r13
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%rbx), %rax
	leaq	(,%rdx,4), %r8
	addq	(%r13), %r8
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movq	%r15, %rcx
	callq	*(%rax)
	movq	(%r12), %rdx
	incq	%rdx
	movq	%rdx, (%r12)
	cmpq	8(%rbx), %rdx
	jb	LBB0_6
LBB0_7:
	movq	$0, (%r12)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_port_r_cnt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function port_r_cnt
_port_r_cnt:                            ; @port_r_cnt
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x19, x1
	mov	x20, x0
	ldr	x21, [x0, #24]
	sxtw	x23, w19
	add	x22, x21, w1, sxtw #4
	ldr	x2, [x22]
	ldr	x8, [x0]
	cmp	x2, x8
	b.hs	LBB0_3
; %bb.1:
	add	x8, x21, x23, lsl #4
	add	x24, x8, #8
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #16]
	ldr	x8, [x8, #8]
	ldr	x9, [x24]
	add	x3, x9, x2, lsl #2
	mov	x0, x20
	mov	x1, x19
	blr	x8
	ldr	x8, [x22]
	add	x2, x8, #1
	str	x2, [x22]
	ldr	x8, [x20]
	cmp	x2, x8
	b.lo	LBB0_2
LBB0_3:
	ldr	x8, [x20, #8]
	cmp	x2, x8
	b.hs	LBB0_7
; %bb.4:
	add	x23, x21, x23, lsl #4
	ldr	x9, [x23, #8]!
	add	x21, x9, x8, lsl #2
	ldr	x8, [x20, #16]
	ldr	x8, [x8]
	add	x4, x9, x2, lsl #2
	mov	x0, x20
	mov	x1, x19
	mov	x3, x21
	blr	x8
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22]
	add	x2, x8, #1
	str	x2, [x22]
	ldr	x8, [x20, #8]
	cmp	x2, x8
	b.hs	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x23]
	ldr	x9, [x20, #16]
	ldr	x9, [x9]
	add	x4, x8, x2, lsl #2
	mov	x0, x20
	mov	x1, x19
	mov	x3, x21
	blr	x9
	b	LBB0_5
LBB0_7:
	str	xzr, [x22]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_port_r_cnt
.subsections_via_symbols
