	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_netxen_get_flash_mac_addr      ## -- Begin function netxen_get_flash_mac_addr
	.p2align	4, 0x90
_netxen_get_flash_mac_addr:             ## @netxen_get_flash_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
	movq	_NX_FW_MAC_ADDR_OFFSET@GOTPCREL(%rip), %rax
	movslq	(%rdi), %rsi
	shlq	$3, %rsi
	addq	(%rax), %rsi
	movl	$8, %edx
	movq	%r15, %rcx
	callq	_netxen_get_flash_block
	movl	$-1, %r14d
	cmpl	$-1, %eax
	je	LBB0_5
## %bb.1:
	cmpq	$-1, (%r15)
	je	LBB0_2
LBB0_4:
	xorl	%r14d, %r14d
LBB0_5:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	_NX_OLD_MAC_ADDR_OFFSET@GOTPCREL(%rip), %rax
	movslq	(%rbx), %rsi
	shlq	$3, %rsi
	addq	(%rax), %rsi
	movq	%rbx, %rdi
	movl	$8, %edx
	movq	%r15, %rcx
	callq	_netxen_get_flash_block
	cmpl	$-1, %eax
	je	LBB0_5
## %bb.3:
	cmpq	$-1, (%r15)
	jne	LBB0_4
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.comm	_NX_FW_MAC_ADDR_OFFSET,8,3      ## @NX_FW_MAC_ADDR_OFFSET
	.comm	_NX_OLD_MAC_ADDR_OFFSET,8,3     ## @NX_OLD_MAC_ADDR_OFFSET
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_netxen_get_flash_mac_addr      ; -- Begin function netxen_get_flash_mac_addr
	.p2align	2
_netxen_get_flash_mac_addr:             ; @netxen_get_flash_mac_addr
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _NX_FW_MAC_ADDR_OFFSET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NX_FW_MAC_ADDR_OFFSET@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldrsw	x9, [x0]
	add	x1, x8, x9, lsl #3
	mov	w2, #8
	mov	x3, x19
	bl	_netxen_get_flash_block
	cmn	w0, #1
	b.eq	LBB0_3
; %bb.1:
	ldr	x8, [x19]
	cmn	x8, #1
	b.eq	LBB0_4
LBB0_2:
	mov	w0, #0
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_4:
Lloh3:
	adrp	x8, _NX_OLD_MAC_ADDR_OFFSET@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NX_OLD_MAC_ADDR_OFFSET@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	ldrsw	x9, [x20]
	add	x1, x8, x9, lsl #3
	mov	x0, x20
	mov	w2, #8
	mov	x3, x19
	bl	_netxen_get_flash_block
	cmn	w0, #1
	b.eq	LBB0_3
; %bb.5:
	ldr	x8, [x19]
	cmn	x8, #1
	b.ne	LBB0_2
; %bb.6:
	mov	w0, #-1
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_NX_FW_MAC_ADDR_OFFSET,8,3      ; @NX_FW_MAC_ADDR_OFFSET
	.comm	_NX_OLD_MAC_ADDR_OFFSET,8,3     ; @NX_OLD_MAC_ADDR_OFFSET
.subsections_via_symbols
