	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mxt_init_t7_power_cfg
_mxt_init_t7_power_cfg:                 ## @mxt_init_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	16(%rdi), %r14
	movl	8(%rdi), %esi
	movq	%r14, %rdi
	movl	$8, %edx
	movq	%r15, %rcx
	callq	___mxt_read_reg
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_7
## %bb.1:
	movl	(%r15), %edx
	testl	%edx, %edx
	je	LBB0_3
## %bb.2:
	movl	4(%r15), %ecx
	testl	%ecx, %ecx
	je	LBB0_3
LBB0_6:
	leaq	L_.str.2(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_dbg
	jmp	LBB0_7
LBB0_3:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_dbg
	movq	%r15, %rdi
	callq	_mxt_soft_reset
	movq	16(%r15), %rdi
	movl	8(%r15), %esi
	movl	$8, %edx
	movq	%r15, %rcx
	callq	___mxt_read_reg
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_4
LBB0_7:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movl	(%r15), %edx
	testl	%edx, %edx
	je	LBB0_8
## %bb.5:
	movl	4(%r15), %ecx
	testl	%ecx, %ecx
	jne	LBB0_6
LBB0_8:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_dbg
	movabsq	$429496729620, %rax             ## imm = 0x6400000014
	movq	%rax, (%r15)
	movq	_MXT_POWER_CFG_RUN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mxt_set_t7_power_cfg           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"T7 cfg zero, resetting\n"

L_.str.1:                               ## @.str.1
	.asciz	"T7 cfg zero after reset, overriding\n"

	.comm	_MXT_POWER_CFG_RUN,4,2          ## @MXT_POWER_CFG_RUN
L_.str.2:                               ## @.str.2
	.asciz	"Initialized power cfg: ACTV %d, IDLE %d\n"

	.no_dead_strip	_mxt_init_t7_power_cfg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function mxt_init_t7_power_cfg
lCPI0_0:
	.long	20                              ; 0x14
	.long	100                             ; 0x64
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_mxt_init_t7_power_cfg:                 ; @mxt_init_t7_power_cfg
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x20, x0
	ldr	x19, [x0, #16]
	ldr	w1, [x0, #8]
	mov	x0, x19
	mov	w2, #8
	mov	x3, x20
	bl	___mxt_read_reg
	cbnz	w0, LBB0_5
; %bb.1:
	ldr	w8, [x20]
	cbz	w8, LBB0_4
; %bb.2:
	ldr	w9, [x20, #4]
	cbz	w9, LBB0_4
LBB0_3:
	stp	x8, x9, [sp]
Lloh0:
	adrp	x1, l_.str.2@PAGE
Lloh1:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_dev_dbg
	mov	w0, #0
	b	LBB0_5
LBB0_4:
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_dbg
	mov	x0, x20
	bl	_mxt_soft_reset
	ldr	x0, [x20, #16]
	ldr	w1, [x20, #8]
	mov	w2, #8
	mov	x3, x20
	bl	___mxt_read_reg
	cbz	w0, LBB0_6
LBB0_5:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_6:
	ldr	w8, [x20]
	cbz	w8, LBB0_8
; %bb.7:
	ldr	w9, [x20, #4]
	cbnz	w9, LBB0_3
LBB0_8:
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_dbg
Lloh6:
	adrp	x8, lCPI0_0@PAGE
Lloh7:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	str	d0, [x20]
Lloh8:
	adrp	x8, _MXT_POWER_CFG_RUN@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MXT_POWER_CFG_RUN@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	b	_mxt_set_t7_power_cfg
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdrp	Lloh6, Lloh8
	.loh AdrpLdr	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"T7 cfg zero, resetting\n"

l_.str.1:                               ; @.str.1
	.asciz	"T7 cfg zero after reset, overriding\n"

	.comm	_MXT_POWER_CFG_RUN,4,2          ; @MXT_POWER_CFG_RUN
l_.str.2:                               ; @.str.2
	.asciz	"Initialized power cfg: ACTV %d, IDLE %d\n"

	.no_dead_strip	_mxt_init_t7_power_cfg
.subsections_via_symbols
