	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tg3_get_5755_nvram_info
_tg3_get_5755_nvram_info:               ## @tg3_get_5755_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, %r15
	movq	_NVRAM_CFG1@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_tr32
	movl	%eax, %r14d
	testl	$134217728, %eax                ## imm = 0x8000000
	je	LBB0_2
## %bb.1:
	movq	_PROTECTED_NVRAM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_tg3_flag_set
LBB0_2:
	movq	_NVRAM_CFG1_5752VENDOR_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	andl	%r14d, %ebx
	leal	-128(%rbx), %r12d
	cmpl	$4, %r12d
	jae	LBB0_3
## %bb.6:
	movq	_JEDEC_ATMEL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r15)
	movq	_NVRAM_BUFFERED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_tg3_flag_set
	movq	_FLASH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_tg3_flag_set
	movl	$264, (%r15)                    ## imm = 0x108
	cmpl	$4, %r12d
	jae	LBB0_7
## %bb.11:
	movslq	%r12d, %rcx
	leaq	l_switch.table.tg3_get_5755_nvram_info(%rip), %rax
	movq	(%rax,%rcx,8), %rax
	leaq	L_switch.table.tg3_get_5755_nvram_info.1(%rip), %rdx
	leaq	(%rdx,%rcx,4), %rcx
	jmp	LBB0_12
LBB0_3:
	leal	-132(%rbx), %eax
	cmpl	$3, %eax
	jae	LBB0_16
## %bb.4:
	movq	_JEDEC_ST@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r15)
	movq	_NVRAM_BUFFERED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_tg3_flag_set
	movq	_FLASH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_tg3_flag_set
	movl	$256, (%r15)                    ## imm = 0x100
	movq	_TG3_NVRAM_SIZE_64KB@GOTPCREL(%rip), %rcx
	cmpl	$134, %ebx
	je	LBB0_5
## %bb.8:
	cmpl	$133, %ebx
	jne	LBB0_10
## %bb.9:
	movq	_TG3_NVRAM_SIZE_256KB@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_7:
	movl	$127488, %ecx                   ## imm = 0x1F200
	movq	_TG3_NVRAM_SIZE_128KB@GOTPCREL(%rip), %rax
	testl	$134217728, %r14d               ## imm = 0x8000000
	je	LBB0_14
	jmp	LBB0_15
LBB0_5:
	movq	_TG3_NVRAM_SIZE_128KB@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_10:
	movq	_TG3_NVRAM_SIZE_512KB@GOTPCREL(%rip), %rax
	movq	_TG3_NVRAM_SIZE_128KB@GOTPCREL(%rip), %rcx
LBB0_12:
	movl	(%rcx), %ecx
	testl	$134217728, %r14d               ## imm = 0x8000000
	jne	LBB0_15
LBB0_14:
	movl	(%rax), %ecx
LBB0_15:
	movl	%ecx, 4(%r15)
LBB0_16:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- 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	_TG3_NVRAM_SIZE_512KB,4,2       ## @TG3_NVRAM_SIZE_512KB
	.comm	_TG3_NVRAM_SIZE_256KB,4,2       ## @TG3_NVRAM_SIZE_256KB
	.comm	_TG3_NVRAM_SIZE_128KB,4,2       ## @TG3_NVRAM_SIZE_128KB
	.comm	_JEDEC_ST,4,2                   ## @JEDEC_ST
	.comm	_TG3_NVRAM_SIZE_64KB,4,2        ## @TG3_NVRAM_SIZE_64KB
	.no_dead_strip	_tg3_get_5755_nvram_info
	.section	__DATA,__const
	.p2align	3                               ## @switch.table.tg3_get_5755_nvram_info
l_switch.table.tg3_get_5755_nvram_info:
	.quad	_TG3_NVRAM_SIZE_512KB
	.quad	_TG3_NVRAM_SIZE_128KB
	.quad	_TG3_NVRAM_SIZE_256KB
	.quad	_TG3_NVRAM_SIZE_512KB

	.section	__TEXT,__literal16,16byte_literals
	.p2align	2                               ## @switch.table.tg3_get_5755_nvram_info.1
L_switch.table.tg3_get_5755_nvram_info.1:
	.long	254464                          ## 0x3e200
	.long	127488                          ## 0x1f200
	.long	127488                          ## 0x1f200
	.long	254464                          ## 0x3e200

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tg3_get_5755_nvram_info
_tg3_get_5755_nvram_info:               ; @tg3_get_5755_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	w0, #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	w21, w8, w20
	sub	w22, w21, #128
	cmp	w22, #4
	b.hs	LBB0_5
