	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fm10k_set_qos_queues
_fm10k_set_qos_queues:                  ## @fm10k_set_qos_queues
	.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
	movq	%rdi, %rbx
	movq	24(%rdi), %r15
	movq	%r15, %rdi
	callq	_netdev_get_num_tc
	movl	%eax, %r12d
	xorl	%eax, %eax
	cmpl	$2, %r12d
	jl	LBB0_4
## %bb.1:
	movq	8(%rbx), %r14
	movq	_RING_F_QOS@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	leaq	(%rax,%rax,2), %r13
	movl	%r12d, (%r14,%r13,4)
	leal	-1(%r12), %edi
	callq	_fls
	movq	%rax, %rdi
	callq	_BIT
	decl	%eax
	movl	%eax, 4(%r14,%r13,4)
	movl	16(%rbx), %eax
	cltd
	idivl	%r12d
	movl	%eax, %edi
	callq	_fls
	leaq	-1(%rax), %rdi
	callq	_BIT
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	8(%rbx), %r14
	movq	_RING_F_RSS@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	_u16@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edi
	leaq	(%rcx,%rcx,2), %rbx
	movl	8(%r14,%rbx,4), %edx
	movl	%eax, %esi
	callq	_min_t
	movl	%eax, %r13d
	movl	%eax, (%r14,%rbx,4)
	leal	-1(%r13), %edi
	callq	_fls
	movq	%rax, %rdi
	callq	_BIT
	decl	%eax
	movl	%eax, 4(%r14,%rbx,4)
	xorl	%ebx, %ebx
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movl	%r14d, %esi
	movl	%r13d, %edx
	movl	%ebx, %ecx
	callq	_netdev_set_tc_queue
	incl	%r14d
	addl	%r13d, %ebx
	cmpl	%r14d, %r12d
	jne	LBB0_2
## %bb.3:
	imull	%r12d, %r13d
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	%r13d, (%rax)
	movl	%r13d, 4(%rax)
	movl	$1, %eax
LBB0_4:
	addq	$8, %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
	.comm	_u16,4,2                        ## @u16
	.no_dead_strip	_fm10k_set_qos_queues
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fm10k_set_qos_queues
_fm10k_set_qos_queues:                  ; @fm10k_set_qos_queues
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x0
	ldr	x20, [x0, #24]
	mov	x0, x20
	bl	_netdev_get_num_tc
	cmp	w0, #2
	b.ge	LBB0_2
; %bb.1:
	mov	w0, #0
	b	LBB0_5
LBB0_2:
	mov	x21, x0
Lloh0:
	adrp	x8, _RING_F_QOS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RING_F_QOS@GOTPAGEOFF]
	ldr	x9, [x19, #8]
Lloh2:
	ldr	x8, [x8]
	mov	w22, #12
	madd	x23, x8, x22, x9
	str	w0, [x23]
	sub	w0, w0, #1
	bl	_fls
	bl	_BIT
	sub	w8, w0, #1
	str	w8, [x23, #4]
	ldr	w8, [x19, #16]
	sdiv	w0, w8, w21
	bl	_fls
	sub	x0, x0, #1
	bl	_BIT
	mov	x1, x0
	ldr	x8, [x19, #8]
Lloh3:
	adrp	x9, _RING_F_RSS@GOTPAGE
Lloh4:
	ldr	x9, [x9, _RING_F_RSS@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
Lloh6:
	adrp	x10, _u16@GOTPAGE
Lloh7:
	ldr	x10, [x10, _u16@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x10]
	madd	x25, x9, x22, x8
	ldr	w2, [x25, #8]
	bl	_min_t
	mov	x22, x0
	str	w0, [x25]
	sub	w0, w0, #1
	bl	_fls
	bl	_BIT
	mov	w23, #0
	mov	w24, #0
	sub	w8, w0, #1
	str	w8, [x25, #4]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	x1, x24
	mov	x2, x22
	mov	x3, x23
	bl	_netdev_set_tc_queue
	add	w24, w24, #1
	add	w23, w23, w22
	cmp	w21, w24
	b.ne	LBB0_3
; %bb.4:
	mul	w8, w22, w21
	stp	w8, w8, [x19]
	mov	w0, #1
LBB0_5:
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_RING_F_QOS,8,3                 ; @RING_F_QOS
	.comm	_RING_F_RSS,8,3                 ; @RING_F_RSS
	.comm	_u16,4,2                        ; @u16
	.no_dead_strip	_fm10k_set_qos_queues
.subsections_via_symbols
