	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wacom_bt_query_tablet_data
_wacom_bt_query_tablet_data:            ## @wacom_bt_query_tablet_data
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movl	%esi, %r14d
	movq	%rdi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	callq	_hid_get_drvdata
	movq	%rax, %r15
	movl	(%rbx), %eax
	cmpl	$128, %eax
	je	LBB0_5
## %bb.1:
	cmpl	$129, %eax
	jne	LBB0_7
## %bb.2:
	movq	$3, -48(%rbp)
	movq	_HID_FEATURE_REPORT@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	leaq	-48(%rbp), %rdx
	movq	%r12, %rdi
	movl	$2, %ecx
	movl	$3, %r8d
	callq	_wacom_set_report
	testl	%eax, %eax
	js	LBB0_4
## %bb.3:
	cmpl	$1, %r14d
	movl	$6, %eax
	sbbl	$0, %eax
	movl	%eax, -48(%rbp)
	movl	$0, -44(%rbp)
	movl	(%rbx), %esi
	leaq	-48(%rbp), %rdx
	movq	%r12, %rdi
	movl	$2, %ecx
	movl	$3, %r8d
	callq	_wacom_set_report
	testl	%eax, %eax
	jns	LBB0_6
LBB0_4:
	movl	-48(%rbp), %edx
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	movl	%eax, %ecx
	callq	_hid_warn
	jmp	LBB0_7
LBB0_5:
	xorl	%eax, %eax
	cmpl	$1, %r14d
	setne	%al
	movl	4(%r15), %ecx
	andl	$-33, %ecx
	shll	$5, %eax
	orl	%ecx, %eax
	movl	%eax, 4(%r15)
	movl	$3, -48(%rbp)
	movl	%eax, -44(%rbp)
	movq	_HID_FEATURE_REPORT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-48(%rbp), %rdx
	movq	%r12, %rdi
	movl	$2, %ecx
	movl	$1, %r8d
	callq	_wacom_set_report
	testl	%eax, %eax
	js	LBB0_7
LBB0_6:
	movl	%r14d, (%r15)
LBB0_7:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_9
## %bb.8:
	xorl	%eax, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_HID_FEATURE_REPORT,4,2         ## @HID_FEATURE_REPORT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to poke device, command %d, err %d\n"

	.no_dead_strip	_wacom_bt_query_tablet_data
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function wacom_bt_query_tablet_data
lCPI0_0:
	.long	3                               ; 0x3
	.long	0                               ; 0x0
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_wacom_bt_query_tablet_data:            ; @wacom_bt_query_tablet_data
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x22, x2
	mov	x20, x1
	mov	x19, x0
	bl	_hid_get_drvdata
	mov	x21, x0
	ldr	w8, [x22]
	cmp	w8, #128
	b.eq	LBB0_5
; %bb.1:
	cmp	w8, #129
	b.ne	LBB0_7
; %bb.2:
Lloh0:
	adrp	x8, lCPI0_0@PAGE
Lloh1:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	str	d0, [sp, #8]
Lloh2:
	adrp	x22, _HID_FEATURE_REPORT@GOTPAGE
Lloh3:
	ldr	x22, [x22, _HID_FEATURE_REPORT@GOTPAGEOFF]
	ldr	w1, [x22]
	add	x2, sp, #8
	mov	x0, x19
	mov	w3, #2
	mov	w4, #3
	bl	_wacom_set_report
	tbnz	w0, #31, LBB0_4
; %bb.3:
	cmp	w20, #0
	mov	w8, #5
	cinc	w8, w8, ne
	stp	w8, wzr, [sp, #8]
	ldr	w1, [x22]
	add	x2, sp, #8
	mov	x0, x19
	mov	w3, #2
	mov	w4, #3
	bl	_wacom_set_report
	tbz	w0, #31, LBB0_6
LBB0_4:
	mov	x3, x0
	ldr	w2, [sp, #8]
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_hid_warn
	b	LBB0_7
LBB0_5:
	cmp	w20, #1
	cset	w8, ne
	ldr	w9, [x21, #4]
	bfi	w9, w8, #5, #1
	str	w9, [x21, #4]
	mov	w8, #3
	stp	w8, w9, [sp, #8]
Lloh6:
	adrp	x8, _HID_FEATURE_REPORT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _HID_FEATURE_REPORT@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	add	x2, sp, #8
	mov	x0, x19
	mov	w3, #2
	mov	w4, #1
	bl	_wacom_set_report
	tbnz	w0, #31, LBB0_7
LBB0_6:
	str	w20, [x21]
LBB0_7:
	mov	w0, #0
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdr	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_HID_FEATURE_REPORT,4,2         ; @HID_FEATURE_REPORT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to poke device, command %d, err %d\n"

	.no_dead_strip	_wacom_bt_query_tablet_data
.subsections_via_symbols
