	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hclge_fd_ad_config
_hclge_fd_ad_config:                    ## @hclge_fd_ad_config
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %rbx
	movl	%edx, %r12d
	movl	%esi, %r13d
	movq	%rdi, %r15
	movq	_HCLGE_OPC_FD_AD_OP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-48(%rbp), %rdi
	xorl	%edx, %edx
	callq	_hclge_cmd_setup_basic_desc
	movq	-48(%rbp), %r14
	movl	%r12d, %edi
	callq	_cpu_to_le32
	movl	%eax, 8(%r14)
	movl	%r13d, 4(%r14)
	movq	_HCLGE_FD_AD_WR_RULE_ID_B@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	28(%rbx), %edx
	xorl	%edi, %edi
	callq	_hnae3_set_bit
	movq	_HCLGE_FD_AD_RULE_ID_M@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_HCLGE_FD_AD_RULE_ID_S@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	24(%rbx), %ecx
	xorl	%edi, %edi
	callq	_hnae3_set_field
	movq	_HCLGE_FD_AD_DROP_B@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	20(%rbx), %edx
	callq	_hnae3_set_bit
	movq	_HCLGE_FD_AD_DIRECT_QID_B@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	16(%rbx), %edx
	callq	_hnae3_set_bit
	movq	_HCLGE_FD_AD_QID_M@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_HCLGE_FD_AD_QID_S@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	12(%rbx), %ecx
	callq	_hnae3_set_field
	movq	_HCLGE_FD_AD_USE_COUNTER_B@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	8(%rbx), %edx
	callq	_hnae3_set_bit
	movq	_HCLGE_FD_AD_COUNTER_NUM_M@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_HCLGE_FD_AD_COUNTER_NUM_S@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	(%rbx), %ecx
	callq	_hnae3_set_field
	movq	_HCLGE_FD_AD_NXT_STEP_B@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	4(%rbx), %edx
	callq	_hnae3_set_bit
	movq	_HCLGE_FD_AD_NXT_KEY_M@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_HCLGE_FD_AD_NXT_KEY_S@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	(%rbx), %ecx
	callq	_hnae3_set_field
	callq	_cpu_to_le64
	movl	%eax, (%r14)
	leaq	8(%r15), %rdi
	leaq	-48(%rbp), %rsi
	movl	$1, %edx
	callq	_hclge_cmd_send
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movq	(%r15), %rdi
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edx
	callq	_dev_err
