	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wacom_bpt3_touch_msg
_wacom_bpt3_touch_msg:                  ## @wacom_bpt3_touch_msg
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	%rdi, %r13
	movq	(%rdi), %r15
	movb	1(%rsi), %r14b
	movzbl	(%rsi), %esi
	movq	%r15, %rdi
	callq	_input_mt_get_slot_by_key
	testl	%eax, %eax
	js	LBB0_9
## %bb.1:
	movl	%eax, %ebx
	testb	%r14b, %r14b
	js	LBB0_2
## %bb.8:
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_input_mt_slot
	movq	_MT_TOOL_FINGER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	xorl	%edx, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_input_mt_report_slot_state     ## TAILCALL
LBB0_2:
	movq	%r13, %rdi
	callq	_report_touch_events
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	xorl	%r14d, %r14d
	testq	%rax, %rax
	setne	%r14b
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_input_mt_slot
	movq	_MT_TOOL_FINGER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	%r14d, %edx
	callq	_input_mt_report_slot_state
	cmpq	$0, -48(%rbp)                   ## 8-byte Folded Reload
	je	LBB0_9
## %bb.3:
	movzbl	2(%r12), %eax
	shll	$4, %eax
	movzbl	4(%r12), %r14d
	movl	%r14d, %ebx
	shrl	$4, %ebx
	orl	%eax, %ebx
	movzbl	3(%r12), %eax
	shll	$4, %eax
	andl	$15, %r14d
	orl	%eax, %r14d
	movq	8(%r13), %rax
	movq	_INTUOSPS@GOTPCREL(%rip), %rcx
	movzbl	5(%r12), %r13d
	cmpq	(%rcx), %rax
	jl	LBB0_6
## %bb.4:
	movq	_INTUOSHT2@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jg	LBB0_6
## %bb.5:
	imull	$100, %r13d, %r13d
	movzbl	6(%r12), %eax
	imull	$100, %eax, %r12d
	jmp	LBB0_7
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	_ABS_MT_POSITION_X@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_input_abs_get_res
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	_ABS_MT_POSITION_Y@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_input_abs_get_res
	movl	%eax, %r12d
	movq	_WACOM_CONTACT_AREA_SCALE@GOTPCREL(%rip), %rax
	imull	(%rax), %r13d
	movl	%r13d, %edi
	callq	_int_sqrt
	movl	%eax, %r13d
	addl	%eax, %r13d
	imull	%r13d, %r12d
	movl	%r12d, %eax
	cltd
	idivl	-48(%rbp)                       ## 4-byte Folded Reload
	movl	%eax, %r12d
LBB0_7:
	movq	_ABS_MT_POSITION_X@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	%ebx, %edx
	callq	_input_report_abs
	movq	_ABS_MT_POSITION_Y@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	%r14d, %edx
	callq	_input_report_abs
	movq	_ABS_MT_TOUCH_MAJOR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	%r13d, %edx
	callq	_input_report_abs
	movq	_ABS_MT_TOUCH_MINOR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	%r12d, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_input_report_abs               ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MT_TOOL_FINGER,4,2             ## @MT_TOOL_FINGER
	.comm	_INTUOSPS,8,3                   ## @INTUOSPS
	.comm	_INTUOSHT2,8,3                  ## @INTUOSHT2
	.comm	_ABS_MT_POSITION_X,4,2          ## @ABS_MT_POSITION_X
	.comm	_ABS_MT_POSITION_Y,4,2          ## @ABS_MT_POSITION_Y
	.comm	_WACOM_CONTACT_AREA_SCALE,4,2   ## @WACOM_CONTACT_AREA_SCALE
	.comm	_ABS_MT_TOUCH_MAJOR,4,2         ## @ABS_MT_TOUCH_MAJOR
	.comm	_ABS_MT_TOUCH_MINOR,4,2         ## @ABS_MT_TOUCH_MINOR
	.no_dead_strip	_wacom_bpt3_touch_msg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wacom_bpt3_touch_msg
