	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dpaa2_eth_setup_tc
_dpaa2_eth_setup_tc:                    ## @dpaa2_eth_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movl	%esi, %ebx
	movq	%rdi, %r12
	callq	_netdev_priv
	movq	_TC_SETUP_QDISC_MQPRIO@GOTPCREL(%rip), %rcx
	cmpl	%ebx, (%rcx)
	jne	LBB0_1
## %bb.2:
	movq	_TC_MQPRIO_HW_OFFLOAD_TCS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 4(%r14)
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_dpaa2_eth_queue_count
	movl	%eax, %r15d
	movl	(%r14), %r13d
	xorl	%eax, %eax
	cmpl	(%r12), %r13d
	je	LBB0_11
## %bb.3:
	movq	%rbx, %rdi
	callq	_dpaa2_eth_tc_count
	cmpl	%eax, %r13d
	jle	LBB0_5
## %bb.4:
	movq	%rbx, %rdi
	callq	_dpaa2_eth_tc_count
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	movl	%eax, %edx
	callq	_netdev_err
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	%r12, %rdi
	testl	%r13d, %r13d
	je	LBB0_6
## %bb.7:
	movl	%r13d, %esi
	callq	_netdev_set_num_tc
	movl	%r13d, %esi
	imull	%r15d, %esi
	movq	%r12, %rdi
	callq	_netif_set_real_num_tx_queues
	testl	%r13d, %r13d
	jle	LBB0_10
## %bb.8:
	xorl	%ebx, %ebx
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	movl	%r14d, %esi
	movl	%r15d, %edx
	movl	%ebx, %ecx
	callq	_netdev_set_tc_queue
	incl	%r14d
	addl	%r15d, %ebx
	cmpl	%r14d, %r13d
	jne	LBB0_9
	jmp	LBB0_10
LBB0_6:
	callq	_netdev_reset_tc
	movq	%r12, %rdi
	movl	%r15d, %esi
	callq	_netif_set_real_num_tx_queues
LBB0_10:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_update_xps
	xorl	%eax, %eax
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_TC_SETUP_QDISC_MQPRIO,4,2      ## @TC_SETUP_QDISC_MQPRIO
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_TC_MQPRIO_HW_OFFLOAD_TCS,4,2   ## @TC_MQPRIO_HW_OFFLOAD_TCS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Max %d traffic classes supported\n"

	.no_dead_strip	_dpaa2_eth_setup_tc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dpaa2_eth_setup_tc
_dpaa2_eth_setup_tc:                    ; @dpaa2_eth_setup_tc
	.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	x22, x2
	mov	x21, x1
	mov	x19, x0
	bl	_netdev_priv
Lloh0:
	adrp	x8, _TC_SETUP_QDISC_MQPRIO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TC_SETUP_QDISC_MQPRIO@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w21
	b.ne	LBB0_4
; %bb.1:
	mov	x20, x0
Lloh3:
	adrp	x8, _TC_MQPRIO_HW_OFFLOAD_TCS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TC_MQPRIO_HW_OFFLOAD_TCS@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x22, #4]
	bl	_dpaa2_eth_queue_count
	ldr	w22, [x22]
	ldr	w8, [x19]
	cmp	w22, w8
	b.eq	LBB0_11
; %bb.2:
	mov	x21, x0
	mov	x0, x20
	bl	_dpaa2_eth_tc_count
	cmp	w22, w0
	b.le	LBB0_5
; %bb.3:
	mov	x0, x20
	bl	_dpaa2_eth_tc_count
	mov	x2, x0
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_netdev_err
LBB0_4:
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_12
LBB0_5:
	mov	x0, x19
	cbz	w22, LBB0_9
; %bb.6:
	mov	x1, x22
	bl	_netdev_set_num_tc
	mul	w1, w22, w21
	mov	x0, x19
	bl	_netif_set_real_num_tx_queues
	cmp	w22, #1
	b.lt	LBB0_10
; %bb.7:
	mov	w23, #0
	mov	w24, #0
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x24
	mov	x2, x21
	mov	x3, x23
	bl	_netdev_set_tc_queue
	add	w24, w24, #1
	add	w23, w23, w21
	cmp	w22, w24
	b.ne	LBB0_8
	b	LBB0_10
LBB0_9:
	bl	_netdev_reset_tc
	mov	x0, x19
	mov	x1, x21
	bl	_netif_set_real_num_tx_queues
LBB0_10:
	mov	x0, x20
	bl	_update_xps
LBB0_11:
	mov	w0, #0
LBB0_12:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_TC_SETUP_QDISC_MQPRIO,4,2      ; @TC_SETUP_QDISC_MQPRIO
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_TC_MQPRIO_HW_OFFLOAD_TCS,4,2   ; @TC_MQPRIO_HW_OFFLOAD_TCS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Max %d traffic classes supported\n"

	.no_dead_strip	_dpaa2_eth_setup_tc
.subsections_via_symbols
