	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hclge_add_mac_vlan_tbl
_hclge_add_mac_vlan_tbl:                ## @hclge_add_mac_vlan_tbl
	.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	%rsi, %r15
	movq	%rdi, %r14
	movq	(%rdi), %r12
	testq	%rdx, %rdx
	je	LBB0_1
## %bb.2:
	movq	%rdx, %rbx
	movq	%rdx, %rdi
	xorl	%esi, %esi
	callq	_hclge_cmd_reuse_desc
	movq	_HCLGE_CMD_FLAG_NEXT@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	callq	_cpu_to_le16
	orl	%eax, 16(%rbx)
	leaq	24(%rbx), %rdi
	xorl	%esi, %esi
	callq	_hclge_cmd_reuse_desc
	movl	(%r13), %edi
	callq	_cpu_to_le16
	orl	%eax, 40(%rbx)
	leaq	48(%rbx), %rdi
	xorl	%esi, %esi
	callq	_hclge_cmd_reuse_desc
	movl	(%r13), %edi
	notl	%edi
	callq	_cpu_to_le16
	andl	%eax, 64(%rbx)
	movq	8(%rbx), %rdi
	movq	%r15, %rsi
	movl	$4, %edx
	callq	_memcpy
	leaq	8(%r12), %rdi
	movq	%rbx, %rsi
	movl	$3, %edx
	callq	_hclge_cmd_send
	movl	%eax, %r15d
	movq	8(%rbx), %rax
	movl	(%rax), %edi
	callq	_le32_to_cpu
	movzbl	%ah, %eax
	movl	%eax, %r13d
	movl	(%rbx), %edi
	callq	_le16_to_cpu
	movq	_HCLGE_MAC_VLAN_ADD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	%r14, %rdi
	movl	%eax, %esi
	movl	%r13d, %edx
	jmp	LBB0_3
LBB0_1:
	movq	_HCLGE_OPC_MAC_VLAN_ADD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-64(%rbp), %rbx
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_hclge_cmd_setup_basic_desc
	movq	-56(%rbp), %rdi
	movq	%r15, %rsi
	movl	$4, %edx
	callq	_memcpy
	leaq	8(%r12), %rdi
	movq	%rbx, %rsi
	movl	$1, %edx
	callq	_hclge_cmd_send
	movl	%eax, %r15d
	movq	-56(%rbp), %rax
	movl	(%rax), %edi
	callq	_le32_to_cpu
	movzbl	%ah, %ebx
	movl	-64(%rbp), %edi
	callq	_le16_to_cpu
	movq	_HCLGE_MAC_VLAN_ADD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	%r14, %rdi
	movl	%eax, %esi
	movl	%ebx, %edx
LBB0_3:
	callq	_hclge_get_mac_vlan_cmd_status
	testl	%r15d, %r15d
	je	LBB0_5
## %bb.4:
	movq	(%r12), %rdi
	leaq	L_.str(%rip), %rsi
	movl	%r15d, %edx
	callq	_dev_err
	movl	%r15d, %eax
LBB0_5:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HCLGE_OPC_MAC_VLAN_ADD,4,2     ## @HCLGE_OPC_MAC_VLAN_ADD
	.comm	_HCLGE_MAC_VLAN_ADD,4,2         ## @HCLGE_MAC_VLAN_ADD
	.comm	_HCLGE_CMD_FLAG_NEXT,4,2        ## @HCLGE_CMD_FLAG_NEXT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"add mac addr failed for cmd_send, ret =%d.\n"

	.no_dead_strip	_hclge_add_mac_vlan_tbl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hclge_add_mac_vlan_tbl
_hclge_add_mac_vlan_tbl:                ; @hclge_add_mac_vlan_tbl
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x21, x1
	mov	x19, x0
	ldr	x23, [x0]
	cbz	x2, LBB0_4
; %bb.1:
	mov	x20, x2
	mov	x0, x2
	mov	w1, #0
	bl	_hclge_cmd_reuse_desc
