	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tg3_read_dash_ver
_tg3_read_dash_ver:                     ## @tg3_read_dash_ver
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	_TG3_APE_FW_VERSION@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_tg3_ape_read32
	movl	%eax, %r15d
	movq	_APE_HAS_NCSI@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_tg3_flag
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %r14
	jmp	LBB0_3
LBB0_2:
	movq	8(%rbx), %rax
	movq	(%rax), %rax
	movq	_TG3PCI_DEVICE_TIGON3_5725@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	leaq	L_.str.1(%rip), %rax
	leaq	L_.str.2(%rip), %r14
	cmoveq	%rax, %r14
LBB0_3:
	movq	(%rbx), %rdi
	callq	_strlen
	cltq
	leaq	(,%rax,4), %rdi
	addq	(%rbx), %rdi
	movq	_TG3_VER_SIZE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	movq	_APE_FW_VERSION_MAJMSK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r8d
	andl	%r15d, %r8d
	movq	_APE_FW_VERSION_MAJSFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	sarl	%cl, %r8d
	movq	_APE_FW_VERSION_MINMSK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r9d
	andl	%r15d, %r9d
	movq	_APE_FW_VERSION_MINSFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	sarl	%cl, %r9d
	movq	_APE_FW_VERSION_REVSFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movq	_APE_FW_VERSION_REVMSK@GOTPCREL(%rip), %rdx
	movl	(%rdx), %ebx
	andl	%r15d, %ebx
	sarl	%cl, %ebx
	subq	%rax, %rsi
	movq	_APE_FW_VERSION_BLDMSK@GOTPCREL(%rip), %rax
	andl	(%rax), %r15d
	leaq	L_.str.3(%rip), %rdx
	movq	%r14, %rcx
	pushq	%r15
	pushq	%rbx
	callq	_snprintf
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TG3_APE_FW_VERSION,4,2         ## @TG3_APE_FW_VERSION
	.comm	_APE_HAS_NCSI,4,2               ## @APE_HAS_NCSI
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"NCSI"

	.comm	_TG3PCI_DEVICE_TIGON3_5725,8,3  ## @TG3PCI_DEVICE_TIGON3_5725
L_.str.1:                               ## @.str.1
	.asciz	"SMASH"

L_.str.2:                               ## @.str.2
	.asciz	"DASH"

	.comm	_TG3_VER_SIZE,8,3               ## @TG3_VER_SIZE
L_.str.3:                               ## @.str.3
	.asciz	" %s v%d.%d.%d.%d"

	.comm	_APE_FW_VERSION_MAJMSK,4,2      ## @APE_FW_VERSION_MAJMSK
	.comm	_APE_FW_VERSION_MAJSFT,4,2      ## @APE_FW_VERSION_MAJSFT
	.comm	_APE_FW_VERSION_MINMSK,4,2      ## @APE_FW_VERSION_MINMSK
	.comm	_APE_FW_VERSION_MINSFT,4,2      ## @APE_FW_VERSION_MINSFT
	.comm	_APE_FW_VERSION_REVMSK,4,2      ## @APE_FW_VERSION_REVMSK
	.comm	_APE_FW_VERSION_REVSFT,4,2      ## @APE_FW_VERSION_REVSFT
	.comm	_APE_FW_VERSION_BLDMSK,4,2      ## @APE_FW_VERSION_BLDMSK
	.no_dead_strip	_tg3_read_dash_ver
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tg3_read_dash_ver
_tg3_read_dash_ver:                     ; @tg3_read_dash_ver
	.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
	mov	x21, x0
Lloh0:
	adrp	x8, _TG3_APE_FW_VERSION@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TG3_APE_FW_VERSION@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_tg3_ape_read32
	mov	x19, x0
Lloh3:
	adrp	x8, _APE_HAS_NCSI@GOTPAGE
