	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_edac_device_handle_ue          ## -- Begin function edac_device_handle_ue
	.p2align	4, 0x90
_edac_device_handle_ue:                 ## @edac_device_handle_ue
	.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	%rcx, %r14
	movl	%esi, %ecx
	movq	%rdi, %rbx
	movl	(%rdi), %r8d
	testl	%esi, %esi
	js	LBB0_18
## %bb.1:
	cmpl	%ecx, %r8d
	jle	LBB0_18
## %bb.2:
	movl	%edx, %eax
	movq	16(%rbx), %r15
	movl	%ecx, %edx
	leaq	(%rdx,%rdx,2), %r12
	movl	(%r15,%r12,8), %r9d
	testl	%eax, %eax
	js	LBB0_19
## %bb.3:
	cmpl	%eax, %r9d
	jle	LBB0_19
## %bb.4:
	testl	%r9d, %r9d
	jle	LBB0_5
## %bb.6:
	movq	16(%r15,%r12,8), %rcx
	movl	%eax, %eax
	shlq	$4, %rax
	leaq	(%rcx,%rax), %r13
	incl	8(%rcx,%rax)
	jmp	LBB0_7
LBB0_18:
	movq	_KERN_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%rbx, %rdi
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_edac_device_printk             ## TAILCALL
LBB0_19:
	movq	_KERN_ERR@GOTPCREL(%rip), %rdx
	movl	(%rdx), %esi
	leaq	L_.str.1(%rip), %rdx
	movq	%rbx, %rdi
	movl	%eax, %r8d
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_edac_device_printk             ## TAILCALL
LBB0_5:
	xorl	%r13d, %r13d
LBB0_7:
	incl	8(%r15,%r12,8)
	incl	8(%rbx)
	movq	%rbx, %rdi
	callq	_edac_device_get_log_ue
	testq	%rax, %rax
	je	LBB0_12
## %bb.8:
	movq	_KERN_EMERG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	4(%rbx), %ecx
	movl	4(%r15,%r12,8), %r8d
	testq	%r13, %r13
	je	LBB0_9
## %bb.10:
	movq	(%r13), %r9
	jmp	LBB0_11
LBB0_9:
	leaq	L_.str.3(%rip), %r9
LBB0_11:
	movq	%r14, (%rsp)
	leaq	L_.str.2(%rip), %rdx
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_edac_device_printk
LBB0_12:
	movq	%rbx, %rdi
	callq	_edac_device_get_panic_on_ue
	testq	%rax, %rax
	je	LBB0_17
## %bb.13:
	movl	4(%rbx), %esi
	movl	4(%r15,%r12,8), %edx
	testq	%r13, %r13
	je	LBB0_14
## %bb.15:
	movq	(%r13), %rcx
	jmp	LBB0_16
LBB0_17:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	leaq	L_.str.3(%rip), %rcx
LBB0_16:
	leaq	L_.str.4(%rip), %rdi
	movq	%r14, %r8
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_panic                          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_KERN_ERR,4,2                   ## @KERN_ERR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"INTERNAL ERROR: 'instance' out of range (%d >= %d)\n"

L_.str.1:                               ## @.str.1
	.asciz	"INTERNAL ERROR: instance %d 'block' out of range (%d >= %d)\n"

	.comm	_KERN_EMERG,4,2                 ## @KERN_EMERG
L_.str.2:                               ## @.str.2
	.asciz	"UE: %s instance: %s block: %s '%s'\n"

L_.str.3:                               ## @.str.3
	.asciz	"N/A"

L_.str.4:                               ## @.str.4
	.asciz	"EDAC %s: UE instance: %s block %s '%s'\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_edac_device_handle_ue          ; -- Begin function edac_device_handle_ue
	.p2align	2
_edac_device_handle_ue:                 ; @edac_device_handle_ue
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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, x3
	mov	x3, x1
	mov	x20, x0
	ldr	w4, [x0]
	tbnz	w1, #31, LBB0_6
; %bb.1:
	cmp	w4, w3
	b.le	LBB0_6
