	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hclge_add_fd_entry_by_arfs
_hclge_add_fd_entry_by_arfs:            ## @hclge_add_fd_entry_by_arfs
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r15
	movq	%rdx, %rbx
	movq	%rsi, %r14
	callq	_hclge_get_vport
	movq	(%rax), %r13
	movq	%r13, %rdi
	callq	_hnae3_dev_fd_supported
	testl	%eax, %eax
	je	LBB0_1
## %bb.3:
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	leaq	-48(%rbp), %r12
	xorl	%ebx, %ebx
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_hclge_fd_get_flow_tuples
	leaq	8(%r13), %r12
	movq	%r12, %rdi
	callq	_spin_lock_bh
	movq	(%r13), %rax
	movq	_HCLGE_FD_EP_ACTIVE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.4:
	movq	%r12, %rdi
	callq	_spin_unlock_bh
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_15
LBB0_1:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_15
LBB0_5:
	leaq	-48(%rbp), %rsi
	movq	%r13, %rdi
	callq	_hclge_fd_search_flow_keys
	testq	%rax, %rax
	je	LBB0_6
## %bb.12:
	movq	%rax, %r15
	movq	%r12, %rdi
	callq	_spin_unlock_bh
	movq	8(%r15), %r12
	cmpq	%r14, %r12
	je	LBB0_11
## %bb.13:
	movq	%r14, 8(%r15)
	movq	_HCLGE_FD_STAGE_1@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%r13, %rdi
	movq	%r15, %rdx
	callq	_hclge_config_action
	testl	%eax, %eax
	je	LBB0_11
## %bb.14:
	movl	%eax, %ebx
	movq	%r12, 8(%r15)
	jmp	LBB0_15
LBB0_6:
	movl	12(%r13), %edi
	movq	_MAX_FD_FILTER_NUM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_find_first_zero_bit
	movq	%rax, %rbx
	movq	16(%r13), %rax
	movq	_HCLGE_FD_STAGE_1@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	(%rax,%rcx,8), %rbx
	jge	LBB0_7
## %bb.8:
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$24, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_9
## %bb.10:
	movq	%rax, %r15
	movl	12(%r13), %esi
	movq	%rbx, %rdi
	callq	_set_bit
	movl	%ebx, (%r15)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 16(%r15)
	movq	%r14, 8(%r15)
	leaq	-48(%rbp), %rdi
	movq	%r15, %rsi
	callq	_hclge_fd_build_arfs_rule
	movq	%r13, %rdi
	movq	%r15, %rsi
	callq	_hclge_fd_config_rule
	movl	%eax, %ebx
	movq	%r12, %rdi
	callq	_spin_unlock_bh
	testl	%ebx, %ebx
	jne	LBB0_15
LBB0_11:
	movl	(%r15), %ebx
LBB0_15:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	%r12, %rdi
	callq	_spin_unlock_bh
	movq	_ENOSPC@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_9:
	movq	%r12, %rdi
	callq	_spin_unlock_bh
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_2
	.cfi_endproc
                                        ## -- End function
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_HCLGE_FD_EP_ACTIVE,8,3         ## @HCLGE_FD_EP_ACTIVE
	.comm	_MAX_FD_FILTER_NUM,4,2          ## @MAX_FD_FILTER_NUM
	.comm	_HCLGE_FD_STAGE_1,8,3           ## @HCLGE_FD_STAGE_1
	.comm	_ENOSPC,4,2                     ## @ENOSPC
	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_hclge_add_fd_entry_by_arfs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hclge_add_fd_entry_by_arfs
_hclge_add_fd_entry_by_arfs:            ; @hclge_add_fd_entry_by_arfs
	.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	x21, x2
	mov	x20, x1
	bl	_hclge_get_vport
	ldr	x19, [x0]
	mov	x0, x19
	bl	_hnae3_dev_fd_supported
	cbz	w0, LBB0_3
