	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mxt_soft_reset
_mxt_soft_reset:                        ## @mxt_soft_reset
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	8(%rdi), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_dev_info
	movl	4(%rbx), %edi
	callq	_disable_irq
	movq	%rbx, %rdi
	callq	_reinit_completion
	movq	_MXT_COMMAND_RESET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MXT_RESET_VALUE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	xorl	%ecx, %ecx
	callq	_mxt_t6_command
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_2:
	movq	_MXT_RESET_INVALID_CHG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_msleep
	movq	%rbx, %rdi
	callq	_mxt_acquire_irq
	movq	_MXT_RESET_TIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movq	%rbx, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_mxt_wait_for_completion        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Resetting device\n"

	.comm	_MXT_COMMAND_RESET,4,2          ## @MXT_COMMAND_RESET
	.comm	_MXT_RESET_VALUE,4,2            ## @MXT_RESET_VALUE
	.comm	_MXT_RESET_INVALID_CHG,4,2      ## @MXT_RESET_INVALID_CHG
	.comm	_MXT_RESET_TIMEOUT,4,2          ## @MXT_RESET_TIMEOUT
	.no_dead_strip	_mxt_soft_reset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mxt_soft_reset
_mxt_soft_reset:                        ; @mxt_soft_reset
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	x0, [x0, #8]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_info
	ldr	w0, [x19, #4]
	bl	_disable_irq
	mov	x0, x19
	bl	_reinit_completion
Lloh2:
	adrp	x8, _MXT_COMMAND_RESET@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MXT_COMMAND_RESET@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
Lloh5:
	adrp	x8, _MXT_RESET_VALUE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MXT_RESET_VALUE@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w3, #0
	bl	_mxt_t6_command
	cbz	w0, LBB0_2
; %bb.1:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_2:
Lloh8:
	adrp	x8, _MXT_RESET_INVALID_CHG@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MXT_RESET_INVALID_CHG@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	bl	_msleep
	mov	x0, x19
	bl	_mxt_acquire_irq
Lloh11:
	adrp	x8, _MXT_RESET_TIMEOUT@GOTPAGE
Lloh12:
	ldr	x8, [x8, _MXT_RESET_TIMEOUT@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_mxt_wait_for_completion
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Resetting device\n"

	.comm	_MXT_COMMAND_RESET,4,2          ; @MXT_COMMAND_RESET
	.comm	_MXT_RESET_VALUE,4,2            ; @MXT_RESET_VALUE
	.comm	_MXT_RESET_INVALID_CHG,4,2      ; @MXT_RESET_INVALID_CHG
	.comm	_MXT_RESET_TIMEOUT,4,2          ; @MXT_RESET_TIMEOUT
	.no_dead_strip	_mxt_soft_reset
.subsections_via_symbols
