	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function __iavf_setup_tc
LCPI0_0:
	.long	1                               ## 0x1
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
___iavf_setup_tc:                       ## @__iavf_setup_tc
	.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	%rsi, %rbx
	movq	%rdi, %r14
	callq	_netdev_priv
	movq	%rax, %r12
	cmpl	$0, 32(%rbx)
	je	LBB0_1
## %bb.5:
	movq	(%rbx), %rax
	movq	_TC_MQPRIO_MODE_CHANNEL@GOTPCREL(%rip), %rcx
	xorl	%r15d, %r15d
	cmpq	(%rcx), %rax
	jne	LBB0_23
## %bb.6:
	movq	48(%r12), %rax
	movq	_VIRTCHNL_VF_OFFLOAD_ADQ@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_7
## %bb.8:
	movq	16(%r12), %rax
	movq	___IAVF_TC_INVALID@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_9
## %bb.10:
	movl	8(%rbx), %r13d
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_iavf_validate_ch_config
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_23
## %bb.11:
	movl	$0, %r15d
	cmpl	%r13d, (%r12)
	je	LBB0_23
## %bb.12:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	%r14, -72(%rbp)                 ## 8-byte Spill
	movl	%r13d, -52(%rbp)                ## 4-byte Spill
	movslq	%r13d, %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movl	%eax, (%r12)
	movq	_IAVF_MAX_TRAFFIC_CLASS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%r15d, %r15d
	movl	$0, %ebx
	testl	%eax, %eax
	jle	LBB0_18
## %bb.13:
	xorl	%r13d, %r13d
	xorl	%r14d, %r14d
	xorl	%ebx, %ebx
	jmp	LBB0_14
LBB0_1:
	movq	16(%r12), %rax
	movq	___IAVF_TC_RUNNING@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.2:
	movq	%r14, %rdi
	callq	_netdev_reset_tc
	movl	$0, (%r12)
	movq	%r14, %rdi
	callq	_netif_tx_stop_all_queues
	movq	%r14, %rdi
	callq	_netif_tx_disable
	movq	%r12, %rdi
	callq	_iavf_del_all_cloud_filters
	movq	_IAVF_FLAG_AQ_DISABLE_CHANNELS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r12)
	xorl	%r15d, %r15d
	jmp	LBB0_23
LBB0_16:                                ##   in Loop: Header=BB0_14 Depth=1
	movq	32(%r12), %rcx
	movaps	LCPI0_0(%rip), %xmm0            ## xmm0 = [1,0,0,0]
	movups	%xmm0, (%rcx,%r13)
LBB0_17:                                ##   in Loop: Header=BB0_14 Depth=1
	incq	%r14
	movslq	%eax, %rcx
	addq	$24, %r13
	cmpq	%rcx, %r14
	jge	LBB0_18
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	cmpq	-64(%rbp), %r14                 ## 8-byte Folded Reload
	jge	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=1
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movq	16(%rsi), %rax
	movq	(%rax,%r14,8), %rcx
	movq	32(%r12), %rdx
	movq	%rcx, (%rdx,%r13)
	movq	24(%rsi), %rcx
	movq	(%rcx,%r14,8), %rcx
	movq	%rcx, 8(%rdx,%r13)
	addl	(%rax,%r14,8), %ebx
	movq	40(%rsi), %rax
	movl	(%rax,%r14,4), %edi
	movq	_IAVF_MBPS_DIVISOR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_div_u64
	movq	32(%r12), %rcx
	movl	%eax, 16(%rcx,%r13)
	movq	_IAVF_MAX_TRAFFIC_CLASS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_17
LBB0_7:
	movq	40(%r12), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_9:
	movq	40(%r12), %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_dev_err
