	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tg3_get_5787_nvram_info
_tg3_get_5787_nvram_info:               ## @tg3_get_5787_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_NVRAM_CFG1@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	callq	_tr32
	movl	%eax, %ebx
	movq	_NVRAM_CFG1_5752VENDOR_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%ebx, %eax
	addl	$-128, %eax
	cmpl	$10, %eax
	ja	LBB0_5
## %bb.1:
	movl	$15, %ecx
	btl	%eax, %ecx
	jb	LBB0_6
## %bb.2:
	movl	$1136, %ecx                     ## imm = 0x470
	btl	%eax, %ecx
	jae	LBB0_4
## %bb.3:
	movq	_JEDEC_ATMEL@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%r14)
	movq	_NVRAM_BUFFERED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_tg3_flag_set
	movq	_FLASH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_tg3_flag_set
	movl	$264, (%r14)                    ## imm = 0x108
	jmp	LBB0_5
LBB0_6:
	movq	_JEDEC_ATMEL@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%r14)
	movq	_NVRAM_BUFFERED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_tg3_flag_set
	movq	_ATMEL_AT24C512_CHIP_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r14)
	movq	_NVRAM_CFG1_COMPAT_BYPASS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, %ebx
	movl	(%r15), %edi
	movl	%ebx, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_tw32                           ## TAILCALL
LBB0_4:
	movq	_JEDEC_ST@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%r14)
	movq	_NVRAM_BUFFERED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_tg3_flag_set
	movq	_FLASH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_tg3_flag_set
	movl	$256, (%r14)                    ## imm = 0x100
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- 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	_JEDEC_ST,8,3                   ## @JEDEC_ST
	.no_dead_strip	_tg3_get_5787_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_5787_nvram_info
_tg3_get_5787_nvram_info:               ; @tg3_get_5787_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	x21, _NVRAM_CFG1@GOTPAGE
Lloh1:
	ldr	x21, [x21, _NVRAM_CFG1@GOTPAGEOFF]
	ldr	w0, [x21]
	bl	_tr32
Lloh2:
	adrp	x8, _NVRAM_CFG1_5752VENDOR_MASK@GOTPAGE
Lloh3:
	ldr	x8, [x8, _NVRAM_CFG1_5752VENDOR_MASK@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	and	w8, w8, w0
	sub	w8, w8, #128
	cmp	w8, #10
	b.hi	LBB0_7
; %bb.1:
	mov	w9, #1
	lsl	w8, w9, w8
	tst	w8, #0xf
	b.ne	LBB0_4
; %bb.2:
	mov	w9, #1136
	tst	w8, w9
	b.eq	LBB0_5
; %bb.3:
Lloh5:
	adrp	x8, _JEDEC_ATMEL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _JEDEC_ATMEL@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	str	x8, [x19, #8]
Lloh8:
	adrp	x8, _NVRAM_BUFFERED@GOTPAGE
Lloh9:
	ldr	x8, [x8, _NVRAM_BUFFERED@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_tg3_flag_set
Lloh11:
	adrp	x8, _FLASH@GOTPAGE
Lloh12:
	ldr	x8, [x8, _FLASH@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_tg3_flag_set
	mov	w8, #264
	b	LBB0_6
LBB0_4:
	mov	x20, x0
Lloh14:
	adrp	x8, _JEDEC_ATMEL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _JEDEC_ATMEL@GOTPAGEOFF]
Lloh16:
	ldr	x8, [x8]
	str	x8, [x19, #8]
Lloh17:
	adrp	x8, _NVRAM_BUFFERED@GOTPAGE
Lloh18:
	ldr	x8, [x8, _NVRAM_BUFFERED@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_tg3_flag_set
Lloh20:
	adrp	x8, _ATMEL_AT24C512_CHIP_SIZE@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ATMEL_AT24C512_CHIP_SIZE@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
Lloh23:
	adrp	x9, _NVRAM_CFG1_COMPAT_BYPASS@GOTPAGE
Lloh24:
	ldr	x9, [x9, _NVRAM_CFG1_COMPAT_BYPASS@GOTPAGEOFF]
	str	w8, [x19]
Lloh25:
	ldr	w8, [x9]
	bic	w1, w20, w8
	ldr	w0, [x21]
	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_5:
Lloh26:
	adrp	x8, _JEDEC_ST@GOTPAGE
Lloh27:
	ldr	x8, [x8, _JEDEC_ST@GOTPAGEOFF]
Lloh28:
	ldr	x8, [x8]
	str	x8, [x19, #8]
Lloh29:
	adrp	x8, _NVRAM_BUFFERED@GOTPAGE
Lloh30:
	ldr	x8, [x8, _NVRAM_BUFFERED@GOTPAGEOFF]
Lloh31:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_tg3_flag_set
Lloh32:
	adrp	x8, _FLASH@GOTPAGE
Lloh33:
	ldr	x8, [x8, _FLASH@GOTPAGEOFF]
Lloh34:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_tg3_flag_set
	mov	w8, #256
LBB0_6:
	str	w8, [x19]
LBB0_7:
	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	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
                                        ; -- 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	_JEDEC_ST,8,3                   ; @JEDEC_ST
	.no_dead_strip	_tg3_get_5787_nvram_info
.subsections_via_symbols
