	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function asus_report_input
_asus_report_input:                     ## @asus_report_input
	.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	%rsi, %rcx
	movq	8(%rdi), %rax
	movl	4(%rax), %ebx
	movl	(%rax), %esi
	imull	%ebx, %esi
	addl	$3, %esi
	xorl	%eax, %eax
	cmpl	%edx, %esi
	jne	LBB0_12
## %bb.1:
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	testl	%ebx, %ebx
	jle	LBB0_11
## %bb.2:
	movq	_MT_TOOL_FINGER@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	leaq	8(%rcx), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	xorl	%r12d, %r12d
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	(%rcx), %r14d
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	movb	%al, %r13b
	movl	(%r15), %edi
	movl	%r12d, %esi
	callq	_input_mt_slot
	movl	(%r15), %edi
	movl	%r14d, %esi
	movl	%r13d, %edx
	callq	_input_mt_report_slot_state
	testl	%ebx, %ebx
	je	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r15, %rdi
	movl	%r14d, %esi
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdx
	callq	_asus_report_contact_down
	movq	8(%r15), %rax
	movslq	(%rax), %rcx
	leaq	(%rbx,%rcx,4), %rbx
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
LBB0_10:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	incl	%r12d
	cmpl	4(%rax), %r12d
	jge	LBB0_11
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	4(%rcx), %r15d
	leal	3(%r12), %edi
	callq	_BIT
	movl	%eax, %ebx
	xorl	%r13d, %r13d
	andl	%r15d, %ebx
	setne	%al
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	movq	8(%r15), %rcx
	cmpl	$5, (%rcx)
	jl	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_CONTACT_TOOL_TYPE_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	_MT_TOOL_PALM@GOTPCREL(%rip), %rcx
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	testl	%edx, 12(%rsi)
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_MT_TOOL_FINGER@GOTPCREL(%rip), %rcx
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	8(%r15), %rax
	jmp	LBB0_10
LBB0_11:
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movl	(%rbx), %edi
	movq	_BTN_LEFT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_BTN_LEFT_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	andl	4(%rcx), %edx
	callq	_input_report_key
	movq	%rbx, %rdi
	callq	_asus_report_tool_width
	movl	(%rbx), %edi
	callq	_input_mt_sync_frame
	movl	(%rbx), %edi
	callq	_input_sync
	movl	$1, %eax
LBB0_12:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MT_TOOL_FINGER,4,2             ## @MT_TOOL_FINGER
	.comm	_CONTACT_TOOL_TYPE_MASK,4,2     ## @CONTACT_TOOL_TYPE_MASK
	.comm	_MT_TOOL_PALM,4,2               ## @MT_TOOL_PALM
	.comm	_BTN_LEFT,4,2                   ## @BTN_LEFT
	.comm	_BTN_LEFT_MASK,4,2              ## @BTN_LEFT_MASK
	.no_dead_strip	_asus_report_input
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function asus_report_input
_asus_report_input:                     ; @asus_report_input
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	ldr	x8, [x0, #8]
	ldp	w9, w8, [x8]
	orr	w10, wzr, #0x3
	madd	w9, w8, w9, w10
	cmp	w9, w2
	b.ne	LBB0_9
; %bb.1:
	mov	x20, x1
	mov	x19, x0
	cmp	w8, #1
	b.lt	LBB0_10
; %bb.2:
	mov	w21, #0
Lloh0:
	adrp	x25, _MT_TOOL_FINGER@GOTPAGE
Lloh1:
	ldr	x25, [x25, _MT_TOOL_FINGER@GOTPAGEOFF]
	ldr	w23, [x25]
	add	x22, x20, #8
Lloh2:
	adrp	x26, _CONTACT_TOOL_TYPE_MASK@GOTPAGE
Lloh3:
	ldr	x26, [x26, _CONTACT_TOOL_TYPE_MASK@GOTPAGEOFF]
Lloh4:
	adrp	x27, _MT_TOOL_PALM@GOTPAGE
Lloh5:
	ldr	x27, [x27, _MT_TOOL_PALM@GOTPAGEOFF]
	b	LBB0_6
LBB0_3:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	w0, [x19]
	mov	x1, x21
	bl	_input_mt_slot
	ldr	w0, [x19]
	mov	x1, x23
	mov	x2, x24
	bl	_input_mt_report_slot_state
	cbz	w28, LBB0_8
; %bb.4:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x19
	mov	x1, x23
	mov	x2, x22
	bl	_asus_report_contact_down
	ldr	x8, [x19, #8]
	ldrsw	x9, [x8]
	add	x22, x22, x9, lsl #2
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	w21, w21, #1
	ldr	w8, [x8, #4]
	cmp	w21, w8
	b.ge	LBB0_10
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w24, [x20, #4]
	add	w0, w21, #3
	bl	_BIT
	ands	w28, w0, w24
	cset	w24, ne
	ldr	x8, [x19, #8]
	ldr	w8, [x8]
	cmp	w8, #5
	b.lt	LBB0_3
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w8, [x22, #12]
	ldr	w9, [x26]
	tst	w9, w8
	csel	x8, x25, x27, eq
	ldr	w23, [x8]
	b	LBB0_3
LBB0_8:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x19, #8]
	b	LBB0_5
LBB0_9:
	mov	w0, #0
	b	LBB0_11
LBB0_10:
	ldr	w0, [x19]
Lloh6:
	adrp	x8, _BTN_LEFT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _BTN_LEFT@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	ldr	w8, [x20, #4]
Lloh9:
	adrp	x9, _BTN_LEFT_MASK@GOTPAGE
Lloh10:
	ldr	x9, [x9, _BTN_LEFT_MASK@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	and	w2, w9, w8
	bl	_input_report_key
	mov	x0, x19
	bl	_asus_report_tool_width
	ldr	w0, [x19]
	bl	_input_mt_sync_frame
	ldr	w0, [x19]
	bl	_input_sync
	mov	w0, #1
LBB0_11:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_MT_TOOL_FINGER,4,2             ; @MT_TOOL_FINGER
	.comm	_CONTACT_TOOL_TYPE_MASK,4,2     ; @CONTACT_TOOL_TYPE_MASK
	.comm	_MT_TOOL_PALM,4,2               ; @MT_TOOL_PALM
	.comm	_BTN_LEFT,4,2                   ; @BTN_LEFT
	.comm	_BTN_LEFT_MASK,4,2              ; @BTN_LEFT_MASK
	.no_dead_strip	_asus_report_input
.subsections_via_symbols
