	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hclge_fd_tcam_config
_hclge_fd_tcam_config:                  ## @hclge_fd_tcam_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
	subq	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, %r15d
	movq	%r8, %rbx
	movl	%ecx, -104(%rbp)                ## 4-byte Spill
	movl	%edx, %r13d
	movl	%esi, -100(%rbp)                ## 4-byte Spill
	movq	%rdi, -120(%rbp)                ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_HCLGE_OPC_FD_TCAM_OP@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	leaq	-96(%rbp), %rdi
	xorl	%edx, %edx
	callq	_hclge_cmd_setup_basic_desc
	movq	_HCLGE_CMD_FLAG_NEXT@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	callq	_cpu_to_le16
	orl	%eax, -88(%rbp)
	leaq	-80(%rbp), %rdi
	movl	(%r12), %esi
	xorl	%edx, %edx
	callq	_hclge_cmd_setup_basic_desc
	movl	(%r14), %edi
	callq	_cpu_to_le16
	orl	%eax, -72(%rbp)
	leaq	-64(%rbp), %rdi
	movl	(%r12), %esi
	xorl	%edx, %edx
	callq	_hclge_cmd_setup_basic_desc
	movq	-96(%rbp), %r12
	movq	-80(%rbp), %rax
	movq	%rax, -112(%rbp)                ## 8-byte Spill
	movq	-64(%rbp), %r14
	movl	-100(%rbp), %eax                ## 4-byte Reload
	movl	%eax, 20(%r12)
	xorl	%eax, %eax
	testl	%r13d, %r13d
	setne	%al
	movl	%eax, (%r12)
	movl	16(%r12), %edi
	movq	_HCLGE_FD_EPORT_SW_EN_B@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	cmovel	%r13d, %r15d
	xorl	%edx, %edx
	callq	_hnae3_set_bit
	movl	-104(%rbp), %edi                ## 4-byte Reload
	callq	_cpu_to_le32
	movl	%eax, 12(%r12)
	movl	%r15d, 4(%r12)
	testq	%rbx, %rbx
	je	LBB0_2
## %bb.1:
	movl	8(%r12), %edi
	movq	%rbx, %rsi
	movl	$4, %edx
	callq	_memcpy
	movq	-112(%rbp), %rax                ## 8-byte Reload
	movl	(%rax), %edi
	leaq	16(%rbx), %rsi
	movl	$4, %edx
	callq	_memcpy
	movl	(%r14), %edi
	addq	$32, %rbx
	movq	%rbx, %rsi
	movl	$4, %edx
	callq	_memcpy
LBB0_2:
	movq	-120(%rbp), %r14                ## 8-byte Reload
	leaq	8(%r14), %rdi
	leaq	-96(%rbp), %rsi
	movl	$3, %edx
	callq	_hclge_cmd_send
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movq	(%r14), %rdi
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edx
	callq	_dev_err
LBB0_4:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_6
## %bb.5:
	movl	%ebx, %eax
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_HCLGE_OPC_FD_TCAM_OP,4,2       ## @HCLGE_OPC_FD_TCAM_OP
	.comm	_HCLGE_CMD_FLAG_NEXT,4,2        ## @HCLGE_CMD_FLAG_NEXT
	.comm	_HCLGE_FD_EPORT_SW_EN_B,4,2     ## @HCLGE_FD_EPORT_SW_EN_B
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"config tcam key fail, ret=%d\n"

	.no_dead_strip	_hclge_fd_tcam_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_tcam_config
_hclge_fd_tcam_config:                  ; @hclge_fd_tcam_config
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x22, x5
	mov	x20, x4
	mov	x21, x3
	mov	x23, x2
	mov	x24, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #56]
Lloh3:
	adrp	x25, _HCLGE_OPC_FD_TCAM_OP@GOTPAGE
Lloh4:
	ldr	x25, [x25, _HCLGE_OPC_FD_TCAM_OP@GOTPAGEOFF]
	ldr	w1, [x25]
	add	x26, sp, #8
	add	x0, sp, #8
	mov	w2, #0
	bl	_hclge_cmd_setup_basic_desc
Lloh5:
	adrp	x27, _HCLGE_CMD_FLAG_NEXT@GOTPAGE
Lloh6:
	ldr	x27, [x27, _HCLGE_CMD_FLAG_NEXT@GOTPAGEOFF]
	ldr	w0, [x27]
	bl	_cpu_to_le16
	ldr	w8, [sp, #16]
	orr	w8, w8, w0
	str	w8, [sp, #16]
	add	x0, x26, #16
	ldr	w1, [x25]
	mov	w2, #0
	bl	_hclge_cmd_setup_basic_desc
	ldr	w0, [x27]
	bl	_cpu_to_le16
	ldr	w8, [sp, #32]
	orr	w8, w8, w0
	str	w8, [sp, #32]
	add	x0, x26, #32
	ldr	w1, [x25]
	mov	w2, #0
	bl	_hclge_cmd_setup_basic_desc
	ldr	x27, [sp, #8]
	ldr	x26, [sp, #24]
	ldr	x25, [sp, #40]
	str	w24, [x27, #20]
	cmp	w23, #0
	cset	w8, ne
	str	w8, [x27]
	ldr	w0, [x27, #16]
Lloh7:
	adrp	x8, _HCLGE_FD_EPORT_SW_EN_B@GOTPAGE
Lloh8:
	ldr	x8, [x8, _HCLGE_FD_EPORT_SW_EN_B@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	csel	w22, wzr, w22, eq
	mov	w2, #0
	bl	_hnae3_set_bit
	mov	x0, x21
	bl	_cpu_to_le32
	str	w0, [x27, #12]
	str	w22, [x27, #4]
	cbz	x20, LBB0_2
; %bb.1:
	ldr	w0, [x27, #8]
	mov	x1, x20
	mov	w2, #4
	bl	_memcpy
	ldr	w0, [x26]
	add	x1, x20, #16
	mov	w2, #4
	bl	_memcpy
	ldr	w0, [x25]
	add	x1, x20, #32
	mov	w2, #4
	bl	_memcpy
LBB0_2:
	add	x0, x19, #8
	add	x1, sp, #8
	mov	w2, #3
	bl	_hclge_cmd_send
	mov	x20, x0
	cbz	w0, LBB0_4
; %bb.3:
	ldr	x0, [x19]
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x20
	bl	_dev_err
LBB0_4:
	ldr	x8, [sp, #56]
Lloh12:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh13:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_6
; %bb.5:
	mov	x0, x20
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
LBB0_6:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_HCLGE_OPC_FD_TCAM_OP,4,2       ; @HCLGE_OPC_FD_TCAM_OP
	.comm	_HCLGE_CMD_FLAG_NEXT,4,2        ; @HCLGE_CMD_FLAG_NEXT
	.comm	_HCLGE_FD_EPORT_SW_EN_B,4,2     ; @HCLGE_FD_EPORT_SW_EN_B
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"config tcam key fail, ret=%d\n"

	.no_dead_strip	_hclge_fd_tcam_config
.subsections_via_symbols
