	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _wacom_query_tablet_data
__wacom_query_tablet_data:              ## @_wacom_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	24(%rdi), %r14
	leaq	8(%rdi), %rdx
	movq	(%r14), %rax
	movq	_BUS_BLUETOOTH@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
## %bb.13:
	movq	%r14, %rdi
	movl	$1, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_wacom_bt_query_tablet_data     ## TAILCALL
LBB0_1:
	movq	%rdi, %rbx
	movq	(%rdx), %rax
	movq	_HID_GENERIC@GOTPCREL(%rip), %r15
	cmpq	(%r15), %rax
	je	LBB0_11
## %bb.2:
	movl	16(%rbx), %ecx
	movq	_WACOM_DEVICETYPE_TOUCH@GOTPCREL(%rip), %rdx
	testl	%ecx, (%rdx)
	je	LBB0_8
## %bb.3:
	movq	_TABLETPC@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jle	LBB0_5
## %bb.4:
	movl	$4, %edx
	movl	$3, %ecx
	jmp	LBB0_10
LBB0_8:
	movq	_WACOM_DEVICETYPE_PEN@GOTPCREL(%rip), %rdx
	testl	%ecx, (%rdx)
	je	LBB0_11
## %bb.9:
	movq	_BAMBOO_PT@GOTPCREL(%rip), %rsi
	movl	$2, %ecx
	movl	$2, %edx
	cmpq	(%rsi), %rax
	jle	LBB0_10
	jmp	LBB0_11
LBB0_5:
	movq	_WACOM_24HDT@GOTPCREL(%rip), %rsi
	movl	$2, %edx
	movl	$18, %ecx
	cmpq	(%rsi), %rax
	je	LBB0_10
## %bb.6:
	movq	_WACOM_27QHDT@GOTPCREL(%rip), %rsi
	movl	$131, %ecx
	cmpq	(%rsi), %rax
	je	LBB0_10
## %bb.7:
	movq	_BAMBOO_PAD@GOTPCREL(%rip), %rsi
	movl	$2, %ecx
	movl	$2, %edx
	cmpq	(%rsi), %rax
	jne	LBB0_11
LBB0_10:
	movl	%ecx, (%rbx)
	movl	%edx, 4(%rbx)
LBB0_11:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_wacom_set_device_mode
	movq	8(%rbx), %rax
	cmpq	(%r15), %rax
	jne	LBB0_12
## %bb.14:
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_wacom_hid_set_device_mode      ## TAILCALL
LBB0_12:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BUS_BLUETOOTH,8,3              ## @BUS_BLUETOOTH
	.comm	_HID_GENERIC,8,3                ## @HID_GENERIC
	.comm	_WACOM_DEVICETYPE_TOUCH,4,2     ## @WACOM_DEVICETYPE_TOUCH
	.comm	_TABLETPC,8,3                   ## @TABLETPC
	.comm	_WACOM_24HDT,8,3                ## @WACOM_24HDT
	.comm	_WACOM_27QHDT,8,3               ## @WACOM_27QHDT
	.comm	_BAMBOO_PAD,8,3                 ## @BAMBOO_PAD
	.comm	_WACOM_DEVICETYPE_PEN,4,2       ## @WACOM_DEVICETYPE_PEN
	.comm	_BAMBOO_PT,8,3                  ## @BAMBOO_PT
	.no_dead_strip	__wacom_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_query_tablet_data
lCPI0_0:
	.long	3                               ; 0x3
	.long	4                               ; 0x4
lCPI0_1:
	.long	18                              ; 0x12
	.long	2                               ; 0x2
