	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function netxen_check_hw_init
_netxen_check_hw_init:                  ## @netxen_check_hw_init
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	xorl	%r14d, %r14d
	cmpl	$1431655765, %esi               ## imm = 0x55555555
	jne	LBB0_11
## %bb.1:
	movq	%rdi, %r13
	movl	$508, %edi                      ## imm = 0x1FC
	callq	_NETXEN_CAM_RAM
	movq	_NETXEN_BDINFO_MAGIC@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	_NXWR32
	movl	(%r13), %edi
	callq	_NX_IS_REVISION_P2
	testl	%eax, %eax
	je	LBB0_11
## %bb.2:
	movl	$4, %edi
	callq	_NETXEN_PCIE_REG
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	_NXRD32
	movl	%eax, %r15d
	testb	$4, %r15b
	jne	LBB0_4
## %bb.3:
	orl	$4, %r15d
	movl	$4, %edi
	callq	_NETXEN_PCIE_REG
	movq	%r13, %rdi
	movl	%eax, %esi
	movl	%r15d, %edx
	callq	_NXWR32
	movl	$4, %edi
	callq	_NETXEN_PCIE_REG
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	_NXRD32
LBB0_4:
	movq	_NETXEN_ROMUSB_GLB_SW_RESET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_NXRD32
	cmpl	$8388623, %eax                  ## imm = 0x80000F
	jne	LBB0_8
## %bb.5:
	movq	_NETXEN_ROMUSB_GLB_PEGTUNE_DONE@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r13, %rdi
	callq	_NXRD32
	movl	(%rbx), %esi
	orl	$1, %eax
	movq	%r13, %rdi
	movl	%eax, %edx
	callq	_NXWR32
	movl	$5001, %ebx                     ## imm = 0x1389
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	$1, %edi
	callq	_msleep
	movl	$508, %edi                      ## imm = 0x1FC
	callq	_NETXEN_CAM_RAM
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	_NXRD32
	decl	%ebx
	je	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	cmpl	(%r12), %eax
	je	LBB0_6
	jmp	LBB0_11
LBB0_8:
	movl	$508, %edi                      ## imm = 0x1FC
	callq	_NETXEN_CAM_RAM
	xorl	%r14d, %r14d
	movq	%r13, %rdi
	movl	%eax, %esi
	xorl	%edx, %edx
	callq	_NXWR32
	movq	_EIO@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_9:
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
LBB0_10:
	subl	(%rax), %r14d
LBB0_11:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NETXEN_BDINFO_MAGIC,4,2        ## @NETXEN_BDINFO_MAGIC
	.comm	_NETXEN_ROMUSB_GLB_SW_RESET,4,2 ## @NETXEN_ROMUSB_GLB_SW_RESET
	.comm	_EIO,4,2                        ## @EIO
	.comm	_NETXEN_ROMUSB_GLB_PEGTUNE_DONE,4,2 ## @NETXEN_ROMUSB_GLB_PEGTUNE_DONE
	.no_dead_strip	_netxen_check_hw_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function netxen_check_hw_init
_netxen_check_hw_init:                  ; @netxen_check_hw_init
	.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	w8, #1431655765
	cmp	w1, w8
	b.ne	LBB0_8
; %bb.1:
	mov	x19, x0
	mov	w0, #508
	bl	_NETXEN_CAM_RAM
	mov	x1, x0
Lloh0:
	adrp	x21, _NETXEN_BDINFO_MAGIC@GOTPAGE
Lloh1:
	ldr	x21, [x21, _NETXEN_BDINFO_MAGIC@GOTPAGEOFF]
	ldr	w2, [x21]
	mov	x0, x19
	bl	_NXWR32
	ldr	w0, [x19]
	bl	_NX_IS_REVISION_P2
	cbz	w0, LBB0_11
; %bb.2:
	mov	w0, #4
	bl	_NETXEN_PCIE_REG
	mov	x1, x0
	mov	x0, x19
	bl	_NXRD32
	tbnz	w0, #2, LBB0_4
; %bb.3:
	orr	w20, w0, #0x4
	mov	w0, #4
	bl	_NETXEN_PCIE_REG
	mov	x1, x0
	mov	x0, x19
	mov	x2, x20
	bl	_NXWR32
	mov	w0, #4
	bl	_NETXEN_PCIE_REG
	mov	x1, x0
	mov	x0, x19
	bl	_NXRD32
LBB0_4:
Lloh2:
	adrp	x8, _NETXEN_ROMUSB_GLB_SW_RESET@GOTPAGE
Lloh3:
	ldr	x8, [x8, _NETXEN_ROMUSB_GLB_SW_RESET@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_NXRD32
	sub	w8, w0, #2048, lsl #12          ; =8388608
	cmp	w8, #15
	b.ne	LBB0_9
; %bb.5:
Lloh5:
	adrp	x20, _NETXEN_ROMUSB_GLB_PEGTUNE_DONE@GOTPAGE
Lloh6:
	ldr	x20, [x20, _NETXEN_ROMUSB_GLB_PEGTUNE_DONE@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_NXRD32
	ldr	w1, [x20]
	orr	w2, w0, #0x1
	mov	x0, x19
	bl	_NXWR32
	mov	w20, #5001
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	mov	w0, #1
	bl	_msleep
	mov	w0, #508
	bl	_NETXEN_CAM_RAM
	mov	x1, x0
	mov	x0, x19
	bl	_NXRD32
	subs	w20, w20, #1
	b.eq	LBB0_10
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w8, [x21]
	cmp	w0, w8
	b.eq	LBB0_6
LBB0_8:
	mov	w0, #0
	b	LBB0_11
LBB0_9:
	mov	w0, #508
	bl	_NETXEN_CAM_RAM
	mov	x1, x0
	mov	x0, x19
	mov	w2, #0
	bl	_NXWR32
LBB0_10:
Lloh7:
	adrp	x8, _EIO@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EIO@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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_NETXEN_BDINFO_MAGIC,4,2        ; @NETXEN_BDINFO_MAGIC
	.comm	_NETXEN_ROMUSB_GLB_SW_RESET,4,2 ; @NETXEN_ROMUSB_GLB_SW_RESET
	.comm	_EIO,4,2                        ; @EIO
	.comm	_NETXEN_ROMUSB_GLB_PEGTUNE_DONE,4,2 ; @NETXEN_ROMUSB_GLB_PEGTUNE_DONE
	.no_dead_strip	_netxen_check_hw_init
.subsections_via_symbols
