	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tg3_probe_ncsi
_tg3_probe_ncsi:                        ## @tg3_probe_ncsi
	.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
	movq	_TG3_APE_SEG_SIG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_tg3_ape_read32
	movq	_APE_SEG_SIG_MAGIC@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_3
## %bb.1:
	movq	_TG3_APE_FW_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_tg3_ape_read32
	movq	_APE_FW_STATUS_READY@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_3
## %bb.2:
	movq	_TG3_APE_FW_FEATURES@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_tg3_ape_read32
	movq	_TG3_APE_FW_FEATURE_NCSI@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_3
## %bb.4:
	movq	_APE_HAS_NCSI@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_tg3_flag_set                   ## TAILCALL
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TG3_APE_SEG_SIG,4,2            ## @TG3_APE_SEG_SIG
	.comm	_APE_SEG_SIG_MAGIC,4,2          ## @APE_SEG_SIG_MAGIC
	.comm	_TG3_APE_FW_STATUS,4,2          ## @TG3_APE_FW_STATUS
	.comm	_APE_FW_STATUS_READY,4,2        ## @APE_FW_STATUS_READY
	.comm	_TG3_APE_FW_FEATURES,4,2        ## @TG3_APE_FW_FEATURES
	.comm	_TG3_APE_FW_FEATURE_NCSI,4,2    ## @TG3_APE_FW_FEATURE_NCSI
	.comm	_APE_HAS_NCSI,4,2               ## @APE_HAS_NCSI
	.no_dead_strip	_tg3_probe_ncsi
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tg3_probe_ncsi
_tg3_probe_ncsi:                        ; @tg3_probe_ncsi
	.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
Lloh0:
	adrp	x8, _TG3_APE_SEG_SIG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TG3_APE_SEG_SIG@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_tg3_ape_read32
Lloh3:
	adrp	x8, _APE_SEG_SIG_MAGIC@GOTPAGE
Lloh4:
	ldr	x8, [x8, _APE_SEG_SIG_MAGIC@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_4
; %bb.1:
Lloh6:
	adrp	x8, _TG3_APE_FW_STATUS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _TG3_APE_FW_STATUS@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_tg3_ape_read32
Lloh9:
	adrp	x8, _APE_FW_STATUS_READY@GOTPAGE
Lloh10:
	ldr	x8, [x8, _APE_FW_STATUS_READY@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_4
; %bb.2:
Lloh12:
	adrp	x8, _TG3_APE_FW_FEATURES@GOTPAGE
Lloh13:
	ldr	x8, [x8, _TG3_APE_FW_FEATURES@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_tg3_ape_read32
Lloh15:
	adrp	x8, _TG3_APE_FW_FEATURE_NCSI@GOTPAGE
Lloh16:
	ldr	x8, [x8, _TG3_APE_FW_FEATURE_NCSI@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_4
; %bb.3:
Lloh18:
	adrp	x8, _APE_HAS_NCSI@GOTPAGE
Lloh19:
	ldr	x8, [x8, _APE_HAS_NCSI@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_tg3_flag_set
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_TG3_APE_SEG_SIG,4,2            ; @TG3_APE_SEG_SIG
	.comm	_APE_SEG_SIG_MAGIC,4,2          ; @APE_SEG_SIG_MAGIC
	.comm	_TG3_APE_FW_STATUS,4,2          ; @TG3_APE_FW_STATUS
	.comm	_APE_FW_STATUS_READY,4,2        ; @APE_FW_STATUS_READY
	.comm	_TG3_APE_FW_FEATURES,4,2        ; @TG3_APE_FW_FEATURES
	.comm	_TG3_APE_FW_FEATURE_NCSI,4,2    ; @TG3_APE_FW_FEATURE_NCSI
	.comm	_APE_HAS_NCSI,4,2               ; @APE_HAS_NCSI
	.no_dead_strip	_tg3_probe_ncsi
.subsections_via_symbols
