	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %rbx
	callq	_netdev_priv
	movq	%rax, %r14
	movl	(%r15), %esi
	movq	%rax, %rdi
	callq	_bnx2x_is_valid_ether_addr
	testl	%eax, %eax
	je	LBB0_1
## %bb.3:
	movq	%r14, %rdi
	callq	_IS_MF_STORAGE_SD
	testq	%rax, %rax
	jne	LBB0_5
## %bb.4:
	movq	%r14, %rdi
	callq	_IS_MF_FCOE_AFEX
	testq	%rax, %rax
	je	LBB0_7
LBB0_5:
	movl	(%r15), %edi
	callq	_is_zero_ether_addr
	testl	%eax, %eax
	je	LBB0_6
LBB0_7:
	movq	%rbx, %rdi
	callq	_netif_running
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_bnx2x_set_eth_mac
	testl	%eax, %eax
	jne	LBB0_11
LBB0_9:
	movq	_NET_ADDR_RANDOM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, 8(%rbx)
	movl	(%rbx), %edx
	movl	4(%rbx), %edi
	movl	(%r15), %esi
	callq	_memcpy
	movq	%rbx, %rdi
	callq	_netif_running
	testq	%rax, %rax
	je	LBB0_10
## %bb.12:
	movq	%r14, %rdi
	movl	$1, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_bnx2x_set_eth_mac              ## TAILCALL
LBB0_1:
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_2
LBB0_6:
	leaq	L_.str.1(%rip), %rdi
LBB0_2:
	callq	_BNX2X_ERR
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	xorl	%eax, %eax
	jmp	LBB0_11
	.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 configure non-zero address on iSCSI or FCoE functions in MF-SD mode\n"

	.comm	_NET_ADDR_RANDOM,4,2            ## @NET_ADDR_RANDOM
.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	x21, x1
	mov	x20, x0
	bl	_netdev_priv
	mov	x19, x0
	ldr	w1, [x21]
	bl	_bnx2x_is_valid_ether_addr
	cbz	w0, LBB0_8
; %bb.1:
	mov	x0, x19
	bl	_IS_MF_STORAGE_SD
	cbnz	x0, LBB0_3
; %bb.2:
	mov	x0, x19
	bl	_IS_MF_FCOE_AFEX
	cbz	x0, LBB0_4
LBB0_3:
	ldr	w0, [x21]
	bl	_is_zero_ether_addr
	cbz	w0, LBB0_9
LBB0_4:
	mov	x0, x20
	bl	_netif_running
	cbz	x0, LBB0_6
; %bb.5:
	mov	x0, x19
	mov	w1, #0
	bl	_bnx2x_set_eth_mac
	cbnz	w0, LBB0_11
LBB0_6:
Lloh0:
	adrp	x8, _NET_ADDR_RANDOM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NET_ADDR_RANDOM@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldp	w0, w9, [x20, #4]
	bic	w8, w9, w8
	str	w8, [x20, #8]
	ldr	w1, [x21]
	ldr	w2, [x20]
	bl	_memcpy
	mov	x0, x20
	bl	_netif_running
	cbz	x0, LBB0_11
; %bb.7:
	mov	x0, x19
	mov	w1, #1
	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
	b	_bnx2x_set_eth_mac
LBB0_8:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_10
LBB0_9:
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_10:
	bl	_BNX2X_ERR
Lloh7:
	adrp	x8, _EINVAL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_11:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.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 configure non-zero address on iSCSI or FCoE functions in MF-SD mode\n"

	.comm	_NET_ADDR_RANDOM,4,2            ; @NET_ADDR_RANDOM
.subsections_via_symbols
