	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function parse_touchquery
_parse_touchquery:                      ## @parse_touchquery
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	%rsi, %rdi
	xorl	%esi, %esi
	movl	$20, %edx
	callq	_memset
	movl	4(%rbx), %ecx
	movl	%ecx, (%r14)
	movl	8(%rbx), %eax
	andl	$7, %eax
	movl	%eax, 4(%r14)
	movl	28(%rbx), %eax
	movl	%eax, 8(%r14)
	movl	12(%rbx), %eax
	shll	$9, %eax
	movl	%eax, 12(%r14)
	movl	16(%rbx), %edx
	shll	$2, %edx
	orl	%eax, %edx
	movl	%edx, 12(%r14)
	movl	8(%rbx), %eax
	shrl	$5, %eax
	andl	$3, %eax
	orl	%edx, %eax
	movl	%eax, 12(%r14)
	movl	20(%rbx), %edx
	shll	$9, %edx
	movl	%edx, 16(%r14)
	movl	24(%rbx), %esi
	shll	$2, %esi
	orl	%edx, %esi
	movl	%esi, 16(%r14)
	movl	8(%rbx), %edx
	shrl	$3, %edx
	andl	$3, %edx
	orl	%esi, %edx
	movl	%edx, 16(%r14)
	orl	%eax, %edx
	jne	LBB0_4
## %bb.1:
	movabsq	$4398046512128, %rax            ## imm = 0x40000000400
	movq	%rax, 12(%r14)
	testl	%ecx, %ecx
	je	LBB0_3
## %bb.2:
	movl	$1, %eax
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %eax
	movl	%eax, 16(%r14)
	movl	%eax, 12(%r14)
LBB0_3:
	movq	_W8001_TOUCH_RESOLUTION@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r14)
LBB0_4:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_W8001_TOUCH_RESOLUTION,4,2     ## @W8001_TOUCH_RESOLUTION
	.no_dead_strip	_parse_touchquery
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function parse_touchquery
_parse_touchquery:                      ; @parse_touchquery
	.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
	mov	x20, x0
	mov	x0, x1
	mov	w1, #0
	mov	w2, #20
	bl	_memset
	ldr	w8, [x20, #4]
	str	w8, [x19]
	ldr	w9, [x20, #8]
	and	w9, w9, #0x7
	str	w9, [x19, #4]
	ldr	w9, [x20, #28]
	str	w9, [x19, #8]
	ldr	w9, [x20, #12]
	lsl	w9, w9, #9
	str	w9, [x19, #12]
	ldr	w10, [x20, #16]
	orr	w9, w9, w10, lsl #2
	str	w9, [x19, #12]
	ldr	w10, [x20, #8]
	bfxil	w9, w10, #5, #2
	str	w9, [x19, #12]
	ldr	w10, [x20, #20]
	lsl	w10, w10, #9
	str	w10, [x19, #16]
	ldr	w11, [x20, #24]
	orr	w10, w10, w11, lsl #2
	str	w10, [x19, #16]
	ldr	w11, [x20, #8]
	bfxil	w10, w11, #3, #2
	str	w10, [x19, #16]
	orr	w9, w9, w10
	cbnz	w9, LBB0_4
; %bb.1:
	movi.2s	v0, #4, lsl #8
	stur	d0, [x19, #12]
	cbz	w8, LBB0_3
; %bb.2:
	mov	w9, #1
	lsl	w8, w9, w8
	stp	w8, w8, [x19, #12]
LBB0_3:
Lloh0:
	adrp	x8, _W8001_TOUCH_RESOLUTION@GOTPAGE
Lloh1:
	ldr	x8, [x8, _W8001_TOUCH_RESOLUTION@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x19]
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_W8001_TOUCH_RESOLUTION,4,2     ; @W8001_TOUCH_RESOLUTION
	.no_dead_strip	_parse_touchquery
.subsections_via_symbols
