	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_netif_setup_tc                 ## -- Begin function netif_setup_tc
	.p2align	4, 0x90
_netif_setup_tc:                        ## @netif_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
	movl	%esi, %r14d
	movq	%rdi, %r13
	callq	_netdev_extended
	movq	%rax, %r15
	movq	(%rax), %rax
	movl	4(%rax), %ecx
	addl	(%rax), %ecx
	cmpl	%r14d, %ecx
	jbe	LBB0_1
## %bb.7:
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_warning
	movq	$0, 8(%r15)
	jmp	LBB0_6
LBB0_1:
	movq	_TC_BITMASK@GOTPCREL(%rip), %r12
	cmpl	$0, (%r12)
	jle	LBB0_6
## %bb.2:
	xorl	%ebx, %ebx
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	cmpl	(%r12), %ebx
	jge	LBB0_6
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	incl	%ebx
	movq	%r13, %rdi
	movl	%ebx, %esi
	callq	_netdev_get_prio_tc_map
	movq	(%r15), %rcx
	movslq	%eax, %rdx
	movl	4(%rcx,%rdx,8), %esi
	addl	(%rcx,%rdx,8), %esi
	cmpl	%r14d, %esi
	jbe	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	leaq	L_.str.1(%rip), %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_pr_warning
	movq	%r13, %rdi
	movl	%ebx, %esi
	xorl	%edx, %edx
	callq	_netdev_set_prio_tc_map
	jmp	LBB0_5
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Number of in use tx queues changed invalidating tc mappings. Priority traffic classification disabled!\n"

	.comm	_TC_BITMASK,4,2                 ## @TC_BITMASK
L_.str.1:                               ## @.str.1
	.asciz	"Number of in use tx queues changed. Priority %i to tc mapping %i is no longer valid setting map to 0\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_netif_setup_tc                 ; -- Begin function netif_setup_tc
	.p2align	2
_netif_setup_tc:                        ; @netif_setup_tc
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x20, x1
	mov	x21, x0
	bl	_netdev_extended
	mov	x19, x0
	ldr	x8, [x0]
	ldp	w9, w8, [x8]
	add	w8, w8, w9
	cmp	w8, w20
	b.ls	LBB0_2
; %bb.1:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_warning
	str	xzr, [x19, #8]
	b	LBB0_7
LBB0_2:
Lloh2:
	adrp	x24, _TC_BITMASK@GOTPAGE
Lloh3:
	ldr	x24, [x24, _TC_BITMASK@GOTPAGEOFF]
	ldr	w8, [x24]
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.3:
	mov	w22, #0
Lloh4:
	adrp	x23, l_.str.1@PAGE
Lloh5:
	add	x23, x23, l_.str.1@PAGEOFF
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [x24]
	cmp	w22, w8
	b.ge	LBB0_7
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	add	w22, w22, #1
	mov	x0, x21
	mov	x1, x22
	bl	_netdev_get_prio_tc_map
                                        ; kill: def $w0 killed $w0 def $x0
	ldr	x8, [x19]
	add	x8, x8, w0, sxtw #3
	ldp	w9, w8, [x8]
	add	w8, w8, w9
	cmp	w8, w20
	b.ls	LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	stp	x22, x0, [sp]
	mov	x0, x23
	bl	_pr_warning
	mov	x0, x21
	mov	x1, x22
	mov	w2, #0
	bl	_netdev_set_prio_tc_map
	b	LBB0_4
LBB0_7:
	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
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Number of in use tx queues changed invalidating tc mappings. Priority traffic classification disabled!\n"

	.comm	_TC_BITMASK,4,2                 ; @TC_BITMASK
l_.str.1:                               ; @.str.1
	.asciz	"Number of in use tx queues changed. Priority %i to tc mapping %i is no longer valid setting map to 0\n"

.subsections_via_symbols
