	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cyapa_gen6_set_power_mode
_cyapa_gen6_set_power_mode:             ## @cyapa_gen6_set_power_mode
	.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), %rax
	movq	_CYAPA_STATE_GEN6_APP@GOTPCREL(%rip), %rcx
	xorl	%r15d, %r15d
	cmpq	(%rcx), %rax
	jne	LBB0_42
## %bb.1:
	movq	%rdx, %r12
	movq	%rsi, %rbx
	movq	%rdi, %r13
	movq	24(%rdi), %r14
	callq	_PIP_DEV_GET_PWR_STATE
	movq	_UNINIT_PWR_MODE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.2:
	movq	_PWR_MODE_OFF@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%r13, %rdi
	callq	_PIP_DEV_SET_PWR_STATE
LBB0_3:
	movq	%r13, %rdi
	callq	_PIP_DEV_UNINIT_SLEEP_TIME
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:
	movq	%r13, %rdi
	callq	_PIP_DEV_GET_PWR_STATE
	movq	_PWR_MODE_OFF@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_6
## %bb.5:
	movq	_UNINIT_SLEEP_TIME@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%r13, %rdi
	callq	_PIP_DEV_SET_SLEEP_TIME
LBB0_6:
	movq	%r13, %rdi
	callq	_PIP_DEV_GET_PWR_STATE
	cmpq	%rbx, %rax
	jne	LBB0_11
## %bb.7:
	movq	_PWR_MODE_OFF@GOTPCREL(%rip), %rax
	cmpq	%rbx, (%rax)
	je	LBB0_42
## %bb.8:
	movq	_PWR_MODE_FULL_ACTIVE@GOTPCREL(%rip), %rax
	cmpq	%rbx, (%rax)
	je	LBB0_42
## %bb.9:
	movq	_PWR_MODE_BTN_ONLY@GOTPCREL(%rip), %rax
	cmpq	%rbx, (%rax)
	je	LBB0_42
## %bb.10:
	movq	%r13, %rdi
	callq	_PIP_DEV_GET_SLEEP_TIME
	cmpq	%r12, %rax
	je	LBB0_42
LBB0_11:
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movq	_PWR_MODE_OFF@GOTPCREL(%rip), %r14
	cmpq	%rbx, (%r14)
	jne	LBB0_15
## %bb.12:
	movq	_GEN6_DISABLE_CMD_IRQ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_cyapa_gen6_config_dev_irq
	movq	_PIP_DEEP_SLEEP_STATE_OFF@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_cyapa_gen6_deep_sleep
	testl	%eax, %eax
	je	LBB0_14
## %bb.13:
	movl	%eax, %ebx
	movslq	%eax, %rdx
	leaq	L_.str(%rip), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	xorl	%eax, %eax
	callq	_dev_err
	movl	%ebx, %r15d
	jmp	LBB0_42
LBB0_15:
	movq	%r13, %rdi
	callq	_PIP_DEV_GET_PWR_STATE
	cmpq	(%r14), %rax
	jne	LBB0_18
## %bb.16:
	movq	_PIP_DEEP_SLEEP_STATE_ON@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_cyapa_gen6_deep_sleep
	testl	%eax, %eax
	je	LBB0_18
## %bb.17:
	movl	%eax, %r15d
	movslq	%eax, %rdx
	leaq	L_.str.1(%rip), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_42
LBB0_18:
	leaq	8(%r13), %r15
	movq	_GEN6_DISABLE_CMD_IRQ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_cyapa_gen6_config_dev_irq
	movq	_PWR_MODE_FULL_ACTIVE@GOTPCREL(%rip), %r14
	cmpq	%rbx, (%r14)
	jne	LBB0_23
## %bb.19:
	movq	%r15, %rbx
	movq	_GEN6_POWER_MODE_ACTIVE@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%r13, %rdi
	callq	_cyapa_gen6_change_power_state
	testl	%eax, %eax
	je	LBB0_22
## %bb.20:
	movl	%eax, %r15d
	movslq	%eax, %rdx
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_21
LBB0_14:
	movq	(%r14), %rsi
	movq	%r13, %rdi
	callq	_PIP_DEV_SET_PWR_STATE
	jmp	LBB0_42
LBB0_23:
	movq	_PWR_MODE_BTN_ONLY@GOTPCREL(%rip), %r14
	cmpq	%rbx, (%r14)
	jne	LBB0_27
## %bb.24:
	movq	_GEN6_POWER_MODE_BTN_ONLY@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%r13, %rdi
	callq	_cyapa_gen6_change_power_state
	testl	%eax, %eax
	je	LBB0_26
