	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nfp_flower_merge_offloaded_flows ## -- Begin function nfp_flower_merge_offloaded_flows
	.p2align	4, 0x90
_nfp_flower_merge_offloaded_flows:      ## @nfp_flower_merge_offloaded_flows
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movq	(%rdi), %r13
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	callq	_ASSERT_RTNL
	cmpq	%r14, %rbx
	je	LBB0_3
## %bb.1:
	movq	%rbx, %rdi
	callq	_nfp_flower_is_merge_flow
	testq	%rax, %rax
	jne	LBB0_3
## %bb.2:
	movq	%r14, %rdi
	callq	_nfp_flower_is_merge_flow
	testq	%rax, %rax
	je	LBB0_6
LBB0_3:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_4:
	subl	(%rax), %r12d
LBB0_5:
	movl	%r12d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_nfp_flower_can_merge
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_5
## %bb.7:
	movl	52(%rbx), %eax
	movl	%eax, -56(%rbp)
	leaq	-56(%rbp), %rdi
	callq	_nfp_flower_allocate_new
	testq	%rax, %rax
	je	LBB0_19
## %bb.8:
	movq	%rax, %r12
	movq	%rax, (%rax)
	movl	44(%rbx), %eax
	movl	%eax, 44(%r12)
	movq	16(%r12), %rdi
	movq	16(%rbx), %rsi
	movl	52(%rbx), %edx
	callq	_memcpy
	movq	24(%r12), %rdi
	movq	24(%rbx), %rsi
	movl	48(%rbx), %edx
	callq	_memcpy
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movq	%r12, %rdx
	callq	_nfp_flower_merge_action
	movq	%r12, %rcx
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_18
## %bb.9:
	movq	%rcx, %rdi
	movq	%rbx, %rsi
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	callq	_nfp_flower_link_flows
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_18
## %bb.10:
	movq	%rcx, %rdi
	movq	%r14, %rsi
	callq	_nfp_flower_link_flows
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_17
## %bb.11:
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movq	(%rdx), %rax
	movq	%rax, -80(%rbp)
	movl	44(%rdx), %ecx
	leaq	-80(%rbp), %rsi
	movq	%r15, %rdi
	callq	_nfp_compile_flow_metadata
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_16
## %bb.12:
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rsi
	addq	$40, %rsi
	movq	_nfp_flower_table_params@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	callq	_rhashtable_insert_fast
	movq	%r12, %rsi
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_15
## %bb.13:
	movq	_NFP_FLOWER_CMSG_TYPE_FLOW_MOD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_nfp_flower_xmit_flow
	testl	%eax, %eax
	je	LBB0_20
## %bb.14:
	movl	%eax, %r12d
	movq	_nfp_flower_table_params@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	callq	_rhashtable_remove_fast
	movl	%eax, %edi
	callq	_WARN_ON_ONCE
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
LBB0_15:
	movq	%r15, %rdi
	callq	_nfp_modify_flow_metadata
LBB0_16:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %rsi
	callq	_nfp_flower_unlink_flows
LBB0_17:
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_nfp_flower_unlink_flows
	movq	%r14, %rcx
LBB0_18:
	movq	32(%rcx), %rdi
	movq	%rcx, %rbx
	callq	_kfree
	movq	24(%rbx), %rdi
	callq	_kfree
	movq	16(%rbx), %rdi
	callq	_kfree
	movq	%rbx, %rdi
	callq	_kfree
	jmp	LBB0_5
LBB0_19:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	jmp	LBB0_4
LBB0_20:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	$1, 8(%rax)
	movl	$0, 8(%rbx)
	xorl	%r12d, %r12d
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_nfp_flower_table_params,4,2    ## @nfp_flower_table_params
	.comm	_NFP_FLOWER_CMSG_TYPE_FLOW_MOD,4,2 ## @NFP_FLOWER_CMSG_TYPE_FLOW_MOD
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nfp_flower_merge_offloaded_flows ; -- Begin function nfp_flower_merge_offloaded_flows
	.p2align	2
_nfp_flower_merge_offloaded_flows:      ; @nfp_flower_merge_offloaded_flows
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	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
	mov	x20, x2
	mov	x19, x1
	mov	x21, x0
	ldr	x23, [x0]
	bl	_ASSERT_RTNL
	cmp	x19, x20
	b.eq	LBB0_3
