	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wacom_handle_model_response
_wacom_handle_model_response:           ## @wacom_handle_model_response
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	(%rdi), %rdi
	movl	$86, %esi
	callq	_strrchr
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	incq	%rax
	leaq	L_.str(%rip), %rsi
	leaq	-16(%rbp), %rdx
	leaq	-12(%rbp), %rcx
	movq	%rax, %rdi
	callq	_sscanf
	cmpl	$2, %eax
	je	LBB0_3
LBB0_2:
	movl	$0, -12(%rbp)
	movl	$0, -16(%rbp)
LBB0_3:
	movq	(%rbx), %rax
	movl	8(%rax), %ecx
	shll	$8, %ecx
	orl	12(%rax), %ecx
	leal	-128(%rcx), %esi
	cmpl	$5, %esi
	ja	LBB0_16
## %bb.4:
	leaq	L_.str.1(%rip), %rdx
	leaq	LJTI0_0(%rip), %rdi
	movslq	(%rdi,%rsi,4), %rsi
	addq	%rdi, %rsi
	jmpq	*%rsi
LBB0_13:
	movq	40(%rbx), %rdi
	leaq	L_.str.5(%rip), %rdx
	movq	%rdx, (%rdi)
	movl	$130, 12(%rdi)
	cmpl	$1, -16(%rbp)
	jne	LBB0_18
## %bb.14:
	cmpl	$2, -12(%rbp)
	jg	LBB0_18
## %bb.15:
	movl	$0, 16(%rbx)
	jmp	LBB0_18
LBB0_16:
	movq	40(%rbx), %rdi
	addq	$8, %rdi
	leaq	L_.str.6(%rip), %rsi
	movq	%rax, %rdx
	callq	_dev_err
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	subl	(%rax), %ecx
	movl	%ecx, 48(%rbx)
	jmp	LBB0_19
LBB0_17:
	movq	40(%rbx), %rdi
	leaq	L_.str.3(%rip), %rdx
	movq	%rdx, (%rdi)
	movl	$128, 12(%rdi)
	movabsq	$4294967297000, %rax            ## imm = 0x3E8000003E8
	movq	%rax, 8(%rbx)
	jmp	LBB0_18
LBB0_12:
	movq	40(%rbx), %rdi
	leaq	L_.str.4(%rip), %rdx
	movq	%rdx, (%rdi)
	movl	$129, 12(%rdi)
	movabsq	$4363686773752, %rax            ## imm = 0x3F8000003F8
	movq	%rax, 8(%rbx)
	movabsq	$15938623640559, %rax           ## imm = 0xE7F000013EF
	movq	%rax, 24(%rbx)
	movl	$2, 16(%rbx)
	movl	$8, 32(%rbx)
	movq	_F_HAS_STYLUS2@GOTPCREL(%rip), %rax
	movq	_F_HAS_SCROLLWHEEL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movl	%ecx, 20(%rbx)
	jmp	LBB0_18
LBB0_5:
	leaq	L_.str.2(%rip), %rdx
LBB0_6:
	movq	40(%rbx), %rdi
	movq	%rdx, (%rdi)
	movl	%ecx, 12(%rdi)
	movabsq	$2181843386876, %rcx            ## imm = 0x1FC000001FC
	movq	%rcx, 8(%rbx)
	movl	20(%rax), %ecx
	shll	$8, %ecx
	orl	24(%rax), %ecx
	cmpl	$13621, %ecx                    ## imm = 0x3535
	je	LBB0_10
## %bb.7:
	cmpl	$14384, %ecx                    ## imm = 0x3830
	je	LBB0_10
## %bb.8:
	cmpl	$14129, %ecx                    ## imm = 0x3731
	jne	LBB0_11
## %bb.9:
	movabsq	$10909216934380, %rax           ## imm = 0x9EC000009EC
	movq	%rax, 8(%rbx)
LBB0_10:
	movl	$2, 16(%rbx)
LBB0_11:
	movq	_F_COVERS_SCREEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%rbx)
LBB0_18:
	addq	$8, %rdi
	movl	-16(%rbp), %ecx
	movl	-12(%rbp), %r8d
	leaq	L_.str.7(%rip), %rsi
	callq	_dev_info
