	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nfp_flower_lag_populate_pre_action ## -- Begin function nfp_flower_lag_populate_pre_action
	.p2align	4, 0x90
_nfp_flower_lag_populate_pre_action:    ## @nfp_flower_lag_populate_pre_action
	.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	%rcx, %r12
	movq	%rdx, %r14
	movq	%rsi, %r13
	movq	(%rdi), %rbx
	leaq	4(%rbx), %r15
	movq	%r15, %rdi
	callq	_mutex_lock
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_nfp_fl_lag_find_group_for_master_with_lag
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r13
	movl	4(%rax), %edi
	callq	_cpu_to_be16
	movl	%eax, 8(%r14)
	movl	(%rbx), %edi
	movq	_NFP_FL_PRE_LAG_VER_OFF@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %edi
	callq	_cpu_to_be32
	movl	%eax, -44(%rbp)
	movl	4(%r14), %edi
	leaq	-44(%rbp), %rsi
	movl	$3, %edx
	callq	_memcpy
	movl	(%r13), %eax
	movl	%eax, (%r14)
	movq	%r15, %rdi
	callq	_mutex_unlock
	xorl	%eax, %eax
	jmp	LBB0_3
LBB0_1:
	movq	%r15, %rdi
	callq	_mutex_unlock
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	callq	_NL_SET_ERR_MSG_MOD
	movq	_ENOENT@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"invalid entry: group does not exist for LAG action"

	.comm	_ENOENT,4,2                     ## @ENOENT
	.comm	_NFP_FL_PRE_LAG_VER_OFF,4,2     ## @NFP_FL_PRE_LAG_VER_OFF
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nfp_flower_lag_populate_pre_action ; -- Begin function nfp_flower_lag_populate_pre_action
	.p2align	2
_nfp_flower_lag_populate_pre_action:    ; @nfp_flower_lag_populate_pre_action
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x22, x3
	mov	x20, x2
	mov	x21, x1
	ldr	x23, [x0]
	add	x19, x23, #4
	mov	x0, x19
	bl	_mutex_lock
	mov	x0, x23
	mov	x1, x21
	bl	_nfp_fl_lag_find_group_for_master_with_lag
	cbz	x0, LBB0_2
; %bb.1:
	mov	x21, x0
	ldr	w0, [x0, #4]
	bl	_cpu_to_be16
	str	w0, [x20, #8]
	ldr	w8, [x23]
Lloh0:
	adrp	x9, _NFP_FL_PRE_LAG_VER_OFF@GOTPAGE
Lloh1:
	ldr	x9, [x9, _NFP_FL_PRE_LAG_VER_OFF@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	lsl	w0, w8, w9
	bl	_cpu_to_be32
	str	w0, [sp, #12]
	ldr	w0, [x20, #4]
	add	x1, sp, #12
	mov	w2, #3
	bl	_memcpy
	ldr	w8, [x21]
	str	w8, [x20]
	mov	x0, x19
	bl	_mutex_unlock
	mov	w0, #0
	b	LBB0_3
LBB0_2:
	mov	x0, x19
	bl	_mutex_unlock
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x22
	bl	_NL_SET_ERR_MSG_MOD
Lloh5:
	adrp	x8, _ENOENT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_3:
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"invalid entry: group does not exist for LAG action"

	.comm	_ENOENT,4,2                     ; @ENOENT
	.comm	_NFP_FL_PRE_LAG_VER_OFF,4,2     ; @NFP_FL_PRE_LAG_VER_OFF
.subsections_via_symbols
