	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rmi_f12_attention
_rmi_f12_attention:                     ## @rmi_f12_attention
	.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	%rsi, %r15
	movq	8(%rsi), %r13
	movq	%r13, %rdi
	callq	_dev_get_drvdata
	movq	%rax, %r12
	movq	%r15, %rdi
	callq	_dev_get_drvdata
	movq	%rax, %rbx
	movq	8(%r12), %rsi
	testq	%rsi, %rsi
	je	LBB0_2
## %bb.1:
	movl	28(%rbx), %eax
	movl	(%r12), %r14d
	cmpl	%r14d, %eax
	cmovll	%eax, %r14d
	movq	40(%rbx), %rdi
	movl	%r14d, %edx
	callq	_memcpy
	movslq	%r14d, %rax
	addq	%rax, 8(%r12)
	subl	%eax, (%r12)
	jmp	LBB0_3
LBB0_2:
	movl	16(%rbx), %esi
	movl	24(%rbx), %r14d
	movq	40(%rbx), %rdx
	movq	%r13, %rdi
	movl	%r14d, %ecx
	callq	_rmi_read_block
	testl	%eax, %eax
	js	LBB0_6
LBB0_3:
	cmpq	$0, 8(%rbx)
	je	LBB0_5
## %bb.4:
	movq	(%rbx), %rsi
	shlq	$2, %rsi
	addq	40(%rbx), %rsi
	movq	%rbx, %rdi
	movl	%r14d, %edx
	callq	_rmi_f12_process_objects
LBB0_5:
	movl	32(%rbx), %edi
	callq	_input_mt_sync_frame
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movl	%eax, %r12d
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	movl	%eax, %edx
	callq	_dev_err
	movl	%r12d, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_IRQ_RETVAL                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to read object data. Code: %d.\n"

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

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rmi_f12_attention
_rmi_f12_attention:                     ; @rmi_f12_attention
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x1
	ldr	x23, [x1, #8]
	mov	x0, x23
	bl	_dev_get_drvdata
	mov	x22, x0
	mov	x0, x21
	bl	_dev_get_drvdata
	mov	x19, x0
	ldr	x1, [x22, #8]
	cbz	x1, LBB0_2
; %bb.1:
	ldr	w8, [x19, #28]
	ldr	w9, [x22]
	cmp	w8, w9
	csel	w20, w8, w9, lt
	ldr	x0, [x19, #40]
	mov	x2, x20
	bl	_memcpy
	ldr	x8, [x22, #8]
	add	x8, x8, w20, sxtw
	str	x8, [x22, #8]
	ldr	w8, [x22]
	sub	w8, w8, w20
	str	w8, [x22]
	b	LBB0_3
LBB0_2:
	ldr	w20, [x19, #24]
	ldr	w1, [x19, #16]
	ldr	x2, [x19, #40]
	mov	x0, x23
	mov	x3, x20
	bl	_rmi_read_block
	tbnz	w0, #31, LBB0_6
LBB0_3:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_5
; %bb.4:
	ldr	x8, [x19, #40]
	ldr	x9, [x19]
	add	x1, x8, x9, lsl #2
	mov	x0, x19
	mov	x2, x20
	bl	_rmi_f12_process_objects
LBB0_5:
	ldr	w0, [x19, #32]
	bl	_input_mt_sync_frame
Lloh0:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
Lloh2:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_6:
	mov	x22, x0
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	mov	x2, x22
	bl	_dev_err
	mov	x0, x22
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_IRQ_RETVAL
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to read object data. Code: %d.\n"

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