	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cros_ec_debugfs_probe
_cros_ec_debugfs_probe:                 ## @cros_ec_debugfs_probe
	.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), %edi
	callq	_dev_get_drvdata
	movq	%rax, %r15
	movl	16(%rax), %edi
	callq	_dev_get_platdata
	movq	(%rax), %rbx
	movl	16(%r15), %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$16, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r12
	movq	%r15, 8(%rax)
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_debugfs_create_dir
	movl	%eax, (%r12)
	movq	%r12, %rdi
	callq	_cros_ec_create_panicinfo
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_5
## %bb.3:
	movq	%r12, %rdi
	callq	_cros_ec_create_console_log
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_4
LBB0_5:
	movl	(%r12), %edi
	callq	_debugfs_remove_recursive
	jmp	LBB0_6
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_6
LBB0_4:
	movl	(%r12), %edx
	leaq	L_.str(%rip), %rdi
	movq	_cros_ec_pdinfo_fops@GOTPCREL(%rip), %r8
	movl	$292, %esi                      ## imm = 0x124
	movq	%r12, %rcx
	callq	_debugfs_create_file
	movl	(%r12), %edx
	leaq	L_.str.1(%rip), %rdi
	movq	_cros_ec_uptime_fops@GOTPCREL(%rip), %r8
	movl	$292, %esi                      ## imm = 0x124
	movq	%r12, %rcx
	callq	_debugfs_create_file
	movl	(%r12), %edx
	movq	8(%r15), %rcx
	leaq	L_.str.2(%rip), %rdi
	movl	$292, %esi                      ## imm = 0x124
	callq	_debugfs_create_x32
	movq	%r12, (%r15)
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_dev_set_drvdata
	xorl	%ebx, %ebx
LBB0_6:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"pdinfo"

	.comm	_cros_ec_pdinfo_fops,4,2        ## @cros_ec_pdinfo_fops
L_.str.1:                               ## @.str.1
	.asciz	"uptime"

	.comm	_cros_ec_uptime_fops,4,2        ## @cros_ec_uptime_fops
L_.str.2:                               ## @.str.2
	.asciz	"last_resume_result"

	.no_dead_strip	_cros_ec_debugfs_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cros_ec_debugfs_probe
_cros_ec_debugfs_probe:                 ; @cros_ec_debugfs_probe
	.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	x19, x0
	ldr	w0, [x0]
	bl	_dev_get_drvdata
	mov	x20, x0
	ldr	w0, [x0, #16]
	bl	_dev_get_platdata
	ldr	x22, [x0]
	ldr	w0, [x20, #16]
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	w1, #16
	bl	_devm_kzalloc
	cbz	x0, LBB0_4
; %bb.1:
	mov	x21, x0
	str	x20, [x0, #8]
	mov	x0, x22
	mov	x1, #0
	bl	_debugfs_create_dir
	str	w0, [x21]
	mov	x0, x21
	bl	_cros_ec_create_panicinfo
	mov	x22, x0
	cbnz	w0, LBB0_3
; %bb.2:
	mov	x0, x21
	bl	_cros_ec_create_console_log
	mov	x22, x0
	cbz	w0, LBB0_5
LBB0_3:
	ldr	w0, [x21]
	bl	_debugfs_remove_recursive
	b	LBB0_6
LBB0_4:
Lloh3:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_6
LBB0_5:
	ldr	w2, [x21]
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
Lloh8:
	adrp	x4, _cros_ec_pdinfo_fops@GOTPAGE
Lloh9:
	ldr	x4, [x4, _cros_ec_pdinfo_fops@GOTPAGEOFF]
	mov	w1, #292
	mov	x3, x21
	bl	_debugfs_create_file
	ldr	w2, [x21]
Lloh10:
	adrp	x0, l_.str.1@PAGE
Lloh11:
	add	x0, x0, l_.str.1@PAGEOFF
Lloh12:
	adrp	x4, _cros_ec_uptime_fops@GOTPAGE
Lloh13:
	ldr	x4, [x4, _cros_ec_uptime_fops@GOTPAGEOFF]
	mov	w1, #292
	mov	x3, x21
	bl	_debugfs_create_file
	ldr	w2, [x21]
	ldr	x3, [x20, #8]
Lloh14:
	adrp	x0, l_.str.2@PAGE
Lloh15:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	w1, #292
	bl	_debugfs_create_x32
	str	x21, [x20]
	mov	x0, x19
	mov	x1, x20
	bl	_dev_set_drvdata
LBB0_6:
	mov	x0, x22
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"pdinfo"

	.comm	_cros_ec_pdinfo_fops,4,2        ; @cros_ec_pdinfo_fops
l_.str.1:                               ; @.str.1
	.asciz	"uptime"

	.comm	_cros_ec_uptime_fops,4,2        ; @cros_ec_uptime_fops
l_.str.2:                               ; @.str.2
	.asciz	"last_resume_result"

	.no_dead_strip	_cros_ec_debugfs_probe
.subsections_via_symbols
