	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -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)
	movq	_IXGBE_EEC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_IXGBE_READ_REG
	movq	_IXGBE_EEC_PRES@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_3
## %bb.2:
	movq	_ixgbe_eeprom_spi@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, (%rbx)
	movq	_IXGBE_EEC_SIZE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	andl	%eax, %edx
	movq	_IXGBE_EEC_SIZE_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	sarl	%cl, %edx
	movq	_IXGBE_EEPROM_WORD_SIZE_SHIFT@GOTPCREL(%rip), %rcx
	addl	(%rcx), %edx
	movl	$1, %esi
	movl	%edx, %ecx
	shll	%cl, %esi
	movl	%esi, 12(%rbx)
LBB0_3:
	movq	_IXGBE_EEC_ADDR_SIZE@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	movl	(%rcx), %ecx
	andl	%eax, %ecx
	setne	%dl
	leal	8(,%rdx,8), %r8d
	movl	%r8d, 16(%rbx)
	movq	(%rbx), %rdx
	movl	12(%rbx), %ecx
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_hw_dbg
LBB0_4:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	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,4,2                  ## @IXGBE_EEC
	.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,4,2 ## @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]
Lloh6:
	adrp	x8, _IXGBE_EEC@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IXGBE_EEC@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	bl	_IXGBE_READ_REG
Lloh9:
	adrp	x8, _IXGBE_EEC_PRES@GOTPAGE
Lloh10:
	ldr	x8, [x8, _IXGBE_EEC_PRES@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_3
; %bb.2:
Lloh12:
	adrp	x8, _ixgbe_eeprom_spi@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ixgbe_eeprom_spi@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	str	x8, [x19]
Lloh15:
	adrp	x8, _IXGBE_EEC_SIZE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _IXGBE_EEC_SIZE@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	and	w8, w8, w0
Lloh18:
	adrp	x9, _IXGBE_EEC_SIZE_SHIFT@GOTPAGE
Lloh19:
	ldr	x9, [x9, _IXGBE_EEC_SIZE_SHIFT@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
Lloh21:
	adrp	x10, _IXGBE_EEPROM_WORD_SIZE_SHIFT@GOTPAGE
Lloh22:
	ldr	x10, [x10, _IXGBE_EEPROM_WORD_SIZE_SHIFT@GOTPAGEOFF]
	asr	w8, w8, w9
Lloh23:
	ldr	w9, [x10]
	add	w8, w8, w9
	mov	w9, #1
	lsl	w8, w9, w8
	str	w8, [x19, #12]
LBB0_3:
Lloh24:
	adrp	x8, _IXGBE_EEC_ADDR_SIZE@GOTPAGE
Lloh25:
	ldr	x8, [x8, _IXGBE_EEC_ADDR_SIZE@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	tst	w8, w0
	mov	w8, #16
	mov	w9, #8
	csel	w4, w9, w8, eq
	str	w4, [x19, #16]
	ldr	x2, [x19]
	ldr	w3, [x19, #12]
Lloh27:
	adrp	x1, l_.str@PAGE
Lloh28:
	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	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.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,4,2                  ; @IXGBE_EEC
	.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,4,2 ; @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
