	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i5100_read_log
_i5100_read_log:                        ## @i5100_read_log
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, -64(%rbp)                 ## 4-byte Spill
	movl	%edx, -60(%rbp)                 ## 4-byte Spill
	xorl	%eax, %eax
	movl	%esi, -68(%rbp)                 ## 4-byte Spill
	testl	%esi, %esi
	setne	%al
	movq	%rdi, -80(%rbp)                 ## 8-byte Spill
	movq	(%rdi), %rcx
	movq	(%rcx,%rax,8), %rbx
	movq	_I5100_VALIDLOG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-48(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_pci_read_config_dword
	movl	-48(%rbp), %edi
	callq	_i5100_validlog_redmemvalid
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	_I5100_REDMEMA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-44(%rbp), %r14
	movq	%rbx, %rdi
	movq	%r14, %rdx
	callq	_pci_read_config_dword
	movl	-44(%rbp), %eax
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	movq	_I5100_REDMEMB@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movq	%r14, %rdx
	callq	_pci_read_config_dword
	movl	-44(%rbp), %edi
	callq	_i5100_redmemb_ecc_locator
	jmp	LBB0_3
LBB0_1:
	movl	$0, -56(%rbp)                   ## 4-byte Folded Spill
LBB0_3:
	movl	-48(%rbp), %edi
	callq	_i5100_validlog_recmemvalid
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	_I5100_RECMEMA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-44(%rbp), %r12
	movq	%rbx, %rdi
	movq	%r12, %rdx
	callq	_pci_read_config_dword
	movl	-44(%rbp), %edi
	callq	_i5100_recmema_merr
	movl	%eax, %r14d
	movl	-44(%rbp), %edi
	callq	_i5100_recmema_bank
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movl	-44(%rbp), %edi
	callq	_i5100_recmema_rank
	movl	%eax, %r15d
	movq	_I5100_RECMEMB@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movq	%r12, %rdx
	callq	_pci_read_config_dword
	movl	-44(%rbp), %edi
	callq	_i5100_recmemb_cas
	movl	%eax, %r12d
	movl	-44(%rbp), %edi
	callq	_i5100_recmemb_ras
	movl	%eax, %r13d
	testl	%r14d, %r14d
	movl	-64(%rbp), %edi                 ## 4-byte Reload
	cmovel	-60(%rbp), %edi                 ## 4-byte Folded Reload
	callq	_i5100_err_msg
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movl	-68(%rbp), %esi                 ## 4-byte Reload
	movl	-52(%rbp), %edx                 ## 4-byte Reload
	movl	%r15d, %ecx
	movl	-56(%rbp), %r8d                 ## 4-byte Reload
	movl	%r12d, %r9d
	pushq	%rax
	pushq	%r13
	callq	_i5100_handle_ce
	addq	$16, %rsp
LBB0_5:
	movl	-48(%rbp), %edi
	callq	_i5100_validlog_nrecmemvalid
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	_I5100_NRECMEMA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-44(%rbp), %r12
	movq	%rbx, %rdi
	movq	%r12, %rdx
	callq	_pci_read_config_dword
	movl	-44(%rbp), %edi
	callq	_i5100_nrecmema_merr
	movl	%eax, %r14d
	movl	-44(%rbp), %edi
	callq	_i5100_nrecmema_bank
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movl	-44(%rbp), %edi
	callq	_i5100_nrecmema_rank
	movl	%eax, %r15d
	movq	_I5100_NRECMEMB@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movq	%r12, %rdx
	callq	_pci_read_config_dword
	movl	-44(%rbp), %edi
	callq	_i5100_nrecmemb_cas
	movl	%eax, %r12d
	movl	-44(%rbp), %edi
	callq	_i5100_nrecmemb_ras
	movl	%eax, %r13d
	testl	%r14d, %r14d
	movl	-64(%rbp), %edi                 ## 4-byte Reload
	cmovel	-60(%rbp), %edi                 ## 4-byte Folded Reload
	callq	_i5100_err_msg
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movl	-68(%rbp), %esi                 ## 4-byte Reload
	movl	-52(%rbp), %edx                 ## 4-byte Reload
	movl	%r15d, %ecx
	movl	-56(%rbp), %r8d                 ## 4-byte Reload
	movl	%r12d, %r9d
	pushq	%rax
	pushq	%r13
	callq	_i5100_handle_ue
	addq	$16, %rsp
LBB0_7:
	movq	_I5100_VALIDLOG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-48(%rbp), %edx
	movq	%rbx, %rdi
	callq	_pci_write_config_dword
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_I5100_VALIDLOG,4,2             ## @I5100_VALIDLOG
	.comm	_I5100_REDMEMA,4,2              ## @I5100_REDMEMA
	.comm	_I5100_REDMEMB,4,2              ## @I5100_REDMEMB
	.comm	_I5100_RECMEMA,4,2              ## @I5100_RECMEMA
	.comm	_I5100_RECMEMB,4,2              ## @I5100_RECMEMB
	.comm	_I5100_NRECMEMA,4,2             ## @I5100_NRECMEMA
	.comm	_I5100_NRECMEMB,4,2             ## @I5100_NRECMEMB
	.no_dead_strip	_i5100_read_log
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i5100_read_log
_i5100_read_log:                        ; @i5100_read_log
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	str	w3, [sp, #4]                    ; 4-byte Folded Spill
	mov	x23, x2
	mov	x20, x1
	mov	x21, x0
	cmp	w1, #0
	cset	w8, ne
	ldr	x9, [x0]
	ldr	x19, [x9, w8, uxtw #3]
Lloh0:
	adrp	x8, _I5100_VALIDLOG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _I5100_VALIDLOG@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x2, sp, #12
	mov	x0, x19
	bl	_pci_read_config_dword
	ldr	w0, [sp, #12]
	bl	_i5100_validlog_redmemvalid
	cbz	x0, LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _I5100_REDMEMA@GOTPAGE
Lloh4:
	ldr	x8, [x8, _I5100_REDMEMA@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	add	x2, sp, #8
	mov	x0, x19
	bl	_pci_read_config_dword
	ldr	w24, [sp, #8]
Lloh6:
	adrp	x8, _I5100_REDMEMB@GOTPAGE
Lloh7:
	ldr	x8, [x8, _I5100_REDMEMB@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	add	x2, sp, #8
	mov	x0, x19
	bl	_pci_read_config_dword
	ldr	w0, [sp, #8]
	bl	_i5100_redmemb_ecc_locator
	b	LBB0_3
LBB0_2:
	mov	w24, #0
LBB0_3:
	ldr	w0, [sp, #12]
	bl	_i5100_validlog_recmemvalid
	cbz	x0, LBB0_5
; %bb.4:
Lloh9:
	adrp	x8, _I5100_RECMEMA@GOTPAGE
Lloh10:
	ldr	x8, [x8, _I5100_RECMEMA@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	add	x2, sp, #8
	mov	x0, x19
	bl	_pci_read_config_dword
	ldr	w0, [sp, #8]
	bl	_i5100_recmema_merr
	mov	x25, x0
	ldr	w0, [sp, #8]
	bl	_i5100_recmema_bank
	mov	x26, x0
	ldr	w0, [sp, #8]
	bl	_i5100_recmema_rank
	mov	x27, x0
Lloh12:
	adrp	x8, _I5100_RECMEMB@GOTPAGE
Lloh13:
	ldr	x8, [x8, _I5100_RECMEMB@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	add	x2, sp, #8
	mov	x0, x19
	bl	_pci_read_config_dword
	ldr	w0, [sp, #8]
	bl	_i5100_recmemb_cas
	mov	x28, x0
	ldr	w0, [sp, #8]
	bl	_i5100_recmemb_ras
	mov	x22, x0
	cmp	w25, #0
	ldr	w8, [sp, #4]                    ; 4-byte Folded Reload
	csel	w0, w23, w8, eq
	bl	_i5100_err_msg
	mov	x7, x0
	mov	x0, x21
	mov	x1, x20
	mov	x2, x26
	mov	x3, x27
	mov	x4, x24
	mov	x5, x28
	mov	x6, x22
	bl	_i5100_handle_ce
LBB0_5:
	ldr	w0, [sp, #12]
	bl	_i5100_validlog_nrecmemvalid
	cbz	x0, LBB0_7
; %bb.6:
Lloh15:
	adrp	x8, _I5100_NRECMEMA@GOTPAGE
Lloh16:
	ldr	x8, [x8, _I5100_NRECMEMA@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	add	x2, sp, #8
	mov	x0, x19
	bl	_pci_read_config_dword
	ldr	w0, [sp, #8]
	bl	_i5100_nrecmema_merr
	mov	x22, x0
	ldr	w0, [sp, #8]
	bl	_i5100_nrecmema_bank
	mov	x25, x0
	ldr	w0, [sp, #8]
	bl	_i5100_nrecmema_rank
	mov	x26, x0
Lloh18:
	adrp	x8, _I5100_NRECMEMB@GOTPAGE
Lloh19:
	ldr	x8, [x8, _I5100_NRECMEMB@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	add	x2, sp, #8
	mov	x0, x19
	bl	_pci_read_config_dword
	ldr	w0, [sp, #8]
	bl	_i5100_nrecmemb_cas
	mov	x27, x0
	ldr	w0, [sp, #8]
	bl	_i5100_nrecmemb_ras
	mov	x28, x0
	cmp	w22, #0
	ldr	w8, [sp, #4]                    ; 4-byte Folded Reload
	csel	w0, w23, w8, eq
	bl	_i5100_err_msg
	mov	x7, x0
	mov	x0, x21
	mov	x1, x20
	mov	x2, x25
	mov	x3, x26
	mov	x4, x24
	mov	x5, x27
	mov	x6, x28
	bl	_i5100_handle_ue
LBB0_7:
Lloh21:
	adrp	x8, _I5100_VALIDLOG@GOTPAGE
Lloh22:
	ldr	x8, [x8, _I5100_VALIDLOG@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	ldr	w2, [sp, #12]
	mov	x0, x19
	bl	_pci_write_config_dword
	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
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_I5100_VALIDLOG,4,2             ; @I5100_VALIDLOG
	.comm	_I5100_REDMEMA,4,2              ; @I5100_REDMEMA
	.comm	_I5100_REDMEMB,4,2              ; @I5100_REDMEMB
	.comm	_I5100_RECMEMA,4,2              ; @I5100_RECMEMA
	.comm	_I5100_RECMEMB,4,2              ; @I5100_RECMEMB
	.comm	_I5100_NRECMEMA,4,2             ; @I5100_NRECMEMA
	.comm	_I5100_NRECMEMB,4,2             ; @I5100_NRECMEMB
	.no_dead_strip	_i5100_read_log
.subsections_via_symbols
