	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function altr_create_edacdev_dbgfs
_altr_create_edacdev_dbgfs:             ## @altr_create_edacdev_dbgfs
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	(%rdi), %r15
	movq	_CONFIG_EDAC_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_IS_ENABLED
	testl	%eax, %eax
	je	LBB0_3
## %bb.1:
	movl	4(%r15), %edi
	callq	_edac_debugfs_create_dir
	movl	%eax, (%r15)
	testl	%eax, %eax
	je	LBB0_3
## %bb.2:
	movq	_S_IWUSR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	(%r14), %r8d
	leaq	L_.str(%rip), %rdi
	movl	%eax, %edx
	movq	%rbx, %rcx
	callq	_edac_debugfs_create_file
	testl	%eax, %eax
	je	LBB0_4
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movl	(%r15), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_debugfs_remove_recursive       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_CONFIG_EDAC_DEBUG,4,2          ## @CONFIG_EDAC_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"altr_trigger"

	.comm	_S_IWUSR,4,2                    ## @S_IWUSR
	.no_dead_strip	_altr_create_edacdev_dbgfs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function altr_create_edacdev_dbgfs
_altr_create_edacdev_dbgfs:             ; @altr_create_edacdev_dbgfs
	.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	x20, x1
	mov	x19, x0
	ldr	x21, [x0]
Lloh0:
	adrp	x8, _CONFIG_EDAC_DEBUG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CONFIG_EDAC_DEBUG@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_IS_ENABLED
	cbz	w0, LBB0_3
; %bb.1:
	ldr	w0, [x21, #4]
	bl	_edac_debugfs_create_dir
	str	w0, [x21]
	cbz	w0, LBB0_3
; %bb.2:
	mov	x2, x0
Lloh3:
	adrp	x8, _S_IWUSR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _S_IWUSR@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	ldr	w4, [x20]
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	mov	x3, x19
	bl	_edac_debugfs_create_file
	cbz	w0, LBB0_4
LBB0_3:
	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
LBB0_4:
	ldr	w0, [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
	b	_debugfs_remove_recursive
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_CONFIG_EDAC_DEBUG,4,2          ; @CONFIG_EDAC_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"altr_trigger"

	.comm	_S_IWUSR,4,2                    ; @S_IWUSR
	.no_dead_strip	_altr_create_edacdev_dbgfs
.subsections_via_symbols
