	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wacom_store_unpair_remote
_wacom_store_unpair_remote:             ## @wacom_store_unpair_remote
	.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	%rcx, %r14
	movq	%rdx, %r15
	movl	(%rdi), %edi
	callq	_kobj_to_dev
	movq	%rax, %rdi
	callq	_to_hid_device
	movq	%rax, %rdi
	callq	_hid_get_drvdata
	movq	%rax, %rbx
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	movl	$2, %edx
	callq	_strncmp
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movl	4(%rbx), %edi
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdx
	callq	_hid_info
	movl	$-1, %r14d
	jmp	LBB0_3
LBB0_1:
	movq	_WAC_CMD_UNPAIR_ALL@GOTPCREL(%rip), %rax
	movzbl	(%rax), %r15d
	movq	%rbx, %rdi
	callq	_mutex_lock
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	_wacom_cmd_unpair_remote
	movl	%eax, %r15d
	movq	%rbx, %rdi
	callq	_mutex_unlock
	testl	%r15d, %r15d
	cmovsl	%r15d, %r14d
LBB0_3:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"*\n"

	.comm	_WAC_CMD_UNPAIR_ALL,1,0         ## @WAC_CMD_UNPAIR_ALL
L_.str.1:                               ## @.str.1
	.asciz	"remote: unrecognized unpair code: %s\n"

	.no_dead_strip	_wacom_store_unpair_remote
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wacom_store_unpair_remote
_wacom_store_unpair_remote:             ; @wacom_store_unpair_remote
	.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
	mov	x19, x3
	mov	x20, x2
	ldr	w0, [x0]
	bl	_kobj_to_dev
	bl	_to_hid_device
	bl	_hid_get_drvdata
	mov	x21, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	mov	w2, #2
	bl	_strncmp
	cbz	w0, LBB0_2
; %bb.1:
	ldr	w0, [x21, #4]
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x20
	bl	_hid_info
	mov	w0, #-1
	b	LBB0_3
LBB0_2:
Lloh4:
	adrp	x8, _WAC_CMD_UNPAIR_ALL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _WAC_CMD_UNPAIR_ALL@GOTPAGEOFF]
	ldrb	w20, [x8]
	mov	x0, x21
	bl	_mutex_lock
	mov	x0, x21
	mov	x1, x20
	bl	_wacom_cmd_unpair_remote
	mov	x20, x0
	mov	x0, x21
	bl	_mutex_unlock
	cmp	w20, #0
	csel	w0, w20, w19, lt
LBB0_3:
	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 AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"*\n"

	.comm	_WAC_CMD_UNPAIR_ALL,1,0         ; @WAC_CMD_UNPAIR_ALL
l_.str.1:                               ; @.str.1
	.asciz	"remote: unrecognized unpair code: %s\n"

	.no_dead_strip	_wacom_store_unpair_remote
.subsections_via_symbols
