	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fm10k_cache_ring_qos
_fm10k_cache_ring_qos:                  ## @fm10k_cache_ring_qos
	.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	$40, %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	16(%rdi), %rax
	movq	24(%rdi), %rdi
	movq	_RING_F_QOS@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	shlq	$4, %rcx
	movq	8(%rax,%rcx), %r13
	callq	_netdev_get_num_tc
	xorl	%ecx, %ecx
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	cmpl	$2, %eax
	jl	LBB0_11
## %bb.1:
	movq	16(%r14), %rax
	movq	_RING_F_RSS@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	shlq	$4, %rcx
	movl	(%rax,%rcx), %r9d
	movslq	%r9d, %r8
	movq	%r8, -80(%rbp)                  ## 8-byte Spill
                                        ## kill: def $r8d killed $r8d killed $r8 def $r8
	andl	$-2, %r8d
	leal	2(%r13,%r13), %edi
	incl	%r13d
	xorl	%r10d, %r10d
	movl	$1, %r12d
	xorl	%edx, %edx
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	incl	%edx
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	addq	%rax, %r10
	addq	%rax, %r12
	cmpl	-44(%rbp), %edx                 ## 4-byte Folded Reload
	je	LBB0_10
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_6 Depth 2
	testl	%r9d, %r9d
	jle	LBB0_9
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r14), %rax
	movq	8(%r14), %rcx
	cmpl	$1, %r9d
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	jne	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%ebx, %ebx
	movl	%edx, %ecx
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	leaq	(%rax,%r12,8), %r14
	leaq	(%rcx,%r12,8), %r11
	movl	%edx, %ecx
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_6:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	-8(%r11,%rbx,8), %rax
	movl	%ecx, (%rax)
	movl	%edx, 4(%rax)
	movq	-8(%r14,%rbx,8), %rax
	movl	%ecx, (%rax)
	movl	%edx, 4(%rax)
	leal	(%r13,%rcx), %eax
	movq	(%r11,%rbx,8), %r15
	movl	%eax, (%r15)
	movl	%edx, 4(%r15)
	movq	(%r14,%rbx,8), %rsi
	movl	%eax, (%rsi)
	movl	%edx, 4(%rsi)
	addq	$2, %rbx
	addl	%edi, %ecx
	cmpq	%rbx, %r8
	jne	LBB0_6
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	testb	$1, %r9b
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	addq	%r10, %rbx
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax,%rbx,8), %rax
	movl	%ecx, (%rax)
	movl	%edx, 4(%rax)
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax,%rbx,8), %rax
	movl	%ecx, (%rax)
	movl	%edx, 4(%rax)
	jmp	LBB0_9
LBB0_10:
	movl	$1, %ecx
LBB0_11:
	movl	%ecx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RING_F_QOS,8,3                 ## @RING_F_QOS
	.comm	_RING_F_RSS,8,3                 ## @RING_F_RSS
	.no_dead_strip	_fm10k_cache_ring_qos
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fm10k_cache_ring_qos
_fm10k_cache_ring_qos:                  ; @fm10k_cache_ring_qos
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
	ldr	x0, [x0, #24]
	ldr	x8, [x19, #16]
Lloh0:
	adrp	x9, _RING_F_QOS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _RING_F_QOS@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	add	x8, x8, x9, lsl #4
	ldr	x20, [x8, #8]
	bl	_netdev_get_num_tc
	cmp	w0, #2
	b.ge	LBB0_2
; %bb.1:
	mov	w0, #0
	b	LBB0_13
LBB0_2:
	mov	x8, #0
	mov	w9, #0
Lloh3:
	adrp	x10, _RING_F_RSS@GOTPAGE
Lloh4:
	ldr	x10, [x10, _RING_F_RSS@GOTPAGEOFF]
	ldr	x11, [x19, #16]
Lloh5:
	ldr	x10, [x10]
	lsl	x10, x10, #4
	ldr	w10, [x11, x10]
	add	w11, w20, #1
	sxtw	x12, w10
	and	x13, x10, #0xfffffffe
	mul	w14, w11, w13
	lsl	w15, w20, #1
	add	w15, w15, #2
	mov	w16, #1
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	w9, w9, #1
	add	x8, x8, x12
	add	x16, x16, x12
	cmp	w9, w0
	b.eq	LBB0_12
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_8 Depth 2
                                        ;     Child Loop BB0_11 Depth 2
	cmp	w12, #1
	b.lt	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldp	x1, x2, [x19]
	cmp	w12, #1
	b.ne	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x3, #0
	mov	x17, x9
	b	LBB0_10
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	w17, w9, w14
	lsl	x4, x16, #3
	add	x3, x1, x4
	add	x4, x2, x4
	mov	x5, x13
	mov	x6, x9
LBB0_8:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	w7, w11, w6
	ldp	x20, x21, [x4, #-8]
	stp	w6, w9, [x20]
	stp	w7, w9, [x21]
	ldp	x20, x21, [x3, #-8]
	stp	w6, w9, [x20]
	add	w6, w6, w15
	add	x3, x3, #16
	add	x4, x4, #16
	stp	w7, w9, [x21]
	subs	x5, x5, #2
	b.ne	LBB0_8
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x3, x13
	cmp	x13, x10
	b.eq	LBB0_3
LBB0_10:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x4, x3, x8
	lsl	x4, x4, #3
	add	x2, x2, x4
	add	x1, x1, x4
	sub	x3, x10, x3
LBB0_11:                                ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x4, [x2], #8
	stp	w17, w9, [x4]
	ldr	x4, [x1], #8
	stp	w17, w9, [x4]
	add	w17, w17, w11
	subs	x3, x3, #1
	b.ne	LBB0_11
	b	LBB0_3
LBB0_12:
	mov	w0, #1
LBB0_13:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_RING_F_QOS,8,3                 ; @RING_F_QOS
	.comm	_RING_F_RSS,8,3                 ; @RING_F_RSS
	.no_dead_strip	_fm10k_cache_ring_qos
.subsections_via_symbols
