	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tg3_get_5761_nvram_info
_tg3_get_5761_nvram_info:               ## @tg3_get_5761_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), %rax
	movl	(%rax), %edi
	callq	_tr32
	movq	%rax, %r14
	testl	$134217728, %r14d               ## imm = 0x8000000
	je	LBB0_2
## %bb.1:
	movq	_PROTECTED_NVRAM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_tg3_flag_set
LBB0_2:
	movq	_NVRAM_CFG1_5752VENDOR_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%r14d, %eax
	leal	-128(%rax), %r15d
	cmpl	$8, %r15d
	jb	LBB0_5
## %bb.3:
	addl	$-136, %eax
	cmpl	$7, %eax
	ja	LBB0_7
## %bb.4:
	movq	_JEDEC_ATMEL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
	movq	_NVRAM_BUFFERED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_tg3_flag_set
	movq	_NO_NVRAM_ADDR_TRANS@GOTPCREL(%rip), %r12
	movq	_FLASH@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_5:
	movq	_JEDEC_ST@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
	movq	_FLASH@GOTPCREL(%rip), %r12
	movq	_NVRAM_BUFFERED@GOTPCREL(%rip), %rax
LBB0_6:
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_tg3_flag_set
	movl	(%r12), %esi
	movq	%rbx, %rdi
	callq	_tg3_flag_set
	movl	$256, (%rbx)                    ## imm = 0x100
LBB0_7:
	testl	$134217728, %r14d               ## imm = 0x8000000
	jne	LBB0_8
## %bb.9:
	cmpl	$15, %r15d
	ja	LBB0_17
## %bb.10:
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%r15,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_12:
	movq	_TG3_NVRAM_SIZE_1MB@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_8:
	movq	_NVRAM_ADDR_LOCKOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_tr32
	jmp	LBB0_16
LBB0_13:
	movq	_TG3_NVRAM_SIZE_512KB@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_14:
	movq	_TG3_NVRAM_SIZE_256KB@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_11:
	movq	_TG3_NVRAM_SIZE_2MB@GOTPCREL(%rip), %rax
LBB0_15:
	movq	(%rax), %rax
LBB0_16:
	movq	%rax, 8(%rbx)
LBB0_17:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
LJTI0_0:
	.long	L0_0_set_12
	.long	L0_0_set_13
	.long	L0_0_set_14
	.long	L0_0_set_11
	.long	L0_0_set_12
	.long	L0_0_set_13
	.long	L0_0_set_14
	.long	L0_0_set_11
	.long	L0_0_set_11
	.long	L0_0_set_12
	.long	L0_0_set_13
	.long	L0_0_set_14
	.long	L0_0_set_11
	.long	L0_0_set_12
	.long	L0_0_set_13
	.long	L0_0_set_14
	.end_data_region
                                        ## -- End function
	.comm	_NVRAM_CFG1,4,2                 ## @NVRAM_CFG1
	.comm	_PROTECTED_NVRAM,4,2            ## @PROTECTED_NVRAM
	.comm	_NVRAM_CFG1_5752VENDOR_MASK,4,2 ## @NVRAM_CFG1_5752VENDOR_MASK
	.comm	_JEDEC_ATMEL,4,2                ## @JEDEC_ATMEL
	.comm	_NVRAM_BUFFERED,4,2             ## @NVRAM_BUFFERED
	.comm	_FLASH,4,2                      ## @FLASH
	.comm	_NO_NVRAM_ADDR_TRANS,4,2        ## @NO_NVRAM_ADDR_TRANS
	.comm	_JEDEC_ST,4,2                   ## @JEDEC_ST
	.comm	_NVRAM_ADDR_LOCKOUT,4,2         ## @NVRAM_ADDR_LOCKOUT
	.comm	_TG3_NVRAM_SIZE_2MB,8,3         ## @TG3_NVRAM_SIZE_2MB
	.comm	_TG3_NVRAM_SIZE_1MB,8,3         ## @TG3_NVRAM_SIZE_1MB
	.comm	_TG3_NVRAM_SIZE_512KB,8,3       ## @TG3_NVRAM_SIZE_512KB
	.comm	_TG3_NVRAM_SIZE_256KB,8,3       ## @TG3_NVRAM_SIZE_256KB
	.no_dead_strip	_tg3_get_5761_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_5761_nvram_info
_tg3_get_5761_nvram_info:               ; @tg3_get_5761_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	x8, _NVRAM_CFG1@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NVRAM_CFG1@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_tr32
	mov	x20, x0
	tbz	w20, #27, LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _PROTECTED_NVRAM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PROTECTED_NVRAM@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_tg3_flag_set
LBB0_2:
Lloh6:
	adrp	x8, _NVRAM_CFG1_5752VENDOR_MASK@GOTPAGE
