	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_edac_mc_add_mc_with_groups     ## -- Begin function edac_mc_add_mc_with_groups
	.p2align	4, 0x90
_edac_mc_add_mc_with_groups:            ## @edac_mc_add_mc_with_groups
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	leaq	L_.str(%rip), %rsi
	xorl	%edi, %edi
	callq	_edac_dbg
	movq	_mem_ctls_mutex@GOTPCREL(%rip), %rdi
	callq	_mutex_lock
	movq	_edac_mc_owner@GOTPCREL(%rip), %r12
	movq	(%r12), %rax
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	cmpq	8(%r14), %rax
	jne	LBB0_5
LBB0_2:
	movq	%r14, %rdi
	callq	_add_mc_to_global_list
	testq	%rax, %rax
	jne	LBB0_6
## %bb.3:
	movq	_jiffies@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 44(%r14)
	xorl	%eax, %eax
	callq	_edac_get_sysfs_subsys
	movl	%eax, 40(%r14)
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_edac_create_sysfs_mci_device
	testq	%rax, %rax
	je	LBB0_8
## %bb.4:
	movq	_KERN_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_edac_mc_printk
	movq	%r14, %rdi
	callq	_del_mc_from_global_list
	jmp	LBB0_6
LBB0_5:
	movq	_EPERM@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_6:
	negl	%ebx
LBB0_7:
	movq	_mem_ctls_mutex@GOTPCREL(%rip), %rdi
	callq	_mutex_unlock
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	cmpq	$0, 32(%r14)
	je	LBB0_10
## %bb.9:
	movq	_OP_RUNNING_POLL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r14)
	leaq	28(%r14), %rbx
	movq	_edac_mc_workq_function@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_INIT_DELAYED_WORK
	xorl	%eax, %eax
	callq	_edac_mc_get_poll_msec
	movl	%eax, %edi
	callq	_msecs_to_jiffies
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_edac_queue_work
	movl	16(%r14), %edi
	jmp	LBB0_11
LBB0_10:
	movq	_OP_RUNNING_INTERRUPT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%edi, 16(%r14)
LBB0_11:
	movq	_KERN_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	8(%r14), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	24(%r14), %r13d
	movl	20(%r14), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	callq	_edac_op_state_to_string
	movl	%eax, (%rsp)
	leaq	L_.str.2(%rip), %rdx
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	movl	%r15d, %esi
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	%r13d, %r8d
	movl	-44(%rbp), %r9d                 ## 4-byte Reload
	xorl	%eax, %eax
	callq	_edac_mc_printk
	movq	8(%r14), %rax
	movq	%rax, (%r12)
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"\n"

	.comm	_mem_ctls_mutex,4,2             ## @mem_ctls_mutex
	.comm	_edac_mc_owner,8,3              ## @edac_mc_owner
	.comm	_EPERM,4,2                      ## @EPERM
	.comm	_jiffies,4,2                    ## @jiffies
	.comm	_KERN_WARNING,4,2               ## @KERN_WARNING
L_.str.1:                               ## @.str.1
	.asciz	"failed to create sysfs device\n"

	.comm	_OP_RUNNING_POLL,4,2            ## @OP_RUNNING_POLL
	.comm	_edac_mc_workq_function,4,2     ## @edac_mc_workq_function
	.comm	_OP_RUNNING_INTERRUPT,4,2       ## @OP_RUNNING_INTERRUPT
	.comm	_KERN_INFO,4,2                  ## @KERN_INFO
L_.str.2:                               ## @.str.2
	.asciz	"Giving out device to module %s controller %s: DEV %s (%s)\n"

	.comm	_edac_debug_level,4,2           ## @edac_debug_level
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_edac_mc_add_mc_with_groups     ; -- Begin function edac_mc_add_mc_with_groups
	.p2align	2
_edac_mc_add_mc_with_groups:            ; @edac_mc_add_mc_with_groups
	.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	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w22, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #0
	bl	_edac_dbg
Lloh5:
	adrp	x0, _mem_ctls_mutex@GOTPAGE
Lloh6:
	ldr	x0, [x0, _mem_ctls_mutex@GOTPAGEOFF]
	bl	_mutex_lock
Lloh7:
	adrp	x21, _edac_mc_owner@GOTPAGE