LBB0_19:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_17, LBB0_17-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
LJTI0_0:
	.long	L0_0_set_17
	.long	L0_0_set_12
	.long	L0_0_set_13
	.long	L0_0_set_5
	.long	L0_0_set_6
	.long	L0_0_set_13
	.end_data_region
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%u.%u"

L_.str.1:                               ## @.str.1
	.asciz	"Wacom Cintiq"

L_.str.2:                               ## @.str.2
	.asciz	"Wacom Cintiq II"

	.comm	_F_COVERS_SCREEN,4,2            ## @F_COVERS_SCREEN
L_.str.3:                               ## @.str.3
	.asciz	"Wacom Penpartner"

L_.str.4:                               ## @.str.4
	.asciz	"Wacom Graphire"

	.comm	_F_HAS_STYLUS2,4,2              ## @F_HAS_STYLUS2
	.comm	_F_HAS_SCROLLWHEEL,4,2          ## @F_HAS_SCROLLWHEEL
L_.str.5:                               ## @.str.5
	.asciz	"Wacom Digitizer II"

L_.str.6:                               ## @.str.6
	.asciz	"Unsupported Wacom model %s\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
L_.str.7:                               ## @.str.7
	.asciz	"%s tablet, version %u.%u\n"

	.no_dead_strip	_wacom_handle_model_response
.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_handle_model_response
lCPI0_0:
	.long	5103                            ; 0x13ef
	.long	3711                            ; 0xe7f
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_wacom_handle_model_response:           ; @wacom_handle_model_response
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x0
	ldr	x0, [x0]
	mov	w1, #86
	bl	_strrchr
	cbz	x0, LBB0_2
; %bb.1:
	add	x0, x0, #1
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	add	x2, sp, #12
	add	x3, sp, #8
	bl	_sscanf
	cmp	w0, #2
	b.eq	LBB0_3
