	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wacom_wac_pad_event
_wacom_wac_pad_event:                   ## @wacom_wac_pad_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movq	%rdx, %r14
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r12
	callq	_hid_get_drvdata
	movq	%rax, %r15
	movq	40(%rax), %rbx
	movq	(%r14), %rdi
	callq	_wacom_equivalent_usage
	movl	%eax, %r13d
	cmpl	$0, 12(%r14)
	jne	LBB0_2
## %bb.1:
	cmpl	$132, %r13d
	jne	LBB0_42
LBB0_2:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rdi
	callq	_wacom_equivalent_usage
	movq	_HID_DG_TABLETFUNCTIONKEY@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_5
## %bb.3:
	cmpq	$129, (%r14)
	je	LBB0_5
## %bb.4:
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	orl	%eax, 12(%r15)
LBB0_5:
	leal	-128(%r13), %eax
	cmpl	$5, %eax
	ja	LBB0_11
## %bb.6:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_7:
	movq	24(%r15), %rax
	movl	4(%rax), %edi
	testl	%edi, %edi
	je	LBB0_42
## %bb.8:
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	testl	%ecx, %ecx
	je	LBB0_29
## %bb.9:
	cmpl	$131, %r13d
	jne	LBB0_29
## %bb.10:
	xorl	%ecx, %ecx
	cmpl	$0, (%rax)
	sete	%cl
	jmp	LBB0_30
LBB0_12:
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_42
## %bb.13:
	movl	8(%r14), %edx
	movl	12(%r14), %esi
	movq	%rbx, %rdi
	xorl	%ecx, %ecx
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_input_event                    ## TAILCALL
LBB0_14:
	cmpl	$1386, (%r12)                   ## imm = 0x56A
	jne	LBB0_31
## %bb.15:
	movl	4(%r12), %eax
	leal	-845(%rax), %ecx
	cmpl	$11, %ecx
	ja	LBB0_17
## %bb.16:
	movl	$3075, %edx                     ## imm = 0xC03
	btl	%ecx, %edx
	jb	LBB0_19
LBB0_17:
	leal	-914(%rax), %edx
	cmpl	$7, %edx
	ja	LBB0_31
## %bb.18:
	movl	$193, %esi
	btl	%edx, %esi
	jae	LBB0_31
LBB0_19:
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movl	8(%rdx), %edx
	subl	-44(%rbp), %edx                 ## 4-byte Folded Reload
	cmpl	$913, %eax                      ## imm = 0x391
	jg	LBB0_35
## %bb.20:
	cmpl	$2, %ecx
	jb	LBB0_36
## %bb.21:
	addl	$-855, %eax                     ## imm = 0xFCA9
	cmpl	$2, %eax
	jae	LBB0_22
LBB0_38:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movl	$3, %ecx
	movl	$16, %r8d
	jmp	LBB0_39
LBB0_23:
	addq	$8, %r15
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	cmpl	%eax, (%r15)
	je	LBB0_42
## %bb.24:
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, (%r15)
	movq	_WACOM_WORKER_MODE_CHANGE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_wacom_schedule_work            ## TAILCALL
LBB0_25:
	cmpl	$0, (%r15)
	jle	LBB0_11
## %bb.26:
	movq	%rbx, %r13
	xorl	%ebx, %ebx
	movl	-44(%rbp), %r12d                ## 4-byte Reload
	.p2align	4, 0x90
LBB0_27:                                ## =>This Inner Loop Header: Depth=1
	movl	32(%r15), %esi
	movq	%r15, %rdi
	movl	%r12d, %edx
	movl	%ebx, %ecx
	callq	_wacom_update_led
	incl	%ebx
	cmpl	(%r15), %ebx
	jl	LBB0_27
## %bb.28:
	movq	%r13, %rbx
	jmp	LBB0_40
LBB0_11:
	movl	-44(%rbp), %r12d                ## 4-byte Reload
	jmp	LBB0_40
LBB0_29:
	cmpl	$130, %r13d
	jne	LBB0_33
LBB0_30:
	movl	%ecx, (%rax)
	jmp	LBB0_34