; %bb.1:
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	add	x1, sp, #8
	mov	x0, x22
	bl	_hclge_fd_get_flow_tuples
	add	x22, x19, #8
	mov	x0, x22
	bl	_spin_lock_bh
	ldr	x8, [x19]
Lloh0:
	adrp	x9, _HCLGE_FD_EP_ACTIVE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _HCLGE_FD_EP_ACTIVE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.2:
	mov	x0, x22
	bl	_spin_unlock_bh
LBB0_3:
Lloh3:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
LBB0_4:
	ldr	w8, [x8]
	neg	w19, w8
LBB0_5:
	mov	x0, x19
	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
LBB0_6:
	add	x1, sp, #8
	mov	x0, x19
	bl	_hclge_fd_search_flow_keys
	cbz	x0, LBB0_10
; %bb.7:
	mov	x23, x0
	mov	x0, x22
	bl	_spin_unlock_bh
	ldr	x21, [x23, #8]
	cmp	x21, x20
	b.eq	LBB0_13
; %bb.8:
	str	x20, [x23, #8]
Lloh5:
	adrp	x8, _HCLGE_FD_STAGE_1@GOTPAGE
Lloh6:
	ldr	x8, [x8, _HCLGE_FD_STAGE_1@GOTPAGEOFF]
Lloh7:
	ldr	x1, [x8]
	mov	x0, x19
	mov	x2, x23
	bl	_hclge_config_action
	cbz	w0, LBB0_13
; %bb.9:
	mov	x19, x0
	str	x21, [x23, #8]
	b	LBB0_5
LBB0_10:
	ldr	w0, [x19, #12]
Lloh8:
	adrp	x8, _MAX_FD_FILTER_NUM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MAX_FD_FILTER_NUM@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	bl	_find_first_zero_bit
	ldr	x8, [x19, #16]
Lloh11:
	adrp	x9, _HCLGE_FD_STAGE_1@GOTPAGE
Lloh12:
	ldr	x9, [x9, _HCLGE_FD_STAGE_1@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	ldr	x8, [x8, x9, lsl #3]
	cmp	x0, x8
	b.ge	LBB0_14
; %bb.11:
	mov	x24, x0
Lloh14:
	adrp	x8, _GFP_ATOMIC@GOTPAGE
Lloh15:
	ldr	x8, [x8, _GFP_ATOMIC@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	w0, #24
	bl	_kzalloc
	cbz	x0, LBB0_15
; %bb.12:
	mov	x23, x0
	ldr	w1, [x19, #12]
	mov	x0, x24
	bl	_set_bit
	str	w24, [x23]
	stp	x20, x21, [x23, #8]
	add	x0, sp, #8
	mov	x1, x23
	bl	_hclge_fd_build_arfs_rule
	mov	x0, x19
	mov	x1, x23
	bl	_hclge_fd_config_rule
	mov	x19, x0
	mov	x0, x22
	bl	_spin_unlock_bh
	cbnz	w19, LBB0_5
LBB0_13:
	ldr	w19, [x23]
	b	LBB0_5
LBB0_14:
	mov	x0, x22
	bl	_spin_unlock_bh
Lloh17:
	adrp	x8, _ENOSPC@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ENOSPC@GOTPAGEOFF]
	b	LBB0_4
LBB0_15:
	mov	x0, x22
	bl	_spin_unlock_bh
Lloh19:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_HCLGE_FD_EP_ACTIVE,8,3         ; @HCLGE_FD_EP_ACTIVE
	.comm	_MAX_FD_FILTER_NUM,4,2          ; @MAX_FD_FILTER_NUM
	.comm	_HCLGE_FD_STAGE_1,8,3           ; @HCLGE_FD_STAGE_1
	.comm	_ENOSPC,4,2                     ; @ENOSPC
	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_hclge_add_fd_entry_by_arfs
.subsections_via_symbols
