	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wacom_register_inputs
_wacom_register_inputs:                 ## @wacom_register_inputs
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %rbx
	testq	%rbx, %rbx
	je	LBB0_3
## %bb.1:
	movq	%rdi, %r12
	movq	8(%rdi), %r15
	testq	%r15, %r15
	je	LBB0_3
## %bb.2:
	movq	16(%r12), %r14
	testq	%r14, %r14
	je	LBB0_3
## %bb.4:
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_wacom_setup_pen_input_capabilities
	movq	%rbx, %rdi
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	callq	_input_free_device
	movq	$0, (%r12)
LBB0_7:
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_wacom_setup_touch_input_capabilities
	movq	%r15, %rdi
	testl	%eax, %eax
	je	LBB0_9
## %bb.8:
	callq	_input_free_device
	movq	$0, 8(%r12)
LBB0_10:
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_wacom_setup_pad_input_capabilities
	movq	%r14, %rdi
	testl	%eax, %eax
	je	LBB0_12
## %bb.11:
	callq	_input_free_device
	movq	$0, 16(%r12)
	xorl	%eax, %eax
	jmp	LBB0_15
LBB0_3:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_15
LBB0_6:
	callq	_input_register_device
	testl	%eax, %eax
	jne	LBB0_14
	jmp	LBB0_7
LBB0_9:
	callq	_input_register_device
	testl	%eax, %eax
	jne	LBB0_14
	jmp	LBB0_10
LBB0_12:
	callq	_input_register_device
	testl	%eax, %eax
	je	LBB0_13
LBB0_14:
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%r12)
	movq	$0, 16(%r12)
LBB0_15:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	xorl	%eax, %eax
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_wacom_register_inputs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wacom_register_inputs
_wacom_register_inputs:                 ; @wacom_register_inputs
	.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
	ldp	x22, x21, [x0]
	ldr	x20, [x0, #16]
	cmp	x22, #0
	ccmp	x21, #0, #4, ne
	ccmp	x20, #0, #4, ne
	b.ne	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_13
LBB0_2:
	mov	x19, x0
	mov	x0, x22
	mov	x1, x19
	bl	_wacom_setup_pen_input_capabilities
	cbz	w0, LBB0_8
; %bb.3:
	mov	x0, x22
	bl	_input_free_device
	str	xzr, [x19]
LBB0_4:
	mov	x0, x21
	mov	x1, x19
	bl	_wacom_setup_touch_input_capabilities
	cbz	w0, LBB0_9
; %bb.5:
	mov	x0, x21
	bl	_input_free_device
	str	xzr, [x19, #8]
LBB0_6:
	mov	x0, x20
	mov	x1, x19
	bl	_wacom_setup_pad_input_capabilities
	cbz	w0, LBB0_10
; %bb.7:
	mov	x0, x20
	bl	_input_free_device
	mov	w0, #0
	b	LBB0_12
LBB0_8:
	mov	x0, x22
	bl	_input_register_device
	cbnz	w0, LBB0_11
	b	LBB0_4
LBB0_9:
	mov	x0, x21
	bl	_input_register_device
	cbnz	w0, LBB0_11
	b	LBB0_6
LBB0_10:
	mov	x0, x20
	bl	_input_register_device
	cbz	w0, LBB0_13
LBB0_11:
	stp	xzr, xzr, [x19]
LBB0_12:
	str	xzr, [x19, #16]
LBB0_13:
	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
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_wacom_register_inputs
.subsections_via_symbols