_wacom_bpt3_touch_msg:                  ; @wacom_bpt3_touch_msg
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x21, x1
	mov	x23, x0
	ldr	x19, [x0]
	ldrsb	w22, [x1, #1]
	ldrb	w1, [x1]
	mov	x0, x19
	bl	_input_mt_get_slot_by_key
	tbnz	w0, #31, LBB0_6
; %bb.1:
	mov	x20, x0
	tbnz	w22, #31, LBB0_3
; %bb.2:
	mov	x0, x19
	mov	x1, x20
	bl	_input_mt_slot
Lloh0:
	adrp	x8, _MT_TOOL_FINGER@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MT_TOOL_FINGER@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_input_mt_report_slot_state
LBB0_3:
	mov	x0, x23
	bl	_report_touch_events
	mov	x22, x0
	cmp	x0, #0
	cset	w24, ne
	mov	x0, x19
	mov	x1, x20
	bl	_input_mt_slot
Lloh3:
	adrp	x8, _MT_TOOL_FINGER@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MT_TOOL_FINGER@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x24
	bl	_input_mt_report_slot_state
	cbz	x22, LBB0_6
; %bb.4:
	ldrb	w8, [x21, #2]
	ldrb	w9, [x21, #4]
	lsr	w22, w9, #4
	bfi	w22, w8, #4, #8
	ldrb	w8, [x21, #3]
	and	w20, w9, #0xf
	bfi	w20, w8, #4, #8
Lloh6:
	adrp	x8, _INTUOSPS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _INTUOSPS@GOTPAGEOFF]
	ldr	x9, [x23, #8]
Lloh8:
	ldr	x8, [x8]
Lloh9:
	adrp	x10, _INTUOSHT2@GOTPAGE
Lloh10:
	ldr	x10, [x10, _INTUOSHT2@GOTPAGEOFF]
Lloh11:
	ldr	x10, [x10]
	ldrb	w23, [x21, #5]
	cmp	x9, x8
	ccmp	x9, x10, #0, ge
Lloh12:
	adrp	x26, _ABS_MT_POSITION_X@GOTPAGE
Lloh13:
	ldr	x26, [x26, _ABS_MT_POSITION_X@GOTPAGEOFF]
Lloh14:
	adrp	x25, _ABS_MT_POSITION_Y@GOTPAGE
Lloh15:
	ldr	x25, [x25, _ABS_MT_POSITION_Y@GOTPAGEOFF]
	b.le	LBB0_7
; %bb.5:
	ldr	w1, [x26]
	mov	x0, x19
	bl	_input_abs_get_res
	mov	x21, x0
	ldr	w1, [x25]
	mov	x0, x19
	bl	_input_abs_get_res
	mov	x24, x0
Lloh16:
	adrp	x8, _WACOM_CONTACT_AREA_SCALE@GOTPAGE
Lloh17:
	ldr	x8, [x8, _WACOM_CONTACT_AREA_SCALE@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	mul	w0, w8, w23
	bl	_int_sqrt
	lsl	w23, w0, #1
	mul	w8, w23, w24
	sdiv	w21, w8, w21
	b	LBB0_8
LBB0_6:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_7:
	mov	w8, #100
	mul	w23, w23, w8
	ldrb	w9, [x21, #6]
	mul	w21, w9, w8
LBB0_8:
	ldr	w1, [x26]
	mov	x0, x19
	mov	x2, x22
	bl	_input_report_abs
	ldr	w1, [x25]
	mov	x0, x19
	mov	x2, x20
	bl	_input_report_abs
Lloh19:
	adrp	x8, _ABS_MT_TOUCH_MAJOR@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ABS_MT_TOUCH_MAJOR@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x23
	bl	_input_report_abs
Lloh22:
	adrp	x8, _ABS_MT_TOUCH_MINOR@GOTPAGE
Lloh23:
	ldr	x8, [x8, _ABS_MT_TOUCH_MINOR@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_input_report_abs
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_MT_TOOL_FINGER,4,2             ; @MT_TOOL_FINGER
	.comm	_INTUOSPS,8,3                   ; @INTUOSPS
	.comm	_INTUOSHT2,8,3                  ; @INTUOSHT2
	.comm	_ABS_MT_POSITION_X,4,2          ; @ABS_MT_POSITION_X
	.comm	_ABS_MT_POSITION_Y,4,2          ; @ABS_MT_POSITION_Y
	.comm	_WACOM_CONTACT_AREA_SCALE,4,2   ; @WACOM_CONTACT_AREA_SCALE
	.comm	_ABS_MT_TOUCH_MAJOR,4,2         ; @ABS_MT_TOUCH_MAJOR
	.comm	_ABS_MT_TOUCH_MINOR,4,2         ; @ABS_MT_TOUCH_MINOR
	.no_dead_strip	_wacom_bpt3_touch_msg
.subsections_via_symbols
