	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function slic_read_eeprom
_slic_read_eeprom:                      ## @slic_read_eeprom
	.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
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	8(%rdi), %rax
	movl	4(%rax), %edi
	callq	_PCI_FUNC
	movl	%eax, %ebx
	movq	32(%r12), %r13
	movq	8(%r12), %rdi
	movq	_SLIC_EEPROM_SIZE@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-44(%rbp), %rdx
	callq	_dma_alloc_coherent
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	%ebx, -48(%rbp)                 ## 4-byte Spill
	movq	_SLIC_REG_ICR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SLIC_ICR_INT_OFF@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	callq	_slic_write
	movq	_SLIC_REG_ISP@GOTPCREL(%rip), %r14
	movl	(%r14), %ebx
	movl	24(%r12), %edi
	callq	_lower_32_bits
	movq	%r12, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_slic_write
	movq	_SLIC_UPR_CONFIG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-44(%rbp), %edx
	movq	%r12, %rdi
	callq	_slic_new_upr
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_9
## %bb.3:
	movl	$5000, %ebx                     ## imm = 0x1388
	movq	_SLIC_ISR_UPC@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r13), %edi
	callq	_le32_to_cpu
	testl	%eax, (%r15)
	jne	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	$1, %edi
	callq	_mdelay
	decl	%ebx
	jne	LBB0_4
## %bb.7:
	movq	8(%r12), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	movq	_ETIMEDOUT@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_8
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_14
LBB0_5:
	xorl	%ebx, %ebx
LBB0_8:
	movq	_SLIC_EEPROM_SIZE@GOTPCREL(%rip), %r15
	movq	%r12, %rdi
	callq	_slic_dequeue_upr
	movq	%rax, %rdi
	callq	_kfree
	movq	_SLIC_REG_ISP@GOTPCREL(%rip), %r14
LBB0_9:
	movl	(%r14), %esi
	movq	%r12, %rdi
	xorl	%edx, %edx
	callq	_slic_write
	movq	_SLIC_REG_ISR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	xorl	%edx, %edx
	callq	_slic_write
	movq	%r12, %rdi
	callq	_slic_flush_write
	testl	%ebx, %ebx
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	jne	LBB0_13
## %bb.10:
	movl	(%r14), %edi
	movups	8(%r14), %xmm0
	movaps	%xmm0, -80(%rbp)                ## 16-byte Spill
	callq	_le16_to_cpu
	pshufd	$78, -80(%rbp), %xmm0           ## 16-byte Folded Reload
                                        ## xmm0 = mem[2,3,0,1]
	movdqa	%xmm0, -96(%rbp)
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_slic_eeprom_valid
	testl	%eax, %eax
	je	LBB0_11
## %bb.12:
	movq	16(%r12), %rax
	movl	(%rax), %edi
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	movq	-96(%rbp,%rax,8), %rsi
	callq	_ether_addr_copy
	xorl	%ebx, %ebx
	jmp	LBB0_13
LBB0_11:
	movq	8(%r12), %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_13:
	movq	8(%r12), %rdi
	movl	(%r15), %esi
	movl	-44(%rbp), %ecx
	movq	%r14, %rdx
	callq	_dma_free_coherent
LBB0_14:
	movl	%ebx, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SLIC_EEPROM_SIZE,4,2           ## @SLIC_EEPROM_SIZE
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_SLIC_REG_ICR,4,2               ## @SLIC_REG_ICR
	.comm	_SLIC_ICR_INT_OFF,4,2           ## @SLIC_ICR_INT_OFF
	.comm	_SLIC_REG_ISP,4,2               ## @SLIC_REG_ISP
	.comm	_SLIC_UPR_CONFIG,4,2            ## @SLIC_UPR_CONFIG
	.comm	_SLIC_ISR_UPC,4,2               ## @SLIC_ISR_UPC
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"timed out while waiting for eeprom data\n"

	.comm	_ETIMEDOUT,4,2                  ## @ETIMEDOUT
	.comm	_SLIC_REG_ISR,4,2               ## @SLIC_REG_ISR
	.comm	_SLIC_MODEL_OASIS,8,3           ## @SLIC_MODEL_OASIS
