	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function waltop_raw_event
_waltop_raw_event:                      ## @waltop_raw_event
	.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	%rdx, %r15
	movq	(%rsi), %rax
	movq	_HID_INPUT_REPORT@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	jne	LBB0_13
## %bb.1:
	cmpl	$8, %ecx
	jl	LBB0_5
## %bb.2:
	cmpl	$16, 8(%rsi)
	jne	LBB0_5
## %bb.3:
	testb	$14, 4(%r15)
	je	LBB0_5
## %bb.4:
	movq	$0, 24(%r15)
LBB0_5:
	movq	(%rdi), %rax
	movq	_USB_DEVICE_ID_WALTOP_SIRIUS_BATTERY_FREE_TABLET@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	jne	LBB0_13
## %bb.6:
	cmpl	$10, %ecx
	jne	LBB0_13
## %bb.7:
	cmpl	$16, 8(%rsi)
	jne	LBB0_13
## %bb.8:
	movl	32(%r15), %r12d
	movl	36(%r15), %r13d
	movl	%r12d, %r14d
	sarl	$31, %r14d
	orl	$1, %r14d
	imull	%r14d, %r12d
	movl	%r13d, %ebx
	negl	%ebx
	cmovsl	%r13d, %ebx
	leaq	_waltop_raw_event.tilt_to_radians(%rip), %rdi
	callq	_ARRAY_SIZE
	cmpl	%eax, %r12d
	jl	LBB0_10
## %bb.9:
	leaq	_waltop_raw_event.tilt_to_radians(%rip), %rdi
	callq	_ARRAY_SIZE
	movl	%eax, %r12d
	decl	%r12d
LBB0_10:
	leaq	_waltop_raw_event.tilt_to_radians(%rip), %rdi
	callq	_ARRAY_SIZE
	cmpl	%eax, %ebx
	jl	LBB0_12
## %bb.11:
	leaq	_waltop_raw_event.tilt_to_radians(%rip), %rdi
	callq	_ARRAY_SIZE
	movl	%eax, %ebx
	decl	%ebx
LBB0_12:
	movslq	%r12d, %rax
	leaq	_waltop_raw_event.tilt_to_radians(%rip), %rcx
	imull	(%rcx,%rax,4), %r14d
	movl	%r14d, 32(%r15)
	movslq	%ebx, %rax
	movl	(%rcx,%rax,4), %eax
	movl	%eax, %ecx
	negl	%ecx
	testl	%r13d, %r13d
	cmovsl	%eax, %ecx
	movl	%ecx, 36(%r15)
LBB0_13:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HID_INPUT_REPORT,8,3           ## @HID_INPUT_REPORT
	.comm	_USB_DEVICE_ID_WALTOP_SIRIUS_BATTERY_FREE_TABLET,8,3 ## @USB_DEVICE_ID_WALTOP_SIRIUS_BATTERY_FREE_TABLET
	.section	__TEXT,__const
	.p2align	4                               ## @waltop_raw_event.tilt_to_radians
_waltop_raw_event.tilt_to_radians:
	.long	0                               ## 0x0
	.long	5                               ## 0x5
	.long	10                              ## 0xa
	.long	14                              ## 0xe
	.long	19                              ## 0x13
	.long	24                              ## 0x18
	.long	29                              ## 0x1d
	.long	34                              ## 0x22
	.long	40                              ## 0x28
	.long	45                              ## 0x2d
	.long	50                              ## 0x32
	.long	56                              ## 0x38
	.long	62                              ## 0x3e
	.long	68                              ## 0x44
	.long	74                              ## 0x4a
	.long	81                              ## 0x51
	.long	88                              ## 0x58
	.long	96                              ## 0x60
	.long	105                             ## 0x69

	.no_dead_strip	_waltop_raw_event
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function waltop_raw_event
_waltop_raw_event:                      ; @waltop_raw_event
	.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
	ldr	x8, [x1]
Lloh0:
	adrp	x9, _HID_INPUT_REPORT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _HID_INPUT_REPORT@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_13