; %bb.3:
Lloh9:
	adrp	x8, _JEDEC_ATMEL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _JEDEC_ATMEL@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	str	w8, [x19, #8]
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	x8, _FLASH@GOTPAGE
Lloh16:
	ldr	x8, [x8, _FLASH@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_tg3_flag_set
	mov	w8, #264
	str	w8, [x19]
	cmp	w22, #4
	b.hs	LBB0_8
; %bb.4:
Lloh18:
	adrp	x8, l_switch.table.tg3_get_5755_nvram_info@PAGE
Lloh19:
	add	x8, x8, l_switch.table.tg3_get_5755_nvram_info@PAGEOFF
	ldr	x8, [x8, w22, sxtw #3]
Lloh20:
	adrp	x9, l_switch.table.tg3_get_5755_nvram_info.1@PAGE
Lloh21:
	add	x9, x9, l_switch.table.tg3_get_5755_nvram_info.1@PAGEOFF
	add	x9, x9, w22, sxtw #2
	b	LBB0_10
LBB0_5:
	sub	w8, w21, #132
	cmp	w8, #3
	b.hs	LBB0_12
; %bb.6:
Lloh22:
	adrp	x8, _JEDEC_ST@GOTPAGE
Lloh23:
	ldr	x8, [x8, _JEDEC_ST@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	str	w8, [x19, #8]
Lloh25:
	adrp	x8, _NVRAM_BUFFERED@GOTPAGE
Lloh26:
	ldr	x8, [x8, _NVRAM_BUFFERED@GOTPAGEOFF]
Lloh27:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_tg3_flag_set
Lloh28:
	adrp	x8, _FLASH@GOTPAGE
Lloh29:
	ldr	x8, [x8, _FLASH@GOTPAGEOFF]
Lloh30:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_tg3_flag_set
	mov	w8, #256
	str	w8, [x19]
	cmp	w21, #134
	b.eq	LBB0_9
; %bb.7:
	cmp	w21, #133
Lloh31:
	adrp	x8, _TG3_NVRAM_SIZE_512KB@GOTPAGE
Lloh32:
	ldr	x8, [x8, _TG3_NVRAM_SIZE_512KB@GOTPAGEOFF]
Lloh33:
	adrp	x9, _TG3_NVRAM_SIZE_128KB@GOTPAGE
Lloh34:
	ldr	x9, [x9, _TG3_NVRAM_SIZE_128KB@GOTPAGEOFF]
Lloh35:
	adrp	x10, _TG3_NVRAM_SIZE_256KB@GOTPAGE
Lloh36:
	ldr	x10, [x10, _TG3_NVRAM_SIZE_256KB@GOTPAGEOFF]
Lloh37:
	adrp	x11, _TG3_NVRAM_SIZE_64KB@GOTPAGE
Lloh38:
	ldr	x11, [x11, _TG3_NVRAM_SIZE_64KB@GOTPAGEOFF]
	csel	x9, x9, x11, ne
	csel	x8, x8, x10, ne
	b	LBB0_10
LBB0_8:
	mov	w9, #61952
	movk	w9, #1, lsl #16
Lloh39:
	adrp	x8, _TG3_NVRAM_SIZE_128KB@GOTPAGE
Lloh40:
	ldr	x8, [x8, _TG3_NVRAM_SIZE_128KB@GOTPAGEOFF]
	b	LBB0_11
LBB0_9:
Lloh41:
	adrp	x8, _TG3_NVRAM_SIZE_128KB@GOTPAGE
Lloh42:
	ldr	x8, [x8, _TG3_NVRAM_SIZE_128KB@GOTPAGEOFF]
Lloh43:
	adrp	x9, _TG3_NVRAM_SIZE_64KB@GOTPAGE
Lloh44:
	ldr	x9, [x9, _TG3_NVRAM_SIZE_64KB@GOTPAGEOFF]
LBB0_10:
	ldr	w9, [x9]
LBB0_11:
	ldr	w8, [x8]
	tst	w20, #0x8000000
	csel	w8, w8, w9, eq
	str	w8, [x19, #4]
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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh37, Lloh38
	.loh AdrpLdrGot	Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh39, Lloh40
	.loh AdrpLdrGot	Lloh43, Lloh44
	.loh AdrpLdrGot	Lloh41, Lloh42
	.cfi_endproc
                                        ; -- 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	_TG3_NVRAM_SIZE_512KB,4,2       ; @TG3_NVRAM_SIZE_512KB
	.comm	_TG3_NVRAM_SIZE_256KB,4,2       ; @TG3_NVRAM_SIZE_256KB
	.comm	_TG3_NVRAM_SIZE_128KB,4,2       ; @TG3_NVRAM_SIZE_128KB
	.comm	_JEDEC_ST,4,2                   ; @JEDEC_ST
	.comm	_TG3_NVRAM_SIZE_64KB,4,2        ; @TG3_NVRAM_SIZE_64KB
	.no_dead_strip	_tg3_get_5755_nvram_info
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.tg3_get_5755_nvram_info
l_switch.table.tg3_get_5755_nvram_info:
	.quad	_TG3_NVRAM_SIZE_512KB
	.quad	_TG3_NVRAM_SIZE_128KB
	.quad	_TG3_NVRAM_SIZE_256KB
	.quad	_TG3_NVRAM_SIZE_512KB

	.section	__TEXT,__literal16,16byte_literals
	.p2align	2                               ; @switch.table.tg3_get_5755_nvram_info.1
l_switch.table.tg3_get_5755_nvram_info.1:
	.long	254464                          ; 0x3e200
	.long	127488                          ; 0x1f200
	.long	127488                          ; 0x1f200
	.long	254464                          ; 0x3e200

.subsections_via_symbols