Lloh0:
	adrp	x22, _HCLGE_CMD_FLAG_NEXT@GOTPAGE
Lloh1:
	ldr	x22, [x22, _HCLGE_CMD_FLAG_NEXT@GOTPAGEOFF]
	ldr	w0, [x22]
	bl	_cpu_to_le16
	ldr	w8, [x20, #16]
	orr	w8, w8, w0
	str	w8, [x20, #16]
	add	x0, x20, #24
	mov	w1, #0
	bl	_hclge_cmd_reuse_desc
	ldr	w0, [x22]
	bl	_cpu_to_le16
	ldr	w8, [x20, #40]
	orr	w8, w8, w0
	str	w8, [x20, #40]
	add	x0, x20, #48
	mov	w1, #0
	bl	_hclge_cmd_reuse_desc
	ldr	w8, [x22]
	mvn	w0, w8
	bl	_cpu_to_le16
	ldr	w8, [x20, #64]
	and	w8, w8, w0
	str	w8, [x20, #64]
	ldr	x0, [x20, #8]
	mov	x1, x21
	mov	w2, #4
	bl	_memcpy
	add	x0, x23, #8
	mov	x1, x20
	mov	w2, #3
	bl	_hclge_cmd_send
	mov	x21, x0
	ldr	x8, [x20, #8]
	ldr	w0, [x8]
	bl	_le32_to_cpu
	ubfx	w22, w0, #8, #8
	ldr	w0, [x20]
	bl	_le16_to_cpu
	mov	x1, x0
Lloh2:
	adrp	x8, _HCLGE_MAC_VLAN_ADD@GOTPAGE
Lloh3:
	ldr	x8, [x8, _HCLGE_MAC_VLAN_ADD@GOTPAGEOFF]
Lloh4:
	ldr	w3, [x8]
	mov	x0, x19
	mov	x2, x22
	bl	_hclge_get_mac_vlan_cmd_status
	cbz	w21, LBB0_3
LBB0_2:
	ldr	x0, [x23]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x21
	bl	_dev_err
	mov	x0, x21
LBB0_3:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_4:
Lloh7:
	adrp	x8, _HCLGE_OPC_MAC_VLAN_ADD@GOTPAGE
Lloh8:
	ldr	x8, [x8, _HCLGE_OPC_MAC_VLAN_ADD@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	add	x0, sp, #8
	bl	_hclge_cmd_setup_basic_desc
	ldr	x0, [sp, #16]
	mov	x1, x21
	mov	w2, #4
	bl	_memcpy
	add	x0, x23, #8
	add	x1, sp, #8
	mov	w2, #1
	bl	_hclge_cmd_send
	mov	x21, x0
	ldr	x8, [sp, #16]
	ldr	w0, [x8]
	bl	_le32_to_cpu
	ubfx	w20, w0, #8, #8
	ldr	w0, [sp, #8]
	bl	_le16_to_cpu
	mov	x1, x0
Lloh10:
	adrp	x8, _HCLGE_MAC_VLAN_ADD@GOTPAGE
Lloh11:
	ldr	x8, [x8, _HCLGE_MAC_VLAN_ADD@GOTPAGEOFF]
Lloh12:
	ldr	w3, [x8]
	mov	x0, x19
	mov	x2, x20
	bl	_hclge_get_mac_vlan_cmd_status
	cbnz	w21, LBB0_2
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_HCLGE_OPC_MAC_VLAN_ADD,4,2     ; @HCLGE_OPC_MAC_VLAN_ADD
	.comm	_HCLGE_MAC_VLAN_ADD,4,2         ; @HCLGE_MAC_VLAN_ADD
	.comm	_HCLGE_CMD_FLAG_NEXT,4,2        ; @HCLGE_CMD_FLAG_NEXT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"add mac addr failed for cmd_send, ret =%d.\n"

	.no_dead_strip	_hclge_add_mac_vlan_tbl
.subsections_via_symbols
