	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wacom_wac_collection
_wacom_wac_collection:                  ## @wacom_wac_collection
	.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
	movl	%r8d, %ebx
	movq	%rcx, %r12
	movl	%edx, %r15d
	movq	%rsi, %r14
	movq	%rdi, %r13
	callq	_hid_get_drvdata
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%r12, %rdi
	callq	_WACOM_FINGER_FIELD
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%r13, %rdi
	movq	%r14, %rsi
	movl	%r15d, %edx
	movq	%r12, %rcx
	movl	%ebx, %r8d
	callq	_wacom_set_num_expected
LBB0_2:
	movq	%r13, %rdi
	movq	%r14, %rsi
	movl	%r15d, %edx
	movl	%ebx, %ecx
	callq	_wacom_report_events
	movq	(%r14), %rax
	movq	_HID_INPUT_REPORT@GOTPCREL(%rip), %rcx
	movl	$-1, %ebx
	cmpq	(%rcx), %rax
	jne	LBB0_9
## %bb.3:
	movq	%r12, %rdi
	callq	_WACOM_PEN_FIELD
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	cmpq	$0, 8(%rax)
	je	LBB0_6
## %bb.5:
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_wacom_wac_pen_report
	xorl	%ebx, %ebx
	jmp	LBB0_9
LBB0_6:
	movq	%r12, %rdi
	callq	_WACOM_FINGER_FIELD
	xorl	%ebx, %ebx
	testq	%rax, %rax
	je	LBB0_9
## %bb.7:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	cmpq	$0, (%rax)
	je	LBB0_9
## %bb.8:
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_wacom_wac_finger_report
LBB0_9:
	movl	%ebx, %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
	.no_dead_strip	_wacom_wac_collection
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wacom_wac_collection
_wacom_wac_collection:                  ; @wacom_wac_collection
	.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	x23, x4
	mov	x21, x3
	mov	x24, x2
	mov	x19, x1
	mov	x20, x0
	bl	_hid_get_drvdata
	mov	x22, x0
	mov	x0, x21
	bl	_WACOM_FINGER_FIELD
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x20
	mov	x1, x19
	mov	x2, x24
	mov	x3, x21
	mov	x4, x23
	bl	_wacom_set_num_expected
LBB0_2:
	mov	x0, x20
	mov	x1, x19
	mov	x2, x24
	mov	x3, x23
	bl	_wacom_report_events
	ldr	x8, [x19]
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_6
; %bb.3:
	mov	x0, x21
	bl	_WACOM_PEN_FIELD
	cbz	x0, LBB0_7
; %bb.4:
	ldr	x8, [x22, #8]
	cbz	x8, LBB0_7
; %bb.5:
	mov	x0, x20
	mov	x1, x19
	bl	_wacom_wac_pen_report
	b	LBB0_10
LBB0_6:
	mov	w0, #-1
	b	LBB0_11
LBB0_7:
	mov	x0, x21
	bl	_WACOM_FINGER_FIELD
	cbz	x0, LBB0_11
; %bb.8:
	ldr	x8, [x22]
	cbz	x8, LBB0_10
; %bb.9:
	mov	x0, x20
	mov	x1, x19
	bl	_wacom_wac_finger_report
LBB0_10:
	mov	w0, #0
LBB0_11:
	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
	.cfi_endproc
                                        ; -- End function
	.comm	_HID_INPUT_REPORT,8,3           ; @HID_INPUT_REPORT
	.no_dead_strip	_wacom_wac_collection
.subsections_via_symbols