LBB0_2:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HCLGE_OPC_FD_AD_OP,4,2         ## @HCLGE_OPC_FD_AD_OP
	.comm	_HCLGE_FD_AD_WR_RULE_ID_B,4,2   ## @HCLGE_FD_AD_WR_RULE_ID_B
	.comm	_HCLGE_FD_AD_RULE_ID_M,4,2      ## @HCLGE_FD_AD_RULE_ID_M
	.comm	_HCLGE_FD_AD_RULE_ID_S,4,2      ## @HCLGE_FD_AD_RULE_ID_S
	.comm	_HCLGE_FD_AD_DROP_B,4,2         ## @HCLGE_FD_AD_DROP_B
	.comm	_HCLGE_FD_AD_DIRECT_QID_B,4,2   ## @HCLGE_FD_AD_DIRECT_QID_B
	.comm	_HCLGE_FD_AD_QID_M,4,2          ## @HCLGE_FD_AD_QID_M
	.comm	_HCLGE_FD_AD_QID_S,4,2          ## @HCLGE_FD_AD_QID_S
	.comm	_HCLGE_FD_AD_USE_COUNTER_B,4,2  ## @HCLGE_FD_AD_USE_COUNTER_B
	.comm	_HCLGE_FD_AD_COUNTER_NUM_M,4,2  ## @HCLGE_FD_AD_COUNTER_NUM_M
	.comm	_HCLGE_FD_AD_COUNTER_NUM_S,4,2  ## @HCLGE_FD_AD_COUNTER_NUM_S
	.comm	_HCLGE_FD_AD_NXT_STEP_B,4,2     ## @HCLGE_FD_AD_NXT_STEP_B
	.comm	_HCLGE_FD_AD_NXT_KEY_M,4,2      ## @HCLGE_FD_AD_NXT_KEY_M
	.comm	_HCLGE_FD_AD_NXT_KEY_S,4,2      ## @HCLGE_FD_AD_NXT_KEY_S
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"fd ad config fail, ret=%d\n"

	.no_dead_strip	_hclge_fd_ad_config
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hclge_fd_ad_config
_hclge_fd_ad_config:                    ; @hclge_fd_ad_config
	.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	x20, x3
	mov	x21, x2
	mov	x22, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _HCLGE_OPC_FD_AD_OP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HCLGE_OPC_FD_AD_OP@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x0, sp, #8
	mov	w2, #0
	bl	_hclge_cmd_setup_basic_desc
	ldr	x23, [sp, #8]
	mov	x0, x21
	bl	_cpu_to_le32
	stp	w22, w0, [x23, #4]
Lloh3:
	adrp	x8, _HCLGE_FD_AD_WR_RULE_ID_B@GOTPAGE
Lloh4:
	ldr	x8, [x8, _HCLGE_FD_AD_WR_RULE_ID_B@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	ldr	w2, [x20, #28]
	mov	w0, #0
	bl	_hnae3_set_bit
Lloh6:
	adrp	x8, _HCLGE_FD_AD_RULE_ID_M@GOTPAGE
Lloh7:
	ldr	x8, [x8, _HCLGE_FD_AD_RULE_ID_M@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
Lloh9:
	adrp	x8, _HCLGE_FD_AD_RULE_ID_S@GOTPAGE
Lloh10:
	ldr	x8, [x8, _HCLGE_FD_AD_RULE_ID_S@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	ldr	w3, [x20, #24]
	mov	w0, #0
	bl	_hnae3_set_field
Lloh12:
	adrp	x8, _HCLGE_FD_AD_DROP_B@GOTPAGE
Lloh13:
	ldr	x8, [x8, _HCLGE_FD_AD_DROP_B@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	ldr	w2, [x20, #20]
	bl	_hnae3_set_bit
Lloh15:
	adrp	x8, _HCLGE_FD_AD_DIRECT_QID_B@GOTPAGE
Lloh16:
	ldr	x8, [x8, _HCLGE_FD_AD_DIRECT_QID_B@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	ldr	w2, [x20, #16]
	bl	_hnae3_set_bit
Lloh18:
	adrp	x8, _HCLGE_FD_AD_QID_M@GOTPAGE
Lloh19:
	ldr	x8, [x8, _HCLGE_FD_AD_QID_M@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
Lloh21:
	adrp	x8, _HCLGE_FD_AD_QID_S@GOTPAGE
Lloh22:
	ldr	x8, [x8, _HCLGE_FD_AD_QID_S@GOTPAGEOFF]
Lloh23:
	ldr	w2, [x8]
	ldr	w3, [x20, #12]
	bl	_hnae3_set_field
Lloh24:
	adrp	x8, _HCLGE_FD_AD_USE_COUNTER_B@GOTPAGE
Lloh25:
	ldr	x8, [x8, _HCLGE_FD_AD_USE_COUNTER_B@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
	ldr	w2, [x20, #8]
	bl	_hnae3_set_bit
Lloh27:
	adrp	x8, _HCLGE_FD_AD_COUNTER_NUM_M@GOTPAGE
Lloh28:
	ldr	x8, [x8, _HCLGE_FD_AD_COUNTER_NUM_M@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
Lloh30:
	adrp	x8, _HCLGE_FD_AD_COUNTER_NUM_S@GOTPAGE
Lloh31:
	ldr	x8, [x8, _HCLGE_FD_AD_COUNTER_NUM_S@GOTPAGEOFF]
Lloh32:
	ldr	w2, [x8]
	ldr	w3, [x20]
	bl	_hnae3_set_field
Lloh33:
	adrp	x8, _HCLGE_FD_AD_NXT_STEP_B@GOTPAGE
Lloh34:
	ldr	x8, [x8, _HCLGE_FD_AD_NXT_STEP_B@GOTPAGEOFF]
Lloh35:
	ldr	w1, [x8]
	ldr	w2, [x20, #4]
	bl	_hnae3_set_bit
Lloh36:
	adrp	x8, _HCLGE_FD_AD_NXT_KEY_M@GOTPAGE
Lloh37:
	ldr	x8, [x8, _HCLGE_FD_AD_NXT_KEY_M@GOTPAGEOFF]
Lloh38:
	ldr	w1, [x8]
Lloh39:
	adrp	x8, _HCLGE_FD_AD_NXT_KEY_S@GOTPAGE
Lloh40:
	ldr	x8, [x8, _HCLGE_FD_AD_NXT_KEY_S@GOTPAGEOFF]
Lloh41:
	ldr	w2, [x8]
	ldr	w3, [x20]
	bl	_hnae3_set_field
	bl	_cpu_to_le64
	str	w0, [x23]
	add	x0, x19, #8
	add	x1, sp, #8
	mov	w2, #1
	bl	_hclge_cmd_send
	mov	x20, x0
	cbz	w0, LBB0_2
; %bb.1:
	ldr	x0, [x19]
Lloh42:
	adrp	x1, l_.str@PAGE
Lloh43:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x20
	bl	_dev_err
LBB0_2:
	mov	x0, x20
	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
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh42, Lloh43
	.cfi_endproc
                                        ; -- End function
	.comm	_HCLGE_OPC_FD_AD_OP,4,2         ; @HCLGE_OPC_FD_AD_OP
	.comm	_HCLGE_FD_AD_WR_RULE_ID_B,4,2   ; @HCLGE_FD_AD_WR_RULE_ID_B
	.comm	_HCLGE_FD_AD_RULE_ID_M,4,2      ; @HCLGE_FD_AD_RULE_ID_M
	.comm	_HCLGE_FD_AD_RULE_ID_S,4,2      ; @HCLGE_FD_AD_RULE_ID_S
	.comm	_HCLGE_FD_AD_DROP_B,4,2         ; @HCLGE_FD_AD_DROP_B
	.comm	_HCLGE_FD_AD_DIRECT_QID_B,4,2   ; @HCLGE_FD_AD_DIRECT_QID_B
	.comm	_HCLGE_FD_AD_QID_M,4,2          ; @HCLGE_FD_AD_QID_M
	.comm	_HCLGE_FD_AD_QID_S,4,2          ; @HCLGE_FD_AD_QID_S
	.comm	_HCLGE_FD_AD_USE_COUNTER_B,4,2  ; @HCLGE_FD_AD_USE_COUNTER_B
	.comm	_HCLGE_FD_AD_COUNTER_NUM_M,4,2  ; @HCLGE_FD_AD_COUNTER_NUM_M
	.comm	_HCLGE_FD_AD_COUNTER_NUM_S,4,2  ; @HCLGE_FD_AD_COUNTER_NUM_S
	.comm	_HCLGE_FD_AD_NXT_STEP_B,4,2     ; @HCLGE_FD_AD_NXT_STEP_B
	.comm	_HCLGE_FD_AD_NXT_KEY_M,4,2      ; @HCLGE_FD_AD_NXT_KEY_M
	.comm	_HCLGE_FD_AD_NXT_KEY_S,4,2      ; @HCLGE_FD_AD_NXT_KEY_S
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"fd ad config fail, ret=%d\n"

	.no_dead_strip	_hclge_fd_ad_config
.subsections_via_symbols