Lloh8:
	ldr	x21, [x21, _edac_mc_owner@GOTPAGEOFF]
	ldr	x8, [x21]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	x9, [x19, #8]
	cmp	x8, x9
	b.ne	LBB0_5
LBB0_2:
	mov	x0, x19
	bl	_add_mc_to_global_list
	cbnz	x0, LBB0_6
; %bb.3:
Lloh9:
	adrp	x8, _jiffies@GOTPAGE
Lloh10:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	str	w8, [x19, #44]
	bl	_edac_get_sysfs_subsys
	str	w0, [x19, #40]
	mov	x0, x19
	mov	x1, x20
	bl	_edac_create_sysfs_mci_device
	cbz	x0, LBB0_8
; %bb.4:
Lloh12:
	adrp	x8, _KERN_WARNING@GOTPAGE
Lloh13:
	ldr	x8, [x8, _KERN_WARNING@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
Lloh15:
	adrp	x2, l_.str.1@PAGE
Lloh16:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_edac_mc_printk
	mov	x0, x19
	bl	_del_mc_from_global_list
	b	LBB0_6
LBB0_5:
Lloh17:
	adrp	x8, _EPERM@GOTPAGE
Lloh18:
	ldr	x8, [x8, _EPERM@GOTPAGEOFF]
Lloh19:
	ldr	w22, [x8]
LBB0_6:
	neg	w20, w22
LBB0_7:
Lloh20:
	adrp	x0, _mem_ctls_mutex@GOTPAGE
Lloh21:
	ldr	x0, [x0, _mem_ctls_mutex@GOTPAGEOFF]
	bl	_mutex_unlock
	mov	x0, x20
	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
LBB0_8:
	ldr	x8, [x19, #32]
	cbz	x8, LBB0_10
; %bb.9:
Lloh22:
	adrp	x8, _OP_RUNNING_POLL@GOTPAGE
Lloh23:
	ldr	x8, [x8, _OP_RUNNING_POLL@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	str	w8, [x19, #16]
	add	x20, x19, #28
Lloh25:
	adrp	x8, _edac_mc_workq_function@GOTPAGE
Lloh26:
	ldr	x8, [x8, _edac_mc_workq_function@GOTPAGEOFF]
Lloh27:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_INIT_DELAYED_WORK
	bl	_edac_mc_get_poll_msec
	bl	_msecs_to_jiffies
	mov	x1, x0
	mov	x0, x20
	bl	_edac_queue_work
	ldr	w0, [x19, #16]
	b	LBB0_11
LBB0_10:
Lloh28:
	adrp	x8, _OP_RUNNING_INTERRUPT@GOTPAGE
Lloh29:
	ldr	x8, [x8, _OP_RUNNING_INTERRUPT@GOTPAGEOFF]
Lloh30:
	ldr	w0, [x8]
	str	w0, [x19, #16]
LBB0_11:
Lloh31:
	adrp	x8, _KERN_INFO@GOTPAGE
Lloh32:
	ldr	x8, [x8, _KERN_INFO@GOTPAGEOFF]
Lloh33:
	ldr	w20, [x8]
	ldr	x22, [x19, #8]
	ldp	w24, w23, [x19, #20]
	bl	_edac_op_state_to_string
                                        ; kill: def $w0 killed $w0 def $x0
	stp	x24, x0, [sp, #16]
	stp	x22, x23, [sp]
Lloh34:
	adrp	x2, l_.str.2@PAGE
Lloh35:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, x19
	mov	x1, x20
	bl	_edac_mc_printk
	mov	w20, #0
	ldr	x8, [x19, #8]
	str	x8, [x21]
	b	LBB0_7
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"\n"

	.comm	_mem_ctls_mutex,4,2             ; @mem_ctls_mutex
	.comm	_edac_mc_owner,8,3              ; @edac_mc_owner
	.comm	_EPERM,4,2                      ; @EPERM
	.comm	_jiffies,4,2                    ; @jiffies
	.comm	_KERN_WARNING,4,2               ; @KERN_WARNING
l_.str.1:                               ; @.str.1
	.asciz	"failed to create sysfs device\n"

	.comm	_OP_RUNNING_POLL,4,2            ; @OP_RUNNING_POLL
	.comm	_edac_mc_workq_function,4,2     ; @edac_mc_workq_function
	.comm	_OP_RUNNING_INTERRUPT,4,2       ; @OP_RUNNING_INTERRUPT
	.comm	_KERN_INFO,4,2                  ; @KERN_INFO
l_.str.2:                               ; @.str.2
	.asciz	"Giving out device to module %s controller %s: DEV %s (%s)\n"

	.comm	_edac_debug_level,4,2           ; @edac_debug_level
.subsections_via_symbols
