	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mxt_proc_t6_messages
_mxt_proc_t6_messages:                  ## @mxt_proc_t6_messages
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	24(%rdi), %r15
	movl	4(%rsi), %ebx
	movl	12(%rsi), %eax
	shll	$8, %eax
	orl	8(%rsi), %eax
	movl	16(%rsi), %ecx
	shll	$16, %ecx
	orl	%eax, %ecx
	movslq	%ecx, %rdx
	cmpq	%rdx, (%rdi)
	je	LBB0_2
## %bb.1:
	movq	%rdx, (%r14)
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
                                        ## kill: def $edx killed $edx killed $rdx
	xorl	%eax, %eax
	callq	_dev_dbg
LBB0_2:
	leaq	16(%r14), %rdi
	callq	_complete
	movq	_MXT_T6_STATUS_RESET@GOTPCREL(%rip), %r12
	testl	%ebx, (%r12)
	je	LBB0_4
## %bb.3:
	leaq	12(%r14), %rdi
	callq	_complete
LBB0_4:
	cmpl	8(%r14), %ebx
	je	LBB0_6
## %bb.5:
	testl	%ebx, %ebx
	leaq	L_.str.2(%rip), %rcx
	leaq	L_.str.3(%rip), %rax
	cmovneq	%rax, %rcx
	movl	(%r12), %edx
	andl	%ebx, %edx
	leaq	L_.str.4(%rip), %r8
	cmoveq	%rax, %r8
	movq	_MXT_T6_STATUS_OFL@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	andl	%ebx, %edx
	leaq	L_.str.5(%rip), %r9
	cmoveq	%rax, %r9
	movq	_MXT_T6_STATUS_SIGERR@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	andl	%ebx, %edx
	leaq	L_.str.6(%rip), %r10
	cmoveq	%rax, %r10
	movq	_MXT_T6_STATUS_CAL@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	andl	%ebx, %edx
	leaq	L_.str.7(%rip), %r11
	cmoveq	%rax, %r11
	movq	_MXT_T6_STATUS_CFGERR@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	andl	%ebx, %edx
	leaq	L_.str.8(%rip), %r12
	cmoveq	%rax, %r12
	movq	_MXT_T6_STATUS_COMSERR@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	andl	%ebx, %edx
	leaq	L_.str.9(%rip), %r13
	cmoveq	%rax, %r13
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	movl	%ebx, %edx
	xorl	%eax, %eax
	pushq	%r13
	pushq	%r12
	pushq	%r11
	pushq	%r10
	callq	_dev_dbg
	addq	$32, %rsp
LBB0_6:
	movl	%ebx, 8(%r14)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"T6 Config Checksum: 0x%06X\n"

	.comm	_MXT_T6_STATUS_RESET,4,2        ## @MXT_T6_STATUS_RESET
L_.str.1:                               ## @.str.1
	.asciz	"T6 Status 0x%02X%s%s%s%s%s%s%s\n"

L_.str.2:                               ## @.str.2
	.asciz	" OK"

L_.str.3:                               ## @.str.3
	.space	1

L_.str.4:                               ## @.str.4
	.asciz	" RESET"

	.comm	_MXT_T6_STATUS_OFL,4,2          ## @MXT_T6_STATUS_OFL
L_.str.5:                               ## @.str.5
	.asciz	" OFL"

	.comm	_MXT_T6_STATUS_SIGERR,4,2       ## @MXT_T6_STATUS_SIGERR
L_.str.6:                               ## @.str.6
	.asciz	" SIGERR"

	.comm	_MXT_T6_STATUS_CAL,4,2          ## @MXT_T6_STATUS_CAL
L_.str.7:                               ## @.str.7
	.asciz	" CAL"

	.comm	_MXT_T6_STATUS_CFGERR,4,2       ## @MXT_T6_STATUS_CFGERR
L_.str.8:                               ## @.str.8
	.asciz	" CFGERR"

	.comm	_MXT_T6_STATUS_COMSERR,4,2      ## @MXT_T6_STATUS_COMSERR
