	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cyapa_reinitialize
_cyapa_reinitialize:                    ## @cyapa_reinitialize
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	16(%rdi), %r13
	movq	24(%rdi), %r14
	movq	%r14, %rdi
	callq	_pm_runtime_enabled
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%r14, %rdi
	callq	_pm_runtime_disable
LBB0_2:
	cmpq	$0, (%rbx)
	je	LBB0_4
## %bb.3:
	movq	8(%rbx), %rax
	movq	_PWR_MODE_FULL_ACTIVE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_CYAPA_PM_ACTIVE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	*(%rax)
LBB0_4:
	movq	%rbx, %rdi
	callq	_cyapa_detect
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_9
## %bb.5:
	testq	%r13, %r13
	jne	LBB0_9
## %bb.6:
	xorl	%r15d, %r15d
	cmpq	$0, (%rbx)
	je	LBB0_9
## %bb.7:
	movq	%rbx, %rdi
	callq	_cyapa_create_input_dev
	testl	%eax, %eax
	je	LBB0_9
## %bb.8:
	movl	%eax, %r12d
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_dev_err
	movl	%r12d, %r15d
LBB0_9:
	testq	%r13, %r13
	je	LBB0_11
## %bb.10:
	cmpl	$0, (%r13)
	je	LBB0_11
## %bb.13:
	testl	%r15d, %r15d
	jne	LBB0_16
## %bb.14:
	cmpq	$0, (%rbx)
	je	LBB0_16
## %bb.15:
	movq	%r14, %rdi
	callq	_pm_runtime_set_active
	movq	%r14, %rdi
	callq	_pm_runtime_enable
	movq	%r14, %rdi
	callq	_pm_runtime_get_sync
	movq	%r14, %rdi
	callq	_pm_runtime_mark_last_busy
	movq	%r14, %rdi
	callq	_pm_runtime_put_sync_autosuspend
	jmp	LBB0_16
LBB0_11:
	cmpq	$0, (%rbx)
	je	LBB0_16
## %bb.12:
	movq	8(%rbx), %rax
	movq	_PWR_MODE_OFF@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_CYAPA_PM_DEACTIVE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	*(%rax)
LBB0_16:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PWR_MODE_FULL_ACTIVE,4,2       ## @PWR_MODE_FULL_ACTIVE
	.comm	_CYAPA_PM_ACTIVE,4,2            ## @CYAPA_PM_ACTIVE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"create input_dev instance failed: %d\n"

	.comm	_PWR_MODE_OFF,4,2               ## @PWR_MODE_OFF
	.comm	_CYAPA_PM_DEACTIVE,4,2          ## @CYAPA_PM_DEACTIVE
	.no_dead_strip	_cyapa_reinitialize
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cyapa_reinitialize
_cyapa_reinitialize:                    ; @cyapa_reinitialize
	.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	x20, x0
	ldp	x22, x19, [x0, #16]
	mov	x0, x19
	bl	_pm_runtime_enabled
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_pm_runtime_disable
LBB0_2:
	ldr	x8, [x20]
	cbz	x8, LBB0_4
; %bb.3:
	ldr	x8, [x20, #8]
	ldr	x8, [x8]
Lloh0:
	adrp	x9, _PWR_MODE_FULL_ACTIVE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PWR_MODE_FULL_ACTIVE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x9]
Lloh3:
	adrp	x9, _CYAPA_PM_ACTIVE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _CYAPA_PM_ACTIVE@GOTPAGEOFF]
Lloh5:
	ldr	w3, [x9]
	mov	x0, x20
	mov	w2, #0
	blr	x8
LBB0_4:
	mov	x0, x20
	bl	_cyapa_detect
	mov	x21, x0
	cbnz	w0, LBB0_9
; %bb.5:
	cbnz	x22, LBB0_9
; %bb.6:
	ldr	x8, [x20]
	cbz	x8, LBB0_14
; %bb.7:
	mov	x0, x20
	bl	_cyapa_create_input_dev
	mov	x21, x0
	cbz	w0, LBB0_9
; %bb.8:
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x21
	bl	_dev_err
LBB0_9:
	cbz	x22, LBB0_15
LBB0_10:
	ldr	w8, [x22]
	cbz	w8, LBB0_15
; %bb.11:
	cbnz	w21, LBB0_17
; %bb.12:
	ldr	x8, [x20]
	cbz	x8, LBB0_17
; %bb.13:
	mov	x0, x19
	bl	_pm_runtime_set_active
	mov	x0, x19
	bl	_pm_runtime_enable
	mov	x0, x19
	bl	_pm_runtime_get_sync
	mov	x0, x19
	bl	_pm_runtime_mark_last_busy
	mov	x0, x19
	bl	_pm_runtime_put_sync_autosuspend
	b	LBB0_17
LBB0_14:
	mov	w21, #0
	cbnz	x22, LBB0_10
LBB0_15:
	ldr	x8, [x20]
	cbz	x8, LBB0_17
; %bb.16:
	ldr	x8, [x20, #8]
	ldr	x8, [x8]
Lloh8:
	adrp	x9, _PWR_MODE_OFF@GOTPAGE
Lloh9:
	ldr	x9, [x9, _PWR_MODE_OFF@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x9]
Lloh11:
	adrp	x9, _CYAPA_PM_DEACTIVE@GOTPAGE
Lloh12:
	ldr	x9, [x9, _CYAPA_PM_DEACTIVE@GOTPAGEOFF]
Lloh13:
	ldr	w3, [x9]
	mov	x0, x20
	mov	w2, #0
	blr	x8
LBB0_17:
	mov	x0, x21
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_PWR_MODE_FULL_ACTIVE,4,2       ; @PWR_MODE_FULL_ACTIVE
	.comm	_CYAPA_PM_ACTIVE,4,2            ; @CYAPA_PM_ACTIVE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"create input_dev instance failed: %d\n"

	.comm	_PWR_MODE_OFF,4,2               ; @PWR_MODE_OFF
	.comm	_CYAPA_PM_DEACTIVE,4,2          ; @CYAPA_PM_DEACTIVE
	.no_dead_strip	_cyapa_reinitialize
.subsections_via_symbols
