	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nix_find_link_frs
_nix_find_link_frs:                     ## @nix_find_link_frs
	.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	%edx, %ebx
	movq	%rsi, %r12
	movq	%rdi, %r14
	movl	%edx, %edi
	callq	_rvu_get_pf
	movl	%eax, %r15d
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_rvu_get_pfvf
	movl	(%r12), %ebx
	movl	%ebx, (%rax)
	cmpq	$0, 8(%r12)
	je	LBB0_1
## %bb.2:
	movl	4(%r12), %r13d
	movl	%r13d, 4(%rax)
	jmp	LBB0_3
LBB0_1:
	xorl	%r13d, %r13d
LBB0_3:
	leaq	-48(%rbp), %rdx
	leaq	-44(%rbp), %rcx
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_rvu_get_pf_numvfs
	movl	-48(%rbp), %r10d
	testl	%r10d, %r10d
	jle	LBB0_4
## %bb.5:
	movq	8(%r14), %r9
	movslq	-44(%rbp), %r8
	movq	8(%r12), %rax
	cmpl	$1, %r10d
	jne	LBB0_7
## %bb.6:
	xorl	%edi, %edi
LBB0_15:
	testb	$1, %r10b
	je	LBB0_18
## %bb.16:
	addq	%r8, %rdi
	movl	(%r9,%rdi,8), %ecx
	cmpl	%ebx, %ecx
	cmovgl	%ecx, %ebx
	testq	%rax, %rax
	je	LBB0_18
## %bb.17:
	movl	4(%r9,%rdi,8), %ecx
	cmpl	%r13d, %ecx
	movl	%r13d, %edx
	cmovll	%ecx, %edx
	testl	%ecx, %ecx
	cmovnel	%edx, %r13d
	jmp	LBB0_18
LBB0_4:
	movq	8(%r12), %rax
LBB0_18:
	movq	(%r14), %rcx
	movslq	%r15d, %rdx
	movl	(%rcx,%rdx,8), %esi
	cmpl	%ebx, %esi
	cmovgl	%esi, %ebx
	testq	%rax, %rax
	je	LBB0_19
## %bb.20:
	movl	4(%rcx,%rdx,8), %eax
	cmpl	%r13d, %eax
	movl	%r13d, %ecx
	cmovll	%eax, %ecx
	testl	%eax, %eax
	cmovel	%r13d, %ecx
	movl	%ebx, (%r12)
	movl	%ecx, 4(%r12)
	jmp	LBB0_21
LBB0_19:
	movl	%ebx, (%r12)
LBB0_21:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movl	%r10d, %r11d
	andl	$-2, %r11d
	leaq	(%r9,%r8,8), %rcx
	addq	$12, %rcx
	xorl	%edi, %edi
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_8 Depth=1
	testl	%esi, %esi
	cmovnel	%edx, %r13d
LBB0_14:                                ##   in Loop: Header=BB0_8 Depth=1
	addq	$2, %rdi
	cmpq	%rdi, %r11
	je	LBB0_15
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movl	-12(%rcx,%rdi,8), %edx
	cmpl	%ebx, %edx
	cmovgl	%edx, %ebx
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movl	-8(%rcx,%rdi,8), %edx
	cmpl	%r13d, %edx
	movl	%r13d, %esi
	cmovll	%edx, %esi
	testl	%edx, %edx
	cmovnel	%esi, %r13d
LBB0_10:                                ##   in Loop: Header=BB0_8 Depth=1
	movl	-4(%rcx,%rdi,8), %edx
	cmpl	%ebx, %edx
	cmovgl	%edx, %ebx
	testq	%rax, %rax
	je	LBB0_14
## %bb.11:                              ##   in Loop: Header=BB0_8 Depth=1
	movl	(%rcx,%rdi,8), %esi
	movl	%esi, %edx
	cmpl	%r13d, %esi
	jl	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_8 Depth=1
	movl	%r13d, %edx
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_nix_find_link_frs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nix_find_link_frs
_nix_find_link_frs:                     ; @nix_find_link_frs
	.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	x22, x2
	mov	x19, x1
	mov	x21, x0
	mov	x0, x2
	bl	_rvu_get_pf
	mov	x20, x0
	mov	x0, x21
	mov	x1, x22
	bl	_rvu_get_pfvf
	ldr	w22, [x19]
	str	w22, [x0]
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	w23, [x19, #4]
	str	w23, [x0, #4]
	b	LBB0_3
LBB0_2:
	mov	w23, #0
LBB0_3:
	add	x2, sp, #12
	add	x3, sp, #8
	mov	x0, x21
	mov	x1, x20
	bl	_rvu_get_pf_numvfs
	ldr	w9, [sp, #12]
	cmp	w9, #0
	b.le	LBB0_8
; %bb.4:
	ldr	x10, [x21, #8]
	ldrsw	x11, [sp, #8]
	ldr	x8, [x19, #8]
	add	x10, x10, x11, lsl #3
	add	x10, x10, #4
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x10, x10, #8
	subs	x9, x9, #1
	b.eq	LBB0_9
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldur	w11, [x10, #-4]
	cmp	w11, w22
	csel	w22, w11, w22, gt
	cbz	x8, LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w11, [x10]
	cmp	w11, w23
	ccmp	w11, #0, #4, lt
	csel	w23, w11, w23, ne
	b	LBB0_5
LBB0_8:
	ldr	x8, [x19, #8]
LBB0_9:
	ldr	x10, [x21]
	sbfiz	x9, x20, #3, #32
	ldr	w9, [x10, x9]
	cmp	w9, w22
	csel	w9, w9, w22, gt
	cbz	x8, LBB0_11
; %bb.10:
	sxtw	x8, w20
	add	x8, x10, x8, lsl #3
	ldr	w8, [x8, #4]
	cmp	w8, w23
	ccmp	w8, #0, #4, lt
	csel	w8, w8, w23, ne
	stp	w9, w8, [x19]
	b	LBB0_12
LBB0_11:
	str	w9, [x19]
LBB0_12:
	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
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_nix_find_link_frs
.subsections_via_symbols
