	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wacom_wac_event                ## -- Begin function wacom_wac_event
	.p2align	4, 0x90
_wacom_wac_event:                       ## @wacom_wac_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	%rcx, %r15
	movq	%rdx, %r14
	movq	%rsi, %r12
	movq	%rdi, %r13
	callq	_hid_get_drvdata
	movq	%rax, %rbx
	movq	24(%rax), %rax
	movq	_HID_GENERIC@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_10
## %bb.1:
	cmpq	%r15, (%r12)
	jl	LBB0_10
## %bb.2:
	cmpq	%r15, 8(%r12)
	jle	LBB0_3
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	%r14, %rdi
	callq	_WACOM_BATTERY_USAGE
	testq	%rax, %rax
	je	LBB0_4
## %bb.11:
	movq	%r13, %rdi
	movq	%r12, %rsi
	movq	%r14, %rdx
	movq	%r15, %rcx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_wacom_wac_battery_event        ## TAILCALL
LBB0_4:
	movq	%r12, %rdi
	callq	_WACOM_PAD_FIELD
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	cmpq	$0, 16(%rbx)
	je	LBB0_6
## %bb.12:
	movq	%r13, %rdi
	movq	%r12, %rsi
	movq	%r14, %rdx
	movq	%r15, %rcx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_wacom_wac_pad_event            ## TAILCALL
LBB0_6:
	movq	%r12, %rdi
	callq	_WACOM_PEN_FIELD
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	cmpq	$0, 8(%rbx)
	je	LBB0_8
## %bb.13:
	movq	%r13, %rdi
	movq	%r12, %rsi
	movq	%r14, %rdx
	movq	%r15, %rcx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_wacom_wac_pen_event            ## TAILCALL
LBB0_8:
	movq	%r12, %rdi
	callq	_WACOM_FINGER_FIELD
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	cmpq	$0, (%rbx)
	je	LBB0_10
## %bb.14:
	movq	%r13, %rdi
	movq	%r12, %rsi
	movq	%r14, %rdx
	movq	%r15, %rcx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_wacom_wac_finger_event         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_HID_GENERIC,8,3                ## @HID_GENERIC
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wacom_wac_event                ; -- Begin function wacom_wac_event
	.p2align	2
_wacom_wac_event:                       ; @wacom_wac_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
	mov	x19, x3
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
	bl	_hid_get_drvdata
	ldr	x8, [x0, #24]
Lloh0:
	adrp	x9, _HID_GENERIC@GOTPAGE
Lloh1:
	ldr	x9, [x9, _HID_GENERIC@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.1:
	ldr	x8, [x21]
	cmp	x8, x19
	b.lt	LBB0_3
; %bb.2:
	ldr	x8, [x21, #8]
	cmp	x8, x19
	b.le	LBB0_4
LBB0_3:
	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
LBB0_4:
	mov	x23, x0
	mov	x0, x20
	bl	_WACOM_BATTERY_USAGE
	cbz	x0, LBB0_6
; %bb.5:
	mov	x0, x22
	mov	x1, x21
	mov	x2, x20
	mov	x3, x19
	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
	b	_wacom_wac_battery_event
LBB0_6:
	mov	x0, x21
	bl	_WACOM_PAD_FIELD
	cbz	x0, LBB0_9
; %bb.7:
	ldr	x8, [x23, #16]
	cbz	x8, LBB0_9
; %bb.8:
	mov	x0, x22
	mov	x1, x21
	mov	x2, x20
	mov	x3, x19
	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
	b	_wacom_wac_pad_event
LBB0_9:
	mov	x0, x21
	bl	_WACOM_PEN_FIELD
	cbz	x0, LBB0_12
; %bb.10:
	ldr	x8, [x23, #8]
	cbz	x8, LBB0_12
; %bb.11:
	mov	x0, x22
	mov	x1, x21
	mov	x2, x20
	mov	x3, x19
	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
	b	_wacom_wac_pen_event
LBB0_12:
	mov	x0, x21
	bl	_WACOM_FINGER_FIELD
	cbz	x0, LBB0_3
; %bb.13:
	ldr	x8, [x23]
	cbz	x8, LBB0_3
; %bb.14:
	mov	x0, x22
	mov	x1, x21
	mov	x2, x20
	mov	x3, x19
	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
	b	_wacom_wac_finger_event
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_HID_GENERIC,8,3                ; @HID_GENERIC
.subsections_via_symbols
