	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function input_wl_touch_state
_input_wl_touch_state:                  ## @input_wl_touch_state
	.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
	subq	$80, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	$0, -40(%rbp)
	movl	$0, -36(%rbp)
	movl	$0, -48(%rbp)
	movl	$0, -44(%rbp)
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -96(%rbp)
	movaps	%xmm0, -80(%rbp)
	movaps	%xmm0, -64(%rbp)
	movq	_MAX_TOUCHES@GOTPCREL(%rip), %rax
	cmpl	%esi, (%rax)
	jb	LBB0_10
## %bb.1:
	movl	%ecx, %r12d
	movl	%edx, %r14d
	movq	%rdi, %r15
	movq	(%rdi), %rax
	movl	%esi, %ecx
	leaq	(%rcx,%rcx,2), %rbx
	movl	4(%rax,%rbx,4), %edx
	movl	8(%rax,%rbx,4), %esi
	leaq	-44(%rbp), %rax
	movq	%rax, (%rsp)
	leaq	-96(%rbp), %rdi
	leaq	-40(%rbp), %rcx
	leaq	-36(%rbp), %r8
	leaq	-48(%rbp), %r9
	callq	_video_driver_translate_coord_viewport_wrap
	testl	%eax, %eax
	je	LBB0_10
## %bb.2:
	testl	%r12d, %r12d
	je	LBB0_3
## %bb.4:
	movl	-48(%rbp), %eax
	movl	%eax, -40(%rbp)
	movl	-44(%rbp), %ecx
	movl	%ecx, -36(%rbp)
	cmpl	$-32767, %eax                   ## imm = 0x8001
	jge	LBB0_6
	jmp	LBB0_10
LBB0_3:
	movl	-40(%rbp), %eax
	movl	-36(%rbp), %ecx
	cmpl	$-32767, %eax                   ## imm = 0x8001
	jl	LBB0_10
LBB0_6:
	cmpl	$-32767, %ecx                   ## imm = 0x8001
	jl	LBB0_10
## %bb.7:
	cmpl	$130, %r14d
	je	LBB0_12
## %bb.8:
	cmpl	$129, %r14d
	je	LBB0_11
## %bb.9:
	movl	%ecx, %eax
	cmpl	$128, %r14d
	je	LBB0_11
LBB0_10:
	xorl	%eax, %eax
LBB0_11:
	addq	$80, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	movq	(%r15), %rax
	movl	(%rax,%rbx,4), %eax
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_TOUCHES,4,2                ## @MAX_TOUCHES
	.no_dead_strip	_input_wl_touch_state
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function input_wl_touch_state
_input_wl_touch_state:                  ; @input_wl_touch_state
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x20, x0
	mov	w0, #0
	stp	xzr, xzr, [sp]
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [sp, #16]
	str	q0, [sp, #48]
Lloh0:
	adrp	x8, _MAX_TOUCHES@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MAX_TOUCHES@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w1
	b.lo	LBB0_12
; %bb.1:
	mov	x22, x3
	mov	x19, x2
	mov	x21, x1
	ldr	x8, [x20]
	mov	w9, #12
	umaddl	x8, w1, w9, x8
	ldp	w2, w1, [x8, #4]
	add	x0, sp, #16
	add	x3, sp, #12
	add	x4, sp, #8
	add	x5, sp, #4
	mov	x6, sp
	bl	_video_driver_translate_coord_viewport_wrap
	cbz	w0, LBB0_12
; %bb.2:
	cbz	w22, LBB0_4
; %bb.3:
	ldp	w8, w9, [sp]
	stp	w8, w9, [sp, #8]
	b	LBB0_5
LBB0_4:
	ldp	w8, w9, [sp, #8]
LBB0_5:
	mov	w0, #0
	mov	w10, #-32767
	cmp	w9, w10
	b.lt	LBB0_12
; %bb.6:
	cmp	w8, w10
	b.lt	LBB0_12
; %bb.7:
	cmp	w19, #130
	b.eq	LBB0_11
; %bb.8:
	mov	x0, x9
	cmp	w19, #129
	b.eq	LBB0_12
; %bb.9:
	mov	x0, x8
	cmp	w19, #128
	b.eq	LBB0_12
; %bb.10:
	mov	w0, #0
	b	LBB0_12
LBB0_11:
	mov	w8, w21
	ldr	x9, [x20]
	mov	w10, #12
	mul	x8, x8, x10
	ldr	w0, [x9, x8]
LBB0_12:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_TOUCHES,4,2                ; @MAX_TOUCHES
	.no_dead_strip	_input_wl_touch_state
.subsections_via_symbols
