	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_netxen_need_fw_reset           ## -- Begin function netxen_need_fw_reset
	.p2align	4, 0x90
_netxen_need_fw_reset:                  ## @netxen_need_fw_reset
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movl	24(%rdi), %edi
	callq	_NX_IS_REVISION_P2
	movl	$1, %r14d
	testq	%rax, %rax
	jne	LBB0_34
## %bb.1:
	cmpq	$0, 16(%rbx)
	jne	LBB0_34
## %bb.2:
	movq	_CRB_CMDPEG_STATE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_NXRD32
	movq	_PHAN_INITIALIZE_FAILED@GOTPCREL(%rip), %r13
	cmpq	(%r13), %rax
	je	LBB0_34
## %bb.3:
	movq	_NETXEN_PEG_ALIVE_COUNTER@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_NXRD32
	movq	%rax, %r12
	movl	$200, %edi
	callq	_msleep_interruptible
	testl	%eax, %eax
	je	LBB0_23
LBB0_4:
	movq	_CRB_CMDPEG_STATE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	(%r13), %rdx
	movq	%rbx, %rdi
	callq	_NXWR32
	movq	_EINTR@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_34:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_23:
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_NXRD32
	cmpq	%r12, %rax
	jne	LBB0_24
## %bb.5:
	movl	$200, %edi
	callq	_msleep_interruptible
	testl	%eax, %eax
	movq	_NETXEN_PEG_ALIVE_COUNTER@GOTPCREL(%rip), %rax
	jne	LBB0_4
## %bb.6:
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_NXRD32
	cmpq	%r12, %rax
	jne	LBB0_24
## %bb.7:
	movl	$200, %edi
	callq	_msleep_interruptible
	testl	%eax, %eax
	movq	_NETXEN_PEG_ALIVE_COUNTER@GOTPCREL(%rip), %rax
	jne	LBB0_4
## %bb.8:
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_NXRD32
	cmpq	%r12, %rax
	jne	LBB0_24
## %bb.9:
	movl	$200, %edi
	callq	_msleep_interruptible
	testl	%eax, %eax
	movq	_NETXEN_PEG_ALIVE_COUNTER@GOTPCREL(%rip), %rax
	jne	LBB0_4
## %bb.10:
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_NXRD32
	cmpq	%r12, %rax
	jne	LBB0_24
## %bb.11:
	movl	$200, %edi
	callq	_msleep_interruptible
	testl	%eax, %eax
	movq	_NETXEN_PEG_ALIVE_COUNTER@GOTPCREL(%rip), %rax
	jne	LBB0_4
## %bb.12:
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_NXRD32
	cmpq	%r12, %rax
	jne	LBB0_24
## %bb.13:
	movl	$200, %edi
	callq	_msleep_interruptible
	testl	%eax, %eax
	movq	_NETXEN_PEG_ALIVE_COUNTER@GOTPCREL(%rip), %rax
	jne	LBB0_4
## %bb.14:
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_NXRD32
	cmpq	%r12, %rax
	jne	LBB0_24
## %bb.15:
	movl	$200, %edi
	callq	_msleep_interruptible
	testl	%eax, %eax
	movq	_NETXEN_PEG_ALIVE_COUNTER@GOTPCREL(%rip), %rax
	jne	LBB0_4
## %bb.16:
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_NXRD32
	cmpq	%r12, %rax
	jne	LBB0_24
## %bb.17:
	movl	$200, %edi
	callq	_msleep_interruptible
	testl	%eax, %eax
	movq	_NETXEN_PEG_ALIVE_COUNTER@GOTPCREL(%rip), %rax
	jne	LBB0_4
## %bb.18:
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_NXRD32
	cmpq	%r12, %rax
	jne	LBB0_24
## %bb.19:
	movl	$200, %edi
	callq	_msleep_interruptible
	testl	%eax, %eax
	movq	_NETXEN_PEG_ALIVE_COUNTER@GOTPCREL(%rip), %rax
	jne	LBB0_4
## %bb.20:
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_NXRD32
	cmpq	%r12, %rax
	jne	LBB0_24
