	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function grts_cb
_grts_cb:                               ## @grts_cb
	.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	%rsi, %rbx
	movl	(%rdi), %edx
	movl	4(%rdi), %ecx
	movl	%edx, %eax
	orl	%ecx, %eax
	setne	%al
	cmpq	$0, 8(%rsi)
	je	LBB0_1
## %bb.4:
	testb	%al, %al
	je	LBB0_6
## %bb.5:
	movl	8(%rdi), %r14d
	cmpl	(%rbx), %r14d
	jb	LBB0_6
LBB0_2:
	leaq	4(%rbx), %r12
	movl	4(%rbx), %edi
	leaq	16(%rbx), %rsi
	xorl	%r8d, %r8d
	callq	_touchscreen_report_pos
	movl	$1, %r15d
	cmpq	$0, 8(%rbx)
	je	LBB0_7
## %bb.3:
	movl	(%r12), %edi
	movq	_ABS_PRESSURE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r14d, %edx
	callq	_input_report_abs
	jmp	LBB0_7
LBB0_1:
	xorl	%r14d, %r14d
	testb	%al, %al
	jne	LBB0_2
LBB0_6:
	addq	$4, %rbx
	xorl	%r15d, %r15d
	movq	%rbx, %r12
LBB0_7:
	movl	(%r12), %edi
	movq	_BTN_TOUCH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r15d, %edx
	callq	_input_report_key
	movl	(%r12), %edi
	callq	_input_sync
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BTN_TOUCH,4,2                  ## @BTN_TOUCH
	.comm	_ABS_PRESSURE,4,2               ## @ABS_PRESSURE
	.no_dead_strip	_grts_cb
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function grts_cb
_grts_cb:                               ; @grts_cb
	.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, x1
	ldp	w2, w3, [x0]
	ldr	x9, [x1, #8]
	orr	w8, w2, w3
	cmp	w8, #0
	cset	w8, ne
	cbz	x9, LBB0_3
; %bb.1:
	cbz	w8, LBB0_8
; %bb.2:
	ldr	w20, [x0, #8]
	ldr	w8, [x19]
	cmp	w20, w8
	b.hs	LBB0_5
	b	LBB0_8
LBB0_3:
	tbz	w8, #0, LBB0_8
; %bb.4:
	mov	w20, #0
LBB0_5:
	ldr	w0, [x19, #4]!
	add	x1, x19, #12
	mov	w4, #0
	bl	_touchscreen_report_pos
	ldur	x8, [x19, #4]
	cbz	x8, LBB0_7
; %bb.6:
	ldr	w0, [x19]
Lloh0:
	adrp	x8, _ABS_PRESSURE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ABS_PRESSURE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x2, x20
	bl	_input_report_abs
LBB0_7:
	mov	w2, #1
	b	LBB0_9
LBB0_8:
	mov	w2, #0
	add	x19, x19, #4
LBB0_9:
	ldr	w0, [x19]
Lloh3:
	adrp	x8, _BTN_TOUCH@GOTPAGE
Lloh4:
	ldr	x8, [x8, _BTN_TOUCH@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_input_report_key
	ldr	w0, [x19]
	bl	_input_sync
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_BTN_TOUCH,4,2                  ; @BTN_TOUCH
	.comm	_ABS_PRESSURE,4,2               ; @ABS_PRESSURE
	.no_dead_strip	_grts_cb
.subsections_via_symbols
