	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tg3_read_otp_ver
_tg3_read_otp_ver:                      ## @tg3_read_otp_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	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	callq	_tg3_asic_rev
	movq	_ASIC_REV_5762@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.1:
	movq	_OTP_ADDRESS_MAGIC0@GOTPCREL(%rip), %r14
	movq	(%r14), %rsi
	leaq	-20(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_tg3_ape_otp_read
	testl	%eax, %eax
	jne	LBB0_5
## %bb.2:
	movq	(%r14), %rsi
	addq	$4, %rsi
	leaq	-24(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_tg3_ape_otp_read
	testl	%eax, %eax
	jne	LBB0_5
## %bb.3:
	movl	-20(%rbp), %edi
	callq	_TG3_OTP_MAGIC0_VALID
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	(%rbx), %rdi
	callq	_strlen
	cltq
	leaq	(,%rax,4), %rdi
	addq	(%rbx), %rdi
	movq	_TG3_VER_SIZE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	subq	%rax, %rsi
	leaq	L_.str(%rip), %rdx
	xorl	%ecx, %ecx
	callq	_snprintf
LBB0_5:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ASIC_REV_5762,8,3              ## @ASIC_REV_5762
	.comm	_OTP_ADDRESS_MAGIC0,8,3         ## @OTP_ADDRESS_MAGIC0
	.comm	_TG3_VER_SIZE,8,3               ## @TG3_VER_SIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	" .%02d"

	.no_dead_strip	_tg3_read_otp_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_otp_ver
_tg3_read_otp_ver:                      ; @tg3_read_otp_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
	bl	_tg3_asic_rev
Lloh0:
	adrp	x8, _ASIC_REV_5762@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ASIC_REV_5762@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_5
; %bb.1:
Lloh3:
	adrp	x20, _OTP_ADDRESS_MAGIC0@GOTPAGE
Lloh4:
	ldr	x20, [x20, _OTP_ADDRESS_MAGIC0@GOTPAGEOFF]
	ldr	x1, [x20]
	add	x2, sp, #12
	mov	x0, x19
	bl	_tg3_ape_otp_read
	cbnz	w0, LBB0_5
; %bb.2:
	ldr	x8, [x20]
	add	x1, x8, #4
	add	x2, sp, #8
	mov	x0, x19
	bl	_tg3_ape_otp_read
	cbnz	w0, LBB0_5
; %bb.3:
	ldr	w0, [sp, #12]
	bl	_TG3_OTP_MAGIC0_VALID
	cbz	x0, LBB0_5
; %bb.4:
	ldr	x0, [x19]
	bl	_strlen
	ldr	x8, [x19]
	add	x8, x8, w0, sxtw #2
Lloh5:
	adrp	x9, _TG3_VER_SIZE@GOTPAGE
Lloh6:
	ldr	x9, [x9, _TG3_VER_SIZE@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	sub	x1, x9, w0, sxtw
Lloh8:
	adrp	x2, l_.str@PAGE
Lloh9:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x8
	mov	w3, #0
	bl	_snprintf
LBB0_5:
	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 AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_ASIC_REV_5762,8,3              ; @ASIC_REV_5762
	.comm	_OTP_ADDRESS_MAGIC0,8,3         ; @OTP_ADDRESS_MAGIC0
	.comm	_TG3_VER_SIZE,8,3               ; @TG3_VER_SIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	" .%02d"

	.no_dead_strip	_tg3_read_otp_ver
.subsections_via_symbols
