	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hclgevf_set_mac_addr
_hclgevf_set_mac_addr:                  ## @hclgevf_set_mac_addr
	.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
	movl	%edx, -52(%rbp)                 ## 4-byte Spill
	movq	%rsi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	callq	_hclgevf_ae_get_hdev
	movq	%rax, %r15
	movq	(%rax), %r14
	movq	_ETH_ALEN@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	leal	(%rbx,%rbx), %eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r13
	movq	%r13, %rdi
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	movq	%r12, %rsi
	callq	_ether_addr_copy
	movq	_ETH_ALEN@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	leaq	(,%rax,4), %rdi
	addq	%r13, %rdi
	movq	%r14, %rsi
	callq	_ether_addr_copy
	cmpl	$0, -52(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_1
## %bb.2:
	movq	_HCLGE_MBX_MAC_VLAN_UC_MODIFY@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_HCLGE_MBX_MAC_VLAN_UC_ADD@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %edx
	movq	_HCLGE_MBX_SET_UNICAST@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	shll	$3, %ebx
	movq	%r15, %rdi
	movq	%r13, %rcx
	movl	%ebx, %r8d
	movl	$1, %r9d
	pushq	$0
	pushq	$0
	callq	_hclgevf_send_mbx_msg
	addq	$16, %rsp
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_5
## %bb.4:
	movq	(%r15), %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	callq	_ether_addr_copy
LBB0_5:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_7
## %bb.6:
	movl	%ebx, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_ETH_ALEN,4,2                   ## @ETH_ALEN
	.comm	_HCLGE_MBX_MAC_VLAN_UC_ADD,4,2  ## @HCLGE_MBX_MAC_VLAN_UC_ADD
	.comm	_HCLGE_MBX_MAC_VLAN_UC_MODIFY,4,2 ## @HCLGE_MBX_MAC_VLAN_UC_MODIFY
	.comm	_HCLGE_MBX_SET_UNICAST,4,2      ## @HCLGE_MBX_SET_UNICAST
	.no_dead_strip	_hclgevf_set_mac_addr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hclgevf_set_mac_addr
_hclgevf_set_mac_addr:                  ; @hclgevf_set_mac_addr
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	sub	sp, sp, #16
	mov	x21, x2
	mov	x19, x1
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
	bl	_hclgevf_ae_get_hdev
	mov	x20, x0
	ldr	x22, [x0]
Lloh3:
	adrp	x24, _ETH_ALEN@GOTPAGE
Lloh4:
	ldr	x24, [x24, _ETH_ALEN@GOTPAGEOFF]
	ldr	w25, [x24]
	lsl	w8, w25, #1
	lsl	x8, x8, #2
	mov	x9, x8
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x23, x9, x8
	mov	sp, x23
	mov	x0, x23
	mov	x1, x19
	bl	_ether_addr_copy
	ldrsw	x8, [x24]
	add	x0, x23, x8, lsl #2
	mov	x1, x22
	bl	_ether_addr_copy
Lloh7:
	adrp	x8, _HCLGE_MBX_MAC_VLAN_UC_ADD@GOTPAGE
Lloh8:
	ldr	x8, [x8, _HCLGE_MBX_MAC_VLAN_UC_ADD@GOTPAGEOFF]
Lloh9:
	adrp	x9, _HCLGE_MBX_MAC_VLAN_UC_MODIFY@GOTPAGE
Lloh10:
	ldr	x9, [x9, _HCLGE_MBX_MAC_VLAN_UC_MODIFY@GOTPAGEOFF]
	cmp	w21, #0
	csel	x8, x9, x8, eq
	ldr	w2, [x8]
Lloh11:
	adrp	x8, _HCLGE_MBX_SET_UNICAST@GOTPAGE
Lloh12:
	ldr	x8, [x8, _HCLGE_MBX_SET_UNICAST@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	lsl	w4, w25, #3
	mov	x0, x20
	mov	x3, x23
	mov	w5, #1
	mov	x6, #0
	mov	w7, #0
	bl	_hclgevf_send_mbx_msg
	mov	x21, x0
	cbnz	w0, LBB0_2
; %bb.1:
	ldr	x0, [x20]
	mov	x1, x19
	bl	_ether_addr_copy
LBB0_2:
	ldur	x8, [x29, #-72]
Lloh14:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh15:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_4
; %bb.3:
	mov	x0, x21
	sub	sp, x29, #64
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_4:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_ETH_ALEN,4,2                   ; @ETH_ALEN
	.comm	_HCLGE_MBX_MAC_VLAN_UC_ADD,4,2  ; @HCLGE_MBX_MAC_VLAN_UC_ADD
	.comm	_HCLGE_MBX_MAC_VLAN_UC_MODIFY,4,2 ; @HCLGE_MBX_MAC_VLAN_UC_MODIFY
	.comm	_HCLGE_MBX_SET_UNICAST,4,2      ; @HCLGE_MBX_SET_UNICAST
	.no_dead_strip	_hclgevf_set_mac_addr
.subsections_via_symbols
