	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wacom_bamboo_pad_irq
_wacom_bamboo_pad_irq:                  ## @wacom_bamboo_pad_irq
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	(%rdi), %rbx
	movq	_WACOM_PKGLEN_BPAD_TOUCH@GOTPCREL(%rip), %rax
	cmpq	%rsi, (%rax)
	je	LBB0_2
## %bb.1:
	movq	_WACOM_PKGLEN_BPAD_TOUCH_USB@GOTPCREL(%rip), %rax
	cmpq	%rsi, (%rax)
	jne	LBB0_6
LBB0_2:
	movb	(%rbx), %al
	movq	_WACOM_REPORT_BPAD_TOUCH@GOTPCREL(%rip), %rcx
	cmpb	(%rcx), %al
	jne	LBB0_6
## %bb.3:
	movb	1(%rbx), %al
	testb	$1, %al
	je	LBB0_5
## %bb.4:
	leaq	1(%rbx), %r15
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_wacom_bamboo_pad_pen_event
	movb	(%r15), %al
LBB0_5:
	testb	$2, %al
	jne	LBB0_7
LBB0_6:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	addq	$9, %rbx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_wacom_bamboo_pad_touch_event   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_WACOM_PKGLEN_BPAD_TOUCH,8,3    ## @WACOM_PKGLEN_BPAD_TOUCH
	.comm	_WACOM_PKGLEN_BPAD_TOUCH_USB,8,3 ## @WACOM_PKGLEN_BPAD_TOUCH_USB
	.comm	_WACOM_REPORT_BPAD_TOUCH,1,0    ## @WACOM_REPORT_BPAD_TOUCH
	.no_dead_strip	_wacom_bamboo_pad_irq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wacom_bamboo_pad_irq
_wacom_bamboo_pad_irq:                  ; @wacom_bamboo_pad_irq
	.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
Lloh0:
	adrp	x8, _WACOM_PKGLEN_BPAD_TOUCH@GOTPAGE
Lloh1:
	ldr	x8, [x8, _WACOM_PKGLEN_BPAD_TOUCH@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _WACOM_PKGLEN_BPAD_TOUCH_USB@GOTPAGE
Lloh4:
	ldr	x9, [x9, _WACOM_PKGLEN_BPAD_TOUCH_USB@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x1
	ccmp	x9, x1, #4, ne
	b.ne	LBB0_5
; %bb.1:
	mov	x19, x0
	ldr	x21, [x0]
	ldrb	w8, [x21]
Lloh6:
	adrp	x9, _WACOM_REPORT_BPAD_TOUCH@GOTPAGE
Lloh7:
	ldr	x9, [x9, _WACOM_REPORT_BPAD_TOUCH@GOTPAGEOFF]
	ldrb	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_5
; %bb.2:
	mov	x20, x21
	ldrb	w8, [x20, #1]!
	tbz	w8, #0, LBB0_4
; %bb.3:
	mov	x0, x19
	mov	x1, x20
	bl	_wacom_bamboo_pad_pen_event
	ldrb	w8, [x20]
LBB0_4:
	tbnz	w8, #1, LBB0_6
LBB0_5:
	mov	w0, #0
	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
LBB0_6:
	add	x1, x21, #9
	mov	x0, 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_bamboo_pad_touch_event
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_WACOM_PKGLEN_BPAD_TOUCH,8,3    ; @WACOM_PKGLEN_BPAD_TOUCH
	.comm	_WACOM_PKGLEN_BPAD_TOUCH_USB,8,3 ; @WACOM_PKGLEN_BPAD_TOUCH_USB
	.comm	_WACOM_REPORT_BPAD_TOUCH,1,0    ; @WACOM_REPORT_BPAD_TOUCH
	.no_dead_strip	_wacom_bamboo_pad_irq
.subsections_via_symbols