L_.str.9:                               ## @.str.9
	.asciz	" COMSERR"

	.no_dead_strip	_mxt_proc_t6_messages
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mxt_proc_t6_messages
_mxt_proc_t6_messages:                  ; @mxt_proc_t6_messages
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x19, x0
	ldr	x21, [x0, #24]
	ldp	w20, w8, [x1, #4]
	ldp	w9, w10, [x1, #12]
	orr	w8, w8, w9, lsl #8
	orr	w8, w8, w10, lsl #16
	sxtw	x2, w8
	ldr	x8, [x0]
	cmp	x8, x2
	b.eq	LBB0_2
; %bb.1:
	str	x2, [x19]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_dev_dbg
LBB0_2:
	add	x0, x19, #16
	bl	_complete
Lloh2:
	adrp	x22, _MXT_T6_STATUS_RESET@GOTPAGE
Lloh3:
	ldr	x22, [x22, _MXT_T6_STATUS_RESET@GOTPAGEOFF]
	ldr	w8, [x22]
	tst	w8, w20
	b.eq	LBB0_4
; %bb.3:
	add	x0, x19, #12
	bl	_complete
LBB0_4:
	ldr	w8, [x19, #8]
	cmp	w20, w8
	b.eq	LBB0_6
; %bb.5:
Lloh4:
	adrp	x8, l_.str.3@PAGE
Lloh5:
	add	x8, x8, l_.str.3@PAGEOFF
Lloh6:
	adrp	x9, l_.str.2@PAGE
Lloh7:
	add	x9, x9, l_.str.2@PAGEOFF
	cmp	w20, #0
	csel	x9, x9, x8, eq
	ldr	w10, [x22]
Lloh8:
	adrp	x11, l_.str.4@PAGE
Lloh9:
	add	x11, x11, l_.str.4@PAGEOFF
	tst	w10, w20
	csel	x10, x8, x11, eq
Lloh10:
	adrp	x11, _MXT_T6_STATUS_OFL@GOTPAGE
Lloh11:
	ldr	x11, [x11, _MXT_T6_STATUS_OFL@GOTPAGEOFF]
Lloh12:
	ldr	w11, [x11]
Lloh13:
	adrp	x12, l_.str.5@PAGE
Lloh14:
	add	x12, x12, l_.str.5@PAGEOFF
	tst	w11, w20
	csel	x11, x8, x12, eq
Lloh15:
	adrp	x12, _MXT_T6_STATUS_SIGERR@GOTPAGE
Lloh16:
	ldr	x12, [x12, _MXT_T6_STATUS_SIGERR@GOTPAGEOFF]
Lloh17:
	adrp	x13, l_.str.6@PAGE
Lloh18:
	add	x13, x13, l_.str.6@PAGEOFF
Lloh19:
	ldr	w12, [x12]
	tst	w12, w20
	csel	x12, x8, x13, eq
Lloh20:
	adrp	x13, _MXT_T6_STATUS_CAL@GOTPAGE
Lloh21:
	ldr	x13, [x13, _MXT_T6_STATUS_CAL@GOTPAGEOFF]
Lloh22:
	ldr	w13, [x13]
Lloh23:
	adrp	x14, l_.str.7@PAGE
Lloh24:
	add	x14, x14, l_.str.7@PAGEOFF
	tst	w13, w20
	csel	x13, x8, x14, eq
Lloh25:
	adrp	x14, _MXT_T6_STATUS_CFGERR@GOTPAGE
Lloh26:
	ldr	x14, [x14, _MXT_T6_STATUS_CFGERR@GOTPAGEOFF]
Lloh27:
	ldr	w14, [x14]
Lloh28:
	adrp	x15, l_.str.8@PAGE
Lloh29:
	add	x15, x15, l_.str.8@PAGEOFF
	tst	w14, w20
Lloh30:
	adrp	x14, _MXT_T6_STATUS_COMSERR@GOTPAGE
Lloh31:
	ldr	x14, [x14, _MXT_T6_STATUS_COMSERR@GOTPAGEOFF]
	csel	x15, x8, x15, eq
Lloh32:
	ldr	w14, [x14]
Lloh33:
	adrp	x16, l_.str.9@PAGE
Lloh34:
	add	x16, x16, l_.str.9@PAGEOFF
	tst	w14, w20
	csel	x8, x8, x16, eq
	stp	x15, x8, [sp, #40]
	stp	x12, x13, [sp, #24]
Lloh35:
	adrp	x1, l_.str.1@PAGE
Lloh36:
	add	x1, x1, l_.str.1@PAGEOFF
	stp	x10, x11, [sp, #8]
	str	x9, [sp]
	mov	x0, x21
	mov	x2, x20
	bl	_dev_dbg
LBB0_6:
	str	w20, [x19, #8]
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh19
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"T6 Config Checksum: 0x%06X\n"

	.comm	_MXT_T6_STATUS_RESET,4,2        ; @MXT_T6_STATUS_RESET
l_.str.1:                               ; @.str.1
	.asciz	"T6 Status 0x%02X%s%s%s%s%s%s%s\n"

l_.str.2:                               ; @.str.2
	.asciz	" OK"

l_.str.3:                               ; @.str.3
	.space	1

l_.str.4:                               ; @.str.4
	.asciz	" RESET"

	.comm	_MXT_T6_STATUS_OFL,4,2          ; @MXT_T6_STATUS_OFL
l_.str.5:                               ; @.str.5
	.asciz	" OFL"

	.comm	_MXT_T6_STATUS_SIGERR,4,2       ; @MXT_T6_STATUS_SIGERR
l_.str.6:                               ; @.str.6
	.asciz	" SIGERR"

	.comm	_MXT_T6_STATUS_CAL,4,2          ; @MXT_T6_STATUS_CAL
l_.str.7:                               ; @.str.7
	.asciz	" CAL"

	.comm	_MXT_T6_STATUS_CFGERR,4,2       ; @MXT_T6_STATUS_CFGERR
l_.str.8:                               ; @.str.8
	.asciz	" CFGERR"

	.comm	_MXT_T6_STATUS_COMSERR,4,2      ; @MXT_T6_STATUS_COMSERR
l_.str.9:                               ; @.str.9
	.asciz	" COMSERR"

	.no_dead_strip	_mxt_proc_t6_messages
.subsections_via_symbols
