	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function goodix_process_events
_goodix_process_events:                 ## @goodix_process_events
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r13
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_GOODIX_MAX_CONTACT_SIZE@GOTPCREL(%rip), %rcx
	movq	_GOODIX_MAX_CONTACTS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	imull	(%rcx), %eax
	incl	%eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r14
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_goodix_ts_read_input_report
	testl	%eax, %eax
	js	LBB0_8
## %bb.1:
	movl	%eax, %r15d
	movl	4(%r13), %eax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movq	_KEY_LEFTMETA@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	(%r14), %r12d
	movl	$4, %edi
	callq	_BIT
	andl	%eax, %r12d
	movl	-52(%rbp), %edi                 ## 4-byte Reload
	movl	%ebx, %esi
	movl	%r12d, %edx
	callq	_input_report_key
	testl	%r15d, %r15d
	je	LBB0_7
## %bb.2:
	movl	%r15d, %r15d
	movl	$1, %r12d
	xorl	%ebx, %ebx
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	imull	%ebx, %eax
	cltq
	leaq	(%r14,%rax,4), %rsi
	addq	$4, %rsi
	movq	%r13, %rdi
	callq	_goodix_ts_report_touch_8b
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	incq	%rbx
	addq	$9, %r12
	cmpq	%rbx, %r15
	je	LBB0_7
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r13), %eax
	cmpl	$9, %eax
	jne	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	%r12d, %eax
	leaq	(%r14,%rax,4), %rsi
	movq	%r13, %rdi
	callq	_goodix_ts_report_touch_9b
	jmp	LBB0_6
LBB0_7:
	movl	4(%r13), %edi
	callq	_input_mt_sync_frame
	movl	4(%r13), %edi
	callq	_input_sync
LBB0_8:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_10
## %bb.9:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_GOODIX_MAX_CONTACT_SIZE,4,2    ## @GOODIX_MAX_CONTACT_SIZE
	.comm	_GOODIX_MAX_CONTACTS,4,2        ## @GOODIX_MAX_CONTACTS
	.comm	_KEY_LEFTMETA,4,2               ## @KEY_LEFTMETA
	.no_dead_strip	_goodix_process_events
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function goodix_process_events
_goodix_process_events:                 ; @goodix_process_events
	.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
	sub	sp, sp, #16
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
Lloh3:
	adrp	x8, _GOODIX_MAX_CONTACT_SIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GOODIX_MAX_CONTACT_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _GOODIX_MAX_CONTACTS@GOTPAGE
Lloh7:
	ldr	x9, [x9, _GOODIX_MAX_CONTACTS@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w10, wzr, #0x1
	madd	w8, w9, w8, w10
	lsl	x9, x8, #2
	add	x8, x9, #15
	and	x8, x8, #0x7fffffff0
Lloh9:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh10:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	sub	x20, x9, x8
	mov	sp, x20
	mov	x1, x20
	bl	_goodix_ts_read_input_report
	tbnz	w0, #31, LBB0_8
; %bb.1:
	mov	x21, x0
	ldr	w22, [x19, #4]
Lloh11:
	adrp	x8, _KEY_LEFTMETA@GOTPAGE
Lloh12:
	ldr	x8, [x8, _KEY_LEFTMETA@GOTPAGEOFF]
Lloh13:
	ldr	w23, [x8]
	ldr	w24, [x20]
	mov	w0, #4
	bl	_BIT
	and	w2, w0, w24
	mov	x0, x22
	mov	x1, x23
	bl	_input_report_key
	cbz	w21, LBB0_7
; %bb.2:
	mov	x22, #0
	mov	w23, #1
	orr	w24, wzr, #0x1
	mov	w21, w21
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	madd	w8, w8, w22, w24
	add	x1, x20, w8, sxtw #2
	mov	x0, x19
	bl	_goodix_ts_report_touch_8b
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x22, x22, #1
	add	x23, x23, #9
	cmp	x21, x22
	b.eq	LBB0_7
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x19]
	cmp	w8, #9
	b.ne	LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x1, x20, w23, uxtw #2
	mov	x0, x19
	bl	_goodix_ts_report_touch_9b
	b	LBB0_4
LBB0_7:
	ldr	w0, [x19, #4]
	bl	_input_mt_sync_frame
	ldr	w0, [x19, #4]
	bl	_input_sync
LBB0_8:
	ldur	x8, [x29, #-56]
Lloh14:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh15:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_10
; %bb.9:
	sub	sp, x29, #48
	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_10:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_GOODIX_MAX_CONTACT_SIZE,4,2    ; @GOODIX_MAX_CONTACT_SIZE
	.comm	_GOODIX_MAX_CONTACTS,4,2        ; @GOODIX_MAX_CONTACTS
	.comm	_KEY_LEFTMETA,4,2               ; @KEY_LEFTMETA
	.no_dead_strip	_goodix_process_events
.subsections_via_symbols
