	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tg3_read_sb_ver
_tg3_read_sb_ver:                       ## @tg3_read_sb_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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r12d
	movq	%rdi, %r15
	movl	%esi, -44(%rbp)
	movq	(%rdi), %r14
	movq	_TG3_VER_SIZE@GOTPCREL(%rip), %r13
	movl	(%r13), %ebx
	movq	%r14, %rdi
	callq	_strlen
	notl	%eax
	addl	%eax, %ebx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_strncat
	movq	_TG3_EEPROM_SB_FORMAT_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%r12d, %eax
	movq	_TG3_EEPROM_SB_FORMAT_1@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_8
## %bb.1:
	movq	_TG3_EEPROM_SB_REVISION_MASK@GOTPCREL(%rip), %rax
	andl	(%rax), %r12d
	addl	$-128, %r12d
	cmpl	$5, %r12d
	ja	LBB0_8
## %bb.2:
	movslq	%r12d, %rax
	leaq	l_switch.table.tg3_read_sb_ver(%rip), %rcx
	movq	(%rcx,%rax,8), %rax
	movl	(%rax), %esi
	leaq	-44(%rbp), %rdx
	movq	%r15, %rdi
	callq	_tg3_nvram_read
	testq	%rax, %rax
	je	LBB0_3
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movl	-44(%rbp), %r14d
	movq	_TG3_EEPROM_SB_EDH_BLD_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	andl	%r14d, %r12d
	movq	_TG3_EEPROM_SB_EDH_BLD_SHFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	sarl	%cl, %r12d
	movq	_TG3_EEPROM_SB_EDH_MIN_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	andl	%r14d, %ebx
	cmpl	$99, %ebx
	jg	LBB0_8
## %bb.4:
	cmpl	$26, %r12d
	jg	LBB0_8
## %bb.5:
	movq	_TG3_EEPROM_SB_EDH_MAJ_MASK@GOTPCREL(%rip), %rax
	andl	(%rax), %r14d
	movq	_TG3_EEPROM_SB_EDH_MAJ_SHFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	sarl	%cl, %r14d
	movq	(%r15), %rdi
	callq	_strlen
	cltq
	movq	(%r15), %rdi
	addq	%rax, %rdi
	movl	(%r13), %esi
	subl	%eax, %esi
	leaq	L_.str.1(%rip), %rdx
	movl	%r14d, %ecx
	movl	%ebx, %r8d
	callq	_snprintf
	testl	%r12d, %r12d
	jle	LBB0_8
## %bb.6:
	movq	(%r15), %rdi
	callq	_strlen
	movl	(%r13), %ecx
	decl	%ecx
	cmpl	%ecx, %eax
	jge	LBB0_8
## %bb.7:
	addb	$96, %r12b
	movq	(%r15), %rcx
	cltq
	movb	%r12b, (%rcx,%rax)
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"sb"

	.comm	_TG3_VER_SIZE,4,2               ## @TG3_VER_SIZE
	.comm	_TG3_EEPROM_SB_FORMAT_MASK,4,2  ## @TG3_EEPROM_SB_FORMAT_MASK
	.comm	_TG3_EEPROM_SB_FORMAT_1,4,2     ## @TG3_EEPROM_SB_FORMAT_1
	.comm	_TG3_EEPROM_SB_REVISION_MASK,4,2 ## @TG3_EEPROM_SB_REVISION_MASK
	.comm	_TG3_EEPROM_SB_F1R0_EDH_OFF,4,2 ## @TG3_EEPROM_SB_F1R0_EDH_OFF
	.comm	_TG3_EEPROM_SB_F1R2_EDH_OFF,4,2 ## @TG3_EEPROM_SB_F1R2_EDH_OFF
	.comm	_TG3_EEPROM_SB_F1R3_EDH_OFF,4,2 ## @TG3_EEPROM_SB_F1R3_EDH_OFF
	.comm	_TG3_EEPROM_SB_F1R4_EDH_OFF,4,2 ## @TG3_EEPROM_SB_F1R4_EDH_OFF
	.comm	_TG3_EEPROM_SB_F1R5_EDH_OFF,4,2 ## @TG3_EEPROM_SB_F1R5_EDH_OFF
	.comm	_TG3_EEPROM_SB_F1R6_EDH_OFF,4,2 ## @TG3_EEPROM_SB_F1R6_EDH_OFF
	.comm	_TG3_EEPROM_SB_EDH_BLD_MASK,4,2 ## @TG3_EEPROM_SB_EDH_BLD_MASK
	.comm	_TG3_EEPROM_SB_EDH_BLD_SHFT,4,2 ## @TG3_EEPROM_SB_EDH_BLD_SHFT
	.comm	_TG3_EEPROM_SB_EDH_MAJ_MASK,4,2 ## @TG3_EEPROM_SB_EDH_MAJ_MASK
	.comm	_TG3_EEPROM_SB_EDH_MAJ_SHFT,4,2 ## @TG3_EEPROM_SB_EDH_MAJ_SHFT
	.comm	_TG3_EEPROM_SB_EDH_MIN_MASK,4,2 ## @TG3_EEPROM_SB_EDH_MIN_MASK
