	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wacom_wac_report               ## -- Begin function wacom_wac_report
	.p2align	4, 0x90
_wacom_wac_report:                      ## @wacom_wac_report
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r12
	callq	_hid_get_drvdata
	movq	%rax, %r14
	movq	24(%rax), %rax
	movq	_HID_GENERIC@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_22
## %bb.1:
	cmpl	$0, (%r15)
	jle	LBB0_2
## %bb.3:
	movq	%r14, -72(%rbp)                 ## 8-byte Spill
	movq	%r12, -80(%rbp)                 ## 8-byte Spill
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	xorl	%r12d, %r12d
	xorl	%r13d, %r13d
	xorl	%r14d, %r14d
	xorl	%r15d, %r15d
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rax
	movq	(%rax,%r12,8), %rbx
	movq	%rbx, %rdi
	callq	_WACOM_PAD_FIELD
	testq	%rax, %rax
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	$1, %ecx
	cmovnel	%ecx, %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	%rbx, %rdi
	callq	_WACOM_PEN_FIELD
	testq	%rax, %rax
	movl	$1, %eax
	cmovnel	%eax, %r15d
	movq	%rbx, %rdi
	callq	_WACOM_FINGER_FIELD
	testq	%rax, %rax
	movl	$1, %eax
	cmovnel	%eax, %r14d
	movl	8(%rbx), %edi
	callq	_wacom_equivalent_usage
	movq	_HID_DG_TABLETFUNCTIONKEY@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	movl	$1, %eax
	cmovel	%eax, %r13d
	incq	%r12
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movslq	(%rax), %rax
	cmpq	%rax, %r12
	jl	LBB0_4
