	.file	"extr_atmel_mxt_ts.c_mxt_init_t7_power_cfg.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"T7 cfg zero, resetting\n"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"T7 cfg zero after reset, overriding\n"
	.align 8
.LC2:
	.string	"Initialized power cfg: ACTV %d, IDLE %d\n"
	.text
	.p2align 4
	.type	mxt_init_t7_power_cfg, @function
mxt_init_t7_power_cfg:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	rcx, rdi
	mov	edx, 8
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	r13, QWORD PTR 16[rdi]
	mov	rbp, rdi
	mov	esi, DWORD PTR 8[rdi]
	mov	rdi, r13
	call	__mxt_read_reg@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L1
	mov	edx, DWORD PTR 0[rbp]
	test	edx, edx
	jne	.L16
.L3:
	lea	rsi, .LC0[rip]
	mov	rdi, r13
	xor	eax, eax
	call	dev_dbg@PLT
	mov	rdi, rbp
	call	mxt_soft_reset@PLT
	mov	esi, DWORD PTR 8[rbp]
	mov	rdi, QWORD PTR 16[rbp]
	mov	rcx, rbp
	mov	edx, 8
	call	__mxt_read_reg@PLT
	test	eax, eax
	jne	.L17
	mov	edx, DWORD PTR 0[rbp]
	test	edx, edx
	jne	.L18
.L7:
	mov	rdi, r13
	lea	rsi, .LC1[rip]
	xor	eax, eax
	call	dev_dbg@PLT
	mov	rdi, rbp
	movabs	rax, 429496729620
	mov	QWORD PTR 0[rbp], rax
	mov	esi, DWORD PTR MXT_POWER_CFG_RUN[rip]
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	jmp	mxt_set_t7_power_cfg@PLT
	.p2align 4,,10
	.p2align 3
.L16:
	.cfi_restore_state
	mov	ecx, DWORD PTR 4[rbp]
	test	ecx, ecx
	je	.L3
.L4:
	lea	rsi, .LC2[rip]
	mov	rdi, r13
	xor	eax, eax
	call	dev_dbg@PLT
.L1:
	mov	eax, r12d
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L18:
	.cfi_restore_state
	mov	ecx, DWORD PTR 4[rbp]
	test	ecx, ecx
	je	.L7
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L17:
	mov	r12d, eax
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	mxt_init_t7_power_cfg, .-mxt_init_t7_power_cfg
	.comm	MXT_POWER_CFG_RUN,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_atmel_mxt_ts.c_mxt_init_t7_power_cfg.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"T7 cfg zero, resetting\012\000"
	.align	2
.LC1:
	.ascii	"T7 cfg zero after reset, overriding\012\000"
	.align	2
.LC2:
	.ascii	"Initialized power cfg: ACTV %d, IDLE %d\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	mxt_init_t7_power_cfg, %function
mxt_init_t7_power_cfg:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r0
	ldr	r6, [r0, #12]
	mov	r3, r0
	mov	r2, #8
	mov	r0, r6
	ldr	r1, [r4, #8]
	bl	__mxt_read_reg
	subs	r5, r0, #0
	bne	.L1
	ldr	r2, [r4]
	cmp	r2, #0
	bne	.L16
.L3:
	ldr	r1, .L18
	mov	r0, r6
	bl	dev_dbg
	mov	r0, r4
	bl	mxt_soft_reset
	mov	r3, r4
	mov	r2, #8
	ldr	r1, [r4, #8]
	ldr	r0, [r4, #12]
	bl	__mxt_read_reg
	cmp	r0, #0
	movne	r5, r0
	bne	.L1
	ldr	r2, [r4]
	cmp	r2, #0
	bne	.L17
.L7:
	mov	r0, r6
	ldr	r1, .L18+4
	bl	dev_dbg
	mov	r1, #20
	mov	r2, #100
	ldr	r3, .L18+8
	stm	r4, {r1, r2}
	mov	r0, r4
	pop	{r4, r5, r6, lr}
	ldr	r1, [r3]
	b	mxt_set_t7_power_cfg
.L16:
	ldr	r3, [r4, #4]
	cmp	r3, #0
	beq	.L3
.L4:
	mov	r0, r6
	ldr	r1, .L18+12
	bl	dev_dbg
.L1:
	mov	r0, r5
	pop	{r4, r5, r6, pc}
.L17:
	ldr	r3, [r4, #4]
	cmp	r3, #0
	beq	.L7
	b	.L4
.L19:
	.align	2
.L18:
	.word	.LC0
	.word	.LC1
	.word	MXT_POWER_CFG_RUN
	.word	.LC2
	.size	mxt_init_t7_power_cfg, .-mxt_init_t7_power_cfg
	.comm	MXT_POWER_CFG_RUN,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
