	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hclge_set_vf_uc_mac_addr
_hclge_set_vf_uc_mac_addr:              ## @hclge_set_vf_uc_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r12
	movq	8(%rsi), %rbx
	leaq	8(%rbx), %r15
	movl	4(%rbx), %edx
	movq	_HCLGE_MBX_MAC_VLAN_UC_MODIFY@GOTPCREL(%rip), %rax
	cmpl	(%rax), %edx
	jne	LBB0_3
## %bb.1:
	addq	$32, %rbx
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_hclge_rm_uc_addr_common
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_hclge_add_uc_addr_common
	testl	%eax, %eax
	je	LBB0_10
## %bb.2:
	movl	%eax, %r13d
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_hclge_add_uc_addr_common
	jmp	LBB0_11
LBB0_3:
	movq	_HCLGE_MBX_MAC_VLAN_UC_ADD@GOTPCREL(%rip), %rax
	cmpl	(%rax), %edx
	jne	LBB0_6
## %bb.4:
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_hclge_add_uc_addr_common
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_11
## %bb.5:
	movq	_HCLGE_MAC_ADDR_UC@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_hclge_add_vport_mac_table
	xorl	%r13d, %r13d
	jmp	LBB0_11
LBB0_6:
	movq	_HCLGE_MBX_MAC_VLAN_UC_REMOVE@GOTPCREL(%rip), %rax
	cmpl	(%rax), %edx
	jne	LBB0_9
## %bb.7:
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_hclge_rm_uc_addr_common
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_11
## %bb.8:
	movq	_HCLGE_MAC_ADDR_UC@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%r13d, %r13d
	movq	%r12, %rdi
	movq	%r15, %rsi
	xorl	%edx, %edx
	callq	_hclge_rm_vport_mac_table
	jmp	LBB0_11
LBB0_10:
	movq	_HCLGE_MAC_ADDR_UC@GOTPCREL(%rip), %rbx
	movl	(%rbx), %ecx
	xorl	%r13d, %r13d
	movq	%r12, %rdi
	movq	%r15, %rsi
	xorl	%edx, %edx
	callq	_hclge_rm_vport_mac_table
	movl	(%rbx), %edx
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_hclge_add_vport_mac_table
LBB0_11:
	movq	_HCLGE_MBX_NEED_RESP_BIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r14)
	je	LBB0_12
## %bb.13:
	xorl	%ebx, %ebx
	movq	%r12, %rdi
	movq	%r14, %rsi
	movl	%r13d, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_hclge_gen_resp_to_vf
	jmp	LBB0_14
LBB0_12:
	xorl	%ebx, %ebx
	jmp	LBB0_14
LBB0_9:
	movq	(%r12), %rax
	movq	(%rax), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_14:
	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_MBX_MAC_VLAN_UC_MODIFY,4,2 ## @HCLGE_MBX_MAC_VLAN_UC_MODIFY
	.comm	_HCLGE_MAC_ADDR_UC,4,2          ## @HCLGE_MAC_ADDR_UC
	.comm	_HCLGE_MBX_MAC_VLAN_UC_ADD,4,2  ## @HCLGE_MBX_MAC_VLAN_UC_ADD
	.comm	_HCLGE_MBX_MAC_VLAN_UC_REMOVE,4,2 ## @HCLGE_MBX_MAC_VLAN_UC_REMOVE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to set unicast mac addr, unknown subcode %d\n"

	.comm	_EIO,4,2                        ## @EIO
	.comm	_HCLGE_MBX_NEED_RESP_BIT,4,2    ## @HCLGE_MBX_NEED_RESP_BIT
	.no_dead_strip	_hclge_set_vf_uc_mac_addr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hclge_set_vf_uc_mac_addr
