	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qed_mcp_handle_ufp_event
_qed_mcp_handle_ufp_event:              ## @qed_mcp_handle_ufp_event
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	callq	_qed_mcp_read_ufp_config
	movq	(%rbx), %rax
	movq	_QED_UFP_MODE_VNIC_BW@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movl	8(%rbx), %esi
	movl	%esi, 20(%rbx)
	leaq	16(%rbx), %rdi
	callq	_qed_hw_info_set_offload_tc
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_qed_qm_reconf
	jmp	LBB0_4
LBB0_2:
	movq	_QED_UFP_MODE_ETS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.3:
	movq	_QED_DCBX_OPERATIONAL_MIB@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_qed_dcbx_mib_update_event
LBB0_4:
	movq	%rbx, %rdi
	callq	_qed_sp_pf_update_ufp
	movq	%rbx, %rdi
	callq	_qed_sp_pf_update_stag
	xorl	%eax, %eax
	jmp	LBB0_5
LBB0_6:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_DP_ERR
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_5:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_QED_UFP_MODE_VNIC_BW,8,3       ## @QED_UFP_MODE_VNIC_BW
	.comm	_QED_UFP_MODE_ETS,8,3           ## @QED_UFP_MODE_ETS
	.comm	_QED_DCBX_OPERATIONAL_MIB,4,2   ## @QED_DCBX_OPERATIONAL_MIB
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid sched type, discard the UFP config\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_qed_mcp_handle_ufp_event
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qed_mcp_handle_ufp_event
_qed_mcp_handle_ufp_event:              ; @qed_mcp_handle_ufp_event
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x1
	mov	x19, x0
	bl	_qed_mcp_read_ufp_config
	ldr	x8, [x19]
Lloh0:
	adrp	x9, _QED_UFP_MODE_VNIC_BW@GOTPAGE
Lloh1:
	ldr	x9, [x9, _QED_UFP_MODE_VNIC_BW@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	ldr	w1, [x19, #8]
	str	w1, [x19, #20]
	add	x0, x19, #16
	bl	_qed_hw_info_set_offload_tc
	mov	x0, x19
	mov	x1, x20
	bl	_qed_qm_reconf
	b	LBB0_4
LBB0_2:
Lloh3:
	adrp	x9, _QED_UFP_MODE_ETS@GOTPAGE
Lloh4:
	ldr	x9, [x9, _QED_UFP_MODE_ETS@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.3:
Lloh6:
	adrp	x8, _QED_DCBX_OPERATIONAL_MIB@GOTPAGE
Lloh7:
	ldr	x8, [x8, _QED_DCBX_OPERATIONAL_MIB@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x20
	bl	_qed_dcbx_mib_update_event
LBB0_4:
	mov	x0, x19
	bl	_qed_sp_pf_update_ufp
	mov	x0, x19
	bl	_qed_sp_pf_update_stag
	mov	w0, #0
	b	LBB0_6
LBB0_5:
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_DP_ERR
Lloh11:
	adrp	x8, _EINVAL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_QED_UFP_MODE_VNIC_BW,8,3       ; @QED_UFP_MODE_VNIC_BW
	.comm	_QED_UFP_MODE_ETS,8,3           ; @QED_UFP_MODE_ETS
	.comm	_QED_DCBX_OPERATIONAL_MIB,4,2   ; @QED_DCBX_OPERATIONAL_MIB
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid sched type, discard the UFP config\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_qed_mcp_handle_ufp_event
.subsections_via_symbols