## %bb.25:
	movl	%eax, %r15d
	movslq	%eax, %rdx
	leaq	L_.str.3(%rip), %rsi
LBB0_21:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_41
LBB0_27:
	movq	(%r15), %rax
	cmpq	%r12, %rax
	jne	LBB0_30
## %bb.28:
	movq	_GEN6_POWER_MODE_LP_MODE1@GOTPCREL(%rip), %rax
	jmp	LBB0_29
LBB0_22:
	movq	(%r14), %rsi
	movq	%r13, %rdi
	callq	_PIP_DEV_SET_PWR_STATE
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_cyapa_gen6_get_interval_setting
	jmp	LBB0_40
LBB0_30:
	cmpq	%r12, 16(%r13)
	jne	LBB0_32
## %bb.31:
	movq	_GEN6_POWER_MODE_LP_MODE2@GOTPCREL(%rip), %rax
LBB0_29:
	movq	(%rax), %rbx
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_36
LBB0_26:
	movq	(%r14), %rsi
	movq	%r13, %rdi
	jmp	LBB0_39
LBB0_32:
	xorl	%ecx, %ecx
	testq	%rax, %rax
	setne	%cl
	movq	%r12, 8(%r13,%rcx,8)
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	jne	LBB0_33
## %bb.34:
	movq	_GEN6_POWER_MODE_LP_MODE1@GOTPCREL(%rip), %rax
	jmp	LBB0_35
LBB0_33:
	movq	_GEN6_POWER_MODE_LP_MODE2@GOTPCREL(%rip), %rax
LBB0_35:
	movq	(%rax), %rbx
	movq	%r13, %rdi
	movq	%r15, %rsi
	callq	_cyapa_gen6_set_interval_setting
LBB0_36:
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_cyapa_gen6_change_power_state
	testl	%eax, %eax
	je	LBB0_38
## %bb.37:
	movl	%eax, %r15d
	leaq	L_.str.4(%rip), %rsi
	movq	%r14, %rdi
	movq	%rbx, %rdx
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_41
LBB0_38:
	movq	%r13, %rdi
	movq	%r12, %rsi
	callq	_PIP_DEV_SET_SLEEP_TIME
	movq	%r12, %rdi
	callq	_cyapa_sleep_time_to_pwr_cmd
	movq	%r13, %rdi
	movq	%rax, %rsi
LBB0_39:
	callq	_PIP_DEV_SET_PWR_STATE
LBB0_40:
	xorl	%r15d, %r15d
LBB0_41:
	movq	_GEN6_ENABLE_CMD_IRQ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_cyapa_gen6_config_dev_irq
LBB0_42:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CYAPA_STATE_GEN6_APP,8,3       ## @CYAPA_STATE_GEN6_APP
	.comm	_UNINIT_PWR_MODE,8,3            ## @UNINIT_PWR_MODE
	.comm	_PWR_MODE_OFF,8,3               ## @PWR_MODE_OFF
	.comm	_UNINIT_SLEEP_TIME,8,3          ## @UNINIT_SLEEP_TIME
	.comm	_PWR_MODE_FULL_ACTIVE,8,3       ## @PWR_MODE_FULL_ACTIVE
	.comm	_PWR_MODE_BTN_ONLY,8,3          ## @PWR_MODE_BTN_ONLY
	.comm	_GEN6_DISABLE_CMD_IRQ,4,2       ## @GEN6_DISABLE_CMD_IRQ
	.comm	_PIP_DEEP_SLEEP_STATE_OFF,4,2   ## @PIP_DEEP_SLEEP_STATE_OFF
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"enter deep sleep fail: %d\n"

	.comm	_PIP_DEEP_SLEEP_STATE_ON,4,2    ## @PIP_DEEP_SLEEP_STATE_ON
L_.str.1:                               ## @.str.1
	.asciz	"deep sleep wake fail: %d\n"

	.comm	_GEN6_POWER_MODE_ACTIVE,8,3     ## @GEN6_POWER_MODE_ACTIVE
L_.str.2:                               ## @.str.2
	.asciz	"change to active fail: %d\n"

	.comm	_GEN6_POWER_MODE_BTN_ONLY,8,3   ## @GEN6_POWER_MODE_BTN_ONLY
L_.str.3:                               ## @.str.3
	.asciz	"fail to button only mode: %d\n"

	.comm	_GEN6_POWER_MODE_LP_MODE1,8,3   ## @GEN6_POWER_MODE_LP_MODE1
	.comm	_GEN6_POWER_MODE_LP_MODE2,8,3   ## @GEN6_POWER_MODE_LP_MODE2
