	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wacom_handle_response
_wacom_handle_response:                 ## @wacom_handle_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), %rdx
	cmpb	$126, (%rdx)
	jne	LBB0_2
## %bb.1:
	movb	1(%rdx), %al
	cmpb	8(%rbx), %al
	jne	LBB0_2
## %bb.3:
	movl	$0, 16(%rbx)
	movsbl	1(%rdx), %eax
	cmpl	$82, %eax
	je	LBB0_7
## %bb.4:
	cmpl	$67, %eax
	je	LBB0_8
## %bb.5:
	cmpl	$35, %eax
	jne	LBB0_9
## %bb.6:
	movq	%rbx, %rdi
	callq	_wacom_handle_model_response
	jmp	LBB0_9
LBB0_2:
	movq	24(%rbx), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	subl	(%rax), %ecx
	movl	%ecx, 16(%rbx)
LBB0_9:
	addq	$12, %rbx
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_complete                       ## TAILCALL
LBB0_7:
	movq	%rbx, %rdi
	callq	_wacom_handle_configuration_response
	jmp	LBB0_9
LBB0_8:
	movq	%rbx, %rdi
	callq	_wacom_handle_coordinates_response
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Wacom got an unexpected response: %s\n"

	.comm	_EIO,4,2                        ## @EIO
	.no_dead_strip	_wacom_handle_response
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wacom_handle_response
_wacom_handle_response:                 ; @wacom_handle_response
	.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
	mov	x19, x0
	ldr	x2, [x0]
	ldrb	w8, [x2]
	cmp	w8, #126
	b.ne	LBB0_6
; %bb.1:
	ldrb	w8, [x2, #1]
	ldrb	w9, [x19, #8]
	cmp	w8, w9
	b.ne	LBB0_6
; %bb.2:
	str	wzr, [x19, #16]
	ldrsb	w8, [x2, #1]
	cmp	w8, #82
	b.eq	LBB0_8
; %bb.3:
	cmp	w8, #67
	b.eq	LBB0_9
; %bb.4:
	cmp	w8, #35
	b.ne	LBB0_7
; %bb.5:
	mov	x0, x19
	bl	_wacom_handle_model_response
	b	LBB0_7
LBB0_6:
	ldr	x0, [x19, #24]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
Lloh2:
	adrp	x8, _EIO@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w8, w8
	str	w8, [x19, #16]
LBB0_7:
	add	x0, x19, #12
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_complete
LBB0_8:
	mov	x0, x19
	bl	_wacom_handle_configuration_response
	b	LBB0_7
LBB0_9:
	mov	x0, x19
	bl	_wacom_handle_coordinates_response
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Wacom got an unexpected response: %s\n"

	.comm	_EIO,4,2                        ; @EIO
	.no_dead_strip	_wacom_handle_response
.subsections_via_symbols