## %bb.21:
	movl	$200, %edi
	callq	_msleep_interruptible
	testl	%eax, %eax
	movq	_NETXEN_PEG_ALIVE_COUNTER@GOTPCREL(%rip), %rax
	jne	LBB0_4
## %bb.22:
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_NXRD32
	cmpq	%r12, %rax
	je	LBB0_34
LBB0_24:
	cmpq	%r12, %rax
	je	LBB0_34
## %bb.25:
	cmpq	$0, 8(%rbx)
	je	LBB0_33
## %bb.26:
	movq	%rbx, %rdi
	callq	_nx_get_fw_version
	movq	%rax, %rdi
	callq	_NETXEN_DECODE_VERSION
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	_NETXEN_FW_VERSION_MAJOR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_NXRD32
	movq	%rax, %r13
	movq	_NETXEN_FW_VERSION_MINOR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_NXRD32
	movq	%rax, %r12
	movq	_NETXEN_FW_VERSION_SUB@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_NXRD32
	movq	%rax, %r15
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	movq	%r13, %rdi
	movq	%r12, %rsi
	movq	%rax, %rdx
	callq	_NETXEN_VERSION_CODE
	cmpq	%rax, -48(%rbp)                 ## 8-byte Folded Reload
	jg	LBB0_34
## %bb.27:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r12, %rsi
	movq	%r15, %rdx
	callq	_NETXEN_VERSION_CODE
	cmpq	%rax, -48(%rbp)                 ## 8-byte Folded Reload
	jne	LBB0_33
## %bb.28:
	movq	(%rbx), %rax
	movq	_NX_UNIFIED_ROMIMAGE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_33
## %bb.29:
	movq	_NETXEN_MIU_MN_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_NXRD32
	testb	$4, %al
	jne	LBB0_30
## %bb.31:
	movq	_NX_P3_MN_ROMIMAGE@GOTPCREL(%rip), %rax
	jmp	LBB0_32
LBB0_30:
	movq	_NX_P3_CT_ROMIMAGE@GOTPCREL(%rip), %rax
LBB0_32:
	movq	(%rbx), %rcx
	cmpq	(%rax), %rcx
	jne	LBB0_34
LBB0_33:
	xorl	%r14d, %r14d
	jmp	LBB0_34
	.cfi_endproc
                                        ## -- End function
	.comm	_CRB_CMDPEG_STATE,4,2           ## @CRB_CMDPEG_STATE
	.comm	_PHAN_INITIALIZE_FAILED,8,3     ## @PHAN_INITIALIZE_FAILED
	.comm	_NETXEN_PEG_ALIVE_COUNTER,4,2   ## @NETXEN_PEG_ALIVE_COUNTER
	.comm	_EINTR,4,2                      ## @EINTR
	.comm	_NETXEN_FW_VERSION_MAJOR,4,2    ## @NETXEN_FW_VERSION_MAJOR
	.comm	_NETXEN_FW_VERSION_MINOR,4,2    ## @NETXEN_FW_VERSION_MINOR
	.comm	_NETXEN_FW_VERSION_SUB,4,2      ## @NETXEN_FW_VERSION_SUB
	.comm	_NX_UNIFIED_ROMIMAGE,8,3        ## @NX_UNIFIED_ROMIMAGE
	.comm	_NETXEN_MIU_MN_CONTROL,4,2      ## @NETXEN_MIU_MN_CONTROL
	.comm	_NX_P3_CT_ROMIMAGE,8,3          ## @NX_P3_CT_ROMIMAGE
	.comm	_NX_P3_MN_ROMIMAGE,8,3          ## @NX_P3_MN_ROMIMAGE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_netxen_need_fw_reset           ; -- Begin function netxen_need_fw_reset
	.p2align	2
