	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function kim_remove
_kim_remove:                            ## @kim_remove
	.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, %rbx
	movq	8(%rdi), %r15
	callq	_platform_get_drvdata
	movq	%rax, %r14
	movl	(%r15), %edi
	callq	_gpio_free
	leaq	L_.str(%rip), %rdi
	callq	_pr_info
	movq	_kim_debugfs_dir@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_debugfs_remove_recursive
	movq	_uim_attr_grp@GOTPCREL(%rip), %rsi
	movq	%rbx, %rdi
	callq	_sysfs_remove_group
	leaq	L_.str.1(%rip), %rdi
	callq	_pr_info
	movq	$0, 8(%r14)
	movl	(%r14), %edi
	callq	_st_core_exit
	movq	%r14, %rdi
	callq	_kfree
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"nshutdown GPIO Freed"

	.comm	_kim_debugfs_dir,4,2            ## @kim_debugfs_dir
	.comm	_uim_attr_grp,4,2               ## @uim_attr_grp
L_.str.1:                               ## @.str.1
	.asciz	"sysfs entries removed"

	.no_dead_strip	_kim_remove
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function kim_remove
_kim_remove:                            ; @kim_remove
	.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	x21, [x0, #8]
	bl	_platform_get_drvdata
	mov	x20, x0
	ldr	w0, [x21]
	bl	_gpio_free
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_info
Lloh2:
	adrp	x8, _kim_debugfs_dir@GOTPAGE
Lloh3:
	ldr	x8, [x8, _kim_debugfs_dir@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	bl	_debugfs_remove_recursive
Lloh5:
	adrp	x1, _uim_attr_grp@GOTPAGE
Lloh6:
	ldr	x1, [x1, _uim_attr_grp@GOTPAGEOFF]
	mov	x0, x19
	bl	_sysfs_remove_group
Lloh7:
	adrp	x0, l_.str.1@PAGE
Lloh8:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pr_info
	str	xzr, [x20, #8]
	ldr	w0, [x20]
	bl	_st_core_exit
	mov	x0, x20
	bl	_kfree
	mov	w0, #0
	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 AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"nshutdown GPIO Freed"

	.comm	_kim_debugfs_dir,4,2            ; @kim_debugfs_dir
	.comm	_uim_attr_grp,4,2               ; @uim_attr_grp
l_.str.1:                               ; @.str.1
	.asciz	"sysfs entries removed"

	.no_dead_strip	_kim_remove
.subsections_via_symbols
