	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ipw_eeprom_init_sram
_ipw_eeprom_init_sram:                  ## @ipw_eeprom_init_sram
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r13
	leaq	L_.str(%rip), %rdi
	callq	_IPW_DEBUG_TRACE
	movq	(%r13), %rax
	movq	_EEPROM_VERSION@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpl	$0, (%rax,%rcx,4)
	je	LBB0_5
## %bb.1:
	leaq	L_.str.1(%rip), %rdi
	callq	_IPW_DEBUG_INFO
	movq	_IPW_EEPROM_IMAGE_SIZE@GOTPCREL(%rip), %r15
	cmpl	$0, (%r15)
	jle	LBB0_2
## %bb.3:
	xorl	%r14d, %r14d
	movq	_IPW_EEPROM_DATA@GOTPCREL(%rip), %r12
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rsi
	addq	%rbx, %rsi
	movq	(%r13), %rax
	movl	(%rax,%rbx,4), %edx
	movq	%r13, %rdi
	callq	_ipw_write8
	incq	%rbx
	movslq	(%r15), %rax
	cmpq	%rax, %rbx
	jl	LBB0_4
	jmp	LBB0_6
LBB0_5:
	leaq	L_.str.2(%rip), %rdi
	callq	_IPW_DEBUG_INFO
	movl	$1, %r14d
	jmp	LBB0_6
LBB0_2:
	xorl	%r14d, %r14d
LBB0_6:
	movq	_IPW_EEPROM_LOAD_DISABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	movl	%r14d, %edx
	callq	_ipw_write32
	leaq	L_.str.3(%rip), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_IPW_DEBUG_TRACE                ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	">>\n"

	.comm	_EEPROM_VERSION,8,3             ## @EEPROM_VERSION
L_.str.1:                               ## @.str.1
	.asciz	"Writing EEPROM data into SRAM\n"

	.comm	_IPW_EEPROM_IMAGE_SIZE,4,2      ## @IPW_EEPROM_IMAGE_SIZE
	.comm	_IPW_EEPROM_DATA,8,3            ## @IPW_EEPROM_DATA
	.comm	_IPW_EEPROM_LOAD_DISABLE,4,2    ## @IPW_EEPROM_LOAD_DISABLE
L_.str.2:                               ## @.str.2
	.asciz	"Enabling FW initialization of SRAM\n"

L_.str.3:                               ## @.str.3
	.asciz	"<<\n"

	.no_dead_strip	_ipw_eeprom_init_sram
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ipw_eeprom_init_sram
_ipw_eeprom_init_sram:                  ; @ipw_eeprom_init_sram
	.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	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_IPW_DEBUG_TRACE
	ldr	x8, [x19]
Lloh2:
	adrp	x9, _EEPROM_VERSION@GOTPAGE
Lloh3:
	ldr	x9, [x9, _EEPROM_VERSION@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	ldr	w8, [x8, x9, lsl #2]
	cbz	w8, LBB0_5
; %bb.1:
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_IPW_DEBUG_INFO
Lloh7:
	adrp	x20, _IPW_EEPROM_IMAGE_SIZE@GOTPAGE
Lloh8:
	ldr	x20, [x20, _IPW_EEPROM_IMAGE_SIZE@GOTPAGEOFF]
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_4
; %bb.2:
	mov	x21, #0
Lloh9:
	adrp	x22, _IPW_EEPROM_DATA@GOTPAGE
Lloh10:
	ldr	x22, [x22, _IPW_EEPROM_DATA@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22]
	add	x1, x21, x8
	ldr	x8, [x19]
	ldr	w2, [x8, x21, lsl #2]
	mov	x0, x19
	bl	_ipw_write8
	add	x21, x21, #1
	ldrsw	x8, [x20]
	cmp	x21, x8
	b.lt	LBB0_3
LBB0_4:
	mov	w2, #0
	b	LBB0_6
LBB0_5:
Lloh11:
	adrp	x0, l_.str.2@PAGE
Lloh12:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_IPW_DEBUG_INFO
	mov	w2, #1
LBB0_6:
Lloh13:
	adrp	x8, _IPW_EEPROM_LOAD_DISABLE@GOTPAGE
Lloh14:
	ldr	x8, [x8, _IPW_EEPROM_LOAD_DISABLE@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_ipw_write32
Lloh16:
	adrp	x0, l_.str.3@PAGE
Lloh17:
	add	x0, x0, l_.str.3@PAGEOFF
	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	_IPW_DEBUG_TRACE
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	">>\n"

	.comm	_EEPROM_VERSION,8,3             ; @EEPROM_VERSION
l_.str.1:                               ; @.str.1
	.asciz	"Writing EEPROM data into SRAM\n"

	.comm	_IPW_EEPROM_IMAGE_SIZE,4,2      ; @IPW_EEPROM_IMAGE_SIZE
	.comm	_IPW_EEPROM_DATA,8,3            ; @IPW_EEPROM_DATA
	.comm	_IPW_EEPROM_LOAD_DISABLE,4,2    ; @IPW_EEPROM_LOAD_DISABLE
l_.str.2:                               ; @.str.2
	.asciz	"Enabling FW initialization of SRAM\n"

l_.str.3:                               ; @.str.3
	.asciz	"<<\n"

	.no_dead_strip	_ipw_eeprom_init_sram
.subsections_via_symbols
