	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_edac_mc_find_csrow_by_page     ## -- Begin function edac_mc_find_csrow_by_page
	.p2align	4, 0x90
_edac_mc_find_csrow_by_page:            ## @edac_mc_find_csrow_by_page
	.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	%rsi, %r14
	movq	%rdi, %r15
	movq	8(%rdi), %rbx
	movl	4(%rdi), %edx
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	movq	%r14, %rcx
	xorl	%eax, %eax
	callq	_edac_dbg
	cmpl	$0, (%r15)
	jle	LBB0_15
## %bb.1:
	movq	%rbx, %r9
	xorl	%r13d, %r13d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_2 Depth=1
	incq	%r13
	movslq	(%r15), %rax
	cmpq	%rax, %r13
	jge	LBB0_15
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_6 Depth 2
                                        ##     Child Loop BB0_9 Depth 2
	movq	(%r9,%r13,8), %r12
	movl	(%r12), %esi
	testl	%esi, %esi
	jle	LBB0_14
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	32(%r12), %rdx
	leaq	-1(%rsi), %rcx
	movl	%esi, %r8d
	andl	$3, %r8d
	cmpq	$3, %rcx
	jae	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%edi, %edi
	xorl	%ecx, %ecx
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	andl	$-4, %esi
	xorl	%edi, %edi
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_6:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%rdx,%rdi,8), %rbx
	movq	8(%rdx,%rdi,8), %rax
	movq	(%rbx), %rbx
	addl	(%rbx), %ecx
	movq	(%rax), %rax
	addl	(%rax), %ecx
	movq	16(%rdx,%rdi,8), %rax
	movq	(%rax), %rax
	addl	(%rax), %ecx
	movq	24(%rdx,%rdi,8), %rax
	movq	(%rax), %rax
	addl	(%rax), %ecx
	addq	$4, %rdi
	cmpq	%rdi, %rsi
	jne	LBB0_6
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	testq	%r8, %r8
	je	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	leaq	(%rdx,%rdi,8), %rdx
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_9:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%rdx,%rsi,8), %rax
	movq	(%rax), %rax
	addl	(%rax), %ecx
	incq	%rsi
	cmpq	%rsi, %r8
	jne	LBB0_9
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	testl	%ecx, %ecx
	je	LBB0_14
## %bb.11:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	4(%r15), %edx
	movq	8(%r12), %rcx
	movq	%r9, %rbx
	movq	16(%r12), %r9
	movq	24(%r12), %rax
	movq	%rax, (%rsp)
	movl	$3, %edi
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %r8
	xorl	%eax, %eax
	callq	_edac_dbg
	movq	%rbx, %r9
	movq	8(%r12), %rax
	cmpq	%r14, %rax
	ja	LBB0_14
## %bb.12:                              ##   in Loop: Header=BB0_2 Depth=1
	cmpq	%r14, 16(%r12)
	jb	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_2 Depth=1
	xorq	%r14, %rax
	testq	%rax, 24(%r12)
	jne	LBB0_14
	jmp	LBB0_16
LBB0_15:
	movq	_KERN_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdx
	movq	%r15, %rdi
	movq	%r14, %rcx
	callq	_edac_mc_printk
	movl	$-1, %r13d
LBB0_16:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"MC%d: 0x%lx\n"

L_.str.1:                               ## @.str.1
	.asciz	"MC%d: first(0x%lx) page(0x%lx) last(0x%lx) mask(0x%lx)\n"

	.comm	_KERN_ERR,4,2                   ## @KERN_ERR
L_.str.2:                               ## @.str.2
	.asciz	"could not look up page error address %lx\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_edac_mc_find_csrow_by_page     ; -- Begin function edac_mc_find_csrow_by_page
	.p2align	2
_edac_mc_find_csrow_by_page:            ; @edac_mc_find_csrow_by_page
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x19, x1
	mov	x20, x0
	ldr	x23, [x0, #8]
	ldr	w2, [x0, #4]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	mov	x3, x19
	bl	_edac_dbg
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_15
; %bb.1:
	mov	x21, #0
Lloh2:
	adrp	x22, l_.str.1@PAGE
Lloh3:
	add	x22, x22, l_.str.1@PAGEOFF
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x21, x21, #1
	ldrsw	x8, [x20]
	cmp	x21, x8
	b.ge	LBB0_15
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
                                        ;     Child Loop BB0_10 Depth 2
	ldr	x24, [x23, x21, lsl #3]
	ldr	w8, [x24]
	cmp	w8, #1
	b.lt	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x9, [x24, #32]
	cmp	w8, #1
	b.ne	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x10, #0
	mov	w11, #0
	b	LBB0_9
LBB0_6:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	w11, #0
	mov	w12, #0
	and	x10, x8, #0xfffffffe
	add	x13, x9, #8
	mov	x14, x10
LBB0_7:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldp	x15, x16, [x13, #-8]
	ldr	x15, [x15]
	ldr	x16, [x16]
	ldr	w15, [x15]
	ldr	w16, [x16]
	add	w11, w11, w15
	add	w12, w12, w16
	add	x13, x13, #16
	subs	x14, x14, #2
	b.ne	LBB0_7
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
	add	w11, w12, w11
	cmp	x10, x8
	b.eq	LBB0_11
LBB0_9:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x9, x9, x10, lsl #3
	sub	x8, x8, x10
LBB0_10:                                ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x10, [x9], #8
	ldr	x10, [x10]
	ldr	w10, [x10]
	add	w11, w11, w10
	subs	x8, x8, #1
	b.ne	LBB0_10
LBB0_11:                                ;   in Loop: Header=BB0_3 Depth=1
	cbz	w11, LBB0_2
; %bb.12:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	w2, [x20, #4]
	ldp	x3, x8, [x24, #8]
	ldr	x9, [x24, #24]
	stp	x8, x9, [sp, #8]
	str	x19, [sp]
	mov	w0, #3
	mov	x1, x22
	bl	_edac_dbg
	ldr	x8, [x24, #8]
	cmp	x8, x19
	b.hi	LBB0_2
; %bb.13:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	x9, [x24, #16]
	cmp	x9, x19
	b.lo	LBB0_2
; %bb.14:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	x9, [x24, #24]
	eor	x8, x8, x19
	tst	x9, x8
	b.ne	LBB0_2
	b	LBB0_16
LBB0_15:
Lloh4:
	adrp	x8, _KERN_ERR@GOTPAGE
Lloh5:
	ldr	x8, [x8, _KERN_ERR@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
Lloh7:
	adrp	x2, l_.str.2@PAGE
Lloh8:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, x20
	mov	x3, x19
	bl	_edac_mc_printk
	mov	w21, #-1
LBB0_16:
	mov	x0, x21
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"MC%d: 0x%lx\n"

l_.str.1:                               ; @.str.1
	.asciz	"MC%d: first(0x%lx) page(0x%lx) last(0x%lx) mask(0x%lx)\n"

	.comm	_KERN_ERR,4,2                   ; @KERN_ERR
l_.str.2:                               ; @.str.2
	.asciz	"could not look up page error address %lx\n"

.subsections_via_symbols