LBB0_3:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_4:
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
LBB0_23:
	movl	%r15d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_18:
	movl	%ebx, 24(%r12)
	movq	-72(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rdi
	callq	_netif_tx_stop_all_queues
	movq	%r13, %rdi
	callq	_netif_tx_disable
	movq	_IAVF_FLAG_AQ_ENABLE_CHANNELS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 8(%r12)
	movq	%r13, %rdi
	callq	_netdev_reset_tc
	movl	4(%r12), %edi
	movl	-52(%rbp), %esi                 ## 4-byte Reload
	callq	_netdev_set_num_tc
	movq	_IAVF_MAX_TRAFFIC_CLASS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	jle	LBB0_23
## %bb.19:
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	xorl	%r15d, %r15d
	jmp	LBB0_20
	.p2align	4, 0x90
LBB0_22:                                ##   in Loop: Header=BB0_20 Depth=1
	incq	%rbx
	movslq	%eax, %rcx
	cmpq	%rcx, %rbx
	jge	LBB0_23
LBB0_20:                                ## =>This Inner Loop Header: Depth=1
	cmpq	-64(%rbp), %rbx                 ## 8-byte Folded Reload
	jge	LBB0_22
## %bb.21:                              ##   in Loop: Header=BB0_20 Depth=1
	movq	16(%rdx), %rax
	movq	24(%rdx), %rcx
	movq	(%rcx,%rbx,8), %rcx
	movq	(%rax,%rbx,8), %rdx
	leal	1(%rsi), %r14d
	movq	%r13, %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_netdev_set_tc_queue
	movq	_IAVF_MAX_TRAFFIC_CLASS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%r14d, %esi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	jmp	LBB0_22
	.cfi_endproc
                                        ## -- End function
	.comm	___IAVF_TC_RUNNING,8,3          ## @__IAVF_TC_RUNNING
	.comm	_IAVF_FLAG_AQ_DISABLE_CHANNELS,4,2 ## @IAVF_FLAG_AQ_DISABLE_CHANNELS
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_TC_MQPRIO_MODE_CHANNEL,8,3     ## @TC_MQPRIO_MODE_CHANNEL
	.comm	_VIRTCHNL_VF_OFFLOAD_ADQ,4,2    ## @VIRTCHNL_VF_OFFLOAD_ADQ
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ADq not supported\n"

	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	___IAVF_TC_INVALID,8,3          ## @__IAVF_TC_INVALID
L_.str.1:                               ## @.str.1
	.asciz	"TC configuration already exists\n"

	.comm	_IAVF_MAX_TRAFFIC_CLASS,4,2     ## @IAVF_MAX_TRAFFIC_CLASS
	.comm	_IAVF_MBPS_DIVISOR,4,2          ## @IAVF_MBPS_DIVISOR
	.comm	_IAVF_FLAG_AQ_ENABLE_CHANNELS,4,2 ## @IAVF_FLAG_AQ_ENABLE_CHANNELS
	.no_dead_strip	___iavf_setup_tc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ; -- Begin function __iavf_setup_tc
lCPI0_0:
	.quad	1                               ; 0x1
	.quad	0                               ; 0x0
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
___iavf_setup_tc:                       ; @__iavf_setup_tc
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x1
	mov	x19, x0
	bl	_netdev_priv
	mov	x21, x0
	ldr	w8, [x20, #32]
	cbz	w8, LBB0_8
; %bb.1:
	ldr	x8, [x20]
Lloh0:
	adrp	x9, _TC_MQPRIO_MODE_CHANNEL@GOTPAGE
Lloh1:
	ldr	x9, [x9, _TC_MQPRIO_MODE_CHANNEL@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_24
; %bb.2:
	ldr	x8, [x21, #48]
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _VIRTCHNL_VF_OFFLOAD_ADQ@GOTPAGE
Lloh4:
	ldr	x9, [x9, _VIRTCHNL_VF_OFFLOAD_ADQ@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_14
; %bb.3:
	ldr	x8, [x21, #16]
Lloh6:
	adrp	x9, ___IAVF_TC_INVALID@GOTPAGE
Lloh7:
	ldr	x9, [x9, ___IAVF_TC_INVALID@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_15
; %bb.4:
	ldr	w22, [x20, #8]
	mov	x0, x21
	mov	x1, x20
	bl	_iavf_validate_ch_config
	cbnz	w0, LBB0_25
; %bb.5:
	ldr	w8, [x21]
	cmp	w8, w22
	b.eq	LBB0_24
; %bb.6:
	sxtw	x23, w22
	str	w22, [x21]
Lloh9:
	adrp	x24, _IAVF_MAX_TRAFFIC_CLASS@GOTPAGE
Lloh10:
	ldr	x24, [x24, _IAVF_MAX_TRAFFIC_CLASS@GOTPAGEOFF]
	ldr	w8, [x24]
	cmp	w8, #1
	b.lt	LBB0_18
; %bb.7:
	mov	x26, #0
	mov	x27, #0
	mov	w25, #0
Lloh11:
	adrp	x9, lCPI0_0@PAGE
Lloh12:
	ldr	q0, [x9, lCPI0_0@PAGEOFF]
	str	q0, [sp]                        ; 16-byte Folded Spill
Lloh13:
	adrp	x28, _IAVF_MBPS_DIVISOR@GOTPAGE
Lloh14:
	ldr	x28, [x28, _IAVF_MBPS_DIVISOR@GOTPAGEOFF]
	b	LBB0_12
LBB0_8:
	ldr	x8, [x21, #16]
Lloh15:
	adrp	x9, ___IAVF_TC_RUNNING@GOTPAGE
Lloh16:
	ldr	x9, [x9, ___IAVF_TC_RUNNING@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_16
; %bb.9:
	mov	x0, x19
	bl	_netdev_reset_tc
	str	wzr, [x21]
	mov	x0, x19
	bl	_netif_tx_stop_all_queues
	mov	x0, x19
	bl	_netif_tx_disable
	mov	x0, x21
	bl	_iavf_del_all_cloud_filters
	mov	w0, #0
Lloh18:
	adrp	x8, _IAVF_FLAG_AQ_DISABLE_CHANNELS@GOTPAGE
Lloh19:
	ldr	x8, [x8, _IAVF_FLAG_AQ_DISABLE_CHANNELS@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	str	w8, [x21, #8]
	b	LBB0_25
LBB0_10:                                ;   in Loop: Header=BB0_12 Depth=1
	ldr	x9, [x21, #32]
	ldr	q0, [sp]                        ; 16-byte Folded Reload
	str	q0, [x9, x26]
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=1
	add	x27, x27, #1
	add	x26, x26, #24
	cmp	x27, w8, sxtw
	b.ge	LBB0_19
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	cmp	x27, x23
	b.ge	LBB0_10
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	lsl	x8, x27, #3
	ldp	x9, x10, [x20, #16]
	ldr	x11, [x9, x8]
	ldr	x12, [x21, #32]
	add	x12, x12, x26
	str	x11, [x12]
	ldr	x10, [x10, x8]
	str	x10, [x12, #8]
	ldr	w8, [x9, x8]
	add	w25, w25, w8
	ldr	x8, [x20, #40]
	ldr	w0, [x8, x27, lsl #2]
	ldr	w1, [x28]
	bl	_div_u64
	ldr	x8, [x21, #32]
	add	x8, x8, x26
	str	w0, [x8, #16]
	ldr	w8, [x24]
	b	LBB0_11
LBB0_14:
	ldr	x0, [x21, #40]
Lloh21:
	adrp	x1, l_.str@PAGE
Lloh22:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
Lloh23:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh24:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
	b	LBB0_17
LBB0_15:
	ldr	x0, [x21, #40]
Lloh25:
	adrp	x1, l_.str.1@PAGE
Lloh26:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_err
LBB0_16:
Lloh27:
	adrp	x8, _EINVAL@GOTPAGE
Lloh28:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_17:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_25
LBB0_18:
	mov	w25, #0
LBB0_19:
	str	w25, [x21, #24]
	mov	x0, x19
	bl	_netif_tx_stop_all_queues
	mov	x0, x19
	bl	_netif_tx_disable
Lloh29:
	adrp	x8, _IAVF_FLAG_AQ_ENABLE_CHANNELS@GOTPAGE
Lloh30:
	ldr	x8, [x8, _IAVF_FLAG_AQ_ENABLE_CHANNELS@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
	ldr	w9, [x21, #8]
	orr	w8, w9, w8
	str	w8, [x21, #8]
	mov	x0, x19
	bl	_netdev_reset_tc
	ldr	w0, [x21, #4]
	mov	x1, x22
	bl	_netdev_set_num_tc
	ldr	w8, [x24]
	cmp	w8, #1
	b.lt	LBB0_24
; %bb.20:
	mov	x21, #0
	mov	w1, #0
	b	LBB0_22
LBB0_21:                                ;   in Loop: Header=BB0_22 Depth=1
	mov	w0, #0
	add	x21, x21, #1
	cmp	x21, w8, sxtw
	b.ge	LBB0_25
LBB0_22:                                ; =>This Inner Loop Header: Depth=1
	cmp	x21, x23
	b.ge	LBB0_21
; %bb.23:                               ;   in Loop: Header=BB0_22 Depth=1
	lsl	x8, x21, #3
	ldp	x10, x9, [x20, #16]
	ldr	x3, [x9, x8]
	ldr	x2, [x10, x8]
	add	w22, w1, #1
	mov	x0, x19
	bl	_netdev_set_tc_queue
	ldr	w8, [x24]
	mov	x1, x22
	b	LBB0_21
LBB0_24:
	mov	w0, #0
LBB0_25:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdr	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	___IAVF_TC_RUNNING,8,3          ; @__IAVF_TC_RUNNING
	.comm	_IAVF_FLAG_AQ_DISABLE_CHANNELS,4,2 ; @IAVF_FLAG_AQ_DISABLE_CHANNELS
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_TC_MQPRIO_MODE_CHANNEL,8,3     ; @TC_MQPRIO_MODE_CHANNEL
	.comm	_VIRTCHNL_VF_OFFLOAD_ADQ,4,2    ; @VIRTCHNL_VF_OFFLOAD_ADQ
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ADq not supported\n"

	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	___IAVF_TC_INVALID,8,3          ; @__IAVF_TC_INVALID
l_.str.1:                               ; @.str.1
	.asciz	"TC configuration already exists\n"

	.comm	_IAVF_MAX_TRAFFIC_CLASS,4,2     ; @IAVF_MAX_TRAFFIC_CLASS
	.comm	_IAVF_MBPS_DIVISOR,4,2          ; @IAVF_MBPS_DIVISOR
	.comm	_IAVF_FLAG_AQ_ENABLE_CHANNELS,4,2 ; @IAVF_FLAG_AQ_ENABLE_CHANNELS
	.no_dead_strip	___iavf_setup_tc
.subsections_via_symbols
