	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mtdswap_add_debugfs
_mtdswap_add_debugfs:                   ## @mtdswap_add_debugfs
	.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	%rdi, %r14
	movq	8(%rdi), %rax
	movq	(%rax), %r15
	movq	_CONFIG_DEBUG_FS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_IS_ENABLED
	xorl	%ebx, %ebx
	testl	%eax, %eax
	je	LBB0_5
## %bb.1:
	movq	%r15, %rdi
	callq	_IS_ERR_OR_NULL
	testq	%rax, %rax
	je	LBB0_2
LBB0_4:
	movl	$-1, %ebx
	jmp	LBB0_5
LBB0_2:
	movq	_S_IRUSR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdi
	movq	_mtdswap_fops@GOTPCREL(%rip), %r8
	movq	%r15, %rdx
	movq	%r14, %rcx
	callq	_debugfs_create_file
	testq	%rax, %rax
	je	LBB0_3
LBB0_5:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movl	(%r14), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_dev_err
	jmp	LBB0_4
	.cfi_endproc
                                        ## -- End function
	.comm	_CONFIG_DEBUG_FS,4,2            ## @CONFIG_DEBUG_FS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"mtdswap_stats"

	.comm	_S_IRUSR,4,2                    ## @S_IRUSR
	.comm	_mtdswap_fops,4,2               ## @mtdswap_fops
L_.str.1:                               ## @.str.1
	.asciz	"debugfs_create_file failed\n"

	.no_dead_strip	_mtdswap_add_debugfs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mtdswap_add_debugfs
_mtdswap_add_debugfs:                   ; @mtdswap_add_debugfs
	.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
	ldr	x8, [x0, #8]
	ldr	x20, [x8]
Lloh0:
	adrp	x8, _CONFIG_DEBUG_FS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CONFIG_DEBUG_FS@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_IS_ENABLED
	cbz	w0, LBB0_5
; %bb.1:
	mov	x0, x20
	bl	_IS_ERR_OR_NULL
	cbz	x0, LBB0_3
LBB0_2:
	mov	w0, #-1
	b	LBB0_5
LBB0_3:
Lloh3:
	adrp	x8, _S_IRUSR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _S_IRUSR@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
Lloh8:
	adrp	x4, _mtdswap_fops@GOTPAGE
Lloh9:
	ldr	x4, [x4, _mtdswap_fops@GOTPAGEOFF]
	mov	x2, x20
	mov	x3, x19
	bl	_debugfs_create_file
	cbz	x0, LBB0_6
; %bb.4:
	mov	w0, #0
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_6:
	ldr	w0, [x19]
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_err
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_CONFIG_DEBUG_FS,4,2            ; @CONFIG_DEBUG_FS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"mtdswap_stats"

	.comm	_S_IRUSR,4,2                    ; @S_IRUSR
	.comm	_mtdswap_fops,4,2               ; @mtdswap_fops
l_.str.1:                               ; @.str.1
	.asciz	"debugfs_create_file failed\n"

	.no_dead_strip	_mtdswap_add_debugfs
.subsections_via_symbols
