	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wacom_set_num_expected
_wacom_set_num_expected:                ## @wacom_set_num_expected
	.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
	movl	%r8d, %r15d
	movl	%edx, %r13d
	movq	%rsi, %rbx
	movq	%rdi, %r14
	callq	_hid_get_drvdata
	cmpl	$0, 8(%rax)
	jne	LBB0_21
## %bb.1:
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	(%rbx), %eax
	cmpl	%r15d, %eax
	jle	LBB0_18
## %bb.2:
	movq	(%r14), %rdx
	movslq	%r13d, %rcx
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	movl	(%rdx,%rcx,4), %edi
	movslq	%r15d, %r12
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	%r14, -80(%rbp)                 ## 8-byte Spill
	movl	%edi, -60(%rbp)                 ## 4-byte Spill
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_7 Depth 2
	movq	16(%rbx), %rcx
	movq	(%rcx,%r12,8), %r13
	movq	16(%r13), %rcx
	movq	(%rcx), %rsi
	movb	$1, %r15b
	cmpl	%edi, (%rdx,%rsi,4)
	jne	LBB0_15
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpl	$0, (%r13)
	je	LBB0_15
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpq	-72(%rbp), %rsi                 ## 8-byte Folded Reload
	sete	%r15b
	jne	LBB0_14
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	xorl	%r14d, %r14d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_7:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	8(%rcx,%r14), %edi
	callq	_wacom_equivalent_usage
	movq	_HID_DG_CONTACTCOUNT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_12
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=2
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, 16(%rcx)
	movl	%r12d, 24(%rcx)
	movl	%ebx, 28(%rcx)
	testq	%rax, %rax
	je	LBB0_12
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=2
	testq	%r12, %r12
	js	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_7 Depth=2
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	16(%rax), %rax
	movq	(%rax,%r12,8), %rax
	movq	8(%rax), %rax
	movl	(%rax,%rbx,4), %eax
	testl	%eax, %eax
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_7 Depth=2
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, 8(%rcx)
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_7 Depth=2
	incq	%rbx
	movl	(%r13), %eax
	cmpq	%rax, %rbx
	jae	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_7 Depth=2
	movq	16(%r13), %rcx
	leaq	16(%r14), %rax
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	cmpq	%rdx, 16(%rcx,%r14)
	sete	%r15b
	movq	%rax, %r14
	je	LBB0_7
LBB0_14:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movl	(%rbx), %eax
	movq	-80(%rbp), %r14                 ## 8-byte Reload
	movl	-60(%rbp), %edi                 ## 4-byte Reload
LBB0_15:                                ##   in Loop: Header=BB0_3 Depth=1
	testb	$1, %r15b
	je	LBB0_18
## %bb.16:                              ##   in Loop: Header=BB0_3 Depth=1
	incq	%r12
	movslq	%eax, %rcx
	cmpq	%rcx, %r12
	jge	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	(%r14), %rdx
	jmp	LBB0_3
LBB0_18:
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	cmpq	$0, 16(%rcx)
	je	LBB0_20
## %bb.19:
	cmpl	$0, 24(%rcx)
	jns	LBB0_21
LBB0_20:
	movl	(%rcx), %eax
	movl	%eax, 8(%rcx)
LBB0_21:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HID_DG_CONTACTCOUNT,8,3        ## @HID_DG_CONTACTCOUNT
	.no_dead_strip	_wacom_set_num_expected
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wacom_set_num_expected
_wacom_set_num_expected:                ; @wacom_set_num_expected
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x22, x4
	mov	x23, x2
	mov	x20, x1
	mov	x21, x0
	bl	_hid_get_drvdata
	ldr	w8, [x0, #8]
	cbnz	w8, LBB0_21
; %bb.1:
	mov	x19, x0
	ldr	w8, [x20]
	cmp	w8, w22
	b.le	LBB0_18
; %bb.2:
	ldr	x10, [x21]
	sxtw	x24, w23
	ldr	w12, [x10, w23, sxtw #2]
	sxtw	x22, w22
Lloh0:
	adrp	x25, _HID_DG_CONTACTCOUNT@GOTPAGE
Lloh1:
	ldr	x25, [x25, _HID_DG_CONTACTCOUNT@GOTPAGEOFF]
	str	w12, [sp, #12]                  ; 4-byte Folded Spill
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
	ldr	x9, [x20, #16]
	ldr	x27, [x9, x22, lsl #3]
	ldr	x9, [x27, #16]
	ldr	x11, [x9]
	ldr	w10, [x10, x11, lsl #2]
	cmp	w10, w12
	b.ne	LBB0_15
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w10, [x27]
	cbz	w10, LBB0_15
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	cmp	x11, x24
	cset	w26, eq
	b.ne	LBB0_14
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x28, #0
	mov	x23, #0
LBB0_7:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	x8, x9, x28
	ldr	w0, [x8, #8]
	bl	_wacom_equivalent_usage
	ldr	x8, [x25]
	cmp	x0, x8
	b.ne	LBB0_12
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=2
	ldr	x8, [x20, #8]
	str	x8, [x19, #16]
	stp	w22, w23, [x19, #24]
	cbz	x8, LBB0_12
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=2
	tbnz	x22, #63, LBB0_12
; %bb.10:                               ;   in Loop: Header=BB0_7 Depth=2
	ldr	x8, [x20, #16]
	ldr	x8, [x8, x22, lsl #3]
	ldr	x8, [x8, #8]
	ldr	w8, [x8, x23, lsl #2]
	cbz	w8, LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_7 Depth=2
	str	w8, [x19, #8]
LBB0_12:                                ;   in Loop: Header=BB0_7 Depth=2
	add	x23, x23, #1
	ldr	w8, [x27]
	cmp	x23, x8
	b.hs	LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_7 Depth=2
	ldr	x9, [x27, #16]
	add	x8, x9, x28
	ldr	x8, [x8, #16]
	add	x28, x28, #16
	cmp	x8, x24
	cset	w26, eq
	b.eq	LBB0_7
LBB0_14:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x20]
	ldr	w12, [sp, #12]                  ; 4-byte Folded Reload
	tbnz	w26, #0, LBB0_16
	b	LBB0_18
LBB0_15:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	w26, #1
	tbz	w26, #0, LBB0_18
LBB0_16:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x22, x22, #1
	sxtw	x9, w8
	cmp	x22, x9
	b.ge	LBB0_18
; %bb.17:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	x10, [x21]
	b	LBB0_3
LBB0_18:
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_20
; %bb.19:
	ldr	w8, [x19, #24]
	tbz	w8, #31, LBB0_21
LBB0_20:
	ldr	w8, [x19]
	str	w8, [x19, #8]
LBB0_21:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_HID_DG_CONTACTCOUNT,8,3        ; @HID_DG_CONTACTCOUNT
	.no_dead_strip	_wacom_set_num_expected
.subsections_via_symbols