_hclge_set_vf_uc_mac_addr:              ; @hclge_set_vf_uc_mac_addr
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x19, x1
	mov	x20, x0
	ldr	x8, [x1, #8]
	add	x21, x8, #8
	ldr	w2, [x8, #4]
Lloh0:
	adrp	x9, _HCLGE_MBX_MAC_VLAN_UC_MODIFY@GOTPAGE
Lloh1:
	ldr	x9, [x9, _HCLGE_MBX_MAC_VLAN_UC_MODIFY@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	w2, w9
	b.ne	LBB0_3
; %bb.1:
	add	x23, x8, #32
	mov	x0, x20
	mov	x1, x23
	bl	_hclge_rm_uc_addr_common
	mov	x0, x20
	mov	x1, x21
	bl	_hclge_add_uc_addr_common
	cbz	w0, LBB0_9
; %bb.2:
	mov	x22, x0
	mov	x0, x20
	mov	x1, x23
	bl	_hclge_add_uc_addr_common
	b	LBB0_10
LBB0_3:
Lloh3:
	adrp	x8, _HCLGE_MBX_MAC_VLAN_UC_ADD@GOTPAGE
Lloh4:
	ldr	x8, [x8, _HCLGE_MBX_MAC_VLAN_UC_ADD@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w2, w8
	b.ne	LBB0_6
; %bb.4:
	mov	x0, x20
	mov	x1, x21
	bl	_hclge_add_uc_addr_common
	mov	x22, x0
	cbnz	w0, LBB0_10
; %bb.5:
Lloh6:
	adrp	x8, _HCLGE_MAC_ADDR_UC@GOTPAGE
Lloh7:
	ldr	x8, [x8, _HCLGE_MAC_ADDR_UC@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, x21
	bl	_hclge_add_vport_mac_table
	b	LBB0_10
LBB0_6:
Lloh9:
	adrp	x8, _HCLGE_MBX_MAC_VLAN_UC_REMOVE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _HCLGE_MBX_MAC_VLAN_UC_REMOVE@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	cmp	w2, w8
	b.ne	LBB0_14
; %bb.7:
	mov	x0, x20
	mov	x1, x21
	bl	_hclge_rm_uc_addr_common
	mov	x22, x0
	cbnz	w0, LBB0_10
; %bb.8:
Lloh12:
	adrp	x8, _HCLGE_MAC_ADDR_UC@GOTPAGE
Lloh13:
	ldr	x8, [x8, _HCLGE_MAC_ADDR_UC@GOTPAGEOFF]
Lloh14:
	ldr	w3, [x8]
	mov	x0, x20
	mov	x1, x21
	mov	w2, #0
	bl	_hclge_rm_vport_mac_table
	b	LBB0_10
LBB0_9:
Lloh15:
	adrp	x22, _HCLGE_MAC_ADDR_UC@GOTPAGE
Lloh16:
	ldr	x22, [x22, _HCLGE_MAC_ADDR_UC@GOTPAGEOFF]
	ldr	w3, [x22]
	mov	x0, x20
	mov	x1, x21
	mov	w2, #0
	bl	_hclge_rm_vport_mac_table
	ldr	w2, [x22]
	mov	x0, x20
	mov	x1, x21
	bl	_hclge_add_vport_mac_table
	mov	w22, #0
LBB0_10:
	ldr	w8, [x19]
Lloh17:
	adrp	x9, _HCLGE_MBX_NEED_RESP_BIT@GOTPAGE
Lloh18:
	ldr	x9, [x9, _HCLGE_MBX_NEED_RESP_BIT@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_12
; %bb.11:
	mov	x0, x20
	mov	x1, x19
	mov	x2, x22
	mov	x3, #0
	mov	w4, #0
	bl	_hclge_gen_resp_to_vf
LBB0_12:
	mov	w0, #0
LBB0_13:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_14:
	ldr	x8, [x20]
	ldr	x0, [x8]
Lloh20:
	adrp	x1, l_.str@PAGE
Lloh21:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
Lloh22:
	adrp	x8, _EIO@GOTPAGE
Lloh23:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_13
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_HCLGE_MBX_MAC_VLAN_UC_MODIFY,4,2 ; @HCLGE_MBX_MAC_VLAN_UC_MODIFY
	.comm	_HCLGE_MAC_ADDR_UC,4,2          ; @HCLGE_MAC_ADDR_UC
	.comm	_HCLGE_MBX_MAC_VLAN_UC_ADD,4,2  ; @HCLGE_MBX_MAC_VLAN_UC_ADD
	.comm	_HCLGE_MBX_MAC_VLAN_UC_REMOVE,4,2 ; @HCLGE_MBX_MAC_VLAN_UC_REMOVE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to set unicast mac addr, unknown subcode %d\n"

	.comm	_EIO,4,2                        ; @EIO
	.comm	_HCLGE_MBX_NEED_RESP_BIT,4,2    ; @HCLGE_MBX_NEED_RESP_BIT
	.no_dead_strip	_hclge_set_vf_uc_mac_addr
.subsections_via_symbols