LBB0_31:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movl	$1, %ecx
	movl	$4, %r8d
	jmp	LBB0_39
LBB0_33:
	movl	(%rax), %ecx
LBB0_34:
	movq	_SW_MUTE_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	testl	%ecx, %ecx
	sete	%dl
	callq	_input_report_switch
	movq	24(%r15), %rax
	movl	4(%rax), %edi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_input_sync                     ## TAILCALL
LBB0_35:
	leal	-920(%rax), %ecx
	cmpl	$2, %ecx
	jae	LBB0_37
LBB0_36:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movl	$1, %ecx
	movl	$2, %r8d
LBB0_39:
	callq	_wacom_offset_rotation
	movl	%eax, %r12d
LBB0_40:
	movl	8(%r14), %edx
	movl	12(%r14), %esi
	movq	%rbx, %rdi
	movl	%r12d, %ecx
	callq	_input_event
	testl	%r12d, %r12d
	je	LBB0_42
## %bb.41:
	movl	$1, 16(%r15)
LBB0_42:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_37:
	cmpl	$914, %eax                      ## imm = 0x392
	je	LBB0_38
LBB0_22:
	movl	%edx, %r12d
	jmp	LBB0_40
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_23, LBB0_23-LJTI0_0
.set L0_0_set_25, LBB0_25-LJTI0_0
LJTI0_0:
	.long	L0_0_set_12
	.long	L0_0_set_14
	.long	L0_0_set_7
	.long	L0_0_set_7
	.long	L0_0_set_23
	.long	L0_0_set_25
	.end_data_region
                                        ## -- End function
	.comm	_HID_DG_TABLETFUNCTIONKEY,4,2   ## @HID_DG_TABLETFUNCTIONKEY
	.comm	_SW_MUTE_DEVICE,4,2             ## @SW_MUTE_DEVICE
	.comm	_WACOM_WORKER_MODE_CHANGE,4,2   ## @WACOM_WORKER_MODE_CHANGE
	.no_dead_strip	_wacom_wac_pad_event
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wacom_wac_pad_event
_wacom_wac_pad_event:                   ; @wacom_wac_pad_event
	.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	x20, x3
	mov	x21, x2
	mov	x23, x1
	mov	x24, x0
	bl	_hid_get_drvdata
	mov	x19, x0
	ldr	x22, [x0, #40]
	ldr	x0, [x21]
	bl	_wacom_equivalent_usage
	mov	x25, x0
	ldr	w8, [x21, #12]
	cbnz	w8, LBB0_2
; %bb.1:
	cmp	w25, #132
	b.ne	LBB0_38
LBB0_2:
	ldr	x0, [x23]
	bl	_wacom_equivalent_usage
Lloh0:
	adrp	x8, _HID_DG_TABLETFUNCTIONKEY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HID_DG_TABLETFUNCTIONKEY@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_5
; %bb.3:
	ldr	x8, [x21]
	cmp	x8, #129
	b.eq	LBB0_5
; %bb.4:
	ldr	w8, [x19, #12]
	orr	w8, w8, w20
	str	w8, [x19, #12]
LBB0_5:
	sub	w8, w25, #128
	cmp	w8, #5
	b.hi	LBB0_36
; %bb.6:
Lloh3:
	adrp	x9, lJTI0_0@PAGE
Lloh4:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_7
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_7:
	ldr	x8, [x19, #24]
	ldr	w0, [x8, #4]
	cbz	w0, LBB0_38
; %bb.8:
	cbz	w20, LBB0_26
; %bb.9:
	cmp	w25, #131
	b.ne	LBB0_26
; %bb.10:
	ldr	w9, [x8]
	cmp	w9, #0
	cset	w20, eq
	b	LBB0_27
LBB0_11:
	cbnz	w20, LBB0_38
; %bb.12:
	ldp	w2, w1, [x21, #8]
	mov	x0, x22
	mov	w3, #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_event
LBB0_13:
	ldr	w8, [x24]
	cmp	w8, #1386
	b.ne	LBB0_28
; %bb.14:
	ldr	w8, [x24, #4]
	sub	w9, w8, #845
	cmp	w9, #11
	b.hi	LBB0_16
; %bb.15:
	mov	w10, #1
	lsl	w10, w10, w9
	mov	w11, #3075
	tst	w10, w11
	b.ne	LBB0_18
LBB0_16:
	sub	w10, w8, #914
	cmp	w10, #7
	b.hi	LBB0_28
; %bb.17:
	mov	w11, #1
	lsl	w10, w11, w10
	mov	w11, #193
	tst	w10, w11
	b.eq	LBB0_28
LBB0_18:
	ldr	w10, [x23, #8]
	sub	w20, w10, w20
	cmp	w8, #913
	b.gt	LBB0_31
; %bb.19:
	cmp	w9, #2
	b.lo	LBB0_32
; %bb.20:
	sub	w8, w8, #855
	cmp	w8, #2
	b.lo	LBB0_34
	b	LBB0_36
LBB0_21:
	add	x0, x19, #8
	ldr	w8, [x0]
	cmp	w8, w20
	b.eq	LBB0_38
; %bb.22:
	str	w20, [x0]
Lloh5:
	adrp	x8, _WACOM_WORKER_MODE_CHANGE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _WACOM_WORKER_MODE_CHANGE@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	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	_wacom_schedule_work
LBB0_23:
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_36
; %bb.24:
	mov	w23, #0
LBB0_25:                                ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x19, #32]
	mov	x0, x19
	mov	x2, x20
	mov	x3, x23
	bl	_wacom_update_led
	add	w23, w23, #1
	ldr	w8, [x19]
	cmp	w23, w8
	b.lt	LBB0_25
	b	LBB0_36
LBB0_26:
	cmp	w25, #130
	b.ne	LBB0_29
LBB0_27:
	str	w20, [x8]
	b	LBB0_30
LBB0_28:
	mov	x0, x22
	mov	x1, x21
	mov	x2, x20
	mov	w3, #1
	mov	w4, #4
	b	LBB0_35
LBB0_29:
	ldr	w20, [x8]
LBB0_30:
Lloh8:
	adrp	x8, _SW_MUTE_DEVICE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SW_MUTE_DEVICE@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	cmp	w20, #0
	cset	w2, eq
	bl	_input_report_switch
	ldr	x8, [x19, #24]
	ldr	w0, [x8, #4]
	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_sync
LBB0_31:
	sub	w9, w8, #920
	cmp	w9, #2
	b.hs	LBB0_33
LBB0_32:
	mov	x0, x22
	mov	x1, x21
	mov	x2, x20
	mov	w3, #1
	mov	w4, #2
	b	LBB0_35
LBB0_33:
	cmp	w8, #914
	b.ne	LBB0_36
LBB0_34:
	mov	x0, x22
	mov	x1, x21
	mov	x2, x20
	mov	w3, #3
	mov	w4, #16
LBB0_35:
	bl	_wacom_offset_rotation
	mov	x20, x0
LBB0_36:
	ldp	w2, w1, [x21, #8]
	mov	x0, x22
	mov	x3, x20
	bl	_input_event
	cbz	w20, LBB0_38
; %bb.37:
	mov	w8, #1
	str	w8, [x19, #16]
LBB0_38:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_11-LBB0_7)>>2
	.byte	(LBB0_13-LBB0_7)>>2
	.byte	(LBB0_7-LBB0_7)>>2
	.byte	(LBB0_7-LBB0_7)>>2
	.byte	(LBB0_21-LBB0_7)>>2
	.byte	(LBB0_23-LBB0_7)>>2
                                        ; -- End function
	.comm	_HID_DG_TABLETFUNCTIONKEY,4,2   ; @HID_DG_TABLETFUNCTIONKEY
	.comm	_SW_MUTE_DEVICE,4,2             ; @SW_MUTE_DEVICE
	.comm	_WACOM_WORKER_MODE_CHANGE,4,2   ; @WACOM_WORKER_MODE_CHANGE
	.no_dead_strip	_wacom_wac_pad_event
.subsections_via_symbols
