	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx4_en_setup_tc               ## -- Begin function mlx4_en_setup_tc
	.p2align	4, 0x90
_mlx4_en_setup_tc:                      ## @mlx4_en_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, %r13d
	movq	%rdi, %r14
	callq	_netdev_priv
	movq	%rax, %r15
	testl	%r13d, %r13d
	je	LBB0_3
## %bb.1:
	movq	_MLX4_EN_NUM_UP_HIGH@GOTPCREL(%rip), %rax
	cmpl	%r13d, (%rax)
	je	LBB0_3
## %bb.2:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_7
LBB0_3:
	movq	%r14, %rdi
	movl	%r13d, %esi
	callq	_netdev_set_num_tc
	movq	32(%r15), %rax
	movq	_TX@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %esi
	movq	%r14, %rdi
	callq	_netif_set_real_num_tx_queues
	testl	%r13d, %r13d
	jle	LBB0_6
## %bb.4:
	movq	24(%r15), %rdx
	xorl	%ebx, %ebx
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movl	%r12d, %esi
	movl	%ebx, %ecx
	callq	_netdev_set_tc_queue
	movq	24(%r15), %rdx
	addl	%edx, %ebx
	incl	%r12d
	cmpl	%r12d, %r13d
	jne	LBB0_5
LBB0_6:
	xorl	%eax, %eax
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MLX4_EN_NUM_UP_HIGH,4,2        ## @MLX4_EN_NUM_UP_HIGH
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_TX,8,3                         ## @TX
	.comm	_MLX4_EN_FLAG_DCB_ENABLED,4,2   ## @MLX4_EN_FLAG_DCB_ENABLED
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx4_en_setup_tc               ; -- Begin function mlx4_en_setup_tc
	.p2align	2
_mlx4_en_setup_tc:                      ; @mlx4_en_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	x19, x1
	mov	x20, x0
	bl	_netdev_priv
	mov	x21, x0
	cbz	w19, LBB0_3
; %bb.1:
Lloh0:
	adrp	x8, _MLX4_EN_NUM_UP_HIGH@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MLX4_EN_NUM_UP_HIGH@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w19
	b.eq	LBB0_3
; %bb.2:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_7
LBB0_3:
	mov	x0, x20
	mov	x1, x19
	bl	_netdev_set_num_tc
	ldr	x8, [x21, #32]
Lloh6:
	adrp	x9, _TX@GOTPAGE
Lloh7:
	ldr	x9, [x9, _TX@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	ldr	w1, [x8, x9, lsl #2]
	mov	x0, x20
	bl	_netif_set_real_num_tx_queues
	cmp	w19, #1
	b.lt	LBB0_6
; %bb.4:
	mov	w22, #0
	mov	w23, #0
	ldr	x2, [x21, #24]
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	x1, x23
	mov	x3, x22
	bl	_netdev_set_tc_queue
	ldr	x2, [x21, #24]
	add	w22, w22, w2
	add	w23, w23, #1
	cmp	w19, w23
	b.ne	LBB0_5
LBB0_6:
	mov	w0, #0
LBB0_7:
	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
	.cfi_endproc
                                        ; -- End function
	.comm	_MLX4_EN_NUM_UP_HIGH,4,2        ; @MLX4_EN_NUM_UP_HIGH
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_TX,8,3                         ; @TX
	.comm	_MLX4_EN_FLAG_DCB_ENABLED,4,2   ; @MLX4_EN_FLAG_DCB_ENABLED
.subsections_via_symbols
