	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function netcp_setup_tc
_netcp_setup_tc:                        ## @netcp_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r12
	movl	%esi, %ebx
	movq	%rdi, %r15
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_ASSERT_RTNL
	movq	_TC_SETUP_QDISC_MQPRIO@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	jne	LBB0_1
## %bb.2:
	movq	_TC_MQPRIO_HW_OFFLOAD_TCS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r12)
	movl	(%r15), %eax
	cmpl	$2, %eax
	jl	LBB0_4
## %bb.3:
	movl	(%r12), %r12d
	cmpl	%r12d, %eax
	jl	LBB0_4
## %bb.5:
	testl	%r12d, %r12d
	je	LBB0_9
## %bb.6:
	movq	%r15, %rdi
	movl	%r12d, %esi
	callq	_netdev_set_num_tc
	testl	%r12d, %r12d
	jle	LBB0_10
## %bb.7:
	xorl	%r14d, %r14d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movl	%ebx, %esi
	movl	$1, %edx
	movl	%ebx, %ecx
	callq	_netdev_set_tc_queue
	incl	%ebx
	cmpl	%ebx, %r12d
	jne	LBB0_8
	jmp	LBB0_11
LBB0_1:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
	subl	(%rax), %r14d
	jmp	LBB0_11
LBB0_4:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_11
LBB0_9:
	movq	%r15, %rdi
	callq	_netdev_reset_tc
LBB0_10:
	xorl	%r14d, %r14d
LBB0_11:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	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	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_netcp_setup_tc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function netcp_setup_tc
_netcp_setup_tc:                        ; @netcp_setup_tc
	.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	x20, x2
	mov	x21, x1
	mov	x19, x0
	bl	_ASSERT_RTNL
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_3
; %bb.1:
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, [x20, #4]
	ldr	w20, [x20]
	ldr	w8, [x19]
	cmp	w8, #2
	ccmp	w8, w20, #8, ge
	b.ge	LBB0_5
; %bb.2:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:
Lloh8:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
LBB0_4:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_11
LBB0_5:
	cbz	w20, LBB0_9
; %bb.6:
	mov	x0, x19
	mov	x1, x20
	bl	_netdev_set_num_tc
	cmp	w20, #1
	b.lt	LBB0_10
; %bb.7:
	mov	w21, #0
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x21
	mov	w2, #1
	mov	x3, x21
	bl	_netdev_set_tc_queue
	add	w21, w21, #1
	cmp	w20, w21
	b.ne	LBB0_8
	b	LBB0_10
LBB0_9:
	mov	x0, x19
	bl	_netdev_reset_tc
LBB0_10:
	mov	w0, #0
LBB0_11:
	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
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.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	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_netcp_setup_tc
.subsections_via_symbols
