	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mxt_process_messages_t44
_mxt_process_messages_t44:              ## @mxt_process_messages_t44
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	40(%rdi), %r14
	movl	32(%rdi), %esi
	movq	(%rdi), %rcx
	movq	24(%rdi), %rdx
	incq	%rdx
	movq	%r14, %rdi
	callq	___mxt_read_reg
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_dev_err
	movq	_IRQ_NONE@GOTPCREL(%rip), %r12
LBB0_13:
	movl	(%r12), %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	(%rbx), %rsi
	movq	(%rsi), %r15
	movq	_IRQ_NONE@GOTPCREL(%rip), %r12
	testq	%r15, %r15
	je	LBB0_13
## %bb.3:
	cmpq	8(%rbx), %r15
	jle	LBB0_5
## %bb.4:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	movq	%r15, %rdx
	xorl	%eax, %eax
	callq	_dev_warn
	movq	(%rbx), %rsi
	movq	8(%rbx), %r15
LBB0_5:
	addq	$8, %rsi
	movq	%rbx, %rdi
	callq	_mxt_proc_message
	testl	%eax, %eax
	js	LBB0_6
## %bb.7:
	decq	%r15
	je	LBB0_11
## %bb.8:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_mxt_read_and_process_messages
	testl	%eax, %eax
	js	LBB0_11
## %bb.9:
	cltq
	cmpq	%rax, %r15
	je	LBB0_11
## %bb.10:
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_warn
LBB0_11:
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %r12
	cmpl	$0, 16(%rbx)
	je	LBB0_13
## %bb.12:
	movq	%rbx, %rdi
	callq	_mxt_input_sync
	movl	$0, 16(%rbx)
	jmp	LBB0_13
LBB0_6:
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_warn
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to read T44 and T5 (%d)\n"

	.comm	_IRQ_NONE,4,2                   ## @IRQ_NONE
L_.str.1:                               ## @.str.1
	.asciz	"T44 count %d exceeded max report id\n"

L_.str.2:                               ## @.str.2
	.asciz	"Unexpected invalid message\n"

	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.no_dead_strip	_mxt_process_messages_t44
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mxt_process_messages_t44
_mxt_process_messages_t44:              ; @mxt_process_messages_t44
	.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	x19, x0
	ldr	x20, [x0, #40]
	ldr	w1, [x0, #32]
	ldr	x8, [x0, #24]
	add	x2, x8, #1
	ldr	x3, [x0]
	mov	x0, x20
	bl	___mxt_read_reg
	cbz	w0, LBB0_4
; %bb.1:
	mov	x2, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_dev_err
LBB0_2:
Lloh2:
	adrp	x8, _IRQ_NONE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _IRQ_NONE@GOTPAGEOFF]
LBB0_3:
	ldr	w0, [x8]
	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
LBB0_4:
	ldr	x8, [x19]
	ldr	x21, [x8]
	cbz	x21, LBB0_2
; %bb.5:
	ldr	x9, [x19, #8]
	cmp	x21, x9
	b.le	LBB0_7
; %bb.6:
	str	x21, [sp]
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_dev_warn
	ldp	x8, x21, [x19]
LBB0_7:
	add	x1, x8, #8
	mov	x0, x19
	bl	_mxt_proc_message
	tbnz	w0, #31, LBB0_15
; %bb.8:
	subs	x21, x21, #1
	b.eq	LBB0_12
; %bb.9:
	mov	x0, x19
	mov	x1, x21
	bl	_mxt_read_and_process_messages
                                        ; kill: def $w0 killed $w0 def $x0
	tbnz	w0, #31, LBB0_12
; %bb.10:
	sxtw	x8, w0
	cmp	x21, x8
	b.eq	LBB0_12
; %bb.11:
Lloh6:
	adrp	x1, l_.str.2@PAGE
Lloh7:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_dev_warn
LBB0_12:
	ldr	w8, [x19, #16]
	cbz	w8, LBB0_14
; %bb.13:
	mov	x0, x19
	bl	_mxt_input_sync
	str	wzr, [x19, #16]
LBB0_14:
Lloh8:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh9:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
	b	LBB0_3
LBB0_15:
Lloh10:
	adrp	x1, l_.str.2@PAGE
Lloh11:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_dev_warn
	b	LBB0_2
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to read T44 and T5 (%d)\n"

	.comm	_IRQ_NONE,4,2                   ; @IRQ_NONE
l_.str.1:                               ; @.str.1
	.asciz	"T44 count %d exceeded max report id\n"

l_.str.2:                               ; @.str.2
	.asciz	"Unexpected invalid message\n"

	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.no_dead_strip	_mxt_process_messages_t44
.subsections_via_symbols
