	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nandsim_debugfs_create
_nandsim_debugfs_create:                ## @nandsim_debugfs_create
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movq	_nsmtd@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax), %rbx
	movq	%rbx, %rdi
	callq	_IS_ERR_OR_NULL
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movq	_CONFIG_DEBUG_FS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_IS_ENABLED
	xorl	%ebx, %ebx
	testq	%rax, %rax
	je	LBB0_7
## %bb.2:
	movq	_CONFIG_MTD_PARTITIONED_MASTER@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_IS_ENABLED
	testq	%rax, %rax
	jne	LBB0_7
## %bb.3:
	leaq	L_.str(%rip), %rdi
	callq	_NS_WARN
	jmp	LBB0_7
LBB0_4:
	movq	_S_IRUSR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdi
	movq	_nandsim_fops@GOTPCREL(%rip), %r8
	movq	%rbx, %rdx
	movq	%r14, %rcx
	callq	_debugfs_create_file
	movq	%rax, %rdi
	callq	_IS_ERR_OR_NULL
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	leaq	L_.str.2(%rip), %rdi
	callq	_NS_ERR
	movl	$-1, %ebx
	jmp	LBB0_7
LBB0_5:
	xorl	%ebx, %ebx
LBB0_7:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_nsmtd,8,3                      ## @nsmtd
	.comm	_CONFIG_DEBUG_FS,4,2            ## @CONFIG_DEBUG_FS
	.comm	_CONFIG_MTD_PARTITIONED_MASTER,4,2 ## @CONFIG_MTD_PARTITIONED_MASTER
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"CONFIG_MTD_PARTITIONED_MASTER must be enabled to expose debugfs stuff\n"

L_.str.1:                               ## @.str.1
	.asciz	"nandsim_wear_report"

	.comm	_S_IRUSR,4,2                    ## @S_IRUSR
	.comm	_nandsim_fops,4,2               ## @nandsim_fops
L_.str.2:                               ## @.str.2
	.asciz	"cannot create \"nandsim_wear_report\" debugfs entry\n"

	.no_dead_strip	_nandsim_debugfs_create
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nandsim_debugfs_create
_nandsim_debugfs_create:                ; @nandsim_debugfs_create
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x8, _nsmtd@GOTPAGE
Lloh1:
	ldr	x8, [x8, _nsmtd@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	x20, [x8]
	mov	x0, x20
	bl	_IS_ERR_OR_NULL
	cbz	x0, LBB0_5
; %bb.1:
Lloh3:
	adrp	x8, _CONFIG_DEBUG_FS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CONFIG_DEBUG_FS@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_IS_ENABLED
	cbz	x0, LBB0_7
; %bb.2:
Lloh6:
	adrp	x8, _CONFIG_MTD_PARTITIONED_MASTER@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CONFIG_MTD_PARTITIONED_MASTER@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_IS_ENABLED
	cbnz	x0, LBB0_4
; %bb.3:
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
	bl	_NS_WARN
LBB0_4:
	mov	w0, #0
	b	LBB0_7
LBB0_5:
Lloh11:
	adrp	x8, _S_IRUSR@GOTPAGE
Lloh12:
	ldr	x8, [x8, _S_IRUSR@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
Lloh14:
	adrp	x0, l_.str.1@PAGE
Lloh15:
	add	x0, x0, l_.str.1@PAGEOFF
Lloh16:
	adrp	x4, _nandsim_fops@GOTPAGE
Lloh17:
	ldr	x4, [x4, _nandsim_fops@GOTPAGEOFF]
	mov	x2, x20
	mov	x3, x19
	bl	_debugfs_create_file
	bl	_IS_ERR_OR_NULL
	cbz	x0, LBB0_7
; %bb.6:
Lloh18:
	adrp	x0, l_.str.2@PAGE
Lloh19:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_NS_ERR
	mov	w0, #-1
LBB0_7:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_nsmtd,8,3                      ; @nsmtd
	.comm	_CONFIG_DEBUG_FS,4,2            ; @CONFIG_DEBUG_FS
	.comm	_CONFIG_MTD_PARTITIONED_MASTER,4,2 ; @CONFIG_MTD_PARTITIONED_MASTER
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"CONFIG_MTD_PARTITIONED_MASTER must be enabled to expose debugfs stuff\n"

l_.str.1:                               ; @.str.1
	.asciz	"nandsim_wear_report"

	.comm	_S_IRUSR,4,2                    ; @S_IRUSR
	.comm	_nandsim_fops,4,2               ; @nandsim_fops
l_.str.2:                               ; @.str.2
	.asciz	"cannot create \"nandsim_wear_report\" debugfs entry\n"

	.no_dead_strip	_nandsim_debugfs_create
.subsections_via_symbols
