	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i82860_init_csrows
_i82860_init_csrows:                    ## @i82860_init_csrows
	.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
	movq	%rsi, %rcx
	movq	%rdi, %r14
	movq	_I82860_MCHCFG@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	leaq	-44(%rbp), %rdx
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	movq	%rcx, %rdi
	callq	_pci_read_config_word
	andl	$384, -44(%rbp)                 ## imm = 0x180
	cmpl	$0, (%r14)
	jle	LBB0_7
## %bb.1:
	xorl	%r12d, %r12d
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	(%rax), %eax
	movl	%eax, 12(%r13)
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	incq	%rbx
	movslq	(%r14), %rax
	addq	$2, %r12
	cmpq	%rax, %rbx
	jge	LBB0_7
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r14), %rax
	movq	(%rax,%rbx,8), %r14
	movq	16(%r14), %rax
	movq	(%rax), %rax
	movq	(%rax), %r13
	movq	_I82860_GBA@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	%r12, %rsi
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	leaq	-48(%rbp), %rdx
	callq	_pci_read_config_word
	movq	_I82860_GBA_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	-48(%rbp), %eax
	movq	_I82860_GBA_SHIFT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	_PAGE_SHIFT@GOTPCREL(%rip), %rdx
	subl	(%rdx), %ecx
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %eax
	movslq	%eax, %r15
	movl	$3, %edi
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edx
	movq	%r15, %rcx
	callq	_edac_dbg
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	cmpq	%r15, %rcx
	je	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rcx, (%r14)
	leaq	-1(%r15), %rax
	movq	%rax, 8(%r14)
	movq	%r15, %rax
	subq	%rcx, %rax
	movq	%rax, (%r13)
	movl	$4096, 8(%r13)                  ## imm = 0x1000
	movq	_MEM_RMBS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%r13)
	movq	_DEV_UNKNOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r13)
	cmpl	$0, -44(%rbp)
	movq	_EDAC_SECDED@GOTPCREL(%rip), %rax
	jne	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_EDAC_NONE@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_7:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_I82860_MCHCFG,8,3              ## @I82860_MCHCFG
	.comm	_I82860_GBA,8,3                 ## @I82860_GBA
	.comm	_I82860_GBA_MASK,4,2            ## @I82860_GBA_MASK
	.comm	_I82860_GBA_SHIFT,4,2           ## @I82860_GBA_SHIFT
	.comm	_PAGE_SHIFT,4,2                 ## @PAGE_SHIFT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"(%d) cumul_size 0x%x\n"

	.comm	_MEM_RMBS,4,2                   ## @MEM_RMBS
	.comm	_DEV_UNKNOWN,4,2                ## @DEV_UNKNOWN
	.comm	_EDAC_SECDED,4,2                ## @EDAC_SECDED
	.comm	_EDAC_NONE,4,2                  ## @EDAC_NONE
	.no_dead_strip	_i82860_init_csrows
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i82860_init_csrows
_i82860_init_csrows:                    ; @i82860_init_csrows
	.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
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _I82860_MCHCFG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _I82860_MCHCFG@GOTPAGEOFF]
Lloh2:
	ldr	x1, [x8]
	add	x2, sp, #12
	mov	x0, x19
	bl	_pci_read_config_word
	ldr	w8, [sp, #12]
	and	w8, w8, #0x180
	str	w8, [sp, #12]
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.1:
	mov	x24, #0
	mov	x21, #0
	mov	x25, #0
Lloh3:
	adrp	x28, _PAGE_SHIFT@GOTPAGE
Lloh4:
	ldr	x28, [x28, _PAGE_SHIFT@GOTPAGEOFF]
Lloh5:
	adrp	x22, l_.str@PAGE
Lloh6:
	add	x22, x22, l_.str@PAGEOFF
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x21, x21, #1
	ldrsw	x8, [x20]
	add	x24, x24, #2
	cmp	x21, x8
	b.ge	LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #8]
	ldr	x27, [x8, x21, lsl #3]
	ldr	x8, [x27, #16]
	ldr	x8, [x8]
	ldr	x26, [x8]
Lloh7:
	adrp	x8, _I82860_GBA@GOTPAGE
Lloh8:
	ldr	x8, [x8, _I82860_GBA@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
	add	x1, x24, x8
	add	x2, sp, #8
	mov	x0, x19
	bl	_pci_read_config_word
	ldr	w8, [sp, #8]
Lloh10:
	adrp	x9, _I82860_GBA_MASK@GOTPAGE
Lloh11:
	ldr	x9, [x9, _I82860_GBA_MASK@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	and	w8, w9, w8
Lloh13:
	adrp	x9, _I82860_GBA_SHIFT@GOTPAGE
Lloh14:
	ldr	x9, [x9, _I82860_GBA_SHIFT@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	ldr	w10, [x28]
	sub	w9, w9, w10
	lsl	w8, w8, w9
	sxtw	x23, w8
	mov	w0, #3
	mov	x1, x22
	mov	x2, x21
	mov	x3, x23
	bl	_edac_dbg
	cmp	x25, x23
	b.eq	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	sub	x8, x23, #1
	stp	x25, x8, [x27]
	sub	x8, x23, x25
	str	x8, [x26]
	mov	w8, #4096
	str	w8, [x26, #8]
Lloh16:
	adrp	x8, _MEM_RMBS@GOTPAGE
Lloh17:
	ldr	x8, [x8, _MEM_RMBS@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
Lloh19:
	adrp	x9, _DEV_UNKNOWN@GOTPAGE
Lloh20:
	ldr	x9, [x9, _DEV_UNKNOWN@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
	stp	w9, w8, [x26, #16]
	ldr	w8, [sp, #12]
	cmp	w8, #0
Lloh22:
	adrp	x8, _EDAC_SECDED@GOTPAGE
Lloh23:
	ldr	x8, [x8, _EDAC_SECDED@GOTPAGEOFF]
Lloh24:
	adrp	x9, _EDAC_NONE@GOTPAGE
Lloh25:
	ldr	x9, [x9, _EDAC_NONE@GOTPAGEOFF]
	csel	x8, x9, x8, eq
	ldr	w8, [x8]
	str	w8, [x26, #12]
	mov	x25, x23
	b	LBB0_2
LBB0_5:
	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 AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_I82860_MCHCFG,8,3              ; @I82860_MCHCFG
	.comm	_I82860_GBA,8,3                 ; @I82860_GBA
	.comm	_I82860_GBA_MASK,4,2            ; @I82860_GBA_MASK
	.comm	_I82860_GBA_SHIFT,4,2           ; @I82860_GBA_SHIFT
	.comm	_PAGE_SHIFT,4,2                 ; @PAGE_SHIFT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"(%d) cumul_size 0x%x\n"

	.comm	_MEM_RMBS,4,2                   ; @MEM_RMBS
	.comm	_DEV_UNKNOWN,4,2                ; @DEV_UNKNOWN
	.comm	_EDAC_SECDED,4,2                ; @EDAC_SECDED
	.comm	_EDAC_NONE,4,2                  ; @EDAC_NONE
	.no_dead_strip	_i82860_init_csrows
.subsections_via_symbols