lCPI0_2:
	.long	131                             ; 0x83
	.long	2                               ; 0x2
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
__wacom_query_tablet_data:              ; @_wacom_query_tablet_data
	.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
	ldr	x19, [x0, #24]
	add	x2, x0, #8
	ldr	x8, [x19]
Lloh0:
	adrp	x9, _BUS_BLUETOOTH@GOTPAGE
Lloh1:
	ldr	x9, [x9, _BUS_BLUETOOTH@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	mov	x0, x19
	mov	w1, #1
	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_bt_query_tablet_data
LBB0_2:
	mov	x20, x0
	ldr	x8, [x2]
Lloh3:
	adrp	x21, _HID_GENERIC@GOTPAGE
Lloh4:
	ldr	x21, [x21, _HID_GENERIC@GOTPAGEOFF]
	ldr	x9, [x21]
	cmp	x8, x9
	b.eq	LBB0_13
; %bb.3:
	ldr	w9, [x20, #16]
Lloh5:
	adrp	x10, _WACOM_DEVICETYPE_TOUCH@GOTPAGE
Lloh6:
	ldr	x10, [x10, _WACOM_DEVICETYPE_TOUCH@GOTPAGEOFF]
Lloh7:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_6
; %bb.4:
Lloh8:
	adrp	x9, _TABLETPC@GOTPAGE
Lloh9:
	ldr	x9, [x9, _TABLETPC@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x8, x9
	b.le	LBB0_7
; %bb.5:
Lloh11:
	adrp	x8, lCPI0_0@PAGE
Lloh12:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	b	LBB0_12
LBB0_6:
Lloh13:
	adrp	x10, _WACOM_DEVICETYPE_PEN@GOTPAGE
Lloh14:
	ldr	x10, [x10, _WACOM_DEVICETYPE_PEN@GOTPAGEOFF]
Lloh15:
	ldr	w10, [x10]
	and	w9, w10, w9
Lloh16:
	adrp	x10, _BAMBOO_PT@GOTPAGE
Lloh17:
	ldr	x10, [x10, _BAMBOO_PT@GOTPAGEOFF]
Lloh18:
	ldr	x10, [x10]
	movi.2s	v0, #2
	cmp	w9, #0
	ccmp	x8, x10, #0, ne
	b.le	LBB0_12
	b	LBB0_13
LBB0_7:
Lloh19:
	adrp	x9, _WACOM_24HDT@GOTPAGE
Lloh20:
	ldr	x9, [x9, _WACOM_24HDT@GOTPAGEOFF]
Lloh21:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_9
; %bb.8:
Lloh22:
	adrp	x8, lCPI0_1@PAGE
Lloh23:
	ldr	d0, [x8, lCPI0_1@PAGEOFF]
	b	LBB0_12
LBB0_9:
Lloh24:
	adrp	x9, _WACOM_27QHDT@GOTPAGE
Lloh25:
	ldr	x9, [x9, _WACOM_27QHDT@GOTPAGEOFF]
Lloh26:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_11
; %bb.10:
Lloh27:
	adrp	x8, lCPI0_2@PAGE
Lloh28:
	ldr	d0, [x8, lCPI0_2@PAGEOFF]
	b	LBB0_12
LBB0_11:
Lloh29:
	adrp	x9, _BAMBOO_PAD@GOTPAGE
Lloh30:
	ldr	x9, [x9, _BAMBOO_PAD@GOTPAGEOFF]
Lloh31:
	ldr	x9, [x9]
	movi.2s	v0, #2
	cmp	x8, x9
	b.ne	LBB0_13
LBB0_12:
	str	d0, [x20]
LBB0_13:
	mov	x0, x19
	mov	x1, x20
	bl	_wacom_set_device_mode
	ldr	x8, [x20, #8]
	ldr	x9, [x21]
	cmp	x8, x9
	b.ne	LBB0_15
; %bb.14:
	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_hid_set_device_mode
LBB0_15:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdr	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdr	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdr	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_BUS_BLUETOOTH,8,3              ; @BUS_BLUETOOTH
	.comm	_HID_GENERIC,8,3                ; @HID_GENERIC
	.comm	_WACOM_DEVICETYPE_TOUCH,4,2     ; @WACOM_DEVICETYPE_TOUCH
	.comm	_TABLETPC,8,3                   ; @TABLETPC
	.comm	_WACOM_24HDT,8,3                ; @WACOM_24HDT
	.comm	_WACOM_27QHDT,8,3               ; @WACOM_27QHDT
	.comm	_BAMBOO_PAD,8,3                 ; @BAMBOO_PAD
	.comm	_WACOM_DEVICETYPE_PEN,4,2       ; @WACOM_DEVICETYPE_PEN
	.comm	_BAMBOO_PT,8,3                  ; @BAMBOO_PT
	.no_dead_strip	__wacom_query_tablet_data
.subsections_via_symbols
