	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tg3_get_5717_nvram_info
_tg3_get_5717_nvram_info:               ## @tg3_get_5717_nvram_info
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	_NVRAM_CFG1@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	callq	_tr32
	movl	%eax, %r14d
	movq	_NVRAM_CFG1_5752VENDOR_MASK@GOTPCREL(%rip), %r15
	movl	(%r15), %eax
	andl	%r14d, %eax
	addl	$-128, %eax
	cmpl	$18, %eax
	ja	LBB0_13
## %bb.1:
	movl	$1023, %ecx                     ## imm = 0x3FF
	btl	%eax, %ecx
	jae	LBB0_2
## %bb.11:
	movq	_JEDEC_ST@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 16(%rbx)
	movq	_NVRAM_BUFFERED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_tg3_flag_set
	movq	_FLASH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_tg3_flag_set
	movl	(%r15), %ecx
	andl	%r14d, %ecx
	addl	$-128, %ecx
	cmpl	$6, %ecx
	ja	LBB0_6
## %bb.12:
	movq	_TG3_NVRAM_SIZE_256KB@GOTPCREL(%rip), %rax
	leaq	LJTI0_0(%rip), %rdx
	movslq	(%rdx,%rcx,4), %rcx
	addq	%rdx, %rcx
	jmpq	*%rcx
LBB0_2:
	movl	$514048, %ecx                   ## imm = 0x7D800
	btl	%eax, %ecx
	jae	LBB0_16
## %bb.3:
	movq	_JEDEC_ATMEL@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 16(%rbx)
	movq	_NVRAM_BUFFERED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_tg3_flag_set
	movq	_FLASH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_tg3_flag_set
	movl	(%r15), %eax
	andl	%r14d, %eax
	leal	-142(%rax), %ecx
	cmpl	$2, %ecx
	jae	LBB0_5
## %bb.4:
	movq	_TG3_NVRAM_SIZE_256KB@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_5:
	cmpl	$139, %eax
	je	LBB0_8
LBB0_6:
	movq	_TG3_NVRAM_SIZE_128KB@GOTPCREL(%rip), %rax
LBB0_7:
	movq	(%rax), %rax
	movq	%rax, 8(%rbx)
LBB0_8:
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_tg3_nvram_get_pagesize
	movl	(%rbx), %eax
	cmpl	$264, %eax                      ## imm = 0x108
	je	LBB0_15
## %bb.9:
	cmpl	$528, %eax                      ## imm = 0x210
	jne	LBB0_10
LBB0_15:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movq	_NO_NVRAM_ADDR_TRANS@GOTPCREL(%rip), %rax
LBB0_14:
	movl	(%rax), %esi
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_tg3_flag_set                   ## TAILCALL
LBB0_16:
	movq	_JEDEC_ATMEL@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 16(%rbx)
	movq	_NVRAM_BUFFERED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_tg3_flag_set
	movq	_ATMEL_AT24C512_CHIP_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rbx)
	movq	_NVRAM_CFG1_COMPAT_BYPASS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, %r14d
	movl	(%r12), %edi
	movl	%r14d, %esi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_tw32                           ## TAILCALL
LBB0_13:
	movq	_NO_NVRAM@GOTPCREL(%rip), %rax
	jmp	LBB0_14
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
LJTI0_0:
	.long	L0_0_set_8
	.long	L0_0_set_6
	.long	L0_0_set_8
	.long	L0_0_set_6
	.long	L0_0_set_7
	.long	L0_0_set_6
	.long	L0_0_set_7
	.end_data_region
                                        ## -- End function
	.comm	_NVRAM_CFG1,4,2                 ## @NVRAM_CFG1
	.comm	_NVRAM_CFG1_5752VENDOR_MASK,4,2 ## @NVRAM_CFG1_5752VENDOR_MASK
	.comm	_JEDEC_ATMEL,8,3                ## @JEDEC_ATMEL
	.comm	_NVRAM_BUFFERED,4,2             ## @NVRAM_BUFFERED
	.comm	_ATMEL_AT24C512_CHIP_SIZE,4,2   ## @ATMEL_AT24C512_CHIP_SIZE
	.comm	_NVRAM_CFG1_COMPAT_BYPASS,4,2   ## @NVRAM_CFG1_COMPAT_BYPASS
	.comm	_FLASH,4,2                      ## @FLASH
	.comm	_TG3_NVRAM_SIZE_256KB,8,3       ## @TG3_NVRAM_SIZE_256KB
	.comm	_TG3_NVRAM_SIZE_128KB,8,3       ## @TG3_NVRAM_SIZE_128KB
	.comm	_JEDEC_ST,8,3                   ## @JEDEC_ST
	.comm	_NO_NVRAM,4,2                   ## @NO_NVRAM
	.comm	_NO_NVRAM_ADDR_TRANS,4,2        ## @NO_NVRAM_ADDR_TRANS
	.no_dead_strip	_tg3_get_5717_nvram_info
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tg3_get_5717_nvram_info
_tg3_get_5717_nvram_info:               ; @tg3_get_5717_nvram_info
	.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	x19, x0
