	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function igc_init_nvm_params_base
_igc_init_nvm_params_base:              ## @igc_init_nvm_params_base
	.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, %rbx
	movq	_IGC_EECD@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_rd32
	movl	%eax, %r14d
	movq	_IGC_EECD_SIZE_EX_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	andl	%r14d, %edi
	movq	_IGC_EECD_SIZE_EX_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	sarl	%cl, %edi
	movq	_NVM_WORD_SIZE_BASE_SHIFT@GOTPCREL(%rip), %rax
	addl	(%rax), %edi
	cmpl	$15, %edi
	movl	$15, %eax
	cmovgel	%eax, %edi
	movq	_igc_nvm_eeprom_spi@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%rbx)
	callq	_BIT
	movl	%eax, %r15d
	movl	%eax, 16(%rbx)
	movabsq	$4294967304, %rax               ## imm = 0x100000008
	movq	%rax, (%rbx)
	movq	_IGC_EECD_ADDR_BITS@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	andl	(%rax), %r14d
	movl	$8, %eax
	movl	$32, %edx
	cmovel	%eax, %edx
	setne	%cl
	movl	%edx, 8(%rbx)
	leal	8(,%rcx,8), %eax
	movl	%eax, 12(%rbx)
	movl	$15, %edi
	callq	_BIT
	cmpl	%eax, %r15d
	jne	LBB0_2
## %bb.1:
	movl	$128, 8(%rbx)
LBB0_2:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IGC_EECD,4,2                   ## @IGC_EECD
	.comm	_IGC_EECD_SIZE_EX_MASK,4,2      ## @IGC_EECD_SIZE_EX_MASK
	.comm	_IGC_EECD_SIZE_EX_SHIFT,4,2     ## @IGC_EECD_SIZE_EX_SHIFT
	.comm	_NVM_WORD_SIZE_BASE_SHIFT,8,3   ## @NVM_WORD_SIZE_BASE_SHIFT
	.comm	_igc_nvm_eeprom_spi,4,2         ## @igc_nvm_eeprom_spi
	.comm	_IGC_EECD_ADDR_BITS,4,2         ## @IGC_EECD_ADDR_BITS
	.no_dead_strip	_igc_init_nvm_params_base
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function igc_init_nvm_params_base
lCPI0_0:
	.long	8                               ; 0x8
	.long	1                               ; 0x1
lCPI0_1:
	.long	32                              ; 0x20
	.long	16                              ; 0x10
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_igc_init_nvm_params_base:              ; @igc_init_nvm_params_base
	.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, _IGC_EECD@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IGC_EECD@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_rd32
	mov	x20, x0
Lloh3:
	adrp	x8, _IGC_EECD_SIZE_EX_MASK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IGC_EECD_SIZE_EX_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	and	w8, w8, w0
Lloh6:
	adrp	x9, _IGC_EECD_SIZE_EX_SHIFT@GOTPAGE
Lloh7:
	ldr	x9, [x9, _IGC_EECD_SIZE_EX_SHIFT@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	asr	w8, w8, w9
Lloh9:
	adrp	x9, _NVM_WORD_SIZE_BASE_SHIFT@GOTPAGE
Lloh10:
	ldr	x9, [x9, _NVM_WORD_SIZE_BASE_SHIFT@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	add	w8, w8, w9
	mov	w9, #15
	cmp	w8, #15
	csel	w0, w8, w9, lt
Lloh12:
	adrp	x8, _igc_nvm_eeprom_spi@GOTPAGE
Lloh13:
	ldr	x8, [x8, _igc_nvm_eeprom_spi@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	str	w8, [x19, #20]
	bl	_BIT
	mov	x21, x0
	str	w0, [x19, #16]
Lloh15:
	adrp	x8, lCPI0_0@PAGE
Lloh16:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	str	d0, [x19]
Lloh17:
	adrp	x8, _IGC_EECD_ADDR_BITS@GOTPAGE
Lloh18:
	ldr	x8, [x8, _IGC_EECD_ADDR_BITS@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	tst	w8, w20
	cset	w8, eq
	dup.2s	v0, w8
	shl.2s	v0, v0, #31
	cmlt.2s	v0, v0, #0
Lloh20:
	adrp	x8, lCPI0_1@PAGE
Lloh21:
	ldr	d1, [x8, lCPI0_1@PAGEOFF]
	movi.2s	v2, #8
	bsl.8b	v0, v2, v1
	str	d0, [x19, #8]
	mov	w0, #15
	bl	_BIT
	cmp	w21, w0
	b.ne	LBB0_2
; %bb.1:
	mov	w8, #128
	str	w8, [x19, #8]
LBB0_2:
	mov	w0, #0
	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 AdrpLdr	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdrp	Lloh15, Lloh17
	.loh AdrpLdr	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_IGC_EECD,4,2                   ; @IGC_EECD
	.comm	_IGC_EECD_SIZE_EX_MASK,4,2      ; @IGC_EECD_SIZE_EX_MASK
	.comm	_IGC_EECD_SIZE_EX_SHIFT,4,2     ; @IGC_EECD_SIZE_EX_SHIFT
	.comm	_NVM_WORD_SIZE_BASE_SHIFT,8,3   ; @NVM_WORD_SIZE_BASE_SHIFT
	.comm	_igc_nvm_eeprom_spi,4,2         ; @igc_nvm_eeprom_spi
	.comm	_IGC_EECD_ADDR_BITS,4,2         ; @IGC_EECD_ADDR_BITS
	.no_dead_strip	_igc_init_nvm_params_base
.subsections_via_symbols