Lloh4:
	ldr	x8, [x8, _APE_HAS_NCSI@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_tg3_flag
	cbz	x0, LBB0_2
; %bb.1:
Lloh6:
	adrp	x20, l_.str@PAGE
Lloh7:
	add	x20, x20, l_.str@PAGEOFF
	b	LBB0_3
LBB0_2:
	ldr	x8, [x21, #8]
	ldr	x8, [x8]
Lloh8:
	adrp	x9, _TG3PCI_DEVICE_TIGON3_5725@GOTPAGE
Lloh9:
	ldr	x9, [x9, _TG3PCI_DEVICE_TIGON3_5725@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
Lloh11:
	adrp	x10, l_.str.2@PAGE
Lloh12:
	add	x10, x10, l_.str.2@PAGEOFF
Lloh13:
	adrp	x11, l_.str.1@PAGE
Lloh14:
	add	x11, x11, l_.str.1@PAGEOFF
	cmp	x8, x9
	csel	x20, x11, x10, eq
LBB0_3:
	ldr	x0, [x21]
	bl	_strlen
	ldr	x8, [x21]
	add	x8, x8, w0, sxtw #2
Lloh15:
	adrp	x9, _TG3_VER_SIZE@GOTPAGE
Lloh16:
	ldr	x9, [x9, _TG3_VER_SIZE@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	sub	x1, x9, w0, sxtw
Lloh18:
	adrp	x9, _APE_FW_VERSION_MAJMSK@GOTPAGE
Lloh19:
	ldr	x9, [x9, _APE_FW_VERSION_MAJMSK@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	and	w9, w9, w19
Lloh21:
	adrp	x10, _APE_FW_VERSION_MAJSFT@GOTPAGE
Lloh22:
	ldr	x10, [x10, _APE_FW_VERSION_MAJSFT@GOTPAGEOFF]
Lloh23:
	ldr	w10, [x10]
	asr	w4, w9, w10
Lloh24:
	adrp	x9, _APE_FW_VERSION_MINMSK@GOTPAGE
Lloh25:
	ldr	x9, [x9, _APE_FW_VERSION_MINMSK@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
	and	w9, w9, w19
Lloh27:
	adrp	x10, _APE_FW_VERSION_MINSFT@GOTPAGE
Lloh28:
	ldr	x10, [x10, _APE_FW_VERSION_MINSFT@GOTPAGEOFF]
Lloh29:
	ldr	w10, [x10]
	asr	w5, w9, w10
Lloh30:
	adrp	x9, _APE_FW_VERSION_REVMSK@GOTPAGE
Lloh31:
	ldr	x9, [x9, _APE_FW_VERSION_REVMSK@GOTPAGEOFF]
Lloh32:
	ldr	w9, [x9]
	and	w9, w9, w19
Lloh33:
	adrp	x10, _APE_FW_VERSION_REVSFT@GOTPAGE
Lloh34:
	ldr	x10, [x10, _APE_FW_VERSION_REVSFT@GOTPAGEOFF]
Lloh35:
	ldr	w10, [x10]
	asr	w6, w9, w10
Lloh36:
	adrp	x9, _APE_FW_VERSION_BLDMSK@GOTPAGE
Lloh37:
	ldr	x9, [x9, _APE_FW_VERSION_BLDMSK@GOTPAGEOFF]
Lloh38:
	ldr	w9, [x9]
	and	w7, w9, w19
Lloh39:
	adrp	x2, l_.str.3@PAGE
Lloh40:
	add	x2, x2, l_.str.3@PAGEOFF
	mov	x0, x8
	mov	x3, x20
	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
	b	_snprintf
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_TG3_APE_FW_VERSION,4,2         ; @TG3_APE_FW_VERSION
	.comm	_APE_HAS_NCSI,4,2               ; @APE_HAS_NCSI
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"NCSI"

	.comm	_TG3PCI_DEVICE_TIGON3_5725,8,3  ; @TG3PCI_DEVICE_TIGON3_5725
l_.str.1:                               ; @.str.1
	.asciz	"SMASH"

l_.str.2:                               ; @.str.2
	.asciz	"DASH"

	.comm	_TG3_VER_SIZE,8,3               ; @TG3_VER_SIZE
l_.str.3:                               ; @.str.3
	.asciz	" %s v%d.%d.%d.%d"

	.comm	_APE_FW_VERSION_MAJMSK,4,2      ; @APE_FW_VERSION_MAJMSK
	.comm	_APE_FW_VERSION_MAJSFT,4,2      ; @APE_FW_VERSION_MAJSFT
	.comm	_APE_FW_VERSION_MINMSK,4,2      ; @APE_FW_VERSION_MINMSK
	.comm	_APE_FW_VERSION_MINSFT,4,2      ; @APE_FW_VERSION_MINSFT
	.comm	_APE_FW_VERSION_REVMSK,4,2      ; @APE_FW_VERSION_REVMSK
	.comm	_APE_FW_VERSION_REVSFT,4,2      ; @APE_FW_VERSION_REVSFT
	.comm	_APE_FW_VERSION_BLDMSK,4,2      ; @APE_FW_VERSION_BLDMSK
	.no_dead_strip	_tg3_read_dash_ver
.subsections_via_symbols
