	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wacom_24hdt_irq
_wacom_24hdt_irq:                       ## @wacom_24hdt_irq
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	32(%rdi), %r15
	movq	(%rdi), %r12
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movq	16(%rdi), %rcx
	movb	61(%r12), %al
	movq	_WACOM_BYTES_PER_24HDT_PACKET@GOTPCREL(%rip), %rdx
	movl	(%rdx), %ebx
	cmpq	$0, 16(%rcx)
	je	LBB0_4
## %bb.1:
	cmpl	$0, 8(%rcx)
	jne	LBB0_4
## %bb.2:
	cmpq	$0, (%rcx)
	je	LBB0_3
LBB0_4:
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	24(%rcx), %rcx
	movq	_WACOM_27QHDT@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_5
## %bb.6:
	movb	63(%r12), %al
	movq	_WACOM_BYTES_PER_QHDTHID_PACKET@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	movl	$10, %edi
	xorl	%ecx, %ecx
	jmp	LBB0_7
LBB0_5:
	movl	$4, %edi
	movl	$2, %ecx
LBB0_7:
	movq	%rcx, -88(%rbp)                 ## 8-byte Spill
	testb	%al, %al
	je	LBB0_8
## %bb.9:
	movzbl	%al, %esi
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	%esi, 8(%rax)
	jmp	LBB0_10
LBB0_8:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	8(%rax), %esi
LBB0_10:
	callq	_min
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	testl	%eax, %eax
	jle	LBB0_20
## %bb.11:
	movslq	%ebx, %rax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	movl	-56(%rbp), %r14d                ## 4-byte Reload
	addq	$13, %r12
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_12 Depth=1
	addq	-96(%rbp), %r12                 ## 8-byte Folded Reload
	decq	%r14
	je	LBB0_20
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	testb	$1, -12(%r12)
	jne	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=1
	xorl	%ebx, %ebx
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_12 Depth=1
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_report_touch_events
	testq	%rax, %rax
	setne	%bl
LBB0_15:                                ##   in Loop: Header=BB0_12 Depth=1
	movzbl	-11(%r12), %esi
	movq	%r15, %rdi
	callq	_input_mt_get_slot_by_key
	testl	%eax, %eax
	js	LBB0_19
## %bb.16:                              ##   in Loop: Header=BB0_12 Depth=1
	movzbl	%bl, %ebx
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_input_mt_slot
	movq	_MT_TOOL_FINGER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	%ebx, %edx
	callq	_input_mt_report_slot_state
	testb	%bl, %bl
	je	LBB0_19
## %bb.17:                              ##   in Loop: Header=BB0_12 Depth=1
	leaq	-10(%r12), %rdi
	callq	_get_unaligned_le16
	movl	%eax, %ebx
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	leaq	(%r12,%rax), %rdi
	addq	$-8, %rdi
	callq	_get_unaligned_le16
	movl	%eax, %r13d
	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	%r13d, -52(%rbp)                ## 4-byte Spill
	movl	%r13d, %edx
	callq	_input_report_abs
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	24(%rax), %rax
	movq	_WACOM_27QHDT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_19
