	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_netxen_init_firmware           ## -- Begin function netxen_init_firmware
	.p2align	4, 0x90
_netxen_init_firmware:                  ## @netxen_init_firmware
	.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
	movq	%rdi, %rbx
	callq	_netxen_receive_peg_ready
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_3
## %bb.1:
	movq	_CRB_NIC_CAPABILITIES_HOST@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_INTR_SCHEME_PERPORT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_NXWR32
	movq	_CRB_MPORT_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MPORT_MULTI_FUNCTION_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_NXWR32
	movq	_CRB_CMDPEG_STATE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_PHAN_INITIALIZE_ACK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_NXWR32
	movl	(%rbx), %edi
	callq	_NX_IS_REVISION_P2
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	_CRB_NIC_MSI_MODE_HOST@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MSI_MODE_MULTIFUNC@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_NXWR32
LBB0_3:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CRB_NIC_CAPABILITIES_HOST,4,2  ## @CRB_NIC_CAPABILITIES_HOST
	.comm	_INTR_SCHEME_PERPORT,4,2        ## @INTR_SCHEME_PERPORT
	.comm	_CRB_MPORT_MODE,4,2             ## @CRB_MPORT_MODE
	.comm	_MPORT_MULTI_FUNCTION_MODE,4,2  ## @MPORT_MULTI_FUNCTION_MODE
	.comm	_CRB_CMDPEG_STATE,4,2           ## @CRB_CMDPEG_STATE
	.comm	_PHAN_INITIALIZE_ACK,4,2        ## @PHAN_INITIALIZE_ACK
	.comm	_CRB_NIC_MSI_MODE_HOST,4,2      ## @CRB_NIC_MSI_MODE_HOST
	.comm	_MSI_MODE_MULTIFUNC,4,2         ## @MSI_MODE_MULTIFUNC
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_netxen_init_firmware           ; -- Begin function netxen_init_firmware
	.p2align	2
_netxen_init_firmware:                  ; @netxen_init_firmware
	.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	x20, x0
	bl	_netxen_receive_peg_ready
	mov	x19, x0
	cbnz	w0, LBB0_3
; %bb.1:
Lloh0:
	adrp	x8, _CRB_NIC_CAPABILITIES_HOST@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CRB_NIC_CAPABILITIES_HOST@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _INTR_SCHEME_PERPORT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _INTR_SCHEME_PERPORT@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_NXWR32
Lloh6:
	adrp	x8, _CRB_MPORT_MODE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CRB_MPORT_MODE@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
Lloh9:
	adrp	x8, _MPORT_MULTI_FUNCTION_MODE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MPORT_MULTI_FUNCTION_MODE@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_NXWR32
Lloh12:
	adrp	x8, _CRB_CMDPEG_STATE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _CRB_CMDPEG_STATE@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
Lloh15:
	adrp	x8, _PHAN_INITIALIZE_ACK@GOTPAGE
Lloh16:
	ldr	x8, [x8, _PHAN_INITIALIZE_ACK@GOTPAGEOFF]
Lloh17:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_NXWR32
	ldr	w0, [x20]
	bl	_NX_IS_REVISION_P2
	cbz	x0, LBB0_3
; %bb.2:
Lloh18:
	adrp	x8, _CRB_NIC_MSI_MODE_HOST@GOTPAGE
Lloh19:
	ldr	x8, [x8, _CRB_NIC_MSI_MODE_HOST@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
Lloh21:
	adrp	x8, _MSI_MODE_MULTIFUNC@GOTPAGE
Lloh22:
	ldr	x8, [x8, _MSI_MODE_MULTIFUNC@GOTPAGEOFF]
Lloh23:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_NXWR32
LBB0_3:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_CRB_NIC_CAPABILITIES_HOST,4,2  ; @CRB_NIC_CAPABILITIES_HOST
	.comm	_INTR_SCHEME_PERPORT,4,2        ; @INTR_SCHEME_PERPORT
	.comm	_CRB_MPORT_MODE,4,2             ; @CRB_MPORT_MODE
	.comm	_MPORT_MULTI_FUNCTION_MODE,4,2  ; @MPORT_MULTI_FUNCTION_MODE
	.comm	_CRB_CMDPEG_STATE,4,2           ; @CRB_CMDPEG_STATE
	.comm	_PHAN_INITIALIZE_ACK,4,2        ; @PHAN_INITIALIZE_ACK
	.comm	_CRB_NIC_MSI_MODE_HOST,4,2      ; @CRB_NIC_MSI_MODE_HOST
	.comm	_MSI_MODE_MULTIFUNC,4,2         ; @MSI_MODE_MULTIFUNC
.subsections_via_symbols
