	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hclge_add_fd_entry
_hclge_add_fd_entry:                    ## @hclge_add_fd_entry
	.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	%rsi, %r15
	movq	%rdi, %r14
	callq	_hclge_get_vport
	movq	%rax, %r12
	movq	16(%rax), %r13
	movq	$0, -64(%rbp)
	movq	%r13, %rdi
	callq	_hnae3_dev_fd_supported
	testl	%eax, %eax
	je	LBB0_5
## %bb.1:
	cmpl	$0, 24(%r13)
	je	LBB0_4
## %bb.2:
	leaq	-64(%rbp), %rdx
	movq	%r13, %rdi
	movq	%r15, %rsi
	callq	_hclge_fd_check_spec
	testl	%eax, %eax
	je	LBB0_9
## %bb.3:
	movl	%eax, %ebx
	movq	8(%r13), %rdi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_8
LBB0_4:
	movq	8(%r13), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_dev_warn
LBB0_5:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
LBB0_6:
	xorl	%ebx, %ebx
LBB0_7:
	subl	(%rax), %ebx
LBB0_8:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	(%r15), %rdi
	movq	_RX_CLS_FLOW_DISC@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdi
	jne	LBB0_14
## %bb.10:
	movq	_HCLGE_FD_ACTION_DROP_PACKET@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	xorl	%ecx, %ecx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
LBB0_11:
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$40, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_18
## %bb.12:
	movq	%rax, %r12
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	movq	%r13, %rdi
	movq	%r15, %rsi
	movq	%rax, %rdx
	callq	_hclge_fd_get_tuple
	testl	%eax, %eax
	je	LBB0_19
## %bb.13:
	movl	%eax, %ebx
	movq	%r12, %rdi
	callq	_kfree
	jmp	LBB0_8
LBB0_14:
	callq	_ethtool_get_flow_spec_ring
	movq	%rax, %rbx
	movq	(%r15), %rdi
	callq	_ethtool_get_flow_spec_ring_vf
	movl	(%r13), %ecx
	cmpl	%ecx, %eax
	jle	LBB0_16
## %bb.15:
	movq	8(%r13), %rdi
	leaq	L_.str.2(%rip), %rsi
	xorl	%ebx, %ebx
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_24
LBB0_16:
	testl	%eax, %eax
	je	LBB0_20
## %bb.17:
	movq	16(%r13), %rcx
	cltq
	shlq	$4, %rax
	leaq	(%rcx,%rax), %r12
	addq	%rcx, %rax
	addq	$8, %rax
	jmp	LBB0_21
LBB0_18:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_19:
	movl	12(%r15), %eax
	movl	%eax, 36(%r12)
	movl	8(%r15), %eax
	movl	%eax, 32(%r12)
	movq	-64(%rbp), %rax
	movq	%rax, 24(%r12)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 16(%r12)
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 8(%r12)
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, (%r12)
	movq	_HCLGE_FD_EP_ACTIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r12)
	movq	%r14, %rdi
	callq	_hclge_clear_arfs_rules
	leaq	4(%r13), %r14
	movq	%r14, %rdi
	callq	_spin_lock_bh
	movq	%r13, %rdi
	movq	%r12, %rsi
	callq	_hclge_fd_config_rule
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_spin_unlock_bh
	jmp	LBB0_8
LBB0_20:
	movq	%r12, %rax
	addq	$8, %rax
LBB0_21:
	movq	(%rax), %rcx
	cmpq	%rcx, %rbx
	jge	LBB0_23
## %bb.22:
	movq	(%r12), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	_HCLGE_FD_ACTION_ACCEPT_PACKET@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_23:
	movq	8(%r13), %rdi
	decq	%rcx
	leaq	L_.str.3(%rip), %rsi
	movq	%rbx, %rdx
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_dev_err
LBB0_24:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Please enable flow director first\n"

L_.str.1:                               ## @.str.1
	.asciz	"Check fd spec failed\n"

	.comm	_RX_CLS_FLOW_DISC,8,3           ## @RX_CLS_FLOW_DISC
	.comm	_HCLGE_FD_ACTION_DROP_PACKET,4,2 ## @HCLGE_FD_ACTION_DROP_PACKET
L_.str.2:                               ## @.str.2
	.asciz	"Error: vf id (%d) > max vf num (%d)\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.3:                               ## @.str.3
	.asciz	"Error: queue id (%d) > max tqp num (%d)\n"

	.comm	_HCLGE_FD_ACTION_ACCEPT_PACKET,4,2 ## @HCLGE_FD_ACTION_ACCEPT_PACKET
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_HCLGE_FD_EP_ACTIVE,4,2         ## @HCLGE_FD_EP_ACTIVE
	.no_dead_strip	_hclge_add_fd_entry