LBB0_2:
	str	xzr, [sp, #8]
LBB0_3:
	ldr	x8, [x19]
	ldp	w9, w10, [x8, #8]
	orr	w10, w10, w9, lsl #8
	sub	w9, w10, #128
	cmp	w9, #5
	b.hi	LBB0_18
; %bb.4:
Lloh2:
	adrp	x2, l_.str.1@PAGE
Lloh3:
	add	x2, x2, l_.str.1@PAGEOFF
Lloh4:
	adrp	x11, lJTI0_0@PAGE
Lloh5:
	add	x11, x11, lJTI0_0@PAGEOFF
	adr	x12, LBB0_5
	ldrb	w13, [x11, x9]
	add	x12, x12, x13, lsl #2
	br	x12
LBB0_5:
Lloh6:
	adrp	x2, l_.str.5@PAGE
Lloh7:
	add	x2, x2, l_.str.5@PAGEOFF
	ldr	x9, [x19, #40]
	str	x2, [x9]
	mov	w8, #130
	str	w8, [x9, #12]
	ldr	w8, [sp, #12]
	cmp	w8, #1
	b.ne	LBB0_16
; %bb.6:
	ldr	w8, [sp, #8]
	cmp	w8, #2
	b.gt	LBB0_16
; %bb.7:
	str	wzr, [x19, #16]
Lloh8:
	adrp	x2, l_.str.5@PAGE
Lloh9:
	add	x2, x2, l_.str.5@PAGEOFF
	b	LBB0_16
LBB0_8:
	ldr	x9, [x19, #40]
Lloh10:
	adrp	x2, l_.str.3@PAGE
Lloh11:
	add	x2, x2, l_.str.3@PAGEOFF
	str	x2, [x9]
	mov	w8, #128
	str	w8, [x9, #12]
	mov	w8, #1000
	dup.2s	v0, w8
	str	d0, [x19, #8]
	b	LBB0_16
LBB0_9:
	ldr	x9, [x19, #40]
Lloh12:
	adrp	x2, l_.str.4@PAGE
Lloh13:
	add	x2, x2, l_.str.4@PAGEOFF
	str	x2, [x9]
	mov	w8, #129
	str	w8, [x9, #12]
	mov	w8, #1016
	dup.2s	v0, w8
	str	d0, [x19, #8]
Lloh14:
	adrp	x8, lCPI0_0@PAGE
Lloh15:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	str	d0, [x19, #24]
	mov	w8, #8
	str	w8, [x19, #32]
Lloh16:
	adrp	x8, _F_HAS_STYLUS2@GOTPAGE
Lloh17:
	ldr	x8, [x8, _F_HAS_STYLUS2@GOTPAGEOFF]
Lloh18:
	adrp	x10, _F_HAS_SCROLLWHEEL@GOTPAGE
Lloh19:
	ldr	x10, [x10, _F_HAS_SCROLLWHEEL@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
Lloh21:
	ldr	w10, [x10]
	orr	w8, w10, w8
	mov	w10, #2
	stp	w10, w8, [x19, #16]
	b	LBB0_16
LBB0_10:
Lloh22:
	adrp	x2, l_.str.2@PAGE
Lloh23:
	add	x2, x2, l_.str.2@PAGEOFF
LBB0_11:
	ldr	x9, [x19, #40]
	str	x2, [x9]
	str	w10, [x9, #12]
	mov	w10, #508
	dup.2s	v0, w10
	str	d0, [x19, #8]
	ldp	w10, w8, [x8, #20]
	orr	w8, w8, w10, lsl #8
	mov	w10, #13621
	cmp	w8, w10
	mov	w10, #14384
	ccmp	w8, w10, #4, ne
	b.eq	LBB0_14
; %bb.12:
	mov	w10, #14129
	cmp	w8, w10
	b.ne	LBB0_15
; %bb.13:
	mov	w8, #2540
	dup.2s	v0, w8
	str	d0, [x19, #8]
LBB0_14:
	mov	w8, #2
	str	w8, [x19, #16]
LBB0_15:
Lloh24:
	adrp	x8, _F_COVERS_SCREEN@GOTPAGE
Lloh25:
	ldr	x8, [x8, _F_COVERS_SCREEN@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	str	w8, [x19, #20]
LBB0_16:
	add	x0, x9, #8
	ldp	w4, w3, [sp, #8]
Lloh27:
	adrp	x1, l_.str.7@PAGE
Lloh28:
	add	x1, x1, l_.str.7@PAGEOFF
	bl	_dev_info
LBB0_17:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_18:
	ldr	x9, [x19, #40]
	add	x0, x9, #8
Lloh29:
	adrp	x1, l_.str.6@PAGE
Lloh30:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x2, x8
	bl	_dev_err
Lloh31:
	adrp	x8, _ENODEV@GOTPAGE
Lloh32:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh33:
	ldr	w8, [x8]
	neg	w8, w8
	str	w8, [x19, #48]
	b	LBB0_17
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh20
	.loh AdrpLdr	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpAdd	Lloh29, Lloh30
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_8-LBB0_5)>>2
	.byte	(LBB0_9-LBB0_5)>>2
	.byte	(LBB0_5-LBB0_5)>>2
	.byte	(LBB0_10-LBB0_5)>>2
	.byte	(LBB0_11-LBB0_5)>>2
	.byte	(LBB0_5-LBB0_5)>>2
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%u.%u"

l_.str.1:                               ; @.str.1
	.asciz	"Wacom Cintiq"

l_.str.2:                               ; @.str.2
	.asciz	"Wacom Cintiq II"

	.comm	_F_COVERS_SCREEN,4,2            ; @F_COVERS_SCREEN
l_.str.3:                               ; @.str.3
	.asciz	"Wacom Penpartner"

l_.str.4:                               ; @.str.4
	.asciz	"Wacom Graphire"

	.comm	_F_HAS_STYLUS2,4,2              ; @F_HAS_STYLUS2
	.comm	_F_HAS_SCROLLWHEEL,4,2          ; @F_HAS_SCROLLWHEEL
l_.str.5:                               ; @.str.5
	.asciz	"Wacom Digitizer II"

l_.str.6:                               ; @.str.6
	.asciz	"Unsupported Wacom model %s\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
l_.str.7:                               ; @.str.7
	.asciz	"%s tablet, version %u.%u\n"

	.no_dead_strip	_wacom_handle_model_response
.subsections_via_symbols
