	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xgbe_config_tc
_xgbe_config_tc:                        ## @xgbe_config_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	%rdi, %r14
	movl	32(%rdi), %edi
	callq	_netdev_reset_tc
	movq	(%r14), %rsi
	testq	%rsi, %rsi
	je	LBB0_14
## %bb.1:
	movl	32(%r14), %edi
	callq	_netdev_set_num_tc
	cmpq	$0, (%r14)
	jle	LBB0_9
## %bb.2:
	xorl	%ebx, %ebx
	leaq	L_.str(%rip), %r15
	xorl	%r12d, %r12d
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	_drv@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	32(%r14), %edx
	leal	-1(%r13), %eax
	movl	%eax, (%rsp)
	movq	%r14, %rdi
	movq	%r15, %rcx
	movq	%rbx, %r8
	movl	%r12d, %r9d
	callq	_netif_dbg
	movl	32(%r14), %edi
	movl	%r13d, %edx
	subl	%r12d, %edx
	movq	%rbx, %rsi
	movl	%r12d, %ecx
	callq	_netdev_set_tc_queue
	incq	%rbx
	movl	%r13d, %r12d
	cmpq	(%r14), %rbx
	jge	LBB0_9
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
	movl	8(%r14), %eax
	movl	%r12d, %r13d
	cmpl	%eax, %r12d
	jae	LBB0_8
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	16(%r14), %rcx
	movl	%r12d, %r13d
	.p2align	4, 0x90
LBB0_5:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpq	%rbx, (%rcx,%r13,8)
	jne	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=2
	incq	%r13
	cmpq	%r13, %rax
	jne	LBB0_5
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	%eax, %r13d
	jmp	LBB0_8
LBB0_9:
	movq	24(%r14), %rax
	testq	%rax, %rax
	je	LBB0_14
## %bb.10:
	movq	_IEEE_8021QAZ_MAX_TCS@GOTPCREL(%rip), %r15
	cmpl	$0, (%r15)
	je	LBB0_14
## %bb.11:
	movl	32(%r14), %edi
	movq	(%rax), %rax
	movl	(%rax), %edx
	xorl	%esi, %esi
	callq	_netdev_set_prio_tc_map
	cmpl	$2, (%r15)
	jb	LBB0_14
## %bb.12:
	movl	$1, %ebx
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movq	24(%r14), %rax
	movl	32(%r14), %edi
	movq	(%rax), %rax
	movl	(%rax,%rbx,4), %edx
	movl	%ebx, %esi
	callq	_netdev_set_prio_tc_map
	incq	%rbx
	movl	(%r15), %eax
	cmpq	%rax, %rbx
	jb	LBB0_13
LBB0_14:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_drv,4,2                        ## @drv
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"TC%u using TXq%u-%u\n"

	.comm	_IEEE_8021QAZ_MAX_TCS,4,2       ## @IEEE_8021QAZ_MAX_TCS
	.no_dead_strip	_xgbe_config_tc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xgbe_config_tc
_xgbe_config_tc:                        ; @xgbe_config_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	x19, x0
	ldr	w0, [x0, #32]
	bl	_netdev_reset_tc
	ldr	x1, [x19]
	cbz	x1, LBB0_14
; %bb.1:
	ldr	w0, [x19, #32]
	bl	_netdev_set_num_tc
	ldr	x8, [x19]
	cmp	x8, #1
	b.lt	LBB0_9
; %bb.2:
	mov	x20, #0
	mov	w22, #0
Lloh0:
	adrp	x23, _drv@GOTPAGE
Lloh1:
	ldr	x23, [x23, _drv@GOTPAGEOFF]
Lloh2:
	adrp	x21, l_.str@PAGE
Lloh3:
	add	x21, x21, l_.str@PAGEOFF
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w1, [x23]
	ldr	w2, [x19, #32]
	sub	w6, w24, #1
	mov	x0, x19
	mov	x3, x21
	mov	x4, x20
	mov	x5, x22
	bl	_netif_dbg
	ldr	w0, [x19, #32]
	sub	w2, w24, w22
	mov	x1, x20
	mov	x3, x22
	bl	_netdev_set_tc_queue
	add	x20, x20, #1
	ldr	x8, [x19]
	mov	x22, x24
	cmp	x20, x8
	b.ge	LBB0_9
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_6 Depth 2
	ldr	w8, [x19, #8]
	mov	x24, x22
	cmp	w22, w8
	b.hs	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x9, [x19, #16]
	mov	w24, w22
LBB0_6:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x10, [x9, x24, lsl #3]
	cmp	x10, x20
	b.ne	LBB0_3
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=2
	add	x24, x24, #1
	cmp	x8, x24
	b.ne	LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x24, x8
	b	LBB0_3
LBB0_9:
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_14
; %bb.10:
Lloh4:
	adrp	x21, _IEEE_8021QAZ_MAX_TCS@GOTPAGE
Lloh5:
	ldr	x21, [x21, _IEEE_8021QAZ_MAX_TCS@GOTPAGEOFF]
	ldr	w9, [x21]
	cbz	w9, LBB0_14
; %bb.11:
	ldr	w0, [x19, #32]
	ldr	x8, [x8]
	ldr	w2, [x8]
	mov	w1, #0
	bl	_netdev_set_prio_tc_map
	ldr	w8, [x21]
	cmp	w8, #2
	b.lo	LBB0_14
; %bb.12:
	mov	w20, #1
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #24]
	ldr	w0, [x19, #32]
	ldr	x8, [x8]
	ldr	w2, [x8, x20, lsl #2]
	mov	x1, x20
	bl	_netdev_set_prio_tc_map
	add	x20, x20, #1
	ldr	w8, [x21]
	cmp	x20, x8
	b.lo	LBB0_13
LBB0_14:
	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 AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_drv,4,2                        ; @drv
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"TC%u using TXq%u-%u\n"

	.comm	_IEEE_8021QAZ_MAX_TCS,4,2       ; @IEEE_8021QAZ_MAX_TCS
	.no_dead_strip	_xgbe_config_tc
.subsections_via_symbols