.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
_hclge_add_fd_entry:                    ; @hclge_add_fd_entry
	.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	x21, x1
	mov	x20, x0
	bl	_hclge_get_vport
	mov	x23, x0
	ldr	x19, [x0, #16]
	str	xzr, [sp, #24]
	mov	x0, x19
	bl	_hnae3_dev_fd_supported
	cbz	w0, LBB0_5
; %bb.1:
	ldr	w8, [x19, #24]
	cbz	w8, LBB0_4
; %bb.2:
	add	x2, sp, #24
	mov	x0, x19
	mov	x1, x21
	bl	_hclge_fd_check_spec
	cbz	w0, LBB0_8
; %bb.3:
	mov	x24, x0
	ldr	x0, [x19, #8]
Lloh0:
	adrp	x1, l_.str.1@PAGE
Lloh1:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_err
	b	LBB0_7
LBB0_4:
	ldr	x0, [x19, #8]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_warn
LBB0_5:
Lloh4:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
	neg	w24, w8
LBB0_7:
	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_8:
	ldr	x0, [x21]
Lloh6:
	adrp	x8, _RX_CLS_FLOW_DISC@GOTPAGE
Lloh7:
	ldr	x8, [x8, _RX_CLS_FLOW_DISC@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_10
; %bb.9:
	mov	x22, #0
	mov	x25, #0
Lloh9:
	adrp	x8, _HCLGE_FD_ACTION_DROP_PACKET@GOTPAGE
Lloh10:
	ldr	x8, [x8, _HCLGE_FD_ACTION_DROP_PACKET@GOTPAGEOFF]
	b	LBB0_16
LBB0_10:
	bl	_ethtool_get_flow_spec_ring
	mov	x22, x0
	ldr	x0, [x21]
	bl	_ethtool_get_flow_spec_ring_vf
                                        ; kill: def $w0 killed $w0 def $x0
	ldr	w9, [x19]
	cmp	w0, w9
	b.le	LBB0_12
; %bb.11:
	ldr	x8, [x19, #8]
	stp	x0, x9, [sp]
Lloh11:
	adrp	x1, l_.str.2@PAGE
Lloh12:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x8
	b	LBB0_22
LBB0_12:
	cbz	w0, LBB0_14
; %bb.13:
	ldr	x8, [x19, #16]
	add	x23, x8, w0, sxtw #4
LBB0_14:
	add	x8, x23, #8
	ldr	x8, [x8]
	cmp	x22, x8
	b.ge	LBB0_21
; %bb.15:
	ldr	x25, [x23]
Lloh13:
	adrp	x8, _HCLGE_FD_ACTION_ACCEPT_PACKET@GOTPAGE
Lloh14:
	ldr	x8, [x8, _HCLGE_FD_ACTION_ACCEPT_PACKET@GOTPAGEOFF]
LBB0_16:
	ldr	w26, [x8]
Lloh15:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh16:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	w0, #40
	bl	_kzalloc
	cbz	x0, LBB0_19
; %bb.17:
	mov	x23, x0
	mov	x0, x19
	mov	x1, x21
	mov	x2, x23
	bl	_hclge_fd_get_tuple
	cbz	w0, LBB0_20
; %bb.18:
	mov	x24, x0
	mov	x0, x23
	bl	_kfree
	b	LBB0_7
LBB0_19:
Lloh18:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_6
LBB0_20:
	ldr	d0, [x21, #8]
	str	d0, [x23, #32]
	ldr	x8, [sp, #24]
	stp	x25, x8, [x23, #16]
	str	x22, [x23, #8]
	str	w26, [x23]
Lloh20:
	adrp	x8, _HCLGE_FD_EP_ACTIVE@GOTPAGE
Lloh21:
	ldr	x8, [x8, _HCLGE_FD_EP_ACTIVE@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	str	w8, [x23, #4]
	mov	x0, x20
	bl	_hclge_clear_arfs_rules
	add	x20, x19, #4
	mov	x0, x20
	bl	_spin_lock_bh
	mov	x0, x19
	mov	x1, x23
	bl	_hclge_fd_config_rule
	mov	x24, x0
	mov	x0, x20
	bl	_spin_unlock_bh
	b	LBB0_7
LBB0_21:
	ldr	x0, [x19, #8]
	sub	x8, x8, #1
	stp	x22, x8, [sp]
Lloh23:
	adrp	x1, l_.str.3@PAGE
Lloh24:
	add	x1, x1, l_.str.3@PAGEOFF
LBB0_22:
	bl	_dev_err
Lloh25:
	adrp	x8, _EINVAL@GOTPAGE
Lloh26:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_6
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Please enable flow director first\n"

l_.str.1:                               ; @.str.1
	.asciz	"Check fd spec failed\n"

	.comm	_RX_CLS_FLOW_DISC,8,3           ; @RX_CLS_FLOW_DISC
	.comm	_HCLGE_FD_ACTION_DROP_PACKET,4,2 ; @HCLGE_FD_ACTION_DROP_PACKET
l_.str.2:                               ; @.str.2
	.asciz	"Error: vf id (%d) > max vf num (%d)\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.3:                               ; @.str.3
	.asciz	"Error: queue id (%d) > max tqp num (%d)\n"

	.comm	_HCLGE_FD_ACTION_ACCEPT_PACKET,4,2 ; @HCLGE_FD_ACTION_ACCEPT_PACKET
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_HCLGE_FD_EP_ACTIVE,4,2         ; @HCLGE_FD_EP_ACTIVE
	.no_dead_strip	_hclge_add_fd_entry
.subsections_via_symbols
