	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_netxen_phantom_init            ## -- Begin function netxen_phantom_init
	.p2align	4, 0x90
_netxen_phantom_init:                   ## @netxen_phantom_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	xorl	%r14d, %r14d
	testl	%esi, %esi
	jne	LBB0_7
## %bb.1:
	movq	%rdi, %r12
	movl	$-60, %ebx
	movq	_CRB_CMDPEG_STATE@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r15), %esi
	movq	%r12, %rdi
	callq	_NXRD32
                                        ## kill: def $eax killed $eax def $rax
	leal	-129(%rax), %ecx
	cmpl	$2, %ecx
	jb	LBB0_7
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$128, %eax
	je	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	$500, %edi                      ## imm = 0x1F4
	callq	_msleep
	incl	%ebx
	jne	LBB0_2
## %bb.5:
	movl	(%r15), %esi
	movq	%r12, %rdi
	movl	$128, %edx
	callq	_NXWR32
LBB0_6:
	movq	(%r12), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_dev_warn
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_7:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CRB_CMDPEG_STATE,4,2           ## @CRB_CMDPEG_STATE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"firmware init failed\n"

	.comm	_EIO,4,2                        ## @EIO
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_netxen_phantom_init            ; -- Begin function netxen_phantom_init
	.p2align	2
_netxen_phantom_init:                   ; @netxen_phantom_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
	cbz	w1, LBB0_3
LBB0_1:
	mov	w0, #0
LBB0_2:
	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
LBB0_3:
	mov	x19, x0
	mov	w20, #-60
Lloh0:
	adrp	x21, _CRB_CMDPEG_STATE@GOTPAGE
Lloh1:
	ldr	x21, [x21, _CRB_CMDPEG_STATE@GOTPAGEOFF]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x21]
	mov	x0, x19
	bl	_NXRD32
	sub	w8, w0, #129
	cmp	w8, #2
	b.lo	LBB0_1
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	w0, #128
	b.eq	LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	w0, #500
	bl	_msleep
	adds	w20, w20, #1
	b.lo	LBB0_4
; %bb.7:
	ldr	w1, [x21]
	mov	x0, x19
	mov	w2, #128
	bl	_NXWR32
LBB0_8:
	ldr	x0, [x19]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_warn
Lloh4:
	adrp	x8, _EIO@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_2
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_CRB_CMDPEG_STATE,4,2           ; @CRB_CMDPEG_STATE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"firmware init failed\n"

	.comm	_EIO,4,2                        ; @EIO
.subsections_via_symbols
