	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function netvsc_set_mac_addr
_netvsc_set_mac_addr:                   ## @netvsc_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
	movq	%rsi, %r14
	movq	%rdi, %r12
	callq	_netdev_priv
	movq	%rax, %rbx
	movl	4(%rax), %edi
	callq	_rtnl_dereference
	movq	%rax, %r15
	movl	(%rbx), %edi
	callq	_rtnl_dereference
	movq	%rax, %r13
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_eth_prepare_mac_addr_change
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_1
LBB0_8:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	testq	%r13, %r13
	je	LBB0_2
## %bb.3:
	testq	%r15, %r15
	je	LBB0_9
## %bb.4:
	movq	%r15, %rdi
	movq	%r14, %rsi
	xorl	%edx, %edx
	callq	_dev_set_mac_address
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_8
## %bb.5:
	movl	(%r14), %esi
	movq	%r13, %rdi
	callq	_rndis_filter_set_device_mac
	testl	%eax, %eax
	je	LBB0_6
## %bb.7:
	movl	%eax, %ebx
	movl	(%r14), %edi
	movl	(%r12), %esi
	movq	_ETH_ALEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_memcpy
	movq	%r15, %rdi
	movq	%r14, %rsi
	xorl	%edx, %edx
	callq	_dev_set_mac_address
	jmp	LBB0_8
LBB0_2:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_8
LBB0_9:
	movl	(%r14), %esi
	movq	%r13, %rdi
	callq	_rndis_filter_set_device_mac
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_8
LBB0_6:
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_eth_commit_mac_addr_change
	xorl	%ebx, %ebx
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_ETH_ALEN,4,2                   ## @ETH_ALEN
	.no_dead_strip	_netvsc_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 netvsc_set_mac_addr
_netvsc_set_mac_addr:                   ; @netvsc_set_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
	bl	_netdev_priv
	mov	x22, x0
	ldr	w0, [x0, #4]
	bl	_rtnl_dereference
	mov	x21, x0
	ldr	w0, [x22]
	bl	_rtnl_dereference
	mov	x23, x0
	mov	x0, x20
	mov	x1, x19
	bl	_eth_prepare_mac_addr_change
	mov	x22, x0
	cbz	w0, LBB0_2
LBB0_1:
	mov	x0, x22
	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_2:
	cbz	x23, LBB0_7
; %bb.3:
	cbz	x21, LBB0_8
; %bb.4:
	mov	x0, x21
	mov	x1, x19
	mov	x2, #0
	bl	_dev_set_mac_address
	mov	x22, x0
	cbnz	w0, LBB0_1
; %bb.5:
	ldr	w1, [x19]
	mov	x0, x23
	bl	_rndis_filter_set_device_mac
	cbz	w0, LBB0_9
; %bb.6:
	mov	x22, x0
	ldr	w0, [x19]
	ldr	w1, [x20]
Lloh0:
	adrp	x8, _ETH_ALEN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ETH_ALEN@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	bl	_memcpy
	mov	x0, x21
	mov	x1, x19
	mov	x2, #0
	bl	_dev_set_mac_address
	b	LBB0_1
LBB0_7:
Lloh3:
	adrp	x8, _ENODEV@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_1
LBB0_8:
	ldr	w1, [x19]
	mov	x0, x23
	bl	_rndis_filter_set_device_mac
	mov	x22, x0
	cbnz	w0, LBB0_1
LBB0_9:
	mov	x0, x20
	mov	x1, x19
	bl	_eth_commit_mac_addr_change
	mov	w22, #0
	b	LBB0_1
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_ETH_ALEN,4,2                   ; @ETH_ALEN
	.no_dead_strip	_netvsc_set_mac_addr
.subsections_via_symbols
