	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dpaa_setup_tc
_dpaa_setup_tc:                         ## @dpaa_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	%rax, %r15
	movq	_TC_SETUP_QDISC_MQPRIO@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	jne	LBB0_1
## %bb.3:
	movq	_TC_MQPRIO_HW_OFFLOAD_TCS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r14)
	movl	(%r14), %r13d
	xorl	%r14d, %r14d
	cmpl	(%r15), %r13d
	je	LBB0_13
## %bb.4:
	testl	%r13d, %r13d
	je	LBB0_5
## %bb.6:
	movq	_DPAA_TC_NUM@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	cmpl	%edx, %r13d
	jle	LBB0_8
## %bb.7:
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	callq	_netdev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_1:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_13
LBB0_5:
	movq	%r12, %rdi
	callq	_netdev_reset_tc
	movl	$1, %r13d
	jmp	LBB0_12
LBB0_8:
	movq	%r12, %rdi
	movl	%r13d, %esi
	callq	_netdev_set_num_tc
	testl	%r13d, %r13d
	jle	LBB0_12
## %bb.9:
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	xorl	%ebx, %ebx
	movq	_DPAA_TC_TXQ_NUM@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r15), %edx
	movl	%edx, %ecx
	imull	%ebx, %ecx
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_netdev_set_tc_queue
	incl	%ebx
	cmpl	%ebx, %r13d
	jne	LBB0_10
## %bb.11:
	movq	-48(%rbp), %r15                 ## 8-byte Reload
LBB0_12:
	movl	%r13d, (%r15)
	movq	_DPAA_TC_TXQ_NUM@GOTPCREL(%rip), %rax
	imull	(%rax), %r13d
	movq	%r12, %rdi
	movl	%r13d, %esi
	callq	_netif_set_real_num_tx_queues
LBB0_13:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TC_SETUP_QDISC_MQPRIO,4,2      ## @TC_SETUP_QDISC_MQPRIO
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_TC_MQPRIO_HW_OFFLOAD_TCS,4,2   ## @TC_MQPRIO_HW_OFFLOAD_TCS
	.comm	_DPAA_TC_NUM,4,2                ## @DPAA_TC_NUM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Too many traffic classes: max %d supported.\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_DPAA_TC_TXQ_NUM,4,2            ## @DPAA_TC_TXQ_NUM
	.no_dead_strip	_dpaa_setup_tc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dpaa_setup_tc
_dpaa_setup_tc:                         ; @dpaa_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	x21, x2
	mov	x22, 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, w22
	b.ne	LBB0_5
; %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, [x21, #4]
	ldr	w21, [x21]
	ldr	w8, [x0]
	cmp	w21, w8
	b.eq	LBB0_12
; %bb.2:
	cbz	w21, LBB0_7
; %bb.3:
Lloh6:
	adrp	x8, _DPAA_TC_NUM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DPAA_TC_NUM@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	cmp	w21, w2
	b.le	LBB0_8
; %bb.4:
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_netdev_err
Lloh11:
	adrp	x8, _EINVAL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
Lloh13:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_13
LBB0_7:
	mov	x0, x19
	bl	_netdev_reset_tc
	mov	w21, #1
	b	LBB0_11
LBB0_8:
	mov	x0, x19
	mov	x1, x21
	bl	_netdev_set_num_tc
	cmp	w21, #1
	b.lt	LBB0_11
; %bb.9:
	mov	w22, #0
Lloh15:
	adrp	x23, _DPAA_TC_TXQ_NUM@GOTPAGE
Lloh16:
	ldr	x23, [x23, _DPAA_TC_TXQ_NUM@GOTPAGEOFF]
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	w2, [x23]
	mul	w3, w2, w22
	mov	x0, x19
	mov	x1, x22
	bl	_netdev_set_tc_queue
	add	w22, w22, #1
	cmp	w21, w22
	b.ne	LBB0_10
LBB0_11:
	str	w21, [x20]
Lloh17:
	adrp	x8, _DPAA_TC_TXQ_NUM@GOTPAGE
Lloh18:
	ldr	x8, [x8, _DPAA_TC_TXQ_NUM@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	mul	w1, w8, w21
	mov	x0, x19
	bl	_netif_set_real_num_tx_queues
LBB0_12:
	mov	w0, #0
LBB0_13:
	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 AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_TC_SETUP_QDISC_MQPRIO,4,2      ; @TC_SETUP_QDISC_MQPRIO
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_TC_MQPRIO_HW_OFFLOAD_TCS,4,2   ; @TC_MQPRIO_HW_OFFLOAD_TCS
	.comm	_DPAA_TC_NUM,4,2                ; @DPAA_TC_NUM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Too many traffic classes: max %d supported.\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_DPAA_TC_TXQ_NUM,4,2            ; @DPAA_TC_TXQ_NUM
	.no_dead_strip	_dpaa_setup_tc
.subsections_via_symbols
