	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nx_get_next_fwtype
_nx_get_next_fwtype:                    ## @nx_get_next_fwtype
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movl	(%rdi), %eax
	cmpl	$128, %eax
	je	LBB0_1
## %bb.2:
	cmpl	$130, %eax
	je	LBB0_7
## %bb.3:
	cmpl	$129, %eax
	jne	LBB0_8
## %bb.4:
	movl	4(%rbx), %edi
	callq	_NX_IS_REVISION_P3P
	testl	%eax, %eax
	je	LBB0_5
LBB0_8:
	movq	_NX_FLASH_ROMIMAGE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	jmp	LBB0_9
LBB0_1:
	movl	$129, %ecx
	jmp	LBB0_9
LBB0_7:
	movl	$131, %ecx
LBB0_9:
	movl	%ecx, (%rbx)
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_5:
	movl	4(%rbx), %edi
	callq	_NX_IS_REVISION_P2
	movl	$132, %ecx
	testl	%eax, %eax
	jne	LBB0_9
## %bb.6:
	movq	%rbx, %rdi
	callq	_netxen_p3_has_mn
	xorl	%ecx, %ecx
	testl	%eax, %eax
	sete	%cl
	orl	$130, %ecx
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_NX_FLASH_ROMIMAGE,4,2          ## @NX_FLASH_ROMIMAGE
	.no_dead_strip	_nx_get_next_fwtype
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nx_get_next_fwtype
_nx_get_next_fwtype:                    ; @nx_get_next_fwtype
	.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, x0
	ldr	w8, [x0]
	cmp	w8, #128
	b.eq	LBB0_5
; %bb.1:
	cmp	w8, #130
	b.eq	LBB0_6
; %bb.2:
	cmp	w8, #129
	b.ne	LBB0_4
; %bb.3:
	ldr	w0, [x19, #4]
	bl	_NX_IS_REVISION_P3P
	cbz	w0, LBB0_8
LBB0_4:
Lloh0:
	adrp	x8, _NX_FLASH_ROMIMAGE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NX_FLASH_ROMIMAGE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	b	LBB0_7
LBB0_5:
	mov	w8, #129
	b	LBB0_7
LBB0_6:
	mov	w8, #131
LBB0_7:
	str	w8, [x19]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_8:
	ldr	w0, [x19, #4]
	bl	_NX_IS_REVISION_P2
	cbz	w0, LBB0_10
; %bb.9:
	mov	w8, #132
	b	LBB0_7
LBB0_10:
	mov	x0, x19
	bl	_netxen_p3_has_mn
	cmp	w0, #0
	mov	w8, #130
	cinc	w8, w8, eq
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_NX_FLASH_ROMIMAGE,4,2          ; @NX_FLASH_ROMIMAGE
	.no_dead_strip	_nx_get_next_fwtype
.subsections_via_symbols