_netxen_need_fw_reset:                  ; @netxen_need_fw_reset
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
	ldr	w0, [x0, #24]
	bl	_NX_IS_REVISION_P2
	cbnz	x0, LBB0_3
; %bb.1:
	ldr	x8, [x19, #16]
	cbnz	x8, LBB0_3
; %bb.2:
Lloh0:
	adrp	x21, _CRB_CMDPEG_STATE@GOTPAGE
Lloh1:
	ldr	x21, [x21, _CRB_CMDPEG_STATE@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_NXRD32
Lloh2:
	adrp	x22, _PHAN_INITIALIZE_FAILED@GOTPAGE
Lloh3:
	ldr	x22, [x22, _PHAN_INITIALIZE_FAILED@GOTPAGEOFF]
	ldr	x8, [x22]
	cmp	x0, x8
	b.ne	LBB0_5
LBB0_3:
	mov	w0, #1
LBB0_4:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_5:
Lloh4:
	adrp	x23, _NETXEN_PEG_ALIVE_COUNTER@GOTPAGE
Lloh5:
	ldr	x23, [x23, _NETXEN_PEG_ALIVE_COUNTER@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	x0, x19
	bl	_NXRD32
	mov	x20, x0
	mov	w0, #200
	bl	_msleep_interruptible
	cbz	w0, LBB0_7
LBB0_6:
	ldr	w1, [x21]
	ldr	x2, [x22]
	mov	x0, x19
	bl	_NXWR32
Lloh6:
	adrp	x8, _EINTR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINTR@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_4
LBB0_7:
	ldr	w1, [x23]
	mov	x0, x19
	bl	_NXRD32
	cmp	x0, x20
	b.ne	LBB0_26
; %bb.8:
	mov	w0, #200
	bl	_msleep_interruptible
	cbnz	w0, LBB0_6
; %bb.9:
	ldr	w1, [x23]
	mov	x0, x19
	bl	_NXRD32
	cmp	x0, x20
	b.ne	LBB0_26
; %bb.10:
	mov	w0, #200
	bl	_msleep_interruptible
	cbnz	w0, LBB0_6
; %bb.11:
	ldr	w1, [x23]
	mov	x0, x19
	bl	_NXRD32
	cmp	x0, x20
	b.ne	LBB0_26
; %bb.12:
	mov	w0, #200
	bl	_msleep_interruptible
	cbnz	w0, LBB0_6
; %bb.13:
	ldr	w1, [x23]
	mov	x0, x19
	bl	_NXRD32
	cmp	x0, x20
	b.ne	LBB0_26
; %bb.14:
	mov	w0, #200
	bl	_msleep_interruptible
	cbnz	w0, LBB0_6
; %bb.15:
	ldr	w1, [x23]
	mov	x0, x19
	bl	_NXRD32
	cmp	x0, x20
	b.ne	LBB0_26
; %bb.16:
	mov	w0, #200
	bl	_msleep_interruptible
	cbnz	w0, LBB0_6
; %bb.17:
	ldr	w1, [x23]
	mov	x0, x19
	bl	_NXRD32
	cmp	x0, x20
	b.ne	LBB0_26
; %bb.18:
	mov	w0, #200
	bl	_msleep_interruptible
	cbnz	w0, LBB0_6
; %bb.19:
	ldr	w1, [x23]
	mov	x0, x19
	bl	_NXRD32
	cmp	x0, x20
	b.ne	LBB0_26
; %bb.20:
	mov	w0, #200
	bl	_msleep_interruptible
	cbnz	w0, LBB0_6
; %bb.21:
	ldr	w1, [x23]
	mov	x0, x19
	bl	_NXRD32
	cmp	x0, x20
	b.ne	LBB0_26
; %bb.22:
	mov	w0, #200
	bl	_msleep_interruptible
	cbnz	w0, LBB0_6
; %bb.23:
	ldr	w1, [x23]
	mov	x0, x19
	bl	_NXRD32
	cmp	x0, x20
	b.ne	LBB0_26
; %bb.24:
	mov	w0, #200
	bl	_msleep_interruptible
	cbnz	w0, LBB0_6
; %bb.25:
	ldr	w1, [x23]
	mov	x0, x19
	bl	_NXRD32
	cmp	x0, x20
	b.eq	LBB0_3
LBB0_26:
	cmp	x0, x20
	b.eq	LBB0_3
; %bb.27:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_32
; %bb.28:
	mov	x0, x19
	bl	_nx_get_fw_version
	bl	_NETXEN_DECODE_VERSION
	mov	x20, x0
Lloh9:
	adrp	x8, _NETXEN_FW_VERSION_MAJOR@GOTPAGE
Lloh10:
	ldr	x8, [x8, _NETXEN_FW_VERSION_MAJOR@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_NXRD32
	mov	x21, x0
Lloh12:
	adrp	x8, _NETXEN_FW_VERSION_MINOR@GOTPAGE
Lloh13:
	ldr	x8, [x8, _NETXEN_FW_VERSION_MINOR@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_NXRD32
	mov	x22, x0
Lloh15:
	adrp	x8, _NETXEN_FW_VERSION_SUB@GOTPAGE
Lloh16:
	ldr	x8, [x8, _NETXEN_FW_VERSION_SUB@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_NXRD32
	mov	x23, x0
	mov	x0, x21
	mov	x1, x22
	mov	x2, x23
	bl	_NETXEN_VERSION_CODE
	cmp	x20, x0
	b.gt	LBB0_3
; %bb.29:
	mov	x0, x21
	mov	x1, x22
	mov	x2, x23
	bl	_NETXEN_VERSION_CODE
	cmp	x20, x0
	b.ne	LBB0_32
; %bb.30:
	ldr	x8, [x19]
Lloh18:
	adrp	x9, _NX_UNIFIED_ROMIMAGE@GOTPAGE
Lloh19:
	ldr	x9, [x9, _NX_UNIFIED_ROMIMAGE@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_32
; %bb.31:
Lloh21:
	adrp	x8, _NETXEN_MIU_MN_CONTROL@GOTPAGE
Lloh22:
	ldr	x8, [x8, _NETXEN_MIU_MN_CONTROL@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_NXRD32
Lloh24:
	adrp	x8, _NX_P3_CT_ROMIMAGE@GOTPAGE
Lloh25:
	ldr	x8, [x8, _NX_P3_CT_ROMIMAGE@GOTPAGEOFF]
Lloh26:
	adrp	x9, _NX_P3_MN_ROMIMAGE@GOTPAGE
Lloh27:
	ldr	x9, [x9, _NX_P3_MN_ROMIMAGE@GOTPAGEOFF]
	tst	x0, #0x4
	csel	x8, x9, x8, eq
	ldr	x8, [x8]
	ldr	x9, [x19]
	cmp	x9, x8
	b.ne	LBB0_3
LBB0_32:
	mov	w0, #0
	b	LBB0_4
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_CRB_CMDPEG_STATE,4,2           ; @CRB_CMDPEG_STATE
	.comm	_PHAN_INITIALIZE_FAILED,8,3     ; @PHAN_INITIALIZE_FAILED
	.comm	_NETXEN_PEG_ALIVE_COUNTER,4,2   ; @NETXEN_PEG_ALIVE_COUNTER
	.comm	_EINTR,4,2                      ; @EINTR
	.comm	_NETXEN_FW_VERSION_MAJOR,4,2    ; @NETXEN_FW_VERSION_MAJOR
	.comm	_NETXEN_FW_VERSION_MINOR,4,2    ; @NETXEN_FW_VERSION_MINOR
	.comm	_NETXEN_FW_VERSION_SUB,4,2      ; @NETXEN_FW_VERSION_SUB
	.comm	_NX_UNIFIED_ROMIMAGE,8,3        ; @NX_UNIFIED_ROMIMAGE
	.comm	_NETXEN_MIU_MN_CONTROL,4,2      ; @NETXEN_MIU_MN_CONTROL
	.comm	_NX_P3_CT_ROMIMAGE,8,3          ; @NX_P3_CT_ROMIMAGE
	.comm	_NX_P3_MN_ROMIMAGE,8,3          ; @NX_P3_MN_ROMIMAGE
.subsections_via_symbols
