	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_edac_device_create_sysfs       ## -- Begin function edac_device_create_sysfs
	.p2align	4, 0x90
_edac_device_create_sysfs:              ## @edac_device_create_sysfs
	.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, %r14
	movl	(%rdi), %edx
	leaq	L_.str(%rip), %rsi
	xorl	%edi, %edi
	xorl	%eax, %eax
	callq	_edac_dbg
	movq	%r14, %rdi
	callq	_edac_device_add_main_sysfs_attributes
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rsi
	xorl	%edi, %edi
	xorl	%eax, %eax
	callq	_edac_dbg
	jmp	LBB0_7
LBB0_2:
	leaq	4(%r14), %r15
	movq	8(%r14), %rsi
	movq	_EDAC_DEVICE_SYMLINK@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	movq	%r15, %rdi
	callq	_sysfs_create_link
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movl	%eax, %ebx
	leaq	L_.str.2(%rip), %rsi
	xorl	%edi, %edi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_edac_dbg
	jmp	LBB0_6
LBB0_4:
	movq	%r14, %rdi
	callq	_edac_device_create_instances
	testl	%eax, %eax
	je	LBB0_8
## %bb.5:
	movl	%eax, %ebx
	leaq	L_.str.3(%rip), %rsi
	xorl	%edi, %edi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_edac_dbg
	movl	(%r12), %esi
	movq	%r15, %rdi
	callq	_sysfs_remove_link
LBB0_6:
	movq	%r14, %rdi
	callq	_edac_device_remove_main_sysfs_attributes
LBB0_7:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movl	(%r14), %edx
	leaq	L_.str.4(%rip), %rsi
	xorl	%ebx, %ebx
	movl	$4, %edi
	xorl	%eax, %eax
	callq	_edac_dbg
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"idx=%d\n"

L_.str.1:                               ## @.str.1
	.asciz	"failed to add sysfs attribs\n"

	.comm	_EDAC_DEVICE_SYMLINK,4,2        ## @EDAC_DEVICE_SYMLINK
L_.str.2:                               ## @.str.2
	.asciz	"sysfs_create_link() returned err= %d\n"

L_.str.3:                               ## @.str.3
	.asciz	"edac_device_create_instances() returned err= %d\n"

L_.str.4:                               ## @.str.4
	.asciz	"create-instances done, idx=%d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_edac_device_create_sysfs       ; -- Begin function edac_device_create_sysfs
	.p2align	2
_edac_device_create_sysfs:              ; @edac_device_create_sysfs
	.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
	mov	x20, x0
	ldr	w8, [x20], #4
	str	x8, [sp]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #0
	bl	_edac_dbg
	mov	x0, x19
	bl	_edac_device_add_main_sysfs_attributes
	cbz	w0, LBB0_2
; %bb.1:
	mov	x21, x0
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #0
	bl	_edac_dbg
	b	LBB0_7
LBB0_2:
	ldr	x1, [x19, #8]
Lloh4:
	adrp	x22, _EDAC_DEVICE_SYMLINK@GOTPAGE
Lloh5:
	ldr	x22, [x22, _EDAC_DEVICE_SYMLINK@GOTPAGEOFF]
	ldr	w2, [x22]
	mov	x0, x20
	bl	_sysfs_create_link
	cbz	w0, LBB0_4
; %bb.3:
	mov	x21, x0
	str	x21, [sp]
Lloh6:
	adrp	x1, l_.str.2@PAGE
Lloh7:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w0, #0
	bl	_edac_dbg
	b	LBB0_6
LBB0_4:
	mov	x0, x19
	bl	_edac_device_create_instances
	mov	x21, x0
	cbz	w0, LBB0_8
; %bb.5:
	str	x21, [sp]
Lloh8:
	adrp	x1, l_.str.3@PAGE
Lloh9:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	w0, #0
	bl	_edac_dbg
	ldr	w1, [x22]
	mov	x0, x20
	bl	_sysfs_remove_link
                                        ; kill: def $w21 killed $w21 killed $x21 def $x21
LBB0_6:
	mov	x0, x19
	bl	_edac_device_remove_main_sysfs_attributes
LBB0_7:
	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
LBB0_8:
	ldr	w8, [x19]
	str	x8, [sp]
Lloh10:
	adrp	x1, l_.str.4@PAGE
Lloh11:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	w0, #4
	bl	_edac_dbg
	b	LBB0_7
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"idx=%d\n"

l_.str.1:                               ; @.str.1
	.asciz	"failed to add sysfs attribs\n"

	.comm	_EDAC_DEVICE_SYMLINK,4,2        ; @EDAC_DEVICE_SYMLINK
l_.str.2:                               ; @.str.2
	.asciz	"sysfs_create_link() returned err= %d\n"

l_.str.3:                               ; @.str.3
	.asciz	"edac_device_create_instances() returned err= %d\n"

l_.str.4:                               ; @.str.4
	.asciz	"create-instances done, idx=%d\n"

.subsections_via_symbols
