	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function netxen_read_mac_addr
_netxen_read_mac_addr:                  ## @netxen_read_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	%rdi, %rbx
	movq	16(%rdi), %r15
	movq	8(%rdi), %r14
	movl	4(%rdi), %edi
	callq	_NX_IS_REVISION_P3
	leaq	-28(%rbp), %rsi
	movq	%rbx, %rdi
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	callq	_netxen_p3_get_mac_addr
	testq	%rax, %rax
	je	LBB0_5
LBB0_3:
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_7
LBB0_4:
	callq	_netxen_get_flash_mac_addr
	testq	%rax, %rax
	jne	LBB0_3
LBB0_5:
	movb	-23(%rbp), %al
	movq	(%r15), %rcx
	movb	%al, (%rcx)
	movb	-24(%rbp), %al
	movq	(%r15), %rcx
	movb	%al, 1(%rcx)
	movb	-25(%rbp), %al
	movq	(%r15), %rcx
	movb	%al, 2(%rcx)
	movb	-26(%rbp), %al
	movq	(%r15), %rcx
	movb	%al, 3(%rcx)
	movb	-27(%rbp), %al
	movq	(%r15), %rcx
	movb	%al, 4(%rcx)
	movb	-28(%rbp), %al
	movq	(%r15), %rcx
	movb	%al, 5(%rcx)
	movl	(%rbx), %edi
	movq	(%r15), %rsi
	movl	8(%r15), %edx
	callq	_memcpy
	movq	(%r15), %rdi
	callq	_is_valid_ether_addr
	xorl	%ebx, %ebx
	testl	%eax, %eax
	jne	LBB0_7
## %bb.6:
	movq	(%r15), %rdx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_warn
LBB0_7:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EIO,4,2                        ## @EIO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Bad MAC address %pM.\n"

	.no_dead_strip	_netxen_read_mac_addr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function netxen_read_mac_addr
_netxen_read_mac_addr:                  ; @netxen_read_mac_addr
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x20, x0
	ldp	x19, x21, [x0, #8]
	ldr	w0, [x0, #4]
	bl	_NX_IS_REVISION_P3
	add	x1, sp, #12
	cbz	x0, LBB0_3
; %bb.1:
	mov	x0, x20
	bl	_netxen_p3_get_mac_addr
	cbz	x0, LBB0_4
LBB0_2:
Lloh0:
	adrp	x8, _EIO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_7
LBB0_3:
	mov	x0, x20
	bl	_netxen_get_flash_mac_addr
	cbnz	x0, LBB0_2
LBB0_4:
	ldrb	w8, [sp, #17]
	ldr	x9, [x21]
	strb	w8, [x9]
	ldrb	w8, [sp, #16]
	ldr	x9, [x21]
	strb	w8, [x9, #1]
	ldrb	w8, [sp, #15]
	ldr	x9, [x21]
	strb	w8, [x9, #2]
	ldrb	w8, [sp, #14]
	ldr	x9, [x21]
	strb	w8, [x9, #3]
	ldrb	w8, [sp, #13]
	ldr	x9, [x21]
	strb	w8, [x9, #4]
	ldrb	w8, [sp, #12]
	ldr	x9, [x21]
	strb	w8, [x9, #5]
	ldr	w0, [x20]
	ldr	x1, [x21]
	ldr	w2, [x21, #8]
	bl	_memcpy
	ldr	x0, [x21]
	bl	_is_valid_ether_addr
	cbnz	w0, LBB0_6
; %bb.5:
	ldr	x2, [x21]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_warn
LBB0_6:
	mov	w0, #0
LBB0_7:
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_EIO,4,2                        ; @EIO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Bad MAC address %pM.\n"

	.no_dead_strip	_netxen_read_mac_addr
.subsections_via_symbols