L_.str.1:                               ## @.str.1
	.asciz	" v%d.%02d"

	.no_dead_strip	_tg3_read_sb_ver
	.section	__DATA,__const
	.p2align	3                               ## @switch.table.tg3_read_sb_ver
l_switch.table.tg3_read_sb_ver:
	.quad	_TG3_EEPROM_SB_F1R6_EDH_OFF
	.quad	_TG3_EEPROM_SB_F1R5_EDH_OFF
	.quad	_TG3_EEPROM_SB_F1R4_EDH_OFF
	.quad	_TG3_EEPROM_SB_F1R3_EDH_OFF
	.quad	_TG3_EEPROM_SB_F1R2_EDH_OFF
	.quad	_TG3_EEPROM_SB_F1R0_EDH_OFF

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tg3_read_sb_ver
_tg3_read_sb_ver:                       ; @tg3_read_sb_ver
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x1
	mov	x19, x0
	str	w1, [sp, #12]
	ldr	x21, [x0]
Lloh0:
	adrp	x22, _TG3_VER_SIZE@GOTPAGE
Lloh1:
	ldr	x22, [x22, _TG3_VER_SIZE@GOTPAGEOFF]
	ldr	w23, [x22]
	mov	x0, x21
	bl	_strlen
	mvn	w8, w0
	add	w2, w23, w8
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_strncat
Lloh4:
	adrp	x8, _TG3_EEPROM_SB_FORMAT_MASK@GOTPAGE
Lloh5:
	ldr	x8, [x8, _TG3_EEPROM_SB_FORMAT_MASK@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	and	w8, w8, w20
Lloh7:
	adrp	x9, _TG3_EEPROM_SB_FORMAT_1@GOTPAGE
Lloh8:
	ldr	x9, [x9, _TG3_EEPROM_SB_FORMAT_1@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_7
; %bb.1:
Lloh10:
	adrp	x8, _TG3_EEPROM_SB_REVISION_MASK@GOTPAGE
Lloh11:
	ldr	x8, [x8, _TG3_EEPROM_SB_REVISION_MASK@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	and	w8, w8, w20
	sub	w8, w8, #128
	cmp	w8, #5
	b.hi	LBB0_7
; %bb.2:
Lloh13:
	adrp	x9, l_switch.table.tg3_read_sb_ver@PAGE
Lloh14:
	add	x9, x9, l_switch.table.tg3_read_sb_ver@PAGEOFF
	ldr	x8, [x9, w8, sxtw #3]
	ldr	w1, [x8]
	add	x2, sp, #12
	mov	x0, x19
	bl	_tg3_nvram_read
	cbnz	x0, LBB0_7
; %bb.3:
	ldr	w8, [sp, #12]
Lloh15:
	adrp	x9, _TG3_EEPROM_SB_EDH_BLD_MASK@GOTPAGE
Lloh16:
	ldr	x9, [x9, _TG3_EEPROM_SB_EDH_BLD_MASK@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	and	w9, w9, w8
Lloh18:
	adrp	x10, _TG3_EEPROM_SB_EDH_BLD_SHFT@GOTPAGE
Lloh19:
	ldr	x10, [x10, _TG3_EEPROM_SB_EDH_BLD_SHFT@GOTPAGEOFF]
Lloh20:
	ldr	w10, [x10]
	asr	w23, w9, w10
Lloh21:
	adrp	x9, _TG3_EEPROM_SB_EDH_MIN_MASK@GOTPAGE
Lloh22:
	ldr	x9, [x9, _TG3_EEPROM_SB_EDH_MIN_MASK@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	and	w20, w9, w8
	cmp	w20, #99
	ccmp	w23, #26, #0, le
	b.gt	LBB0_7
; %bb.4:
Lloh24:
	adrp	x9, _TG3_EEPROM_SB_EDH_MAJ_MASK@GOTPAGE
Lloh25:
	ldr	x9, [x9, _TG3_EEPROM_SB_EDH_MAJ_MASK@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
	and	w8, w9, w8
Lloh27:
	adrp	x9, _TG3_EEPROM_SB_EDH_MAJ_SHFT@GOTPAGE
Lloh28:
	ldr	x9, [x9, _TG3_EEPROM_SB_EDH_MAJ_SHFT@GOTPAGEOFF]
Lloh29:
	ldr	w9, [x9]
	asr	w21, w8, w9
	ldr	x0, [x19]
	bl	_strlen
	ldr	x8, [x19]
	add	x8, x8, w0, sxtw
	ldr	w9, [x22]
	sub	w1, w9, w0
Lloh30:
	adrp	x2, l_.str.1@PAGE
Lloh31:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x8
	mov	x3, x21
	mov	x4, x20
	bl	_snprintf
	cmp	w23, #1
	b.lt	LBB0_7
; %bb.5:
	ldr	x0, [x19]
	bl	_strlen
	ldr	w8, [x22]
	sub	w8, w8, #1
	cmp	w0, w8
	b.ge	LBB0_7
; %bb.6:
	add	w8, w23, #96
	ldr	x9, [x19]
	strb	w8, [x9, w0, sxtw]
LBB0_7:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"sb"

	.comm	_TG3_VER_SIZE,4,2               ; @TG3_VER_SIZE
	.comm	_TG3_EEPROM_SB_FORMAT_MASK,4,2  ; @TG3_EEPROM_SB_FORMAT_MASK
	.comm	_TG3_EEPROM_SB_FORMAT_1,4,2     ; @TG3_EEPROM_SB_FORMAT_1
	.comm	_TG3_EEPROM_SB_REVISION_MASK,4,2 ; @TG3_EEPROM_SB_REVISION_MASK
	.comm	_TG3_EEPROM_SB_F1R0_EDH_OFF,4,2 ; @TG3_EEPROM_SB_F1R0_EDH_OFF
	.comm	_TG3_EEPROM_SB_F1R2_EDH_OFF,4,2 ; @TG3_EEPROM_SB_F1R2_EDH_OFF
	.comm	_TG3_EEPROM_SB_F1R3_EDH_OFF,4,2 ; @TG3_EEPROM_SB_F1R3_EDH_OFF
	.comm	_TG3_EEPROM_SB_F1R4_EDH_OFF,4,2 ; @TG3_EEPROM_SB_F1R4_EDH_OFF
	.comm	_TG3_EEPROM_SB_F1R5_EDH_OFF,4,2 ; @TG3_EEPROM_SB_F1R5_EDH_OFF
	.comm	_TG3_EEPROM_SB_F1R6_EDH_OFF,4,2 ; @TG3_EEPROM_SB_F1R6_EDH_OFF
	.comm	_TG3_EEPROM_SB_EDH_BLD_MASK,4,2 ; @TG3_EEPROM_SB_EDH_BLD_MASK
	.comm	_TG3_EEPROM_SB_EDH_BLD_SHFT,4,2 ; @TG3_EEPROM_SB_EDH_BLD_SHFT
	.comm	_TG3_EEPROM_SB_EDH_MAJ_MASK,4,2 ; @TG3_EEPROM_SB_EDH_MAJ_MASK
	.comm	_TG3_EEPROM_SB_EDH_MAJ_SHFT,4,2 ; @TG3_EEPROM_SB_EDH_MAJ_SHFT
	.comm	_TG3_EEPROM_SB_EDH_MIN_MASK,4,2 ; @TG3_EEPROM_SB_EDH_MIN_MASK
l_.str.1:                               ; @.str.1
	.asciz	" v%d.%02d"

	.no_dead_strip	_tg3_read_sb_ver
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.tg3_read_sb_ver
l_switch.table.tg3_read_sb_ver:
	.quad	_TG3_EEPROM_SB_F1R6_EDH_OFF
	.quad	_TG3_EEPROM_SB_F1R5_EDH_OFF
	.quad	_TG3_EEPROM_SB_F1R4_EDH_OFF
	.quad	_TG3_EEPROM_SB_F1R3_EDH_OFF
	.quad	_TG3_EEPROM_SB_F1R2_EDH_OFF
	.quad	_TG3_EEPROM_SB_F1R0_EDH_OFF

.subsections_via_symbols