L_.str.4:                               ## @.str.4
	.asciz	"set power state to 0x%02x failed: %d\n"

	.comm	_GEN6_ENABLE_CMD_IRQ,4,2        ## @GEN6_ENABLE_CMD_IRQ
	.no_dead_strip	_cyapa_gen6_set_power_mode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cyapa_gen6_set_power_mode
_cyapa_gen6_set_power_mode:             ; @cyapa_gen6_set_power_mode
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _CYAPA_STATE_GEN6_APP@GOTPAGE
Lloh1:
	ldr	x9, [x9, _CYAPA_STATE_GEN6_APP@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_9
; %bb.1:
	mov	x21, x2
	mov	x22, x1
	mov	x19, x0
	ldr	x20, [x0, #24]
	bl	_PIP_DEV_GET_PWR_STATE
Lloh3:
	adrp	x8, _UNINIT_PWR_MODE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _UNINIT_PWR_MODE@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
Lloh6:
	adrp	x23, _PWR_MODE_OFF@GOTPAGE
Lloh7:
	ldr	x23, [x23, _PWR_MODE_OFF@GOTPAGEOFF]
	cmp	x0, x8
	b.ne	LBB0_3
; %bb.2:
	ldr	x1, [x23]
	mov	x0, x19
	bl	_PIP_DEV_SET_PWR_STATE
LBB0_3:
	mov	x0, x19
	bl	_PIP_DEV_UNINIT_SLEEP_TIME
	cbz	x0, LBB0_6
; %bb.4:
	mov	x0, x19
	bl	_PIP_DEV_GET_PWR_STATE
	ldr	x8, [x23]
	cmp	x0, x8
	b.eq	LBB0_6
; %bb.5:
Lloh8:
	adrp	x8, _UNINIT_SLEEP_TIME@GOTPAGE
Lloh9:
	ldr	x8, [x8, _UNINIT_SLEEP_TIME@GOTPAGEOFF]
Lloh10:
	ldr	x1, [x8]
	mov	x0, x19
	bl	_PIP_DEV_SET_SLEEP_TIME
LBB0_6:
	mov	x0, x19
	bl	_PIP_DEV_GET_PWR_STATE
	cmp	x0, x22
	b.ne	LBB0_11
; %bb.7:
	ldr	x8, [x23]
Lloh11:
	adrp	x9, _PWR_MODE_FULL_ACTIVE@GOTPAGE
Lloh12:
	ldr	x9, [x9, _PWR_MODE_FULL_ACTIVE@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
Lloh14:
	adrp	x10, _PWR_MODE_BTN_ONLY@GOTPAGE
Lloh15:
	ldr	x10, [x10, _PWR_MODE_BTN_ONLY@GOTPAGEOFF]
Lloh16:
	ldr	x10, [x10]
	cmp	x8, x22
	ccmp	x9, x22, #4, ne
	ccmp	x10, x22, #4, ne
	b.eq	LBB0_9
; %bb.8:
	mov	x0, x19
	bl	_PIP_DEV_GET_SLEEP_TIME
	cmp	x0, x21
	b.ne	LBB0_11
LBB0_9:
	mov	w21, #0
LBB0_10:
	mov	x0, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_11:
	ldr	x8, [x23]
	cmp	x8, x22
	b.ne	LBB0_14
; %bb.12:
Lloh17:
	adrp	x8, _GEN6_DISABLE_CMD_IRQ@GOTPAGE
Lloh18:
	ldr	x8, [x8, _GEN6_DISABLE_CMD_IRQ@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_cyapa_gen6_config_dev_irq
Lloh20:
	adrp	x8, _PIP_DEEP_SLEEP_STATE_OFF@GOTPAGE
Lloh21:
	ldr	x8, [x8, _PIP_DEEP_SLEEP_STATE_OFF@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_cyapa_gen6_deep_sleep
	mov	x21, x0
	cbz	w0, LBB0_20
; %bb.13:
	sxtw	x2, w21
Lloh23:
	adrp	x1, l_.str@PAGE
Lloh24:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_dev_err
	b	LBB0_10
LBB0_14:
	mov	x0, x19
	bl	_PIP_DEV_GET_PWR_STATE
	ldr	x8, [x23]
	cmp	x0, x8
	b.ne	LBB0_17
; %bb.15:
Lloh25:
	adrp	x8, _PIP_DEEP_SLEEP_STATE_ON@GOTPAGE
Lloh26:
	ldr	x8, [x8, _PIP_DEEP_SLEEP_STATE_ON@GOTPAGEOFF]
Lloh27:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_cyapa_gen6_deep_sleep
	cbz	w0, LBB0_17
; %bb.16:
	mov	x23, x0
	sxtw	x2, w23
Lloh28:
	adrp	x1, l_.str.1@PAGE
Lloh29:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_dev_err
	mov	x21, x23
	b	LBB0_10
LBB0_17:
	add	x23, x19, #8
Lloh30:
	adrp	x8, _GEN6_DISABLE_CMD_IRQ@GOTPAGE
Lloh31:
	ldr	x8, [x8, _GEN6_DISABLE_CMD_IRQ@GOTPAGEOFF]
Lloh32:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_cyapa_gen6_config_dev_irq
Lloh33:
	adrp	x24, _PWR_MODE_FULL_ACTIVE@GOTPAGE
Lloh34:
	ldr	x24, [x24, _PWR_MODE_FULL_ACTIVE@GOTPAGEOFF]
	ldr	x8, [x24]
	cmp	x8, x22
	b.ne	LBB0_21
; %bb.18:
Lloh35:
	adrp	x8, _GEN6_POWER_MODE_ACTIVE@GOTPAGE
Lloh36:
	ldr	x8, [x8, _GEN6_POWER_MODE_ACTIVE@GOTPAGEOFF]
Lloh37:
	ldr	x1, [x8]
	mov	x0, x19
	bl	_cyapa_gen6_change_power_state
	mov	x21, x0
	cbz	w0, LBB0_27
; %bb.19:
	sxtw	x2, w21
Lloh38:
	adrp	x1, l_.str.2@PAGE
Lloh39:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_24
LBB0_20:
	ldr	x1, [x23]
	mov	x0, x19
	bl	_PIP_DEV_SET_PWR_STATE
	b	LBB0_10
LBB0_21:
Lloh40:
	adrp	x24, _PWR_MODE_BTN_ONLY@GOTPAGE
Lloh41:
	ldr	x24, [x24, _PWR_MODE_BTN_ONLY@GOTPAGEOFF]
	ldr	x8, [x24]
	cmp	x8, x22
	b.ne	LBB0_25
; %bb.22:
Lloh42:
	adrp	x8, _GEN6_POWER_MODE_BTN_ONLY@GOTPAGE
Lloh43:
	ldr	x8, [x8, _GEN6_POWER_MODE_BTN_ONLY@GOTPAGEOFF]
Lloh44:
	ldr	x1, [x8]
	mov	x0, x19
	bl	_cyapa_gen6_change_power_state
	mov	x21, x0
	cbz	w0, LBB0_30
; %bb.23:
	sxtw	x2, w21
Lloh45:
	adrp	x1, l_.str.3@PAGE
Lloh46:
	add	x1, x1, l_.str.3@PAGEOFF
LBB0_24:
	mov	x0, x20
	bl	_dev_err
                                        ; kill: def $w21 killed $w21 killed $x21 def $x21
	b	LBB0_35
LBB0_25:
	ldr	x8, [x23]
	cmp	x8, x21
	b.ne	LBB0_28
; %bb.26:
Lloh47:
	adrp	x8, _GEN6_POWER_MODE_LP_MODE1@GOTPAGE
Lloh48:
	ldr	x8, [x8, _GEN6_POWER_MODE_LP_MODE1@GOTPAGEOFF]
Lloh49:
	ldr	x22, [x8]
	b	LBB0_32
LBB0_27:
	ldr	x1, [x24]
	mov	x0, x19
	bl	_PIP_DEV_SET_PWR_STATE
	mov	x0, x19
	mov	x1, x23
	bl	_cyapa_gen6_get_interval_setting
	b	LBB0_35
LBB0_28:
	ldr	x9, [x19, #16]
	cmp	x9, x21
	b.ne	LBB0_31
; %bb.29:
Lloh50:
	adrp	x8, _GEN6_POWER_MODE_LP_MODE2@GOTPAGE
Lloh51:
	ldr	x8, [x8, _GEN6_POWER_MODE_LP_MODE2@GOTPAGEOFF]
Lloh52:
	ldr	x22, [x8]
	b	LBB0_32
LBB0_30:
	ldr	x1, [x24]
	mov	x0, x19
	bl	_PIP_DEV_SET_PWR_STATE
	b	LBB0_35
LBB0_31:
	mov	w9, #16
	mov	w10, #8
	cmp	x8, #0
	csel	x8, x10, x9, eq
	str	x21, [x19, x8]
Lloh53:
	adrp	x8, _GEN6_POWER_MODE_LP_MODE1@GOTPAGE
Lloh54:
	ldr	x8, [x8, _GEN6_POWER_MODE_LP_MODE1@GOTPAGEOFF]
Lloh55:
	adrp	x9, _GEN6_POWER_MODE_LP_MODE2@GOTPAGE
Lloh56:
	ldr	x9, [x9, _GEN6_POWER_MODE_LP_MODE2@GOTPAGEOFF]
	csel	x8, x8, x9, eq
	ldr	x22, [x8]
	mov	x0, x19
	mov	x1, x23
	bl	_cyapa_gen6_set_interval_setting
LBB0_32:
	mov	x0, x19
	mov	x1, x22
	bl	_cyapa_gen6_change_power_state
	cbz	w0, LBB0_34
; %bb.33:
	mov	x23, x0
	str	x23, [sp]
Lloh57:
	adrp	x1, l_.str.4@PAGE
Lloh58:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x20
	mov	x2, x22
	bl	_dev_err
	mov	x21, x23
	b	LBB0_35
LBB0_34:
	mov	x0, x19
	mov	x1, x21
	bl	_PIP_DEV_SET_SLEEP_TIME
	mov	x0, x21
	bl	_cyapa_sleep_time_to_pwr_cmd
	mov	x1, x0
	mov	x0, x19
	bl	_PIP_DEV_SET_PWR_STATE
	mov	w21, #0
LBB0_35:
Lloh59:
	adrp	x8, _GEN6_ENABLE_CMD_IRQ@GOTPAGE
Lloh60:
	ldr	x8, [x8, _GEN6_ENABLE_CMD_IRQ@GOTPAGEOFF]
Lloh61:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_cyapa_gen6_config_dev_irq
	b	LBB0_10
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpLdrGot	Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpAdd	Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGot	Lloh55, Lloh56
	.loh AdrpLdrGot	Lloh53, Lloh54
	.loh AdrpAdd	Lloh57, Lloh58
	.loh AdrpLdrGotLdr	Lloh59, Lloh60, Lloh61
	.cfi_endproc
                                        ; -- End function
	.comm	_CYAPA_STATE_GEN6_APP,8,3       ; @CYAPA_STATE_GEN6_APP
	.comm	_UNINIT_PWR_MODE,8,3            ; @UNINIT_PWR_MODE
	.comm	_PWR_MODE_OFF,8,3               ; @PWR_MODE_OFF
	.comm	_UNINIT_SLEEP_TIME,8,3          ; @UNINIT_SLEEP_TIME
	.comm	_PWR_MODE_FULL_ACTIVE,8,3       ; @PWR_MODE_FULL_ACTIVE
	.comm	_PWR_MODE_BTN_ONLY,8,3          ; @PWR_MODE_BTN_ONLY
	.comm	_GEN6_DISABLE_CMD_IRQ,4,2       ; @GEN6_DISABLE_CMD_IRQ
	.comm	_PIP_DEEP_SLEEP_STATE_OFF,4,2   ; @PIP_DEEP_SLEEP_STATE_OFF
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"enter deep sleep fail: %d\n"

	.comm	_PIP_DEEP_SLEEP_STATE_ON,4,2    ; @PIP_DEEP_SLEEP_STATE_ON
l_.str.1:                               ; @.str.1
	.asciz	"deep sleep wake fail: %d\n"

	.comm	_GEN6_POWER_MODE_ACTIVE,8,3     ; @GEN6_POWER_MODE_ACTIVE
l_.str.2:                               ; @.str.2
	.asciz	"change to active fail: %d\n"

	.comm	_GEN6_POWER_MODE_BTN_ONLY,8,3   ; @GEN6_POWER_MODE_BTN_ONLY
l_.str.3:                               ; @.str.3
	.asciz	"fail to button only mode: %d\n"

	.comm	_GEN6_POWER_MODE_LP_MODE1,8,3   ; @GEN6_POWER_MODE_LP_MODE1
	.comm	_GEN6_POWER_MODE_LP_MODE2,8,3   ; @GEN6_POWER_MODE_LP_MODE2
l_.str.4:                               ; @.str.4
	.asciz	"set power state to 0x%02x failed: %d\n"

	.comm	_GEN6_ENABLE_CMD_IRQ,4,2        ; @GEN6_ENABLE_CMD_IRQ
	.no_dead_strip	_cyapa_gen6_set_power_mode
.subsections_via_symbols
