	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_edac_create_sysfs_mci_device   ## -- Begin function edac_create_sysfs_mci_device
	.p2align	4, 0x90
_edac_create_sysfs_mci_device:          ## @edac_create_sysfs_mci_device
	.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, %rbx
	movq	%rdi, %r12
	leaq	8(%rdi), %r14
	movq	_mci_attr_type@GOTPCREL(%rip), %rax
	movq	%rax, 24(%rdi)
	movq	%r14, %rdi
	callq	_device_initialize
	movq	_mci_pdev@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r12)
	movq	%rbx, 8(%r12)
	movl	40(%r12), %edx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_set_name
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_dev_set_drvdata
	movq	%r14, %rdi
	callq	_pm_runtime_forbid
	movq	%r14, %rdi
	callq	_device_add
	movl	%eax, %r15d
	movq	%r14, %rdi
	callq	_dev_name
	testl	%r15d, %r15d
	js	LBB0_1
## %bb.2:
	leaq	L_.str.2(%rip), %rsi
	xorl	%r15d, %r15d
	xorl	%edi, %edi
	movl	%eax, %edx
	callq	_edac_dbg
	movl	(%r12), %eax
	testl	%eax, %eax
	jle	LBB0_8
## %bb.3:
	xorl	%ebx, %ebx
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	incq	%rbx
	movslq	%eax, %rcx
	cmpq	%rcx, %rbx
	jge	LBB0_8
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	32(%r12), %rcx
	movq	(%rcx,%rbx,8), %rsi
	cmpl	$0, 24(%rsi)
	je	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%r12, %rdi
	movl	%ebx, %edx
	callq	_edac_create_dimm_object
	testl	%eax, %eax
	jne	LBB0_9
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	(%r12), %eax
	jmp	LBB0_7
LBB0_8:
	movq	%r12, %rdi
	callq	_edac_create_debugfs_nodes
	jmp	LBB0_15
LBB0_1:
	leaq	L_.str.1(%rip), %rsi
	movl	$1, %edi
	movl	%eax, %edx
	callq	_edac_dbg
	movq	%r14, %rdi
	callq	_put_device
	jmp	LBB0_15
LBB0_9:
	movl	%eax, %r13d
	testl	%ebx, %ebx
	je	LBB0_14
## %bb.10:
	incq	%rbx
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_11 Depth=1
	decq	%rbx
	cmpq	$1, %rbx
	jle	LBB0_14
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movq	32(%r12), %rax
	movq	-16(%rax,%rbx,8), %rdi
	cmpl	$0, 24(%rdi)
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	callq	_device_unregister
	jmp	LBB0_13
LBB0_14:
	movq	%r14, %rdi
	callq	_device_unregister
	movl	%r13d, %r15d
LBB0_15:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_mci_attr_type,4,2              ## @mci_attr_type
	.comm	_mci_pdev,4,2                   ## @mci_pdev
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"mc%d"

L_.str.1:                               ## @.str.1
	.asciz	"failure: create device %s\n"

L_.str.2:                               ## @.str.2
	.asciz	"device %s created\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_edac_create_sysfs_mci_device   ; -- Begin function edac_create_sysfs_mci_device
	.p2align	2
_edac_create_sysfs_mci_device:          ; @edac_create_sysfs_mci_device
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x21, x1
	mov	x20, x0
	add	x19, x0, #8
Lloh0:
	adrp	x8, _mci_attr_type@GOTPAGE
Lloh1:
	ldr	x8, [x8, _mci_attr_type@GOTPAGEOFF]
	str	x8, [x0, #24]
	mov	x0, x19
	bl	_device_initialize
Lloh2:
	adrp	x8, _mci_pdev@GOTPAGE
Lloh3:
	ldr	x8, [x8, _mci_pdev@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	str	w8, [x20, #16]
	str	x21, [x20, #8]
	ldr	w2, [x20, #40]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_set_name
	mov	x0, x19
	mov	x1, x20
	bl	_dev_set_drvdata
	mov	x0, x19
	bl	_pm_runtime_forbid
	mov	x0, x19
	bl	_device_add
	mov	x21, x0
	mov	x0, x19
	bl	_dev_name
	mov	x2, x0
	tbnz	w21, #31, LBB0_8
; %bb.1:
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w0, #0
	bl	_edac_dbg
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.2:
	mov	x22, #0
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x22, x22, #1
	cmp	x22, w8, sxtw
	b.ge	LBB0_7
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x20, #32]
	ldr	x1, [x9, x22, lsl #3]
	ldr	w9, [x1, #24]
	cbz	w9, LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x20
	mov	x2, x22
	bl	_edac_create_dimm_object
	cbnz	w0, LBB0_9
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x20]
	b	LBB0_3
LBB0_7:
	mov	x0, x20
	bl	_edac_create_debugfs_nodes
	mov	w21, #0
	b	LBB0_15
LBB0_8:
Lloh9:
	adrp	x1, l_.str.1@PAGE
Lloh10:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #1
	bl	_edac_dbg
	mov	x0, x19
	bl	_put_device
	b	LBB0_15
LBB0_9:
	mov	x21, x0
	cbz	w22, LBB0_14
; %bb.10:
	sub	x22, x22, #1
	b	LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=1
	add	x8, x22, #1
	sub	x22, x22, #1
	cmp	x8, #1
	b.le	LBB0_14
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #32]
	ldr	x0, [x8, x22, lsl #3]
	ldr	w8, [x0, #24]
	cbz	w8, LBB0_11
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	bl	_device_unregister
	b	LBB0_11
LBB0_14:
	mov	x0, x19
	bl	_device_unregister
LBB0_15:
	mov	x0, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_mci_attr_type,4,2              ; @mci_attr_type
	.comm	_mci_pdev,4,2                   ; @mci_pdev
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"mc%d"

l_.str.1:                               ; @.str.1
	.asciz	"failure: create device %s\n"

l_.str.2:                               ; @.str.2
	.asciz	"device %s created\n"

.subsections_via_symbols
