	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ixgbe_init_eeprom_params_generic ## -- Begin function ixgbe_init_eeprom_params_generic
	.p2align	4, 0x90
_ixgbe_init_eeprom_params_generic:      ## @ixgbe_init_eeprom_params_generic
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	(%rdi), %rax
	movq	_ixgbe_eeprom_uninitialized@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.1:
	movq	%rdi, %rbx
	movq	_ixgbe_eeprom_none@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%rdi)
	movl	$10, 8(%rdi)
	movq	$0, 24(%rdi)
	callq	_IXGBE_EEC
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_IXGBE_READ_REG
	movl	%eax, %r14d
	movq	_IXGBE_EEC_PRES@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_3
## %bb.2:
	movq	_ixgbe_eeprom_spi@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%rbx)
	movq	_IXGBE_EEC_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%r14d, %eax
	movq	_IXGBE_EEC_SIZE_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	sarl	%cl, %eax
	movslq	%eax, %rdi
	movq	_IXGBE_EEPROM_WORD_SIZE_SHIFT@GOTPCREL(%rip), %rax
	addq	(%rax), %rdi
	callq	_BIT
	movl	%eax, 16(%rbx)
LBB0_3:
	movq	_IXGBE_EEC_ADDR_SIZE@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	movl	(%rax), %eax
	andl	%r14d, %eax
	setne	%cl
	leal	8(,%rcx,8), %r8d
	movl	%r8d, 12(%rbx)
	movq	(%rbx), %rdx
	movl	16(%rbx), %ecx
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_hw_dbg
LBB0_4:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ixgbe_eeprom_uninitialized,8,3 ## @ixgbe_eeprom_uninitialized
	.comm	_ixgbe_eeprom_none,8,3          ## @ixgbe_eeprom_none
	.comm	_IXGBE_EEC_PRES,4,2             ## @IXGBE_EEC_PRES
	.comm	_ixgbe_eeprom_spi,8,3           ## @ixgbe_eeprom_spi
	.comm	_IXGBE_EEC_SIZE,4,2             ## @IXGBE_EEC_SIZE
	.comm	_IXGBE_EEC_SIZE_SHIFT,4,2       ## @IXGBE_EEC_SIZE_SHIFT
	.comm	_IXGBE_EEPROM_WORD_SIZE_SHIFT,8,3 ## @IXGBE_EEPROM_WORD_SIZE_SHIFT
	.comm	_IXGBE_EEC_ADDR_SIZE,4,2        ## @IXGBE_EEC_ADDR_SIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Eeprom params: type = %d, size = %d, address bits: %d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ixgbe_init_eeprom_params_generic ; -- Begin function ixgbe_init_eeprom_params_generic
	.p2align	2
_ixgbe_init_eeprom_params_generic:      ; @ixgbe_init_eeprom_params_generic
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _ixgbe_eeprom_uninitialized@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ixgbe_eeprom_uninitialized@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.1:
	mov	x19, x0
Lloh3:
	adrp	x8, _ixgbe_eeprom_none@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ixgbe_eeprom_none@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	str	x8, [x0]
	mov	w8, #10
	str	w8, [x0, #8]
	str	xzr, [x0, #24]
	bl	_IXGBE_EEC
	mov	x1, x0
	mov	x0, x19
	bl	_IXGBE_READ_REG
	mov	x20, x0
Lloh6:
	adrp	x8, _IXGBE_EEC_PRES@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IXGBE_EEC_PRES@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_3
; %bb.2:
Lloh9:
	adrp	x8, _ixgbe_eeprom_spi@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ixgbe_eeprom_spi@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	str	x8, [x19]
Lloh12:
	adrp	x8, _IXGBE_EEC_SIZE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _IXGBE_EEC_SIZE@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	and	w8, w8, w20
Lloh15:
	adrp	x9, _IXGBE_EEC_SIZE_SHIFT@GOTPAGE
Lloh16:
	ldr	x9, [x9, _IXGBE_EEC_SIZE_SHIFT@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	asr	w8, w8, w9
Lloh18:
	adrp	x9, _IXGBE_EEPROM_WORD_SIZE_SHIFT@GOTPAGE
Lloh19:
	ldr	x9, [x9, _IXGBE_EEPROM_WORD_SIZE_SHIFT@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	add	x0, x9, w8, sxtw
	bl	_BIT
	str	w0, [x19, #16]
LBB0_3:
Lloh21:
	adrp	x8, _IXGBE_EEC_ADDR_SIZE@GOTPAGE
Lloh22:
	ldr	x8, [x8, _IXGBE_EEC_ADDR_SIZE@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	tst	w8, w20
	mov	w8, #16
	mov	w9, #8
	csel	w4, w9, w8, eq
	str	w4, [x19, #12]
	ldr	x2, [x19]
	ldr	w3, [x19, #16]
Lloh24:
	adrp	x1, l_.str@PAGE
Lloh25:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_hw_dbg
LBB0_4:
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_ixgbe_eeprom_uninitialized,8,3 ; @ixgbe_eeprom_uninitialized
	.comm	_ixgbe_eeprom_none,8,3          ; @ixgbe_eeprom_none
	.comm	_IXGBE_EEC_PRES,4,2             ; @IXGBE_EEC_PRES
	.comm	_ixgbe_eeprom_spi,8,3           ; @ixgbe_eeprom_spi
	.comm	_IXGBE_EEC_SIZE,4,2             ; @IXGBE_EEC_SIZE
	.comm	_IXGBE_EEC_SIZE_SHIFT,4,2       ; @IXGBE_EEC_SIZE_SHIFT
	.comm	_IXGBE_EEPROM_WORD_SIZE_SHIFT,8,3 ; @IXGBE_EEPROM_WORD_SIZE_SHIFT
	.comm	_IXGBE_EEC_ADDR_SIZE,4,2        ; @IXGBE_EEC_ADDR_SIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Eeprom params: type = %d, size = %d, address bits: %d\n"

.subsections_via_symbols
