	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wacom_wac_usage_mapping        ## -- Begin function wacom_wac_usage_mapping
	.p2align	4, 0x90
_wacom_wac_usage_mapping:               ## @wacom_wac_usage_mapping
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r12
	movq	%rdi, %r15
	callq	_hid_get_drvdata
	movq	%rax, %rbx
	movq	%r12, %rdi
	callq	_WACOM_DIRECT_DEVICE
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_WACOM_DEVICETYPE_DIRECT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%rbx)
LBB0_2:
	movq	%r14, %rdi
	callq	_WACOM_BATTERY_USAGE
	testq	%rax, %rax
	je	LBB0_3
## %bb.7:
	movq	%r15, %rdi
	movq	%r12, %rsi
	movq	%r14, %rdx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_wacom_wac_battery_usage_mapping ## TAILCALL
LBB0_3:
	movq	%r12, %rdi
	callq	_WACOM_PAD_FIELD
	testq	%rax, %rax
	je	LBB0_4
## %bb.8:
	movq	%r15, %rdi
	movq	%r12, %rsi
	movq	%r14, %rdx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_wacom_wac_pad_usage_mapping    ## TAILCALL
LBB0_4:
	movq	%r12, %rdi
	callq	_WACOM_PEN_FIELD
	testq	%rax, %rax
	je	LBB0_5
## %bb.9:
	movq	%r15, %rdi
	movq	%r12, %rsi
	movq	%r14, %rdx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_wacom_wac_pen_usage_mapping    ## TAILCALL
LBB0_5:
	movq	%r12, %rdi
	callq	_WACOM_FINGER_FIELD
	testq	%rax, %rax
	je	LBB0_6
## %bb.10:
	movq	%r15, %rdi
	movq	%r12, %rsi
	movq	%r14, %rdx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_wacom_wac_finger_usage_mapping ## TAILCALL
LBB0_6:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WACOM_DEVICETYPE_DIRECT,4,2    ## @WACOM_DEVICETYPE_DIRECT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wacom_wac_usage_mapping        ; -- Begin function wacom_wac_usage_mapping
	.p2align	2
_wacom_wac_usage_mapping:               ; @wacom_wac_usage_mapping
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	bl	_hid_get_drvdata
	mov	x22, x0
	mov	x0, x20
	bl	_WACOM_DIRECT_DEVICE
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _WACOM_DEVICETYPE_DIRECT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _WACOM_DEVICETYPE_DIRECT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldr	w9, [x22]
	orr	w8, w9, w8
	str	w8, [x22]
LBB0_2:
	mov	x0, x19
	bl	_WACOM_BATTERY_USAGE
	cbz	x0, LBB0_4
; %bb.3:
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_wacom_wac_battery_usage_mapping
LBB0_4:
	mov	x0, x20
	bl	_WACOM_PAD_FIELD
	cbz	x0, LBB0_6
; %bb.5:
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_wacom_wac_pad_usage_mapping
LBB0_6:
	mov	x0, x20
	bl	_WACOM_PEN_FIELD
	cbz	x0, LBB0_8
; %bb.7:
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_wacom_wac_pen_usage_mapping
LBB0_8:
	mov	x0, x20
	bl	_WACOM_FINGER_FIELD
	cbz	x0, LBB0_10
; %bb.9:
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_wacom_wac_finger_usage_mapping
LBB0_10:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_WACOM_DEVICETYPE_DIRECT,4,2    ; @WACOM_DEVICETYPE_DIRECT
.subsections_via_symbols