Lloh0:
	adrp	x22, _NVRAM_CFG1@GOTPAGE
Lloh1:
	ldr	x22, [x22, _NVRAM_CFG1@GOTPAGEOFF]
	ldr	w0, [x22]
	bl	_tr32
Lloh2:
	adrp	x21, _NVRAM_CFG1_5752VENDOR_MASK@GOTPAGE
Lloh3:
	ldr	x21, [x21, _NVRAM_CFG1_5752VENDOR_MASK@GOTPAGEOFF]
	ldr	w8, [x21]
	and	w8, w8, w0
	sub	w8, w8, #128
	cmp	w8, #18
	b.hi	LBB0_16
; %bb.1:
	mov	x20, x0
	mov	w9, #1
	lsl	w8, w9, w8
	tst	w8, #0x3ff
	b.eq	LBB0_4
; %bb.2:
Lloh4:
	adrp	x8, _JEDEC_ST@GOTPAGE
Lloh5:
	ldr	x8, [x8, _JEDEC_ST@GOTPAGEOFF]
Lloh6:
	ldr	x8, [x8]
	str	x8, [x19, #16]
Lloh7:
	adrp	x8, _NVRAM_BUFFERED@GOTPAGE
Lloh8:
	ldr	x8, [x8, _NVRAM_BUFFERED@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_tg3_flag_set
Lloh10:
	adrp	x8, _FLASH@GOTPAGE
Lloh11:
	ldr	x8, [x8, _FLASH@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_tg3_flag_set
	ldr	w8, [x21]
	and	w8, w8, w20
	sub	w9, w8, #128
	cmp	w9, #6
	b.hi	LBB0_8
; %bb.3:
Lloh13:
	adrp	x8, _TG3_NVRAM_SIZE_256KB@GOTPAGE
Lloh14:
	ldr	x8, [x8, _TG3_NVRAM_SIZE_256KB@GOTPAGEOFF]
Lloh15:
	adrp	x10, lJTI0_0@PAGE
Lloh16:
	add	x10, x10, lJTI0_0@PAGEOFF
	adr	x11, LBB0_8
	ldrb	w12, [x10, x9]
	add	x11, x11, x12, lsl #2
	br	x11
LBB0_4:
	mov	w9, #55296
	movk	w9, #7, lsl #16
	tst	w8, w9
	b.eq	LBB0_15
; %bb.5:
Lloh17:
	adrp	x8, _JEDEC_ATMEL@GOTPAGE
Lloh18:
	ldr	x8, [x8, _JEDEC_ATMEL@GOTPAGEOFF]
Lloh19:
	ldr	x8, [x8]
	str	x8, [x19, #16]
Lloh20:
	adrp	x8, _NVRAM_BUFFERED@GOTPAGE
Lloh21:
	ldr	x8, [x8, _NVRAM_BUFFERED@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_tg3_flag_set
Lloh23:
	adrp	x8, _FLASH@GOTPAGE
Lloh24:
	ldr	x8, [x8, _FLASH@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_tg3_flag_set
	ldr	w8, [x21]
	and	w8, w8, w20
	sub	w9, w8, #142
	cmp	w9, #2
	b.hs	LBB0_7
; %bb.6:
Lloh26:
	adrp	x8, _TG3_NVRAM_SIZE_256KB@GOTPAGE
Lloh27:
	ldr	x8, [x8, _TG3_NVRAM_SIZE_256KB@GOTPAGEOFF]
	b	LBB0_9
LBB0_7:
	cmp	w8, #139
	b.eq	LBB0_10
LBB0_8:
Lloh28:
	adrp	x8, _TG3_NVRAM_SIZE_128KB@GOTPAGE
Lloh29:
	ldr	x8, [x8, _TG3_NVRAM_SIZE_128KB@GOTPAGEOFF]
LBB0_9:
	ldr	x8, [x8]
	str	x8, [x19, #8]
LBB0_10:
	mov	x0, x19
	mov	x1, x20
	bl	_tg3_nvram_get_pagesize
	ldr	w8, [x19]
	cmp	w8, #264
	b.eq	LBB0_12
; %bb.11:
	cmp	w8, #528
	b.ne	LBB0_13
LBB0_12:
	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
	ret
LBB0_13:
Lloh30:
	adrp	x8, _NO_NVRAM_ADDR_TRANS@GOTPAGE
Lloh31:
	ldr	x8, [x8, _NO_NVRAM_ADDR_TRANS@GOTPAGEOFF]
LBB0_14:
	ldr	w1, [x8]
	mov	x0, x19
	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	_tg3_flag_set
LBB0_15:
Lloh32:
	adrp	x8, _JEDEC_ATMEL@GOTPAGE
Lloh33:
	ldr	x8, [x8, _JEDEC_ATMEL@GOTPAGEOFF]
Lloh34:
	ldr	x8, [x8]
	str	x8, [x19, #16]
Lloh35:
	adrp	x8, _NVRAM_BUFFERED@GOTPAGE
Lloh36:
	ldr	x8, [x8, _NVRAM_BUFFERED@GOTPAGEOFF]
Lloh37:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_tg3_flag_set
Lloh38:
	adrp	x8, _ATMEL_AT24C512_CHIP_SIZE@GOTPAGE
Lloh39:
	ldr	x8, [x8, _ATMEL_AT24C512_CHIP_SIZE@GOTPAGEOFF]
Lloh40:
	ldr	w8, [x8]
Lloh41:
	adrp	x9, _NVRAM_CFG1_COMPAT_BYPASS@GOTPAGE
Lloh42:
	ldr	x9, [x9, _NVRAM_CFG1_COMPAT_BYPASS@GOTPAGEOFF]
	str	w8, [x19]
Lloh43:
	ldr	w8, [x9]
	bic	w1, w20, w8
	ldr	w0, [x22]
	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	_tw32
LBB0_16:
Lloh44:
	adrp	x8, _NO_NVRAM@GOTPAGE
Lloh45:
	ldr	x8, [x8, _NO_NVRAM@GOTPAGEOFF]
	b	LBB0_14
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh44, Lloh45
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_10-LBB0_8)>>2
	.byte	(LBB0_8-LBB0_8)>>2
	.byte	(LBB0_10-LBB0_8)>>2
	.byte	(LBB0_8-LBB0_8)>>2
	.byte	(LBB0_9-LBB0_8)>>2
	.byte	(LBB0_8-LBB0_8)>>2
	.byte	(LBB0_9-LBB0_8)>>2
                                        ; -- End function
	.comm	_NVRAM_CFG1,4,2                 ; @NVRAM_CFG1
	.comm	_NVRAM_CFG1_5752VENDOR_MASK,4,2 ; @NVRAM_CFG1_5752VENDOR_MASK
	.comm	_JEDEC_ATMEL,8,3                ; @JEDEC_ATMEL
	.comm	_NVRAM_BUFFERED,4,2             ; @NVRAM_BUFFERED
	.comm	_ATMEL_AT24C512_CHIP_SIZE,4,2   ; @ATMEL_AT24C512_CHIP_SIZE
	.comm	_NVRAM_CFG1_COMPAT_BYPASS,4,2   ; @NVRAM_CFG1_COMPAT_BYPASS
	.comm	_FLASH,4,2                      ; @FLASH
	.comm	_TG3_NVRAM_SIZE_256KB,8,3       ; @TG3_NVRAM_SIZE_256KB
	.comm	_TG3_NVRAM_SIZE_128KB,8,3       ; @TG3_NVRAM_SIZE_128KB
	.comm	_JEDEC_ST,8,3                   ; @JEDEC_ST
	.comm	_NO_NVRAM,4,2                   ; @NO_NVRAM
	.comm	_NO_NVRAM_ADDR_TRANS,4,2        ; @NO_NVRAM_ADDR_TRANS
	.no_dead_strip	_tg3_get_5717_nvram_info
.subsections_via_symbols
