	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cyttsp4_remove                 ## -- Begin function cyttsp4_remove
	.p2align	4, 0x90
_cyttsp4_remove:                        ## @cyttsp4_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	24(%rdi), %r14
	addq	$16, %rdi
	callq	_cyttsp4_mt_release
	movq	%r14, %rdi
	callq	_pm_runtime_suspend
	movq	%r14, %rdi
	callq	_pm_runtime_disable
	leaq	12(%rbx), %rdi
	callq	_cancel_work_sync
	movq	%rbx, %rdi
	callq	_cyttsp4_stop_wd_timer
	movl	8(%rbx), %edi
	movq	%rbx, %rsi
	callq	_free_irq
	movq	(%rbx), %rdi
	movq	(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	xorl	%esi, %esi
	movq	%r14, %rdx
	callq	*%rax
LBB0_2:
	movq	%rbx, %rdi
	callq	_cyttsp4_free_si_ptrs
	movq	%rbx, %rdi
	callq	_kfree
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cyttsp4_remove                 ; -- Begin function cyttsp4_remove
	.p2align	2
_cyttsp4_remove:                        ; @cyttsp4_remove
	.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	x20, [x0, #24]
	add	x0, x0, #16
	bl	_cyttsp4_mt_release
	mov	x0, x20
	bl	_pm_runtime_suspend
	mov	x0, x20
	bl	_pm_runtime_disable
	add	x0, x19, #12
	bl	_cancel_work_sync
	mov	x0, x19
	bl	_cyttsp4_stop_wd_timer
	ldr	w0, [x19, #8]
	mov	x1, x19
	bl	_free_irq
	ldr	x0, [x19]
	ldr	x8, [x0]
	cbz	x8, LBB0_2
; %bb.1:
	mov	w1, #0
	mov	x2, x20
	blr	x8
LBB0_2:
	mov	x0, x19
	bl	_cyttsp4_free_si_ptrs
	mov	x0, x19
	bl	_kfree
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