; %bb.1:
	mov	x0, x19
	bl	_nfp_flower_is_merge_flow
	cbnz	x0, LBB0_3
; %bb.2:
	mov	x0, x20
	bl	_nfp_flower_is_merge_flow
	cbz	x0, LBB0_6
LBB0_3:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_4:
	ldr	w8, [x8]
	neg	w24, w8
LBB0_5:
	mov	x0, x24
	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
	add	sp, sp, #112
	ret
LBB0_6:
	mov	x0, x19
	mov	x1, x20
	bl	_nfp_flower_can_merge
	mov	x24, x0
	cbnz	w0, LBB0_5
; %bb.7:
	ldr	w8, [x19, #52]
	str	w8, [sp, #8]
	add	x0, sp, #8
	bl	_nfp_flower_allocate_new
	cbz	x0, LBB0_19
; %bb.8:
	mov	x22, x0
	str	x0, [x0]
	ldr	w8, [x19, #44]
	str	w8, [x0, #44]
	ldr	x0, [x0, #16]
	ldr	x1, [x19, #16]
	ldr	w2, [x19, #52]
	bl	_memcpy
	ldr	x0, [x22, #24]
	ldr	x1, [x19, #24]
	ldr	w2, [x19, #48]
	bl	_memcpy
	mov	x0, x19
	mov	x1, x20
	mov	x2, x22
	bl	_nfp_flower_merge_action
	mov	x24, x0
	cbnz	w0, LBB0_18
; %bb.9:
	mov	x0, x22
	mov	x1, x19
	bl	_nfp_flower_link_flows
	mov	x24, x0
	cbnz	w0, LBB0_18
; %bb.10:
	mov	x0, x22
	mov	x1, x20
	bl	_nfp_flower_link_flows
	mov	x24, x0
	cbnz	w0, LBB0_17
; %bb.11:
	ldr	x8, [x22]
	str	x8, [sp, #16]
	ldr	w3, [x22, #44]
	add	x1, sp, #16
	mov	x0, x21
	mov	x2, x22
	bl	_nfp_compile_flow_metadata
	mov	x24, x0
	cbnz	w0, LBB0_16
; %bb.12:
	add	x25, x22, #40
Lloh2:
	adrp	x26, _nfp_flower_table_params@GOTPAGE
Lloh3:
	ldr	x26, [x26, _nfp_flower_table_params@GOTPAGEOFF]
	ldr	w2, [x26]
	mov	x0, x23
	mov	x1, x25
	bl	_rhashtable_insert_fast
	mov	x24, x0
	cbnz	w0, LBB0_15
; %bb.13:
Lloh4:
	adrp	x8, _NFP_FLOWER_CMSG_TYPE_FLOW_MOD@GOTPAGE
Lloh5:
	ldr	x8, [x8, _NFP_FLOWER_CMSG_TYPE_FLOW_MOD@GOTPAGEOFF]
Lloh6:
	ldr	w2, [x8]
	mov	x0, x21
	mov	x1, x22
	bl	_nfp_flower_xmit_flow
	mov	x24, x0
	cbz	w0, LBB0_20
; %bb.14:
	ldr	w2, [x26]
	mov	x0, x23
	mov	x1, x25
	bl	_rhashtable_remove_fast
	bl	_WARN_ON_ONCE
LBB0_15:
	mov	x0, x21
	mov	x1, x22
	bl	_nfp_modify_flow_metadata
LBB0_16:
	mov	x0, x22
	mov	x1, x20
	bl	_nfp_flower_unlink_flows
LBB0_17:
	mov	x0, x22
	mov	x1, x19
	bl	_nfp_flower_unlink_flows
LBB0_18:
	ldr	x0, [x22, #32]
	bl	_kfree
	ldr	x0, [x22, #24]
	bl	_kfree
	ldr	x0, [x22, #16]
	bl	_kfree
	mov	x0, x22
	bl	_kfree
	b	LBB0_5
LBB0_19:
Lloh7:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_4
LBB0_20:
	mov	w8, #1
	str	w8, [x22, #8]
	str	wzr, [x19, #8]
	b	LBB0_5
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_nfp_flower_table_params,4,2    ; @nfp_flower_table_params
	.comm	_NFP_FLOWER_CMSG_TYPE_FLOW_MOD,4,2 ; @NFP_FLOWER_CMSG_TYPE_FLOW_MOD
.subsections_via_symbols