Lloh7:
	ldr	x8, [x8, _NVRAM_CFG1_5752VENDOR_MASK@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	and	w8, w8, w20
	sub	w21, w8, #128
	cmp	w21, #8
	b.lo	LBB0_5
; %bb.3:
	sub	w8, w8, #136
	cmp	w8, #7
	b.hi	LBB0_7
; %bb.4:
Lloh9:
	adrp	x8, _JEDEC_ATMEL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _JEDEC_ATMEL@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	str	w8, [x19, #16]
Lloh12:
	adrp	x8, _NVRAM_BUFFERED@GOTPAGE
Lloh13:
	ldr	x8, [x8, _NVRAM_BUFFERED@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_tg3_flag_set
Lloh15:
	adrp	x22, _NO_NVRAM_ADDR_TRANS@GOTPAGE
Lloh16:
	ldr	x22, [x22, _NO_NVRAM_ADDR_TRANS@GOTPAGEOFF]
Lloh17:
	adrp	x8, _FLASH@GOTPAGE
Lloh18:
	ldr	x8, [x8, _FLASH@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
Lloh19:
	adrp	x8, _JEDEC_ST@GOTPAGE
Lloh20:
	ldr	x8, [x8, _JEDEC_ST@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	str	w8, [x19, #16]
Lloh22:
	adrp	x22, _FLASH@GOTPAGE
Lloh23:
	ldr	x22, [x22, _FLASH@GOTPAGEOFF]
Lloh24:
	adrp	x8, _NVRAM_BUFFERED@GOTPAGE
Lloh25:
	ldr	x8, [x8, _NVRAM_BUFFERED@GOTPAGEOFF]
LBB0_6:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_tg3_flag_set
	ldr	w1, [x22]
	mov	x0, x19
	bl	_tg3_flag_set
	mov	w8, #256
	str	w8, [x19]
LBB0_7:
	tbnz	w20, #27, LBB0_11
; %bb.8:
	cmp	w21, #15
	b.hi	LBB0_17
; %bb.9:
Lloh26:
	adrp	x8, lJTI0_0@PAGE
Lloh27:
	add	x8, x8, lJTI0_0@PAGEOFF
	adr	x9, LBB0_10
	ldrb	w10, [x8, x21]
	add	x9, x9, x10, lsl #2
	br	x9
LBB0_10:
Lloh28:
	adrp	x8, _TG3_NVRAM_SIZE_1MB@GOTPAGE
Lloh29:
	ldr	x8, [x8, _TG3_NVRAM_SIZE_1MB@GOTPAGEOFF]
	b	LBB0_15
LBB0_11:
Lloh30:
	adrp	x8, _NVRAM_ADDR_LOCKOUT@GOTPAGE
Lloh31:
	ldr	x8, [x8, _NVRAM_ADDR_LOCKOUT@GOTPAGEOFF]
Lloh32:
	ldr	w0, [x8]
	bl	_tr32
	b	LBB0_16
LBB0_12:
Lloh33:
	adrp	x8, _TG3_NVRAM_SIZE_512KB@GOTPAGE
Lloh34:
	ldr	x8, [x8, _TG3_NVRAM_SIZE_512KB@GOTPAGEOFF]
	b	LBB0_15
LBB0_13:
Lloh35:
	adrp	x8, _TG3_NVRAM_SIZE_256KB@GOTPAGE
Lloh36:
	ldr	x8, [x8, _TG3_NVRAM_SIZE_256KB@GOTPAGEOFF]
	b	LBB0_15
LBB0_14:
Lloh37:
	adrp	x8, _TG3_NVRAM_SIZE_2MB@GOTPAGE
Lloh38:
	ldr	x8, [x8, _TG3_NVRAM_SIZE_2MB@GOTPAGEOFF]
LBB0_15:
	ldr	x0, [x8]
LBB0_16:
	str	x0, [x19, #8]
LBB0_17:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh37, Lloh38
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_10-LBB0_10)>>2
	.byte	(LBB0_12-LBB0_10)>>2
	.byte	(LBB0_13-LBB0_10)>>2
	.byte	(LBB0_14-LBB0_10)>>2
	.byte	(LBB0_10-LBB0_10)>>2
	.byte	(LBB0_12-LBB0_10)>>2
	.byte	(LBB0_13-LBB0_10)>>2
	.byte	(LBB0_14-LBB0_10)>>2
	.byte	(LBB0_14-LBB0_10)>>2
	.byte	(LBB0_10-LBB0_10)>>2
	.byte	(LBB0_12-LBB0_10)>>2
	.byte	(LBB0_13-LBB0_10)>>2
	.byte	(LBB0_14-LBB0_10)>>2
	.byte	(LBB0_10-LBB0_10)>>2
	.byte	(LBB0_12-LBB0_10)>>2
	.byte	(LBB0_13-LBB0_10)>>2
                                        ; -- End function
	.comm	_NVRAM_CFG1,4,2                 ; @NVRAM_CFG1
	.comm	_PROTECTED_NVRAM,4,2            ; @PROTECTED_NVRAM
	.comm	_NVRAM_CFG1_5752VENDOR_MASK,4,2 ; @NVRAM_CFG1_5752VENDOR_MASK
	.comm	_JEDEC_ATMEL,4,2                ; @JEDEC_ATMEL
	.comm	_NVRAM_BUFFERED,4,2             ; @NVRAM_BUFFERED
	.comm	_FLASH,4,2                      ; @FLASH
	.comm	_NO_NVRAM_ADDR_TRANS,4,2        ; @NO_NVRAM_ADDR_TRANS
	.comm	_JEDEC_ST,4,2                   ; @JEDEC_ST
	.comm	_NVRAM_ADDR_LOCKOUT,4,2         ; @NVRAM_ADDR_LOCKOUT
	.comm	_TG3_NVRAM_SIZE_2MB,8,3         ; @TG3_NVRAM_SIZE_2MB
	.comm	_TG3_NVRAM_SIZE_1MB,8,3         ; @TG3_NVRAM_SIZE_1MB
	.comm	_TG3_NVRAM_SIZE_512KB,8,3       ; @TG3_NVRAM_SIZE_512KB
	.comm	_TG3_NVRAM_SIZE_256KB,8,3       ; @TG3_NVRAM_SIZE_256KB
	.no_dead_strip	_tg3_get_5761_nvram_info
.subsections_via_symbols
