	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function efx_ef10_vport_set_mac_address
_efx_ef10_vport_set_mac_address:        ## @efx_ef10_vport_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	%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	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	16(%rdi), %r13
	movq	_ETH_ALEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r12
	movq	8(%r13), %rdi
	callq	_is_zero_ether_addr
	xorl	%ebx, %ebx
	testq	%rax, %rax
	jne	LBB0_12
## %bb.1:
	movq	%r14, %rdi
	callq	_efx_device_detach_sync
	movq	(%r14), %rdi
	callq	_efx_net_stop
	leaq	8(%r14), %r15
	movq	%r15, %rdi
	callq	_down_write
	movq	%r14, %rdi
	callq	_efx_ef10_filter_table_remove
	movq	%r15, %rdi
	callq	_up_write
	movl	(%r13), %esi
	movq	%r14, %rdi
	callq	_efx_ef10_vadaptor_free
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_2
LBB0_6:
	movq	%r15, %rdi
	callq	_down_write
	movq	%r14, %rdi
	callq	_efx_ef10_filter_table_probe
	movl	%eax, %r12d
	movq	%r15, %rdi
	callq	_up_write
	testl	%r12d, %r12d
	jne	LBB0_11
## %bb.7:
	movq	(%r14), %rdi
	callq	_efx_net_open
	testl	%eax, %eax
	je	LBB0_14
## %bb.8:
	movl	%eax, %r12d
	jmp	LBB0_11
LBB0_2:
	movq	8(%r13), %rsi
	movq	%r12, %rdi
	callq	_ether_addr_copy
	movl	(%r13), %esi
	movq	8(%r13), %rdx
	movq	%r14, %rdi
	callq	_efx_ef10_vport_del_mac
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_3
LBB0_5:
	movl	(%r13), %esi
	movq	%r14, %rdi
	callq	_efx_ef10_vadaptor_alloc
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_11
	jmp	LBB0_6
LBB0_3:
	movl	(%r13), %esi
	movq	(%r14), %rax
	movq	(%rax), %rdx
	movq	%r14, %rdi
	callq	_efx_ef10_vport_add_mac
	testl	%eax, %eax
	je	LBB0_4
## %bb.9:
	movl	%eax, %ebx
	movl	(%r13), %esi
	movq	%r14, %rdi
	movq	%r12, %rdx
	callq	_efx_ef10_vport_add_mac
	testl	%eax, %eax
	je	LBB0_5
## %bb.10:
	movl	%eax, %r12d
	movq	8(%r13), %rdi
	callq	_eth_zero_addr
LBB0_11:
	movq	_drv@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	(%r14), %rdx
	leaq	L_.str(%rip), %rcx
	movq	%r14, %rdi
	callq	_netif_err
	movq	_RESET_TYPE_DATAPATH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_efx_schedule_reset
	testl	%ebx, %ebx
	cmovel	%r12d, %ebx
LBB0_12:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_15
## %bb.13:
	movl	%ebx, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	movq	%r14, %rdi
	callq	_efx_device_attach_if_not_resetting
	jmp	LBB0_12
LBB0_4:
	movq	8(%r13), %rdi
	movq	(%r14), %rax
	movq	(%rax), %rsi
	callq	_ether_addr_copy
	xorl	%ebx, %ebx
	jmp	LBB0_5
LBB0_15:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_ETH_ALEN,4,2                   ## @ETH_ALEN
	.comm	_drv,4,2                        ## @drv
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to restore when changing MAC address - scheduling reset\n"

	.comm	_RESET_TYPE_DATAPATH,4,2        ## @RESET_TYPE_DATAPATH
	.no_dead_strip	_efx_ef10_vport_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 efx_ef10_vport_set_mac_address
