	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function netxen_nic_reg_test
_netxen_nic_reg_test:                   ## @netxen_nic_reg_test
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	callq	_netdev_priv
	movq	%rax, %rbx
	xorl	%edi, %edi
	callq	_NETXEN_PCIX_PH_REG
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_NXRD32
	movzwl	%ax, %ecx
	movq	8(%rbx), %rdx
	movl	$1, %eax
	cmpl	(%rdx), %ecx
	jne	LBB0_3
## %bb.1:
	movl	(%rbx), %edi
	callq	_NX_IS_REVISION_P3
	movq	%rax, %rcx
	movl	$0, %eax
	testq	%rcx, %rcx
	jne	LBB0_3
## %bb.2:
	movq	_CRB_SCRATCHPAD_TEST@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	%rbx, %rdi
	movl	$-1515870811, %edx              ## imm = 0xA5A5A5A5
	callq	_NXWR32
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_NXRD32
	movl	%eax, %ecx
	xorl	%eax, %eax
	cmpl	$-1515870811, %ecx              ## imm = 0xA5A5A5A5
	setne	%al
LBB0_3:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CRB_SCRATCHPAD_TEST,4,2        ## @CRB_SCRATCHPAD_TEST
	.no_dead_strip	_netxen_nic_reg_test
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function netxen_nic_reg_test
_netxen_nic_reg_test:                   ; @netxen_nic_reg_test
	.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
	bl	_netdev_priv
	mov	x19, x0
	mov	w0, #0
	bl	_NETXEN_PCIX_PH_REG
	mov	x1, x0
	mov	x0, x19
	bl	_NXRD32
	ldr	x8, [x19, #8]
	ldr	w8, [x8]
	cmp	w8, w0, uxth
	b.ne	LBB0_3
; %bb.1:
	ldr	w0, [x19]
	bl	_NX_IS_REVISION_P3
	cbz	x0, LBB0_4
; %bb.2:
	mov	w0, #0
	b	LBB0_5
LBB0_3:
	mov	w0, #1
	b	LBB0_5
LBB0_4:
Lloh0:
	adrp	x20, _CRB_SCRATCHPAD_TEST@GOTPAGE
Lloh1:
	ldr	x20, [x20, _CRB_SCRATCHPAD_TEST@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	w21, #42405
	movk	w21, #42405, lsl #16
	mov	x0, x19
	mov	w2, #42405
	movk	w2, #42405, lsl #16
	bl	_NXWR32
	ldr	w1, [x20]
	mov	x0, x19
	bl	_NXRD32
	cmp	w0, w21
	cset	w0, ne
LBB0_5:
	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 AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_CRB_SCRATCHPAD_TEST,4,2        ; @CRB_SCRATCHPAD_TEST
	.no_dead_strip	_netxen_nic_reg_test
.subsections_via_symbols
