	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cyapa_close
_cyapa_close:                           ## @cyapa_close
	.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
	callq	_input_get_drvdata
	movq	%rax, %r15
	movq	24(%rax), %rbx
	leaq	4(%rbx), %r14
	movq	%rax, %rdi
	callq	_mutex_lock
	movl	(%rbx), %edi
	callq	_disable_irq
	movq	%r14, %rdi
	callq	_pm_runtime_enabled
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%r14, %rdi
	callq	_pm_runtime_disable
LBB0_2:
	movq	%r14, %rdi
	callq	_pm_runtime_set_suspended
	cmpq	$0, 16(%r15)
	je	LBB0_4
## %bb.3:
	movq	8(%r15), %rax
	movq	_PWR_MODE_OFF@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_CYAPA_PM_DEACTIVE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	*(%rax)
LBB0_4:
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mutex_unlock                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_PWR_MODE_OFF,4,2               ## @PWR_MODE_OFF
	.comm	_CYAPA_PM_DEACTIVE,4,2          ## @CYAPA_PM_DEACTIVE
	.no_dead_strip	_cyapa_close
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cyapa_close
_cyapa_close:                           ; @cyapa_close
	.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
	bl	_input_get_drvdata
	mov	x19, x0
	ldr	x20, [x0, #24]
	bl	_mutex_lock
	ldr	w0, [x20], #4
	bl	_disable_irq
	mov	x0, x20
	bl	_pm_runtime_enabled
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x20
	bl	_pm_runtime_disable
LBB0_2:
	mov	x0, x20
	bl	_pm_runtime_set_suspended
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_4
; %bb.3:
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
Lloh0:
	adrp	x9, _PWR_MODE_OFF@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PWR_MODE_OFF@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x9]
Lloh3:
	adrp	x9, _CYAPA_PM_DEACTIVE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _CYAPA_PM_DEACTIVE@GOTPAGEOFF]
Lloh5:
	ldr	w3, [x9]
	mov	x0, x19
	mov	w2, #0
	blr	x8
LBB0_4:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_mutex_unlock
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_PWR_MODE_OFF,4,2               ; @PWR_MODE_OFF
	.comm	_CYAPA_PM_DEACTIVE,4,2          ; @CYAPA_PM_DEACTIVE
	.no_dead_strip	_cyapa_close
.subsections_via_symbols
