	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tg3_get_eeprom_size
_tg3_get_eeprom_size:                   ## @tg3_get_eeprom_size
	.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, %r14
	movq	_EEPROM_CHIP_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rdi)
	leaq	-28(%rbp), %rdx
	xorl	%esi, %esi
	callq	_tg3_nvram_read
	testq	%rax, %rax
	jne	LBB0_10
## %bb.1:
	movl	-28(%rbp), %eax
	movq	_TG3_EEPROM_MAGIC@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_4
## %bb.2:
	movq	_TG3_EEPROM_MAGIC_FW_MSK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	%eax, %ecx
	movq	_TG3_EEPROM_MAGIC_FW@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %ecx
	je	LBB0_4
## %bb.3:
	movq	_TG3_EEPROM_MAGIC_HW_MSK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	movq	_TG3_EEPROM_MAGIC_HW@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_10
LBB0_4:
	movl	$16, %ebx
	cmpl	$17, (%r14)
	jl	LBB0_9
## %bb.5:
	movl	$16, %ebx
	leaq	-32(%rbp), %r15
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movl	%ebx, %esi
	movq	%r15, %rdx
	callq	_tg3_nvram_read
	testq	%rax, %rax
	jne	LBB0_10
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	-32(%rbp), %eax
	cmpl	-28(%rbp), %eax
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	addl	%ebx, %ebx
	cmpl	(%r14), %ebx
	jl	LBB0_6
LBB0_9:
	movl	%ebx, (%r14)
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EEPROM_CHIP_SIZE,4,2           ## @EEPROM_CHIP_SIZE
	.comm	_TG3_EEPROM_MAGIC,4,2           ## @TG3_EEPROM_MAGIC
	.comm	_TG3_EEPROM_MAGIC_FW_MSK,4,2    ## @TG3_EEPROM_MAGIC_FW_MSK
	.comm	_TG3_EEPROM_MAGIC_FW,4,2        ## @TG3_EEPROM_MAGIC_FW
	.comm	_TG3_EEPROM_MAGIC_HW_MSK,4,2    ## @TG3_EEPROM_MAGIC_HW_MSK
	.comm	_TG3_EEPROM_MAGIC_HW,4,2        ## @TG3_EEPROM_MAGIC_HW
	.no_dead_strip	_tg3_get_eeprom_size
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tg3_get_eeprom_size
_tg3_get_eeprom_size:                   ; @tg3_get_eeprom_size
	.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, _EEPROM_CHIP_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EEPROM_CHIP_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x0]
	add	x2, sp, #8
	mov	w1, #0
	bl	_tg3_nvram_read
	cbnz	x0, LBB0_9
; %bb.1:
	ldr	w8, [sp, #8]
Lloh3:
	adrp	x9, _TG3_EEPROM_MAGIC@GOTPAGE
Lloh4:
	ldr	x9, [x9, _TG3_EEPROM_MAGIC@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w8, w9
	b.eq	LBB0_4
; %bb.2:
Lloh6:
	adrp	x9, _TG3_EEPROM_MAGIC_FW_MSK@GOTPAGE
Lloh7:
	ldr	x9, [x9, _TG3_EEPROM_MAGIC_FW_MSK@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	and	w9, w9, w8
Lloh9:
	adrp	x10, _TG3_EEPROM_MAGIC_FW@GOTPAGE
Lloh10:
	ldr	x10, [x10, _TG3_EEPROM_MAGIC_FW@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x10]
	cmp	w9, w10
	b.eq	LBB0_4
; %bb.3:
Lloh12:
	adrp	x9, _TG3_EEPROM_MAGIC_HW_MSK@GOTPAGE
Lloh13:
	ldr	x9, [x9, _TG3_EEPROM_MAGIC_HW_MSK@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	and	w8, w9, w8
Lloh15:
	adrp	x9, _TG3_EEPROM_MAGIC_HW@GOTPAGE
Lloh16:
	ldr	x9, [x9, _TG3_EEPROM_MAGIC_HW@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_9
LBB0_4:
	ldr	w8, [x19]
	mov	w20, #16
	cmp	w8, #17
	b.lt	LBB0_8
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	add	x2, sp, #12
	mov	x0, x19
	mov	x1, x20
	bl	_tg3_nvram_read
	cbnz	x0, LBB0_9
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldp	w9, w8, [sp, #8]
	cmp	w8, w9
	b.eq	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	lsl	w20, w20, #1
	ldr	w8, [x19]
	cmp	w20, w8
	b.lt	LBB0_5
LBB0_8:
	str	w20, [x19]
LBB0_9:
	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 AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_EEPROM_CHIP_SIZE,4,2           ; @EEPROM_CHIP_SIZE
	.comm	_TG3_EEPROM_MAGIC,4,2           ; @TG3_EEPROM_MAGIC
	.comm	_TG3_EEPROM_MAGIC_FW_MSK,4,2    ; @TG3_EEPROM_MAGIC_FW_MSK
	.comm	_TG3_EEPROM_MAGIC_FW,4,2        ; @TG3_EEPROM_MAGIC_FW
	.comm	_TG3_EEPROM_MAGIC_HW_MSK,4,2    ; @TG3_EEPROM_MAGIC_HW_MSK
	.comm	_TG3_EEPROM_MAGIC_HW,4,2        ; @TG3_EEPROM_MAGIC_HW
	.no_dead_strip	_tg3_get_eeprom_size
.subsections_via_symbols
