	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hns3_nic_net_set_mac_address
_hns3_nic_net_set_mac_address:          ## @hns3_nic_net_set_mac_address
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	%rdi, %r14
	callq	_hns3_get_handle
	testq	%r12, %r12
	je	LBB0_2
## %bb.1:
	movq	%rax, %r15
	movq	(%r12), %rdi
	callq	_is_valid_ether_addr
	testl	%eax, %eax
	je	LBB0_2
## %bb.3:
	movl	(%r14), %edi
	movq	(%r12), %rsi
	callq	_ether_addr_equal
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	(%r12), %rdx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_netdev_info
	xorl	%ebx, %ebx
	jmp	LBB0_8
LBB0_2:
	movq	_EADDRNOTAVAIL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_8:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	(%r15), %rax
	movq	(%rax), %rax
	movq	(%r12), %rsi
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	*(%rax)
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	movl	%eax, %r15d
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_netdev_err
	movl	%r15d, %ebx
	jmp	LBB0_8
LBB0_7:
	movl	(%r14), %edi
	movq	(%r12), %rsi
	callq	_ether_addr_copy
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_EADDRNOTAVAIL,4,2              ## @EADDRNOTAVAIL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"already using mac address %pM\n"

L_.str.1:                               ## @.str.1
	.asciz	"set_mac_address fail, ret=%d!\n"

	.no_dead_strip	_hns3_nic_net_set_mac_address
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hns3_nic_net_set_mac_address
_hns3_nic_net_set_mac_address:          ; @hns3_nic_net_set_mac_address
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x20, x1
	mov	x19, x0
	bl	_hns3_get_handle
	cbz	x20, LBB0_4
; %bb.1:
	mov	x21, x0
	ldr	x0, [x20]
	bl	_is_valid_ether_addr
	cbz	w0, LBB0_4
; %bb.2:
	ldr	w0, [x19]
	ldr	x1, [x20]
	bl	_ether_addr_equal
	cbz	x0, LBB0_6
; %bb.3:
	ldr	x2, [x20]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_netdev_info
	mov	w21, #0
	b	LBB0_5
LBB0_4:
Lloh2:
	adrp	x8, _EADDRNOTAVAIL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EADDRNOTAVAIL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_5:
	mov	x0, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_6:
	ldr	x8, [x21]
	ldr	x8, [x8]
	ldr	x8, [x8]
	ldr	x1, [x20]
	mov	x0, x21
	mov	w2, #0
	blr	x8
	mov	x21, x0
	cbz	w0, LBB0_8
; %bb.7:
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	x2, x21
	bl	_netdev_err
	b	LBB0_5
LBB0_8:
	ldr	w0, [x19]
	ldr	x1, [x20]
	bl	_ether_addr_copy
	b	LBB0_5
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_EADDRNOTAVAIL,4,2              ; @EADDRNOTAVAIL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"already using mac address %pM\n"

l_.str.1:                               ; @.str.1
	.asciz	"set_mac_address fail, ret=%d!\n"

	.no_dead_strip	_hns3_nic_net_set_mac_address
.subsections_via_symbols