; %bb.2:
	mov	x8, x2
	ldr	x21, [x20, #16]
	mov	w9, #24
	umull	x9, w3, w9
	ldr	w9, [x21, x9]
	tbnz	w2, #31, LBB0_7
; %bb.3:
	cmp	w9, w8
	b.le	LBB0_7
; %bb.4:
	mov	w22, w3
	cmp	w9, #1
	b.lt	LBB0_8
; %bb.5:
	mov	w9, #24
	madd	x9, x22, x9, x21
	ldr	x9, [x9, #16]
	add	x23, x9, w8, uxtw #4
	ldr	w8, [x23, #8]
	add	w8, w8, #1
	str	w8, [x23, #8]
	b	LBB0_9
LBB0_6:
Lloh0:
	adrp	x8, _KERN_ERR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _KERN_ERR@GOTPAGEOFF]
Lloh2:
	adrp	x2, l_.str@PAGE
Lloh3:
	add	x2, x2, l_.str@PAGEOFF
Lloh4:
	ldr	w1, [x8]
	mov	x0, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_edac_device_printk
LBB0_7:
Lloh5:
	adrp	x10, _KERN_ERR@GOTPAGE
Lloh6:
	ldr	x10, [x10, _KERN_ERR@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x10]
Lloh8:
	adrp	x2, l_.str.1@PAGE
Lloh9:
	add	x2, x2, l_.str.1@PAGEOFF
	str	x9, [sp]
	mov	x0, x20
	mov	x4, x8
	bl	_edac_device_printk
	b	LBB0_17
LBB0_8:
	mov	x23, #0
LBB0_9:
	mov	w8, #24
	madd	x8, x22, x8, x21
	ldr	w9, [x8, #8]
	add	w9, w9, #1
	str	w9, [x8, #8]
	ldr	w8, [x20, #8]
	add	w8, w8, #1
	str	w8, [x20, #8]
	mov	x0, x20
	bl	_edac_device_get_log_ue
	cbz	x0, LBB0_14
; %bb.10:
Lloh10:
	adrp	x8, _KERN_EMERG@GOTPAGE
Lloh11:
	ldr	x8, [x8, _KERN_EMERG@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	ldr	w3, [x20, #4]
	mov	w8, #24
	madd	x8, x22, x8, x21
	ldr	w4, [x8, #4]
	cbz	x23, LBB0_12
; %bb.11:
	ldr	x8, [x23]
	b	LBB0_13
LBB0_12:
Lloh13:
	adrp	x8, l_.str.3@PAGE
Lloh14:
	add	x8, x8, l_.str.3@PAGEOFF
LBB0_13:
Lloh15:
	adrp	x2, l_.str.2@PAGE
Lloh16:
	add	x2, x2, l_.str.2@PAGEOFF
	stp	x8, x19, [sp]
	mov	x0, x20
	bl	_edac_device_printk
LBB0_14:
	mov	x0, x20
	bl	_edac_device_get_panic_on_ue
	cbz	x0, LBB0_17
; %bb.15:
	ldr	w1, [x20, #4]
	mov	w8, #24
	madd	x8, x22, x8, x21
	ldr	w2, [x8, #4]
	cbz	x23, LBB0_18
; %bb.16:
	ldr	x3, [x23]
	b	LBB0_19
LBB0_17:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_18:
Lloh17:
	adrp	x3, l_.str.3@PAGE
Lloh18:
	add	x3, x3, l_.str.3@PAGEOFF
LBB0_19:
Lloh19:
	adrp	x0, l_.str.4@PAGE
Lloh20:
	add	x0, x0, l_.str.4@PAGEOFF
	mov	x4, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_panic
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_KERN_ERR,4,2                   ; @KERN_ERR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"INTERNAL ERROR: 'instance' out of range (%d >= %d)\n"

l_.str.1:                               ; @.str.1
	.asciz	"INTERNAL ERROR: instance %d 'block' out of range (%d >= %d)\n"

	.comm	_KERN_EMERG,4,2                 ; @KERN_EMERG
l_.str.2:                               ; @.str.2
	.asciz	"UE: %s instance: %s block: %s '%s'\n"

l_.str.3:                               ; @.str.3
	.asciz	"N/A"

l_.str.4:                               ; @.str.4
	.asciz	"EDAC %s: UE instance: %s block %s '%s'\n"

.subsections_via_symbols
