	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fm10k_update_lport_state_pf
_fm10k_update_lport_state_pf:           ## @fm10k_update_lport_state_pf
	.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	%r12
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	testl	%edx, %edx
	je	LBB0_1
## %bb.2:
	movl	%ecx, %r15d
	movl	%edx, %ebx
	movl	%esi, %r12d
	movq	%rdi, %r14
	callq	_fm10k_glort_valid_pf
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:
	testl	%r15d, %r15d
	jne	LBB0_6
## %bb.5:
	movq	_FM10K_XCAST_MODE_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	%r12d, %esi
	callq	_fm10k_update_xcast_mode_pf
LBB0_6:
	shll	$16, %ebx
	orl	%r12d, %ebx
	testl	%r15d, %r15d
	jne	LBB0_7
## %bb.8:
	movq	_FM10K_PF_MSG_ID_LPORT_DELETE@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_1:
	xorl	%eax, %eax
	jmp	LBB0_10
LBB0_3:
	movq	_FM10K_ERR_PARAM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_10
LBB0_7:
	movq	_FM10K_PF_MSG_ID_LPORT_CREATE@GOTPCREL(%rip), %rax
LBB0_9:
	movl	(%rax), %esi
	leaq	-52(%rbp), %r15
	movq	%r15, %rdi
	callq	_fm10k_tlv_msg_init
	movq	_FM10K_PF_ATTR_ID_PORT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	%ebx, %edx
	callq	_fm10k_tlv_attr_put_u32
	movq	%r14, %rdi
	movq	%r14, %rsi
	movq	%r15, %rdx
	callq	*(%r14)
LBB0_10:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-40(%rbp), %rcx
	jne	LBB0_12
## %bb.11:
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_FM10K_ERR_PARAM,4,2            ## @FM10K_ERR_PARAM
	.comm	_FM10K_XCAST_MODE_NONE,4,2      ## @FM10K_XCAST_MODE_NONE
	.comm	_FM10K_PF_MSG_ID_LPORT_CREATE,4,2 ## @FM10K_PF_MSG_ID_LPORT_CREATE
	.comm	_FM10K_PF_MSG_ID_LPORT_DELETE,4,2 ## @FM10K_PF_MSG_ID_LPORT_DELETE
	.comm	_FM10K_PF_ATTR_ID_PORT,4,2      ## @FM10K_PF_ATTR_ID_PORT
	.no_dead_strip	_fm10k_update_lport_state_pf
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fm10k_update_lport_state_pf
_fm10k_update_lport_state_pf:           ; @fm10k_update_lport_state_pf
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	cbz	w2, LBB0_5
; %bb.1:
	mov	x20, x3
	mov	x21, x2
	mov	x22, x1
	mov	x19, x0
	bl	_fm10k_glort_valid_pf
	cbz	w0, LBB0_6
; %bb.2:
	cbnz	w20, LBB0_4
; %bb.3:
Lloh3:
	adrp	x8, _FM10K_XCAST_MODE_NONE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _FM10K_XCAST_MODE_NONE@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x22
	bl	_fm10k_update_xcast_mode_pf
LBB0_4:
Lloh6:
	adrp	x8, _FM10K_PF_MSG_ID_LPORT_CREATE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _FM10K_PF_MSG_ID_LPORT_CREATE@GOTPAGEOFF]
	orr	w21, w22, w21, lsl #16
Lloh8:
	adrp	x9, _FM10K_PF_MSG_ID_LPORT_DELETE@GOTPAGE
Lloh9:
	ldr	x9, [x9, _FM10K_PF_MSG_ID_LPORT_DELETE@GOTPAGEOFF]
	cmp	w20, #0
	csel	x8, x9, x8, eq
	ldr	w1, [x8]
	add	x0, sp, #12
	bl	_fm10k_tlv_msg_init
Lloh10:
	adrp	x8, _FM10K_PF_ATTR_ID_PORT@GOTPAGE
Lloh11:
	ldr	x8, [x8, _FM10K_PF_ATTR_ID_PORT@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	add	x0, sp, #12
	mov	x2, x21
	bl	_fm10k_tlv_attr_put_u32
	ldr	x8, [x19]
	add	x2, sp, #12
	mov	x0, x19
	mov	x1, x19
	blr	x8
	b	LBB0_7
LBB0_5:
	mov	w0, #0
	b	LBB0_7
LBB0_6:
Lloh13:
	adrp	x8, _FM10K_ERR_PARAM@GOTPAGE
Lloh14:
	ldr	x8, [x8, _FM10K_ERR_PARAM@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
LBB0_7:
	ldr	x8, [sp, #24]
Lloh16:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh17:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_9
; %bb.8:
	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
	add	sp, sp, #80
	ret
LBB0_9:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_FM10K_ERR_PARAM,4,2            ; @FM10K_ERR_PARAM
	.comm	_FM10K_XCAST_MODE_NONE,4,2      ; @FM10K_XCAST_MODE_NONE
	.comm	_FM10K_PF_MSG_ID_LPORT_CREATE,4,2 ; @FM10K_PF_MSG_ID_LPORT_CREATE
	.comm	_FM10K_PF_MSG_ID_LPORT_DELETE,4,2 ; @FM10K_PF_MSG_ID_LPORT_DELETE
	.comm	_FM10K_PF_ATTR_ID_PORT,4,2      ; @FM10K_PF_ATTR_ID_PORT
	.no_dead_strip	_fm10k_update_lport_state_pf
.subsections_via_symbols
