	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hclge_del_fd_entry
_hclge_del_fd_entry:                    ## @hclge_del_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	callq	_hclge_get_vport
	movq	(%rax), %rbx
	movq	%rbx, %rdi
	callq	_hnae3_dev_fd_supported
	testl	%eax, %eax
	je	LBB0_1
## %bb.3:
	movq	(%r14), %rsi
	movq	16(%rbx), %rax
	movq	_HCLGE_FD_STAGE_1@GOTPCREL(%rip), %r15
	movq	(%r15), %rcx
	cmpq	(%rax,%rcx,8), %rsi
	jge	LBB0_4
## %bb.5:
	movq	%rbx, %rdi
	callq	_hclge_fd_rule_exist
	testl	%eax, %eax
	je	LBB0_6
## %bb.7:
	movq	(%r15), %rsi
	movq	(%r14), %rcx
	movq	%rbx, %rdi
	movl	$1, %edx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_hclge_fd_tcam_config
	testl	%eax, %eax
	jne	LBB0_9
## %bb.8:
	movq	%rbx, %rdi
	callq	_spin_lock_bh
	movq	(%r14), %rdx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	xorl	%ecx, %ecx
	callq	_hclge_fd_update_rule_list
	movl	%eax, %r14d
	movq	%rbx, %rdi
	callq	_spin_unlock_bh
	movl	%r14d, %eax
	jmp	LBB0_9
LBB0_1:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
LBB0_4:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
LBB0_6:
	movq	8(%rbx), %rdi
	movq	(%r14), %rdx
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	movq	_ENOENT@GOTPCREL(%rip), %rcx
LBB0_2:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_HCLGE_FD_STAGE_1,8,3           ## @HCLGE_FD_STAGE_1
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Delete fail, rule %d is inexistent\n"

	.comm	_ENOENT,4,2                     ## @ENOENT
	.no_dead_strip	_hclge_del_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_del_fd_entry
_hclge_del_fd_entry:                    ; @hclge_del_fd_entry
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x1
	bl	_hclge_get_vport
	ldr	x19, [x0]
	mov	x0, x19
	bl	_hnae3_dev_fd_supported
	cbz	w0, LBB0_5
; %bb.1:
	ldr	x1, [x20]
	ldr	x8, [x19, #16]
Lloh0:
	adrp	x21, _HCLGE_FD_STAGE_1@GOTPAGE
Lloh1:
	ldr	x21, [x21, _HCLGE_FD_STAGE_1@GOTPAGEOFF]
	ldr	x9, [x21]
	ldr	x8, [x8, x9, lsl #3]
	cmp	x1, x8
	b.ge	LBB0_6
; %bb.2:
	mov	x0, x19
	bl	_hclge_fd_rule_exist
	cbz	w0, LBB0_7
; %bb.3:
	ldr	x1, [x21]
	ldr	x3, [x20]
	mov	x0, x19
	mov	w2, #1
	mov	x4, #0
	mov	w5, #0
	bl	_hclge_fd_tcam_config
	cbnz	w0, LBB0_9
; %bb.4:
	mov	x0, x19
	bl	_spin_lock_bh
	ldr	x2, [x20]
	mov	x0, x19
	mov	x1, #0
	mov	w3, #0
	bl	_hclge_fd_update_rule_list
	mov	x20, x0
	mov	x0, x19
	bl	_spin_unlock_bh
	mov	x0, x20
	b	LBB0_9
LBB0_5:
Lloh2:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
	b	LBB0_8
LBB0_6:
Lloh4:
	adrp	x8, _EINVAL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:
	ldr	x0, [x19, #8]
	ldr	x2, [x20]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
Lloh8:
	adrp	x8, _ENOENT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
LBB0_8:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_9:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_HCLGE_FD_STAGE_1,8,3           ; @HCLGE_FD_STAGE_1
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Delete fail, rule %d is inexistent\n"

	.comm	_ENOENT,4,2                     ; @ENOENT
	.no_dead_strip	_hclge_del_fd_entry
.subsections_via_symbols
