	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nfp_flower_merge_action
_nfp_flower_merge_action:               ## @nfp_flower_merge_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
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	$0, -56(%rbp)
	movl	$0, -44(%rbp)
	movl	8(%rsi), %r12d
	testl	%r12d, %r12d
	je	LBB0_1
## %bb.2:
	movl	8(%rdi), %r13d
	addl	$-4, %r13d
	leal	(%r12,%r13), %r15d
	movq	_NFP_FL_MAX_A_SIZ@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r15d
	jbe	LBB0_3
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_13:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	%rdx, %rbx
	movq	%rsi, %r14
	testl	%r13d, %r13d
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	je	LBB0_5
## %bb.4:
	movq	_NFP_FL_SC_ACT_NULL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_be32
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	jmp	LBB0_6
LBB0_5:
	movl	12(%r14), %eax
LBB0_6:
	movl	%eax, 12(%rbx)
	movl	%r15d, 8(%rbx)
	movq	%rbx, -88(%rbp)                 ## 8-byte Spill
	movq	(%rbx), %r15
	movq	(%rdi), %rsi
	leaq	-44(%rbp), %rcx
	movq	%r15, %rdi
	movl	%r13d, %edx
	callq	_nfp_flower_copy_pre_actions
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	movl	%eax, %eax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	addq	%rax, %r15
	movq	(%r14), %rsi
	movq	%r15, %rdi
	movl	%r12d, %edx
	xorl	%ecx, %ecx
	callq	_nfp_flower_copy_pre_actions
                                        ## kill: def $eax killed $eax def $rax
	movl	%eax, %ecx
	movq	%rax, %rbx
	subl	%eax, %r12d
	cmpl	$0, -44(%rbp)
	je	LBB0_9
## %bb.7:
	movq	(%r14), %rdi
	addq	%rcx, %rdi
	leaq	-56(%rbp), %rdx
	movl	%r12d, %esi
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	callq	_nfp_fl_verify_post_tun_acts
	testl	%eax, %eax
	jne	LBB0_13
## %bb.8:
	leal	4(%rbx), %eax
	leal	-4(%r12), %ecx
	cmpq	$0, -56(%rbp)
	cmovel	%r12d, %ecx
	cmovel	%ebx, %eax
	movl	%ecx, %r12d
	movl	%eax, %ebx
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
LBB0_9:
	subl	-60(%rbp), %r13d                ## 4-byte Folded Reload
	addq	%rcx, %r15
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	-96(%rbp), %rsi                 ## 8-byte Reload
	addq	(%rax), %rsi
	movq	%r15, %rdi
	movl	%r13d, %edx
	callq	_memcpy
	movq	-56(%rbp), %rdx
	testq	%rdx, %rdx
	je	LBB0_12
## %bb.10:
	movq	%r15, %rdi
	movl	%r13d, %esi
	callq	_nfp_fl_push_vlan_after_tun
	testl	%eax, %eax
	jne	LBB0_13
## %bb.11:
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	addl	$-4, 8(%rax)
LBB0_12:
	movl	%r13d, %eax
	addq	%rax, %r15
	movl	%ebx, %esi
	addq	(%r14), %rsi
	movq	%r15, %rdi
	movl	%r12d, %edx
	callq	_memcpy
	xorl	%eax, %eax
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_NFP_FL_MAX_A_SIZ,4,2           ## @NFP_FL_MAX_A_SIZ
	.comm	_NFP_FL_SC_ACT_NULL,4,2         ## @NFP_FL_SC_ACT_NULL
	.no_dead_strip	_nfp_flower_merge_action
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nfp_flower_merge_action
_nfp_flower_merge_action:               ; @nfp_flower_merge_action
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	str	xzr, [sp, #8]
	str	wzr, [sp, #4]
	ldr	w23, [x1, #8]
	cbz	w23, LBB0_2
; %bb.1:
	mov	x21, x0
	ldr	w8, [x0, #8]
	sub	w22, w8, #4
Lloh0:
	adrp	x8, _NFP_FL_MAX_A_SIZ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NFP_FL_MAX_A_SIZ@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	add	w24, w22, w23
	cmp	w24, w8
	b.ls	LBB0_4
LBB0_2:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_3:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_4:
	mov	x20, x2
	mov	x19, x1
	cbz	w22, LBB0_6
; %bb.5:
Lloh6:
	adrp	x8, _NFP_FL_SC_ACT_NULL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _NFP_FL_SC_ACT_NULL@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_cpu_to_be32
	b	LBB0_7
LBB0_6:
	ldr	w0, [x19, #12]
LBB0_7:
	stp	w24, w0, [x20, #8]
	ldr	x24, [x20]
	ldr	x1, [x21]
	add	x3, sp, #4
	mov	x0, x24
	mov	x2, x22
	bl	_nfp_flower_copy_pre_actions
	mov	x25, x0
	mov	w27, w0
	add	x26, x24, x27
	ldr	x1, [x19]
	mov	x0, x26
	mov	x2, x23
	mov	x3, #0
	bl	_nfp_flower_copy_pre_actions
	mov	x24, x0
	mov	w28, w0
	sub	w23, w23, w0
	ldr	w8, [sp, #4]
	cbz	w8, LBB0_10
; %bb.8:
	ldr	x8, [x19]
	add	x0, x8, x28
	add	x2, sp, #8
	mov	x1, x23
	bl	_nfp_fl_verify_post_tun_acts
	cbnz	w0, LBB0_3
; %bb.9:
	ldr	x8, [sp, #8]
	add	w9, w24, #4
	sub	w10, w23, #4
	cmp	x8, #0
	csel	w23, w23, w10, eq
	csel	w24, w24, w9, eq
LBB0_10:
	sub	w22, w22, w25
	add	x25, x26, x28
	ldr	x8, [x21]
	add	x1, x8, x27
	mov	x0, x25
	mov	x2, x22
	bl	_memcpy
	ldr	x2, [sp, #8]
	cbz	x2, LBB0_13
; %bb.11:
	mov	x0, x25
	mov	x1, x22
	bl	_nfp_fl_push_vlan_after_tun
	cbnz	w0, LBB0_3
; %bb.12:
	ldr	w8, [x20, #8]
	sub	w8, w8, #4
	str	w8, [x20, #8]
LBB0_13:
	add	x0, x25, w22, uxtw
	ldr	x8, [x19]
	add	x1, x8, w24, uxtw
	mov	x2, x23
	bl	_memcpy
	mov	w0, #0
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_NFP_FL_MAX_A_SIZ,4,2           ; @NFP_FL_MAX_A_SIZ
	.comm	_NFP_FL_SC_ACT_NULL,4,2         ; @NFP_FL_SC_ACT_NULL
	.no_dead_strip	_nfp_flower_merge_action
.subsections_via_symbols
