	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hclge_set_mac_addr
_hclge_set_mac_addr:                    ## @hclge_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r12d
	movq	%rsi, %r13
	movq	%rdi, %r15
	callq	_hclge_get_vport
	movq	(%rax), %r14
	movq	%r13, %rdi
	callq	_is_zero_ether_addr
	testq	%rax, %rax
	jne	LBB0_3
## %bb.1:
	movq	%r13, %rdi
	callq	_is_broadcast_ether_addr
	testq	%rax, %rax
	jne	LBB0_3
## %bb.2:
	movq	%r13, %rdi
	callq	_is_multicast_ether_addr
	testq	%rax, %rax
	je	LBB0_6
LBB0_3:
	movq	8(%r14), %rdi
	leaq	L_.str(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r13, %rdx
	xorl	%eax, %eax
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_4:
	subl	(%rax), %ebx
LBB0_5:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	testl	%r12d, %r12d
	je	LBB0_8
## %bb.7:
	xorl	%eax, %eax
	callq	_is_kdump_kernel
	testq	%rax, %rax
	je	LBB0_10
LBB0_8:
	movq	(%r14), %rsi
	movq	%r15, %rdi
	callq	_hclge_rm_uc_addr
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	movq	8(%r14), %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_dev_warn
LBB0_10:
	movq	%r15, %rdi
	movq	%r13, %rsi
	callq	_hclge_add_uc_addr
	testl	%eax, %eax
	je	LBB0_14
## %bb.11:
	movq	8(%r14), %rdi
	leaq	L_.str.2(%rip), %rsi
	xorl	%ebx, %ebx
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
	testl	%r12d, %r12d
	jne	LBB0_16
## %bb.12:
	movq	(%r14), %rsi
	movq	%r15, %rdi
	callq	_hclge_add_uc_addr
	testl	%eax, %eax
	je	LBB0_16
## %bb.13:
	movq	8(%r14), %rdi
	leaq	L_.str.3(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_16
LBB0_14:
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_hclge_pause_addr_cfg
	testl	%eax, %eax
	je	LBB0_17
## %bb.15:
	movq	8(%r14), %rdi
	leaq	L_.str.4(%rip), %rsi
	xorl	%ebx, %ebx
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
LBB0_16:
	movq	_EIO@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_17:
	movq	(%r14), %rdi
	movq	%r13, %rsi
	callq	_ether_addr_copy
	xorl	%ebx, %ebx
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Change uc mac err! invalid mac:%pM.\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"remove old uc mac address fail.\n"

L_.str.2:                               ## @.str.2
	.asciz	"add uc mac address fail, ret =%d.\n"

L_.str.3:                               ## @.str.3
	.asciz	"restore uc mac address fail.\n"

	.comm	_EIO,4,2                        ## @EIO
L_.str.4:                               ## @.str.4
	.asciz	"configure mac pause address fail, ret =%d.\n"

	.no_dead_strip	_hclge_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 hclge_set_mac_addr
_hclge_set_mac_addr:                    ; @hclge_set_mac_addr
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x22, x2
	mov	x20, x1
	mov	x21, x0
	bl	_hclge_get_vport
	ldr	x19, [x0]
	mov	x0, x20
	bl	_is_zero_ether_addr
	cbnz	x0, LBB0_3
; %bb.1:
	mov	x0, x20
	bl	_is_broadcast_ether_addr
	cbnz	x0, LBB0_3
; %bb.2:
	mov	x0, x20
	bl	_is_multicast_ether_addr
	cbz	x0, LBB0_6
LBB0_3:
	ldr	x0, [x19, #8]
	str	x20, [sp]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_4:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_5:
	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
	add	sp, sp, #64
	ret
LBB0_6:
	cbz	w22, LBB0_8
; %bb.7:
	bl	_is_kdump_kernel
	cbz	x0, LBB0_10
LBB0_8:
	ldr	x1, [x19]
	mov	x0, x21
	bl	_hclge_rm_uc_addr
	cbz	x0, LBB0_10
; %bb.9:
	ldr	x0, [x19, #8]
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_warn
LBB0_10:
	mov	x0, x21
	mov	x1, x20
	bl	_hclge_add_uc_addr
                                        ; kill: def $w0 killed $w0 def $x0
	cbz	w0, LBB0_14
; %bb.11:
	ldr	x8, [x19, #8]
	str	x0, [sp]
Lloh6:
	adrp	x1, l_.str.2@PAGE
Lloh7:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x8
	bl	_dev_err
	cbnz	w22, LBB0_17
; %bb.12:
	ldr	x1, [x19]
	mov	x0, x21
	bl	_hclge_add_uc_addr
	cbz	w0, LBB0_17
; %bb.13:
	ldr	x0, [x19, #8]
Lloh8:
	adrp	x1, l_.str.3@PAGE
Lloh9:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_16
LBB0_14:
	mov	x0, x19
	mov	x1, x20
	bl	_hclge_pause_addr_cfg
                                        ; kill: def $w0 killed $w0 def $x0
	cbz	w0, LBB0_18
; %bb.15:
	ldr	x8, [x19, #8]
	str	x0, [sp]
Lloh10:
	adrp	x1, l_.str.4@PAGE
Lloh11:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x8
LBB0_16:
	bl	_dev_err
LBB0_17:
Lloh12:
	adrp	x8, _EIO@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
	b	LBB0_4
LBB0_18:
	ldr	x0, [x19]
	mov	x1, x20
	bl	_ether_addr_copy
	mov	w0, #0
	b	LBB0_5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Change uc mac err! invalid mac:%pM.\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"remove old uc mac address fail.\n"

l_.str.2:                               ; @.str.2
	.asciz	"add uc mac address fail, ret =%d.\n"

l_.str.3:                               ; @.str.3
	.asciz	"restore uc mac address fail.\n"

	.comm	_EIO,4,2                        ; @EIO
l_.str.4:                               ; @.str.4
	.asciz	"configure mac pause address fail, ret =%d.\n"

	.no_dead_strip	_hclge_set_mac_addr
.subsections_via_symbols
