	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_edac_device_register_sysfs_main_kobj ## -- Begin function edac_device_register_sysfs_main_kobj
	.p2align	4, 0x90
_edac_device_register_sysfs_main_kobj:  ## @edac_device_register_sysfs_main_kobj
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	leaq	L_.str(%rip), %rsi
	xorl	%r14d, %r14d
	movl	$1, %edi
	xorl	%eax, %eax
	callq	_edac_dbg
	xorl	%eax, %eax
	callq	_edac_get_sysfs_subsys
	movq	%rax, %r12
	movq	%rax, 16(%rbx)
	leaq	8(%rbx), %r15
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movq	_THIS_MODULE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%edi, (%rbx)
	callq	_try_module_get
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	(%r12), %rdx
	movl	4(%rbx), %r8d
	movq	_ktype_device_ctrl@GOTPCREL(%rip), %rsi
	leaq	L_.str.1(%rip), %rcx
	movq	%r15, %rdi
	callq	_kobject_init_and_add
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movl	%eax, %r14d
	movl	4(%rbx), %edx
	leaq	L_.str.2(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	callq	_edac_dbg
	movl	(%rbx), %edi
	callq	_module_put
	jmp	LBB0_5
LBB0_1:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	subl	(%rax), %r14d
	jmp	LBB0_5
LBB0_4:
	movq	_KOBJ_ADD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_kobject_uevent
	movl	4(%rbx), %edx
	leaq	L_.str.3(%rip), %rsi
	xorl	%r14d, %r14d
	movl	$4, %edi
	xorl	%eax, %eax
	callq	_edac_dbg
LBB0_5:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"\n"

	.comm	_THIS_MODULE,4,2                ## @THIS_MODULE
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_ktype_device_ctrl,4,2          ## @ktype_device_ctrl
L_.str.1:                               ## @.str.1
	.asciz	"%s"

L_.str.2:                               ## @.str.2
	.asciz	"Failed to register '.../edac/%s'\n"

	.comm	_KOBJ_ADD,4,2                   ## @KOBJ_ADD
L_.str.3:                               ## @.str.3
	.asciz	"Registered '.../edac/%s' kobject\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_edac_device_register_sysfs_main_kobj ; -- Begin function edac_device_register_sysfs_main_kobj
	.p2align	2
_edac_device_register_sysfs_main_kobj:  ; @edac_device_register_sysfs_main_kobj
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x19, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_edac_dbg
	bl	_edac_get_sysfs_subsys
	mov	x21, x0
	str	x0, [x19, #16]
	add	x20, x19, #8
	mov	x0, x20
	mov	w1, #0
	mov	w2, #4
	bl	_memset
Lloh2:
	adrp	x8, _THIS_MODULE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _THIS_MODULE@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	str	w0, [x19]
	bl	_try_module_get
	cbz	w0, LBB0_3
; %bb.1:
	ldr	x2, [x21]
	ldr	w4, [x19, #4]
Lloh5:
	adrp	x1, _ktype_device_ctrl@GOTPAGE
Lloh6:
	ldr	x1, [x1, _ktype_device_ctrl@GOTPAGEOFF]
Lloh7:
	adrp	x3, l_.str.1@PAGE
Lloh8:
	add	x3, x3, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_kobject_init_and_add
	mov	x21, x0
	cbz	w0, LBB0_4
; %bb.2:
	ldr	w8, [x19, #4]
	str	x8, [sp]
Lloh9:
	adrp	x1, l_.str.2@PAGE
Lloh10:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w0, #1
	bl	_edac_dbg
	ldr	w0, [x19]
	bl	_module_put
	b	LBB0_5
LBB0_3:
Lloh11:
	adrp	x8, _ENODEV@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_5
LBB0_4:
Lloh14:
	adrp	x8, _KOBJ_ADD@GOTPAGE
Lloh15:
	ldr	x8, [x8, _KOBJ_ADD@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_kobject_uevent
	ldr	w8, [x19, #4]
	str	x8, [sp]
Lloh17:
	adrp	x1, l_.str.3@PAGE
Lloh18:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	w0, #4
	bl	_edac_dbg
LBB0_5:
	mov	x0, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"\n"

	.comm	_THIS_MODULE,4,2                ; @THIS_MODULE
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_ktype_device_ctrl,4,2          ; @ktype_device_ctrl
l_.str.1:                               ; @.str.1
	.asciz	"%s"

l_.str.2:                               ; @.str.2
	.asciz	"Failed to register '.../edac/%s'\n"

	.comm	_KOBJ_ADD,4,2                   ; @KOBJ_ADD
l_.str.3:                               ; @.str.3
	.asciz	"Registered '.../edac/%s' kobject\n"

.subsections_via_symbols