## %bb.5:
	movl	%r15d, -60(%rbp)                ## 4-byte Spill
	movl	%r14d, -64(%rbp)                ## 4-byte Spill
	movl	%r13d, -48(%rbp)                ## 4-byte Spill
	movq	-80(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rdi
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rsi
	callq	_wacom_wac_battery_pre_report
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_8
## %bb.6:
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	cmpq	$0, (%rax)
	je	LBB0_8
## %bb.7:
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_wacom_wac_pad_pre_report
LBB0_8:
	cmpl	$0, -60(%rbp)                   ## 4-byte Folded Reload
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	movq	%rbx, %r13
	je	LBB0_11
## %bb.9:
	cmpq	$0, 16(%r14)
	je	LBB0_11
## %bb.10:
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_wacom_wac_pen_pre_report
LBB0_11:
	cmpl	$0, -64(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_14
## %bb.12:
	cmpq	$0, 8(%r14)
	je	LBB0_14
## %bb.13:
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_wacom_wac_finger_pre_report
	jmp	LBB0_14
LBB0_2:
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_wacom_wac_battery_pre_report
	movl	$0, -48(%rbp)                   ## 4-byte Folded Spill
                                        ## implicit-def: $r13
LBB0_14:
	movl	(%r15), %eax
	testl	%eax, %eax
	jle	LBB0_20
## %bb.15:
	movl	$-1, %ecx
	xorl	%ebx, %ebx
	jmp	LBB0_16
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_16 Depth=1
	incq	%rbx
	movslq	%eax, %rdx
	cmpq	%rdx, %rbx
	jge	LBB0_20
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%r15), %rdx
	movq	(%rdx,%rbx,8), %r13
	movq	(%r13), %rdx
	movl	(%rdx), %edx
	cmpl	%ecx, %edx
	je	LBB0_19
## %bb.17:                              ##   in Loop: Header=BB0_16 Depth=1
	movq	%r12, %rdi
	movq	%r15, %rsi
	movq	%r13, %rcx
	movl	%ebx, %r8d
	callq	_wacom_wac_collection
	testq	%rax, %rax
	js	LBB0_22
## %bb.18:                              ##   in Loop: Header=BB0_16 Depth=1
	movq	(%r13), %rax
	movl	(%rax), %ecx
	movl	(%r15), %eax
	jmp	LBB0_19
LBB0_20:
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_wacom_wac_battery_report
	cmpl	$0, -48(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_22
## %bb.21:
	cmpq	$0, (%r14)
	je	LBB0_22
## %bb.23:
	movq	%r12, %rdi
	movq	%r15, %rsi
	movq	%r13, %rdx
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_wacom_wac_pad_report           ## TAILCALL
LBB0_22:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HID_GENERIC,8,3                ## @HID_GENERIC
	.comm	_HID_DG_TABLETFUNCTIONKEY,8,3   ## @HID_DG_TABLETFUNCTIONKEY
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wacom_wac_report               ; -- Begin function wacom_wac_report
	.p2align	2
_wacom_wac_report:                      ; @wacom_wac_report
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x19, x1
	mov	x20, 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_23
; %bb.1:
	mov	x21, x0
	ldr	w8, [x19]
	cmp	w8, #0
	b.le	LBB0_13
; %bb.2:
	mov	x27, #0
	mov	w24, #0
	mov	w23, #0
	mov	w25, #0
	mov	w26, #0
Lloh3:
	adrp	x28, _HID_DG_TABLETFUNCTIONKEY@GOTPAGE
Lloh4:
	ldr	x28, [x28, _HID_DG_TABLETFUNCTIONKEY@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	ldr	x22, [x8, x27, lsl #3]
	mov	x0, x22
	bl	_WACOM_PAD_FIELD
	cmp	x0, #0
	csinc	w26, w26, wzr, eq
	mov	x0, x22
	bl	_WACOM_PEN_FIELD
	cmp	x0, #0
	csinc	w25, w25, wzr, eq
	mov	x0, x22
	bl	_WACOM_FINGER_FIELD
	cmp	x0, #0
	csinc	w23, w23, wzr, eq
	ldr	w0, [x22, #8]
	bl	_wacom_equivalent_usage
	ldr	x8, [x28]
	cmp	x0, x8
	csinc	w24, w24, wzr, ne
	add	x27, x27, #1
	ldrsw	x8, [x19]
	cmp	x27, x8
	b.lt	LBB0_3
; %bb.4:
	mov	x0, x20
	mov	x1, x19
	bl	_wacom_wac_battery_pre_report
	cbz	w26, LBB0_7
; %bb.5:
	ldr	x8, [x21]
	cbz	x8, LBB0_7
; %bb.6:
	mov	x0, x20
	mov	x1, x19
	bl	_wacom_wac_pad_pre_report
LBB0_7:
	cbz	w25, LBB0_10
; %bb.8:
	ldr	x8, [x21, #16]
	cbz	x8, LBB0_10
; %bb.9:
	mov	x0, x20
	mov	x1, x19
	bl	_wacom_wac_pen_pre_report
LBB0_10:
	cbz	w23, LBB0_14
; %bb.11:
	ldr	x8, [x21, #8]
	cbz	x8, LBB0_14
; %bb.12:
	mov	x0, x20
	mov	x1, x19
	bl	_wacom_wac_finger_pre_report
	b	LBB0_14
LBB0_13:
	mov	x0, x20
	mov	x1, x19
	bl	_wacom_wac_battery_pre_report
	mov	w24, #0
                                        ; implicit-def: $x22
LBB0_14:
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_20
; %bb.15:
	mov	x23, #0
	mov	w9, #-1
	b	LBB0_17
LBB0_16:                                ;   in Loop: Header=BB0_17 Depth=1
	add	x23, x23, #1
	cmp	x23, w8, sxtw
	b.ge	LBB0_20
LBB0_17:                                ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x19, #8]
	ldr	x22, [x10, x23, lsl #3]
	ldr	x10, [x22]
	ldr	w2, [x10]
	cmp	w2, w9
	b.eq	LBB0_16
; %bb.18:                               ;   in Loop: Header=BB0_17 Depth=1
	mov	x0, x20
	mov	x1, x19
	mov	x3, x22
	mov	x4, x23
	bl	_wacom_wac_collection
	tbnz	x0, #63, LBB0_23
; %bb.19:                               ;   in Loop: Header=BB0_17 Depth=1
	ldr	x8, [x22]
	ldr	w9, [x8]
	ldr	w8, [x19]
	b	LBB0_16
LBB0_20:
	mov	x0, x20
	mov	x1, x19
	bl	_wacom_wac_battery_report
	cbz	w24, LBB0_23
; %bb.21:
	ldr	x8, [x21]
	cbz	x8, LBB0_23
; %bb.22:
	mov	x0, x20
	mov	x1, x19
	mov	x2, x22
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_wacom_wac_pad_report
LBB0_23:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_HID_GENERIC,8,3                ; @HID_GENERIC
	.comm	_HID_DG_TABLETFUNCTIONKEY,8,3   ; @HID_DG_TABLETFUNCTIONKEY
.subsections_via_symbols
