	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fm10k_setup_tc                 ## -- Begin function fm10k_setup_tc
	.p2align	4, 0x90
_fm10k_setup_tc:                        ## @fm10k_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	movq	%rdi, %r15
	callq	_netdev_priv
	movq	%rax, %r14
	testl	%ebx, %ebx
	je	LBB0_4
## %bb.1:
	movq	8(%r14), %rax
	movq	_fm10k_mac_pf@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.3:
	cmpl	$9, %ebx
	jl	LBB0_4
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_14
LBB0_4:
	movq	%r15, %rdi
	callq	_netif_running
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	%r15, %rdi
	callq	_fm10k_close
LBB0_6:
	movq	%r14, %rdi
	callq	_fm10k_mbx_free_irq
	movq	%r14, %rdi
	callq	_fm10k_clear_queueing_scheme
	movq	%r15, %rdi
	callq	_netdev_reset_tc
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_netdev_set_num_tc
	movq	%r14, %rdi
	callq	_fm10k_init_queueing_scheme
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_13
## %bb.7:
	movq	%r14, %rdi
	callq	_fm10k_mbx_request_irq
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_8
LBB0_12:
	movq	%r14, %rdi
	callq	_fm10k_clear_queueing_scheme
LBB0_13:
	movq	%r15, %rdi
	callq	_netif_device_detach
LBB0_14:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	%r15, %rdi
	callq	_netif_running
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	movq	%r15, %rdi
	callq	_fm10k_open
	testl	%eax, %eax
	je	LBB0_10
## %bb.11:
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_fm10k_mbx_free_irq
	jmp	LBB0_12
LBB0_10:
	movq	_FM10K_FLAG_SWPRI_CONFIG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r14), %esi
	callq	_set_bit
	xorl	%ebx, %ebx
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_fm10k_mac_pf,8,3               ## @fm10k_mac_pf
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_FM10K_FLAG_SWPRI_CONFIG,4,2    ## @FM10K_FLAG_SWPRI_CONFIG
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fm10k_setup_tc                 ; -- Begin function fm10k_setup_tc
	.p2align	2
_fm10k_setup_tc:                        ; @fm10k_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	x21, x1
	mov	x19, x0
	bl	_netdev_priv
	mov	x20, x0
	cbz	w21, LBB0_4
; %bb.1:
	ldr	x8, [x20, #8]
Lloh0:
	adrp	x9, _fm10k_mac_pf@GOTPAGE
Lloh1:
	ldr	x9, [x9, _fm10k_mac_pf@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.2:
	cmp	w21, #9
	b.lt	LBB0_4
LBB0_3:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_10
LBB0_4:
	mov	x0, x19
	bl	_netif_running
	cbz	x0, LBB0_6
; %bb.5:
	mov	x0, x19
	bl	_fm10k_close
LBB0_6:
	mov	x0, x20
	bl	_fm10k_mbx_free_irq
	mov	x0, x20
	bl	_fm10k_clear_queueing_scheme
	mov	x0, x19
	bl	_netdev_reset_tc
	mov	x0, x19
	mov	x1, x21
	bl	_netdev_set_num_tc
	mov	x0, x20
	bl	_fm10k_init_queueing_scheme
	mov	x21, x0
	cbnz	w0, LBB0_9
; %bb.7:
	mov	x0, x20
	bl	_fm10k_mbx_request_irq
	mov	x21, x0
	cbz	w0, LBB0_11
LBB0_8:
	mov	x0, x20
	bl	_fm10k_clear_queueing_scheme
LBB0_9:
	mov	x0, x19
	bl	_netif_device_detach
LBB0_10:
	mov	x0, x21
	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
LBB0_11:
	mov	x0, x19
	bl	_netif_running
	cbz	x0, LBB0_14
; %bb.12:
	mov	x0, x19
	bl	_fm10k_open
	cbz	w0, LBB0_14
; %bb.13:
	mov	x21, x0
	mov	x0, x20
	bl	_fm10k_mbx_free_irq
	b	LBB0_8
LBB0_14:
Lloh6:
	adrp	x8, _FM10K_FLAG_SWPRI_CONFIG@GOTPAGE
Lloh7:
	ldr	x8, [x8, _FM10K_FLAG_SWPRI_CONFIG@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	ldr	w1, [x20]
	bl	_set_bit
	mov	w21, #0
	b	LBB0_10
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_fm10k_mac_pf,8,3               ; @fm10k_mac_pf
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_FM10K_FLAG_SWPRI_CONFIG,4,2    ; @FM10K_FLAG_SWPRI_CONFIG
.subsections_via_symbols
