	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tg3_read_hwsb_ver
_tg3_read_hwsb_ver:                     ## @tg3_read_hwsb_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	_TG3_NVM_HWSB_CFG1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-12(%rbp), %rdx
	callq	_tg3_nvram_read
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	movl	-12(%rbp), %r8d
	movq	_TG3_NVM_HWSB_CFG1_MAJMSK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%r8d, %eax
	movq	_TG3_NVM_HWSB_CFG1_MAJSFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	sarl	%cl, %eax
	movq	_TG3_NVM_HWSB_CFG1_MINMSK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %r8d
	movq	_TG3_NVM_HWSB_CFG1_MINSFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	sarl	%cl, %r8d
	movq	(%rbx), %rdi
	leaq	L_.str(%rip), %rdx
	movl	$32, %esi
	movl	%eax, %ecx
	callq	_snprintf
LBB0_2:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TG3_NVM_HWSB_CFG1,4,2          ## @TG3_NVM_HWSB_CFG1
	.comm	_TG3_NVM_HWSB_CFG1_MAJMSK,4,2   ## @TG3_NVM_HWSB_CFG1_MAJMSK
	.comm	_TG3_NVM_HWSB_CFG1_MAJSFT,4,2   ## @TG3_NVM_HWSB_CFG1_MAJSFT
	.comm	_TG3_NVM_HWSB_CFG1_MINMSK,4,2   ## @TG3_NVM_HWSB_CFG1_MINMSK
	.comm	_TG3_NVM_HWSB_CFG1_MINSFT,4,2   ## @TG3_NVM_HWSB_CFG1_MINSFT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"sb v%d.%02d"

	.no_dead_strip	_tg3_read_hwsb_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_hwsb_ver
_tg3_read_hwsb_ver:                     ; @tg3_read_hwsb_ver
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, _TG3_NVM_HWSB_CFG1@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TG3_NVM_HWSB_CFG1@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x2, sp, #12
	bl	_tg3_nvram_read
	cbnz	x0, LBB0_2
; %bb.1:
	ldr	w8, [sp, #12]
Lloh3:
	adrp	x9, _TG3_NVM_HWSB_CFG1_MAJMSK@GOTPAGE
Lloh4:
	ldr	x9, [x9, _TG3_NVM_HWSB_CFG1_MAJMSK@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
Lloh6:
	adrp	x10, _TG3_NVM_HWSB_CFG1_MAJSFT@GOTPAGE
Lloh7:
	ldr	x10, [x10, _TG3_NVM_HWSB_CFG1_MAJSFT@GOTPAGEOFF]
	and	w9, w9, w8
Lloh8:
	ldr	w10, [x10]
	asr	w3, w9, w10
Lloh9:
	adrp	x9, _TG3_NVM_HWSB_CFG1_MINMSK@GOTPAGE
Lloh10:
	ldr	x9, [x9, _TG3_NVM_HWSB_CFG1_MINMSK@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	and	w8, w9, w8
Lloh12:
	adrp	x9, _TG3_NVM_HWSB_CFG1_MINSFT@GOTPAGE
Lloh13:
	ldr	x9, [x9, _TG3_NVM_HWSB_CFG1_MINSFT@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	asr	w4, w8, w9
	ldr	x0, [x19]
Lloh15:
	adrp	x2, l_.str@PAGE
Lloh16:
	add	x2, x2, l_.str@PAGEOFF
	mov	w1, #32
	bl	_snprintf
LBB0_2:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_TG3_NVM_HWSB_CFG1,4,2          ; @TG3_NVM_HWSB_CFG1
	.comm	_TG3_NVM_HWSB_CFG1_MAJMSK,4,2   ; @TG3_NVM_HWSB_CFG1_MAJMSK
	.comm	_TG3_NVM_HWSB_CFG1_MAJSFT,4,2   ; @TG3_NVM_HWSB_CFG1_MAJSFT
	.comm	_TG3_NVM_HWSB_CFG1_MINMSK,4,2   ; @TG3_NVM_HWSB_CFG1_MINMSK
	.comm	_TG3_NVM_HWSB_CFG1_MINSFT,4,2   ; @TG3_NVM_HWSB_CFG1_MINSFT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"sb v%d.%02d"

	.no_dead_strip	_tg3_read_hwsb_ver
.subsections_via_symbols