## %bb.18:                              ##   in Loop: Header=BB0_12 Depth=1
	leaq	-8(%r12), %rdi
	callq	_get_unaligned_le16
	movl	%eax, -80(%rbp)                 ## 4-byte Spill
	leaq	-4(%r12), %rdi
	callq	_get_unaligned_le16
	movl	%eax, -76(%rbp)                 ## 4-byte Spill
	leaq	-2(%r12), %rdi
	callq	_get_unaligned_le16
	movl	%eax, %r13d
	movq	%r12, %rdi
	callq	_get_unaligned_le16
	movl	%eax, %esi
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	movq	_ABS_MT_TOUCH_MAJOR@GOTPCREL(%rip), %rax
	movl	%ebx, -68(%rbp)                 ## 4-byte Spill
	movl	(%rax), %ebx
	movl	%r13d, %edi
	movl	%r13d, -72(%rbp)                ## 4-byte Spill
	callq	_min
	movq	%r15, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_input_report_abs
	movq	_ABS_MT_WIDTH_MAJOR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -64(%rbp)                 ## 4-byte Spill
	movl	%r13d, %edi
	movl	-60(%rbp), %r13d                ## 4-byte Reload
	movl	%r13d, %esi
	callq	_min
	movl	%eax, %ebx
	movl	-68(%rbp), %edi                 ## 4-byte Reload
	movl	-52(%rbp), %esi                 ## 4-byte Reload
	movl	-80(%rbp), %edx                 ## 4-byte Reload
	movl	-76(%rbp), %ecx                 ## 4-byte Reload
	callq	_int_dist
	addl	%eax, %ebx
	movq	%r15, %rdi
	movl	-64(%rbp), %esi                 ## 4-byte Reload
	movl	%ebx, %edx
	callq	_input_report_abs
	movq	_ABS_MT_WIDTH_MINOR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movl	-72(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %edi
	movl	%r13d, %esi
	callq	_min
	movq	%r15, %rdi
	movl	-52(%rbp), %esi                 ## 4-byte Reload
	movl	%eax, %edx
	callq	_input_report_abs
	movq	_ABS_MT_ORIENTATION@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	cmpl	%r13d, %ebx
	setg	%dl
	movq	%r15, %rdi
	callq	_input_report_abs
	jmp	LBB0_19
LBB0_20:
	movq	%r15, %rdi
	callq	_input_mt_sync_frame
	movl	-56(%rbp), %eax                 ## 4-byte Reload
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	subl	%eax, 8(%rcx)
	movl	$1, %ebx
	jg	LBB0_22
## %bb.21:
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movl	$0, 8(%r14)
	movq	%r14, %rdi
	callq	_wacom_wac_finger_count_touches
	movq	16(%r14), %rcx
	movq	%rax, (%rcx)
LBB0_22:
	movl	%ebx, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	xorl	%ebx, %ebx
	jmp	LBB0_22
	.cfi_endproc
                                        ## -- End function
	.comm	_WACOM_BYTES_PER_24HDT_PACKET,4,2 ## @WACOM_BYTES_PER_24HDT_PACKET
	.comm	_WACOM_27QHDT,8,3               ## @WACOM_27QHDT
	.comm	_WACOM_BYTES_PER_QHDTHID_PACKET,4,2 ## @WACOM_BYTES_PER_QHDTHID_PACKET
	.comm	_MT_TOOL_FINGER,4,2             ## @MT_TOOL_FINGER
	.comm	_ABS_MT_POSITION_X,4,2          ## @ABS_MT_POSITION_X
	.comm	_ABS_MT_POSITION_Y,4,2          ## @ABS_MT_POSITION_Y
	.comm	_ABS_MT_TOUCH_MAJOR,4,2         ## @ABS_MT_TOUCH_MAJOR
	.comm	_ABS_MT_WIDTH_MAJOR,4,2         ## @ABS_MT_WIDTH_MAJOR
	.comm	_ABS_MT_WIDTH_MINOR,4,2         ## @ABS_MT_WIDTH_MINOR
	.comm	_ABS_MT_ORIENTATION,4,2         ## @ABS_MT_ORIENTATION
	.no_dead_strip	_wacom_24hdt_irq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wacom_24hdt_irq
_wacom_24hdt_irq:                       ; @wacom_24hdt_irq
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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	x20, [x0, #32]
	ldr	x19, [x0]
	ldrb	w1, [x19, #61]
Lloh0:
	adrp	x8, _WACOM_BYTES_PER_24HDT_PACKET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _WACOM_BYTES_PER_24HDT_PACKET@GOTPAGEOFF]
Lloh2:
	ldr	w21, [x8]
	str	x0, [sp, #40]                   ; 8-byte Folded Spill
	ldr	x8, [x0, #16]
	ldr	x9, [x8, #16]
	cbz	x9, LBB0_3
; %bb.1:
	ldr	w9, [x8, #8]
	cbnz	w9, LBB0_3
; %bb.2:
	ldr	x8, [x8]
	cbz	x8, LBB0_22
LBB0_3:
	ldr	x8, [sp, #40]                   ; 8-byte Folded Reload
	ldr	x8, [x8, #24]
Lloh3:
	adrp	x27, _WACOM_27QHDT@GOTPAGE
Lloh4:
	ldr	x27, [x27, _WACOM_27QHDT@GOTPAGEOFF]
	ldr	x9, [x27]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.4:
	mov	x28, #0
	ldrb	w1, [x19, #63]
Lloh5:
	adrp	x8, _WACOM_BYTES_PER_QHDTHID_PACKET@GOTPAGE
Lloh6:
	ldr	x8, [x8, _WACOM_BYTES_PER_QHDTHID_PACKET@GOTPAGEOFF]
Lloh7:
	ldr	w21, [x8]
	mov	w0, #10
	cbz	w1, LBB0_7
LBB0_5:
	ldr	x8, [sp, #40]                   ; 8-byte Folded Reload
	str	w1, [x8, #8]
	b	LBB0_8
LBB0_6:
	mov	w0, #4
	mov	w28, #2
	cbnz	w1, LBB0_5
LBB0_7:
	ldr	x8, [sp, #40]                   ; 8-byte Folded Reload
	ldr	w1, [x8, #8]
LBB0_8:
	bl	_min
	str	w0, [sp, #12]                   ; 4-byte Folded Spill
	cmp	w0, #1
	b.lt	LBB0_18
; %bb.9:
	sxtw	x21, w21
Lloh8:
	adrp	x8, _MT_TOOL_FINGER@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MT_TOOL_FINGER@GOTPAGEOFF]
Lloh10:
	adrp	x26, _ABS_MT_POSITION_X@GOTPAGE
Lloh11:
	ldr	x26, [x26, _ABS_MT_POSITION_X@GOTPAGEOFF]
	add	x22, x19, #13
	mov	x19, x8
	ldr	w8, [sp, #12]                   ; 4-byte Folded Reload
	mov	w25, w8
	stp	x21, x28, [sp, #16]             ; 16-byte Folded Spill
	b	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=1
	add	x22, x22, x21
	subs	x25, x25, #1
	b.eq	LBB0_18
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldurb	w8, [x22, #-12]
	tbnz	w8, #0, LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	mov	w23, #0
	b	LBB0_14
LBB0_13:                                ;   in Loop: Header=BB0_11 Depth=1
	ldr	x0, [sp, #40]                   ; 8-byte Folded Reload
	bl	_report_touch_events
	cmp	x0, #0
	cset	w23, ne
LBB0_14:                                ;   in Loop: Header=BB0_11 Depth=1
	ldurb	w1, [x22, #-11]
	mov	x0, x20
	bl	_input_mt_get_slot_by_key
	tbnz	w0, #31, LBB0_10
; %bb.15:                               ;   in Loop: Header=BB0_11 Depth=1
	mov	x1, x0
	mov	x0, x20
	bl	_input_mt_slot
	ldr	w1, [x19]
	mov	x0, x20
	mov	x2, x23
	bl	_input_mt_report_slot_state
	cbz	w23, LBB0_10
; %bb.16:                               ;   in Loop: Header=BB0_11 Depth=1
	sub	x0, x22, #10
	bl	_get_unaligned_le16
	mov	x23, x0
	add	x8, x22, x28
	sub	x0, x8, #8
	bl	_get_unaligned_le16
	mov	x24, x0
	ldr	w1, [x26]
	mov	x0, x20
	mov	x2, x23
	bl	_input_report_abs
Lloh12:
	adrp	x8, _ABS_MT_POSITION_Y@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ABS_MT_POSITION_Y@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x20
	mov	x2, x24
	bl	_input_report_abs
	ldr	x8, [sp, #40]                   ; 8-byte Folded Reload
	ldr	x8, [x8, #24]
	ldr	x9, [x27]
	cmp	x8, x9
	b.eq	LBB0_10
; %bb.17:                               ;   in Loop: Header=BB0_11 Depth=1
	sub	x0, x22, #8
	bl	_get_unaligned_le16
	str	w0, [sp, #36]                   ; 4-byte Folded Spill
	sub	x0, x22, #4
	bl	_get_unaligned_le16
	str	w0, [sp, #32]                   ; 4-byte Folded Spill
	sub	x0, x22, #2
	bl	_get_unaligned_le16
	mov	x27, x0
	mov	x0, x22
	bl	_get_unaligned_le16
	mov	x28, x0
Lloh15:
	adrp	x8, _ABS_MT_TOUCH_MAJOR@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ABS_MT_TOUCH_MAJOR@GOTPAGEOFF]
Lloh17:
	ldr	w21, [x8]
	mov	x0, x27
	mov	x1, x28
	bl	_min
	mov	x2, x0
	mov	x0, x20
	mov	x1, x21
	bl	_input_report_abs
Lloh18:
	adrp	x8, _ABS_MT_WIDTH_MAJOR@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ABS_MT_WIDTH_MAJOR@GOTPAGEOFF]
Lloh20:
	ldr	w21, [x8]
	mov	x0, x27
	mov	x1, x28
	bl	_min
	mov	x26, x19
	mov	x19, x0
	mov	x0, x23
	mov	x1, x24
	ldp	w3, w2, [sp, #32]               ; 8-byte Folded Reload
	bl	_int_dist
	add	w2, w0, w19
	mov	x0, x20
	mov	x1, x21
	ldr	x21, [sp, #16]                  ; 8-byte Folded Reload
	bl	_input_report_abs
Lloh21:
	adrp	x8, _ABS_MT_WIDTH_MINOR@GOTPAGE
Lloh22:
	ldr	x8, [x8, _ABS_MT_WIDTH_MINOR@GOTPAGEOFF]
Lloh23:
	ldr	w19, [x8]
	mov	x0, x27
	mov	x1, x28
	bl	_min
	mov	x2, x0
	mov	x0, x20
	mov	x1, x19
	mov	x19, x26
Lloh24:
	adrp	x26, _ABS_MT_POSITION_X@GOTPAGE
Lloh25:
	ldr	x26, [x26, _ABS_MT_POSITION_X@GOTPAGEOFF]
	bl	_input_report_abs
Lloh26:
	adrp	x8, _ABS_MT_ORIENTATION@GOTPAGE
Lloh27:
	ldr	x8, [x8, _ABS_MT_ORIENTATION@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x8]
	cmp	w27, w28
	ldr	x28, [sp, #24]                  ; 8-byte Folded Reload
Lloh29:
	adrp	x27, _WACOM_27QHDT@GOTPAGE
Lloh30:
	ldr	x27, [x27, _WACOM_27QHDT@GOTPAGEOFF]
	cset	w2, gt
	mov	x0, x20
	bl	_input_report_abs
	b	LBB0_10
LBB0_18:
	mov	x0, x20
	bl	_input_mt_sync_frame
	ldr	x10, [sp, #40]                  ; 8-byte Folded Reload
	ldr	w8, [x10, #8]
	ldr	w9, [sp, #12]                   ; 4-byte Folded Reload
	sub	w8, w8, w9
	str	w8, [x10, #8]
	cmp	w8, #0
	b.gt	LBB0_20
; %bb.19:
	ldr	x19, [sp, #40]                  ; 8-byte Folded Reload
	str	wzr, [x19, #8]
	mov	x0, x19
	bl	_wacom_wac_finger_count_touches
	ldr	x8, [x19, #16]
	str	x0, [x8]
LBB0_20:
	mov	w0, #1
LBB0_21:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_22:
	mov	w0, #0
	b	LBB0_21
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_WACOM_BYTES_PER_24HDT_PACKET,4,2 ; @WACOM_BYTES_PER_24HDT_PACKET
	.comm	_WACOM_27QHDT,8,3               ; @WACOM_27QHDT
	.comm	_WACOM_BYTES_PER_QHDTHID_PACKET,4,2 ; @WACOM_BYTES_PER_QHDTHID_PACKET
	.comm	_MT_TOOL_FINGER,4,2             ; @MT_TOOL_FINGER
	.comm	_ABS_MT_POSITION_X,4,2          ; @ABS_MT_POSITION_X
	.comm	_ABS_MT_POSITION_Y,4,2          ; @ABS_MT_POSITION_Y
	.comm	_ABS_MT_TOUCH_MAJOR,4,2         ; @ABS_MT_TOUCH_MAJOR
	.comm	_ABS_MT_WIDTH_MAJOR,4,2         ; @ABS_MT_WIDTH_MAJOR
	.comm	_ABS_MT_WIDTH_MINOR,4,2         ; @ABS_MT_WIDTH_MINOR
	.comm	_ABS_MT_ORIENTATION,4,2         ; @ABS_MT_ORIENTATION
	.no_dead_strip	_wacom_24hdt_irq
.subsections_via_symbols