; %bb.1:
	mov	x19, x2
	cmp	w3, #8
	b.lt	LBB0_5
; %bb.2:
	ldr	w8, [x1, #8]
	cmp	w8, #16
	b.ne	LBB0_5
; %bb.3:
	ldrb	w8, [x19, #4]
	tst	w8, #0xe
	b.eq	LBB0_5
; %bb.4:
	str	xzr, [x19, #24]
LBB0_5:
	ldr	x8, [x0]
Lloh3:
	adrp	x9, _USB_DEVICE_ID_WALTOP_SIRIUS_BATTERY_FREE_TABLET@GOTPAGE
Lloh4:
	ldr	x9, [x9, _USB_DEVICE_ID_WALTOP_SIRIUS_BATTERY_FREE_TABLET@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_13
; %bb.6:
	cmp	w3, #10
	b.ne	LBB0_13
; %bb.7:
	ldr	w8, [x1, #8]
	cmp	w8, #16
	b.ne	LBB0_13
; %bb.8:
	ldp	w8, w21, [x19, #32]
	asr	w9, w8, #31
	orr	w22, w9, #0x1
	mul	w23, w22, w8
	cmp	w21, #0
	cneg	w24, w21, mi
Lloh6:
	adrp	x0, _waltop_raw_event.tilt_to_radians@PAGE
Lloh7:
	add	x0, x0, _waltop_raw_event.tilt_to_radians@PAGEOFF
	bl	_ARRAY_SIZE
	cmp	w23, w0
	b.lt	LBB0_10
; %bb.9:
Lloh8:
	adrp	x0, _waltop_raw_event.tilt_to_radians@PAGE
Lloh9:
	add	x0, x0, _waltop_raw_event.tilt_to_radians@PAGEOFF
	bl	_ARRAY_SIZE
	sub	w23, w0, #1
LBB0_10:
Lloh10:
	adrp	x20, _waltop_raw_event.tilt_to_radians@PAGE
Lloh11:
	add	x20, x20, _waltop_raw_event.tilt_to_radians@PAGEOFF
	mov	x0, x20
	bl	_ARRAY_SIZE
	cmp	w24, w0
	b.lt	LBB0_12
; %bb.11:
Lloh12:
	adrp	x0, _waltop_raw_event.tilt_to_radians@PAGE
Lloh13:
	add	x0, x0, _waltop_raw_event.tilt_to_radians@PAGEOFF
	bl	_ARRAY_SIZE
	sub	w24, w0, #1
LBB0_12:
	ldr	w8, [x20, w23, sxtw #2]
	mul	w8, w8, w22
	ldr	w9, [x20, w24, sxtw #2]
	cmp	w21, #0
	cneg	w9, w9, ge
	stp	w8, w9, [x19, #32]
LBB0_13:
	mov	w0, #0
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_HID_INPUT_REPORT,8,3           ; @HID_INPUT_REPORT
	.comm	_USB_DEVICE_ID_WALTOP_SIRIUS_BATTERY_FREE_TABLET,8,3 ; @USB_DEVICE_ID_WALTOP_SIRIUS_BATTERY_FREE_TABLET
	.section	__TEXT,__const
	.p2align	2                               ; @waltop_raw_event.tilt_to_radians
_waltop_raw_event.tilt_to_radians:
	.long	0                               ; 0x0
	.long	5                               ; 0x5
	.long	10                              ; 0xa
	.long	14                              ; 0xe
	.long	19                              ; 0x13
	.long	24                              ; 0x18
	.long	29                              ; 0x1d
	.long	34                              ; 0x22
	.long	40                              ; 0x28
	.long	45                              ; 0x2d
	.long	50                              ; 0x32
	.long	56                              ; 0x38
	.long	62                              ; 0x3e
	.long	68                              ; 0x44
	.long	74                              ; 0x4a
	.long	81                              ; 0x51
	.long	88                              ; 0x58
	.long	96                              ; 0x60
	.long	105                             ; 0x69

	.no_dead_strip	_waltop_raw_event
.subsections_via_symbols
