	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wacom_i4_parse_button_report
_wacom_i4_parse_button_report:          ## @wacom_i4_parse_button_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movzbl	3(%rdx), %ebx
	movzbl	2(%rdx), %edx
	andl	$1, %edx
	leal	(%rdx,%rbx,2), %eax
	cmpl	(%rdi), %eax
	jne	LBB0_2
## %bb.1:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_2:
	movq	%rsi, %r14
	addl	%ebx, %ebx
	movl	%eax, (%rdi)
	movq	_BTN_0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_input_report_key
	movq	_BTN_1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edx
	andl	$2, %edx
	movq	%r14, %rdi
	callq	_input_report_key
	movq	_BTN_2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edx
	andl	$4, %edx
	movq	%r14, %rdi
	callq	_input_report_key
	movq	_BTN_3@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edx
	andl	$8, %edx
	movq	%r14, %rdi
	callq	_input_report_key
	movq	_BTN_4@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edx
	andl	$16, %edx
	movq	%r14, %rdi
	callq	_input_report_key
	movq	_BTN_5@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edx
	andl	$32, %edx
	movq	%r14, %rdi
	callq	_input_report_key
	movq	_BTN_6@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edx
	andl	$64, %edx
	movq	%r14, %rdi
	callq	_input_report_key
	movq	_BTN_7@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edx
	andl	$128, %edx
	movq	%r14, %rdi
	callq	_input_report_key
	movq	_BTN_8@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	andl	$256, %ebx                      ## imm = 0x100
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_input_report_key
	movq	_BTN_TOOL_FINGER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	$1, %edx
	callq	_input_report_key
	movq	_ABS_MISC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_PAD_DEVICE_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_input_report_abs
	movq	_EV_MSC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MSC_SERIAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	$-1, %ecx
	callq	_input_event
	movq	%r14, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_input_sync                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_BTN_0,4,2                      ## @BTN_0
	.comm	_BTN_1,4,2                      ## @BTN_1
	.comm	_BTN_2,4,2                      ## @BTN_2
	.comm	_BTN_3,4,2                      ## @BTN_3
	.comm	_BTN_4,4,2                      ## @BTN_4
	.comm	_BTN_5,4,2                      ## @BTN_5
	.comm	_BTN_6,4,2                      ## @BTN_6
	.comm	_BTN_7,4,2                      ## @BTN_7
	.comm	_BTN_8,4,2                      ## @BTN_8
	.comm	_BTN_TOOL_FINGER,4,2            ## @BTN_TOOL_FINGER
	.comm	_ABS_MISC,4,2                   ## @ABS_MISC
	.comm	_PAD_DEVICE_ID,4,2              ## @PAD_DEVICE_ID
	.comm	_EV_MSC,4,2                     ## @EV_MSC
	.comm	_MSC_SERIAL,4,2                 ## @MSC_SERIAL
	.no_dead_strip	_wacom_i4_parse_button_report
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wacom_i4_parse_button_report
_wacom_i4_parse_button_report:          ; @wacom_i4_parse_button_report
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldrb	w8, [x2, #3]
	ldrb	w9, [x2, #2]
	and	w2, w9, #0x1
	mov	x9, x2
	bfi	w9, w8, #1, #8
	ldr	w10, [x0]
	cmp	w9, w10
	b.ne	LBB0_2
; %bb.1:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_2:
	mov	x19, x1
	lsl	w20, w8, #1
	str	w9, [x0]
Lloh0:
	adrp	x8, _BTN_0@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BTN_0@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_input_report_key
Lloh3:
	adrp	x8, _BTN_1@GOTPAGE
Lloh4:
	ldr	x8, [x8, _BTN_1@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	and	w2, w20, #0x2
	mov	x0, x19
	bl	_input_report_key
Lloh6:
	adrp	x8, _BTN_2@GOTPAGE
Lloh7:
	ldr	x8, [x8, _BTN_2@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	and	w2, w20, #0x4
	mov	x0, x19
	bl	_input_report_key
Lloh9:
	adrp	x8, _BTN_3@GOTPAGE
Lloh10:
	ldr	x8, [x8, _BTN_3@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	and	w2, w20, #0x8
	mov	x0, x19
	bl	_input_report_key
Lloh12:
	adrp	x8, _BTN_4@GOTPAGE
Lloh13:
	ldr	x8, [x8, _BTN_4@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	and	w2, w20, #0x10
	mov	x0, x19
	bl	_input_report_key
Lloh15:
	adrp	x8, _BTN_5@GOTPAGE
Lloh16:
	ldr	x8, [x8, _BTN_5@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	and	w2, w20, #0x20
	mov	x0, x19
	bl	_input_report_key
Lloh18:
	adrp	x8, _BTN_6@GOTPAGE
Lloh19:
	ldr	x8, [x8, _BTN_6@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	and	w2, w20, #0x40
	mov	x0, x19
	bl	_input_report_key
Lloh21:
	adrp	x8, _BTN_7@GOTPAGE
Lloh22:
	ldr	x8, [x8, _BTN_7@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	and	w2, w20, #0x80
	mov	x0, x19
	bl	_input_report_key
Lloh24:
	adrp	x8, _BTN_8@GOTPAGE
Lloh25:
	ldr	x8, [x8, _BTN_8@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
	and	w2, w20, #0x100
	mov	x0, x19
	bl	_input_report_key
Lloh27:
	adrp	x8, _BTN_TOOL_FINGER@GOTPAGE
Lloh28:
	ldr	x8, [x8, _BTN_TOOL_FINGER@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #1
	bl	_input_report_key
Lloh30:
	adrp	x8, _ABS_MISC@GOTPAGE
Lloh31:
	ldr	x8, [x8, _ABS_MISC@GOTPAGEOFF]
Lloh32:
	ldr	w1, [x8]
Lloh33:
	adrp	x8, _PAD_DEVICE_ID@GOTPAGE
Lloh34:
	ldr	x8, [x8, _PAD_DEVICE_ID@GOTPAGEOFF]
Lloh35:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_input_report_abs
Lloh36:
	adrp	x8, _EV_MSC@GOTPAGE
Lloh37:
	ldr	x8, [x8, _EV_MSC@GOTPAGEOFF]
Lloh38:
	ldr	w1, [x8]
Lloh39:
	adrp	x8, _MSC_SERIAL@GOTPAGE
Lloh40:
	ldr	x8, [x8, _MSC_SERIAL@GOTPAGEOFF]
Lloh41:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w3, #-1
	bl	_input_event
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_input_sync
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_BTN_0,4,2                      ; @BTN_0
	.comm	_BTN_1,4,2                      ; @BTN_1
	.comm	_BTN_2,4,2                      ; @BTN_2
	.comm	_BTN_3,4,2                      ; @BTN_3
	.comm	_BTN_4,4,2                      ; @BTN_4
	.comm	_BTN_5,4,2                      ; @BTN_5
	.comm	_BTN_6,4,2                      ; @BTN_6
	.comm	_BTN_7,4,2                      ; @BTN_7
	.comm	_BTN_8,4,2                      ; @BTN_8
	.comm	_BTN_TOOL_FINGER,4,2            ; @BTN_TOOL_FINGER
	.comm	_ABS_MISC,4,2                   ; @ABS_MISC
	.comm	_PAD_DEVICE_ID,4,2              ; @PAD_DEVICE_ID
	.comm	_EV_MSC,4,2                     ; @EV_MSC
	.comm	_MSC_SERIAL,4,2                 ; @MSC_SERIAL
	.no_dead_strip	_wacom_i4_parse_button_report
.subsections_via_symbols
