	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bnx2x_change_mac_addr          ## -- Begin function bnx2x_change_mac_addr
	.p2align	4, 0x90
_bnx2x_change_mac_addr:                 ## @bnx2x_change_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	%rdi, %r15
	callq	_netdev_priv
	movq	%rax, %r14
	movl	(%r12), %edi
	callq	_is_valid_ether_addr
	testl	%eax, %eax
	je	LBB0_1
## %bb.3:
	movq	%r14, %rdi
	callq	_IS_MF_STORAGE_ONLY
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_2
LBB0_1:
	leaq	L_.str(%rip), %rdi
LBB0_2:
	callq	_BNX2X_ERR
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_13:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	%r15, %rdi
	callq	_netif_running
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_bnx2x_set_eth_mac
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_13
LBB0_7:
	movl	(%r15), %edx
	movl	4(%r15), %edi
	movl	(%r12), %esi
	callq	_memcpy
	movq	%r15, %rdi
	callq	_netif_running
	testq	%rax, %rax
	je	LBB0_8
## %bb.9:
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_bnx2x_set_eth_mac
	movl	%eax, %ebx
	jmp	LBB0_10
LBB0_8:
	xorl	%ebx, %ebx
LBB0_10:
	movq	%r14, %rdi
	callq	_IS_PF
	testq	%rax, %rax
	je	LBB0_13
## %bb.11:
	movq	_curr_cfg@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%r14, %rdi
	callq	_SHMEM2_HAS
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:
	movl	(%r15), %esi
	movq	_CURR_CFG_MET_OS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_SHMEM2_WR
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Requested MAC address is not valid\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"Can't change address on STORAGE ONLY function\n"

	.comm	_curr_cfg,4,2                   ## @curr_cfg
	.comm	_CURR_CFG_MET_OS,4,2            ## @CURR_CFG_MET_OS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bnx2x_change_mac_addr          ; -- Begin function bnx2x_change_mac_addr
	.p2align	2
_bnx2x_change_mac_addr:                 ; @bnx2x_change_mac_addr
	.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	x22, x1
	mov	x21, x0
	bl	_netdev_priv
	mov	x19, x0
	ldr	w0, [x22]
	bl	_is_valid_ether_addr
	cbz	w0, LBB0_3
; %bb.1:
	mov	x0, x19
	bl	_IS_MF_STORAGE_ONLY
	cbz	x0, LBB0_6
; %bb.2:
Lloh0:
	adrp	x0, l_.str.1@PAGE
Lloh1:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_4
LBB0_3:
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
LBB0_4:
	bl	_BNX2X_ERR
Lloh4:
	adrp	x8, _EINVAL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_5:
	mov	x0, x20
	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:
	mov	x0, x21
	bl	_netif_running
	cbz	x0, LBB0_8
; %bb.7:
	mov	x0, x19
	mov	w1, #0
	bl	_bnx2x_set_eth_mac
	mov	x20, x0
	cbnz	w0, LBB0_5
LBB0_8:
	ldr	w1, [x22]
	ldp	w2, w0, [x21]
	bl	_memcpy
	mov	x0, x21
	bl	_netif_running
	cbz	x0, LBB0_10
; %bb.9:
	mov	x0, x19
	mov	w1, #1
	bl	_bnx2x_set_eth_mac
	mov	x20, x0
	b	LBB0_11
LBB0_10:
	mov	w20, #0
LBB0_11:
	mov	x0, x19
	bl	_IS_PF
	cbz	x0, LBB0_5
; %bb.12:
Lloh7:
	adrp	x21, _curr_cfg@GOTPAGE
Lloh8:
	ldr	x21, [x21, _curr_cfg@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_SHMEM2_HAS
	cbz	x0, LBB0_5
; %bb.13:
	ldr	w1, [x21]
Lloh9:
	adrp	x8, _CURR_CFG_MET_OS@GOTPAGE
Lloh10:
	ldr	x8, [x8, _CURR_CFG_MET_OS@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_SHMEM2_WR
	b	LBB0_5
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Requested MAC address is not valid\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"Can't change address on STORAGE ONLY function\n"

	.comm	_curr_cfg,4,2                   ; @curr_cfg
	.comm	_CURR_CFG_MET_OS,4,2            ; @CURR_CFG_MET_OS
.subsections_via_symbols
