	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mxt_set_t7_power_cfg
_mxt_set_t7_power_cfg:                  ## @mxt_set_t7_power_cfg
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	8(%rdi), %rdi
	movq	$0, -48(%rbp)
	movq	_MXT_POWER_CFG_DEEPSLEEP@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	leaq	16(%rbx), %r13
	cmpq	%rsi, %r14
	leaq	-48(%rbp), %rax
	movq	%r13, %rcx
	cmoveq	%rax, %rcx
	movl	(%rbx), %esi
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movl	$8, %edx
	callq	___mxt_write_reg
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	addq	$20, %rbx
	cmpq	%r15, %r14
	leaq	-44(%rbp), %rax
	cmovneq	%rbx, %rax
	movl	(%rax), %edx
	leaq	-48(%rbp), %rax
	cmoveq	%rax, %r13
	movl	(%r13), %ecx
	leaq	L_.str(%rip), %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_dev_dbg
LBB0_2:
	movl	%r12d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MXT_POWER_CFG_DEEPSLEEP,8,3    ## @MXT_POWER_CFG_DEEPSLEEP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Set T7 ACTV:%d IDLE:%d\n"

	.no_dead_strip	_mxt_set_t7_power_cfg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mxt_set_t7_power_cfg
_mxt_set_t7_power_cfg:                  ; @mxt_set_t7_power_cfg
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x1
	mov	x21, x0
	ldr	x19, [x0, #8]
	str	xzr, [sp, #8]
Lloh0:
	adrp	x8, _MXT_POWER_CFG_DEEPSLEEP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MXT_POWER_CFG_DEEPSLEEP@GOTPAGEOFF]
Lloh2:
	ldr	x24, [x8]
	add	x23, x0, #16
	add	x25, sp, #8
	cmp	x24, x1
	csel	x3, x25, x23, eq
	ldr	w1, [x0]
	mov	x0, x19
	mov	w2, #8
	bl	___mxt_write_reg
	mov	x22, x0
	cbnz	w0, LBB0_2
; %bb.1:
	orr	x8, x25, #0x4
	add	x9, x21, #20
	cmp	x24, x20
	csel	x8, x8, x9, eq
	ldr	w2, [x8]
	csel	x8, x25, x23, eq
	ldr	w3, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_dbg
LBB0_2:
	mov	x0, x22
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_MXT_POWER_CFG_DEEPSLEEP,8,3    ; @MXT_POWER_CFG_DEEPSLEEP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Set T7 ACTV:%d IDLE:%d\n"

	.no_dead_strip	_mxt_set_t7_power_cfg
.subsections_via_symbols