_efx_ef10_vport_set_mac_address:        ; @efx_ef10_vport_set_mac_address
	.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
	sub	sp, sp, #16
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
	ldr	x23, [x0, #16]
Lloh3:
	adrp	x8, _ETH_ALEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ETH_ALEN@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	lsl	x8, x8, #2
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x22, x9, x8
	mov	sp, x22
	ldr	x0, [x23, #8]
	bl	_is_zero_ether_addr
	cbz	x0, LBB0_2
; %bb.1:
	mov	w20, #0
	b	LBB0_12
LBB0_2:
	mov	x0, x19
	bl	_efx_device_detach_sync
	mov	x21, x19
	ldr	x0, [x21], #8
	bl	_efx_net_stop
	mov	x0, x21
	bl	_down_write
	mov	x0, x19
	bl	_efx_ef10_filter_table_remove
	mov	x0, x21
	bl	_up_write
	ldr	w1, [x23]
	mov	x0, x19
	bl	_efx_ef10_vadaptor_free
	mov	x20, x0
	cbz	w0, LBB0_6
LBB0_3:
	mov	x0, x21
	bl	_down_write
	mov	x0, x19
	bl	_efx_ef10_filter_table_probe
	mov	x22, x0
	mov	x0, x21
	bl	_up_write
	cbnz	w22, LBB0_11
; %bb.4:
	ldr	x0, [x19]
	bl	_efx_net_open
	cbz	w0, LBB0_14
; %bb.5:
	mov	x22, x0
	b	LBB0_11
LBB0_6:
	ldr	x1, [x23, #8]
	mov	x0, x22
	bl	_ether_addr_copy
	ldr	w1, [x23]
	ldr	x2, [x23, #8]
	mov	x0, x19
	bl	_efx_ef10_vport_del_mac
	mov	x20, x0
	cbz	w0, LBB0_8
LBB0_7:
	ldr	w1, [x23]
	mov	x0, x19
	bl	_efx_ef10_vadaptor_alloc
	mov	x22, x0
	cbnz	w0, LBB0_11
	b	LBB0_3
LBB0_8:
	ldr	w1, [x23]
	ldr	x8, [x19]
	ldr	x2, [x8]
	mov	x0, x19
	bl	_efx_ef10_vport_add_mac
	mov	x20, x0
	cbz	w0, LBB0_15
; %bb.9:
	ldr	w1, [x23]
	mov	x0, x19
	mov	x2, x22
	bl	_efx_ef10_vport_add_mac
	cbz	w0, LBB0_7
; %bb.10:
	mov	x22, x0
	ldr	x0, [x23, #8]
	bl	_eth_zero_addr
LBB0_11:
Lloh8:
	adrp	x8, _drv@GOTPAGE
Lloh9:
	ldr	x8, [x8, _drv@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	ldr	x2, [x19]
Lloh11:
	adrp	x3, l_.str@PAGE
Lloh12:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x19
	bl	_netif_err
Lloh13:
	adrp	x8, _RESET_TYPE_DATAPATH@GOTPAGE
Lloh14:
	ldr	x8, [x8, _RESET_TYPE_DATAPATH@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_efx_schedule_reset
	cmp	w20, #0
	csel	w20, w22, w20, eq
LBB0_12:
	ldur	x8, [x29, #-56]
Lloh16:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh17:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_16
; %bb.13:
	mov	x0, x20
	sub	sp, x29, #48
	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:
	mov	x0, x19
	bl	_efx_device_attach_if_not_resetting
	b	LBB0_12
LBB0_15:
	ldr	x0, [x23, #8]
	ldr	x8, [x19]
	ldr	x1, [x8]
	bl	_ether_addr_copy
	b	LBB0_7
LBB0_16:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_ETH_ALEN,4,2                   ; @ETH_ALEN
	.comm	_drv,4,2                        ; @drv
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to restore when changing MAC address - scheduling reset\n"

	.comm	_RESET_TYPE_DATAPATH,4,2        ; @RESET_TYPE_DATAPATH
	.no_dead_strip	_efx_ef10_vport_set_mac_address
.subsections_via_symbols
