	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mxt_t6_command
_mxt_t6_command:                        ## @mxt_t6_command
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r15d
	movq	%rsi, %r12
	movq	%rdi, %r14
	addq	8(%rdi), %r12
	movq	(%rdi), %rdi
	movq	%r12, %rsi
	callq	_mxt_write_reg
	testl	%eax, %eax
	je	LBB0_1
LBB0_9:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	testl	%r15d, %r15d
	je	LBB0_2
## %bb.3:
	xorl	%ebx, %ebx
	leaq	-40(%rbp), %r15
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	$20, %edi
	callq	_msleep
	movq	(%r14), %rdi
	movq	%r12, %rsi
	movl	$1, %edx
	movq	%r15, %rcx
	callq	___mxt_read_reg
	testl	%eax, %eax
	jne	LBB0_9
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpq	$0, -40(%rbp)
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	incl	%ebx
	cmpl	$102, %ebx
	jne	LBB0_4
	jmp	LBB0_8
LBB0_2:
	xorl	%eax, %eax
	jmp	LBB0_9
LBB0_7:
	xorl	%eax, %eax
	cmpl	$101, %ebx
	jb	LBB0_9
LBB0_8:
	movq	(%r14), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	movq	_EIO@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Command failed!\n"

	.comm	_EIO,4,2                        ## @EIO
	.no_dead_strip	_mxt_t6_command
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mxt_t6_command
_mxt_t6_command:                        ; @mxt_t6_command
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x21, x3
	mov	x19, x0
	ldp	x0, x8, [x0]
	add	x20, x8, x1
	mov	x1, x20
	bl	_mxt_write_reg
	cbnz	w0, LBB0_9
; %bb.1:
	cbz	w21, LBB0_8
; %bb.2:
	mov	w21, #0
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	w0, #20
	bl	_msleep
	ldr	x0, [x19]
	add	x3, sp, #8
	mov	x1, x20
	mov	w2, #1
	bl	___mxt_read_reg
	cbnz	w0, LBB0_9
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [sp, #8]
	cbz	x8, LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	add	w21, w21, #1
	cmp	w21, #102
	b.ne	LBB0_3
	b	LBB0_7
LBB0_6:
	cmp	w21, #101
	b.lo	LBB0_8
LBB0_7:
	ldr	x0, [x19]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
Lloh2:
	adrp	x8, _EIO@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_9
LBB0_8:
	mov	w0, #0
LBB0_9:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Command failed!\n"

	.comm	_EIO,4,2                        ; @EIO
	.no_dead_strip	_mxt_t6_command
.subsections_via_symbols
