	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nfp_fl_pre_lag
_nfp_fl_pre_lag:                        ## @nfp_fl_pre_lag
	.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	(%rsi), %rbx
	xorl	%r14d, %r14d
	testq	%rbx, %rbx
	je	LBB0_8
## %bb.1:
	movq	%r8, %r15
	movl	%ecx, %r13d
	movq	%rdi, %r12
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_netif_is_lag_master
	testl	%eax, %eax
	je	LBB0_8
## %bb.2:
	movslq	%r13d, %rax
	addq	$16, %rax
	movq	_NFP_FL_MAX_A_SIZ@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	cmpq	%rcx, %rax
	jbe	LBB0_4
## %bb.3:
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_NL_SET_ERR_MSG_MOD
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_8
LBB0_4:
	testl	%r13d, %r13d
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	je	LBB0_6
## %bb.5:
	movq	8(%r14), %rsi
	leal	16(%rsi), %edi
	movl	%r13d, %edx
	callq	_memmove
LBB0_6:
	movq	8(%r14), %r13
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movq	%r13, %rdx
	movq	%r15, %rcx
	callq	_nfp_flower_lag_populate_pre_action
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_8
## %bb.7:
	movq	_NFP_FL_ACTION_OPCODE_PRE_LAG@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r13)
	movq	_NFP_FL_LW_SIZ@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	movl	$16, %eax
	shrq	%cl, %rax
	movq	%rax, (%r13)
	movq	_NFP_FL_SC_ACT_NULL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_be32
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	movl	$16, %r14d
LBB0_8:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NFP_FL_MAX_A_SIZ,4,2           ## @NFP_FL_MAX_A_SIZ
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unsupported offload: maximum allowed action list size exceeded at LAG action"

	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_NFP_FL_ACTION_OPCODE_PRE_LAG,4,2 ## @NFP_FL_ACTION_OPCODE_PRE_LAG
	.comm	_NFP_FL_LW_SIZ,8,3              ## @NFP_FL_LW_SIZ
	.comm	_NFP_FL_SC_ACT_NULL,4,2         ## @NFP_FL_SC_ACT_NULL
	.no_dead_strip	_nfp_fl_pre_lag
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nfp_fl_pre_lag
_nfp_fl_pre_lag:                        ; @nfp_fl_pre_lag
	.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
	ldr	x21, [x1]
	cbz	x21, LBB0_4
; %bb.1:
	mov	x20, x4
	mov	x23, x3
	mov	x19, x2
	mov	x22, x0
	mov	x0, x21
	bl	_netif_is_lag_master
	cbz	w0, LBB0_4
; %bb.2:
	sxtw	x8, w23
	add	x8, x8, #16
Lloh0:
	adrp	x9, _NFP_FL_MAX_A_SIZ@GOTPAGE
Lloh1:
	ldr	x9, [x9, _NFP_FL_MAX_A_SIZ@GOTPAGEOFF]
Lloh2:
	ldrsw	x9, [x9]
	cmp	x8, x9
	b.ls	LBB0_6
; %bb.3:
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_NL_SET_ERR_MSG_MOD
Lloh5:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_5
LBB0_4:
	mov	w20, #0
LBB0_5:
	mov	x0, x20
	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
LBB0_6:
	cbz	w23, LBB0_8
; %bb.7:
	ldr	x1, [x19, #8]
	add	w0, w1, #16
	mov	x2, x23
	bl	_memmove
LBB0_8:
	ldr	x23, [x19, #8]
	mov	x0, x22
	mov	x1, x21
	mov	x2, x23
	mov	x3, x20
	bl	_nfp_flower_lag_populate_pre_action
	mov	x20, x0
	cbnz	w0, LBB0_5
; %bb.9:
Lloh8:
	adrp	x8, _NFP_FL_ACTION_OPCODE_PRE_LAG@GOTPAGE
Lloh9:
	ldr	x8, [x8, _NFP_FL_ACTION_OPCODE_PRE_LAG@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	str	w8, [x23, #8]
Lloh11:
	adrp	x8, _NFP_FL_LW_SIZ@GOTPAGE
Lloh12:
	ldr	x8, [x8, _NFP_FL_LW_SIZ@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	mov	w20, #16
	lsr	x8, x20, x8
	str	x8, [x23]
Lloh14:
	adrp	x8, _NFP_FL_SC_ACT_NULL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _NFP_FL_SC_ACT_NULL@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	bl	_cpu_to_be32
	str	w0, [x19]
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_NFP_FL_MAX_A_SIZ,4,2           ; @NFP_FL_MAX_A_SIZ
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unsupported offload: maximum allowed action list size exceeded at LAG action"

	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_NFP_FL_ACTION_OPCODE_PRE_LAG,4,2 ; @NFP_FL_ACTION_OPCODE_PRE_LAG
	.comm	_NFP_FL_LW_SIZ,8,3              ; @NFP_FL_LW_SIZ
	.comm	_NFP_FL_SC_ACT_NULL,4,2         ; @NFP_FL_SC_ACT_NULL
	.no_dead_strip	_nfp_fl_pre_lag
.subsections_via_symbols