L_.str.1:                               ## @.str.1
	.asciz	"invalid checksum in eeprom\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_slic_read_eeprom
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function slic_read_eeprom
_slic_read_eeprom:                      ; @slic_read_eeprom
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	ldr	x8, [x0, #8]
	ldr	w0, [x8, #4]
	bl	_PCI_FUNC
	mov	x21, x0
	ldr	x25, [x19, #32]
	ldr	x0, [x19, #8]
Lloh3:
	adrp	x23, _SLIC_EEPROM_SIZE@GOTPAGE
Lloh4:
	ldr	x23, [x23, _SLIC_EEPROM_SIZE@GOTPAGEOFF]
	ldr	w1, [x23]
Lloh5:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh7:
	ldr	w3, [x8]
	add	x2, sp, #4
	bl	_dma_alloc_coherent
	cbz	x0, LBB0_6
; %bb.1:
	mov	x20, x0
Lloh8:
	adrp	x8, _SLIC_REG_ICR@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SLIC_REG_ICR@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
Lloh11:
	adrp	x8, _SLIC_ICR_INT_OFF@GOTPAGE
Lloh12:
	ldr	x8, [x8, _SLIC_ICR_INT_OFF@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_slic_write
Lloh14:
	adrp	x24, _SLIC_REG_ISP@GOTPAGE
Lloh15:
	ldr	x24, [x24, _SLIC_REG_ISP@GOTPAGEOFF]
	ldr	w22, [x24]
	ldr	w0, [x19, #24]
	bl	_lower_32_bits
	mov	x2, x0
	mov	x0, x19
	mov	x1, x22
	bl	_slic_write
Lloh16:
	adrp	x8, _SLIC_UPR_CONFIG@GOTPAGE
Lloh17:
	ldr	x8, [x8, _SLIC_UPR_CONFIG@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	ldr	w2, [sp, #4]
	mov	x0, x19
	bl	_slic_new_upr
	mov	x22, x0
	cbnz	w0, LBB0_9
; %bb.2:
	mov	w22, #5000
Lloh19:
	adrp	x26, _SLIC_ISR_UPC@GOTPAGE
Lloh20:
	ldr	x26, [x26, _SLIC_ISR_UPC@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x25]
	bl	_le32_to_cpu
	ldr	w8, [x26]
	tst	w8, w0
	b.ne	LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	w0, #1
	bl	_mdelay
	subs	w22, w22, #1
	b.ne	LBB0_3
; %bb.5:
	ldr	x0, [x19, #8]
Lloh21:
	adrp	x1, l_.str@PAGE
Lloh22:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
Lloh23:
	adrp	x8, _ETIMEDOUT@GOTPAGE
Lloh24:
	ldr	x8, [x8, _ETIMEDOUT@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_8
LBB0_6:
Lloh26:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh27:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_14
LBB0_7:
	mov	w22, #0
LBB0_8:
	mov	x0, x19
	bl	_slic_dequeue_upr
	bl	_kfree
LBB0_9:
	ldr	w1, [x24]
	mov	x0, x19
	mov	w2, #0
	bl	_slic_write
Lloh29:
	adrp	x8, _SLIC_REG_ISR@GOTPAGE
Lloh30:
	ldr	x8, [x8, _SLIC_REG_ISR@GOTPAGEOFF]
Lloh31:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_slic_write
	mov	x0, x19
	bl	_slic_flush_write
	cbnz	w22, LBB0_13
; %bb.10:
	ldp	x24, x22, [x20, #8]
	ldr	w0, [x20]
	bl	_le16_to_cpu
	mov	x1, x0
	stp	x22, x24, [sp, #8]
	mov	x0, x20
	bl	_slic_eeprom_valid
	cbz	w0, LBB0_12
; %bb.11:
	ldr	x8, [x19, #16]
	ldr	w0, [x8]
	add	x8, sp, #8
	ldr	x1, [x8, w21, uxtw #3]
	bl	_ether_addr_copy
	mov	w22, #0
	b	LBB0_13
LBB0_12:
	ldr	x0, [x19, #8]
Lloh32:
	adrp	x1, l_.str.1@PAGE
Lloh33:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_err
Lloh34:
	adrp	x8, _EINVAL@GOTPAGE
Lloh35:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh36:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_13:
	ldr	x0, [x19, #8]
	ldr	w1, [x23]
	ldr	w3, [sp, #4]
	mov	x2, x20
	bl	_dma_free_coherent
LBB0_14:
	ldr	x8, [sp, #24]
Lloh37:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh38:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh39:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_16
; %bb.15:
	mov	x0, x22
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_16:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.cfi_endproc
                                        ; -- End function
	.comm	_SLIC_EEPROM_SIZE,4,2           ; @SLIC_EEPROM_SIZE
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_SLIC_REG_ICR,4,2               ; @SLIC_REG_ICR
	.comm	_SLIC_ICR_INT_OFF,4,2           ; @SLIC_ICR_INT_OFF
	.comm	_SLIC_REG_ISP,4,2               ; @SLIC_REG_ISP
	.comm	_SLIC_UPR_CONFIG,4,2            ; @SLIC_UPR_CONFIG
	.comm	_SLIC_ISR_UPC,4,2               ; @SLIC_ISR_UPC
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"timed out while waiting for eeprom data\n"

	.comm	_ETIMEDOUT,4,2                  ; @ETIMEDOUT
	.comm	_SLIC_REG_ISR,4,2               ; @SLIC_REG_ISR
	.comm	_SLIC_MODEL_OASIS,8,3           ; @SLIC_MODEL_OASIS
l_.str.1:                               ; @.str.1
	.asciz	"invalid checksum in eeprom\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_slic_read_eeprom
.subsections_via_symbols
