	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cyapa_create_input_dev
_cyapa_create_input_dev:                ## @cyapa_create_input_dev
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpl	$0, (%rdi)
	je	LBB0_2
## %bb.1:
	movq	%rdi, %r12
	cmpl	$0, 4(%rdi)
	je	LBB0_2
## %bb.3:
	movq	48(%r12), %r14
	movq	%r14, %rdi
	callq	_devm_input_allocate_device
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, %r15
	movq	_CYAPA_NAME@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 60(%r15)
	movl	56(%r12), %eax
	movl	%eax, 56(%r15)
	movq	_BUS_I2C@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 48(%r15)
	movl	$1, 32(%r15)
	movq	$0, 40(%r15)
	movq	48(%r12), %rax
	movq	%rax, 24(%r15)
	movq	_cyapa_open@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r15)
	movq	_cyapa_close@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%r15)
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_input_set_drvdata
	movq	_EV_ABS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	8(%r15), %esi
	callq	___set_bit
	movq	_ABS_MT_POSITION_X@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movl	8(%r12), %ecx
	movq	%r15, %rdi
	xorl	%edx, %edx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_input_set_abs_params
	movq	_ABS_MT_POSITION_Y@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movl	12(%r12), %ecx
	movq	%r15, %rdi
	xorl	%edx, %edx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_input_set_abs_params
	movq	_ABS_MT_PRESSURE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	16(%r12), %ecx
	movq	%r15, %rdi
	xorl	%edx, %edx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_input_set_abs_params
	movq	24(%r12), %rax
	movq	_CYAPA_GEN3@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jle	LBB0_7
## %bb.6:
	movq	_ABS_MT_TOUCH_MAJOR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	xorl	%edx, %edx
	movl	$255, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_input_set_abs_params
	movq	_ABS_MT_TOUCH_MINOR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	xorl	%edx, %edx
	movl	$255, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_input_set_abs_params
	movq	_ABS_MT_ORIENTATION@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	$-127, %edx
	movl	$127, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_input_set_abs_params
	movq	24(%r12), %rax
LBB0_7:
	movq	_CYAPA_GEN5@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jl	LBB0_9
## %bb.8:
	movq	_ABS_MT_WIDTH_MAJOR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	xorl	%edx, %edx
	movl	$255, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_input_set_abs_params
	movq	_ABS_MT_WIDTH_MINOR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	xorl	%edx, %edx
	movl	$255, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_input_set_abs_params
	movq	_ABS_DISTANCE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	xorl	%edx, %edx
	movl	$1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_input_set_abs_params
LBB0_9:
	movl	(%r13), %esi
	movl	8(%r12), %eax
	cltd
	idivl	(%r12)
	movq	%r15, %rdi
	movl	%eax, %edx
	callq	_input_abs_set_res
	movl	(%rbx), %esi
	movl	12(%r12), %eax
	cltd
	idivl	4(%r12)
	movq	%r15, %rdi
	movl	%eax, %edx
	callq	_input_abs_set_res
	movl	32(%r12), %eax
	movq	_CAPABILITY_LEFT_BTN_MASK@GOTPCREL(%rip), %rbx
	testl	%eax, (%rbx)
	je	LBB0_11
## %bb.10:
	movq	_BTN_LEFT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	4(%r15), %esi
	callq	___set_bit
	movl	32(%r12), %eax
LBB0_11:
	movq	_CAPABILITY_MIDDLE_BTN_MASK@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_13
## %bb.12:
	movq	_BTN_MIDDLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	4(%r15), %esi
	callq	___set_bit
	movl	32(%r12), %eax
LBB0_13:
	movq	_CAPABILITY_RIGHT_BTN_MASK@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_15
## %bb.14:
	movq	_BTN_RIGHT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	4(%r15), %esi
	callq	___set_bit
	movl	32(%r12), %eax
LBB0_15:
	cmpl	(%rbx), %eax
	jne	LBB0_17
## %bb.16:
	movq	_INPUT_PROP_BUTTONPAD@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r15), %esi
	callq	___set_bit
LBB0_17:
	movq	_CYAPA_MAX_MT_SLOTS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_INPUT_MT_POINTER@GOTPCREL(%rip), %rax
	movq	_INPUT_MT_DROP_UNUSED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movq	%r15, %rdi
	callq	_input_mt_init_slots
	testl	%eax, %eax
	je	LBB0_20
## %bb.18:
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_19
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_23
LBB0_4:
	leaq	L_.str(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_23
LBB0_20:
	movq	%r15, %rdi
	callq	_input_register_device
	testl	%eax, %eax
	je	LBB0_22
## %bb.21:
	movl	%eax, %ebx
	leaq	L_.str.2(%rip), %rsi
LBB0_19:
	movq	%r14, %rdi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_dev_err
LBB0_23:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_22:
	movq	%r15, 40(%r12)
	xorl	%ebx, %ebx
	jmp	LBB0_23
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to allocate memory for input device.\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_CYAPA_NAME,4,2                 ## @CYAPA_NAME
	.comm	_BUS_I2C,4,2                    ## @BUS_I2C
	.comm	_cyapa_open,4,2                 ## @cyapa_open
	.comm	_cyapa_close,4,2                ## @cyapa_close
	.comm	_EV_ABS,4,2                     ## @EV_ABS
	.comm	_ABS_MT_POSITION_X,4,2          ## @ABS_MT_POSITION_X
	.comm	_ABS_MT_POSITION_Y,4,2          ## @ABS_MT_POSITION_Y
	.comm	_ABS_MT_PRESSURE,4,2            ## @ABS_MT_PRESSURE
	.comm	_CYAPA_GEN3,8,3                 ## @CYAPA_GEN3
	.comm	_ABS_MT_TOUCH_MAJOR,4,2         ## @ABS_MT_TOUCH_MAJOR
	.comm	_ABS_MT_TOUCH_MINOR,4,2         ## @ABS_MT_TOUCH_MINOR
	.comm	_ABS_MT_ORIENTATION,4,2         ## @ABS_MT_ORIENTATION
	.comm	_CYAPA_GEN5,8,3                 ## @CYAPA_GEN5
	.comm	_ABS_MT_WIDTH_MAJOR,4,2         ## @ABS_MT_WIDTH_MAJOR
	.comm	_ABS_MT_WIDTH_MINOR,4,2         ## @ABS_MT_WIDTH_MINOR
	.comm	_ABS_DISTANCE,4,2               ## @ABS_DISTANCE
	.comm	_CAPABILITY_LEFT_BTN_MASK,4,2   ## @CAPABILITY_LEFT_BTN_MASK
	.comm	_BTN_LEFT,4,2                   ## @BTN_LEFT
	.comm	_CAPABILITY_MIDDLE_BTN_MASK,4,2 ## @CAPABILITY_MIDDLE_BTN_MASK
	.comm	_BTN_MIDDLE,4,2                 ## @BTN_MIDDLE
	.comm	_CAPABILITY_RIGHT_BTN_MASK,4,2  ## @CAPABILITY_RIGHT_BTN_MASK
	.comm	_BTN_RIGHT,4,2                  ## @BTN_RIGHT
	.comm	_INPUT_PROP_BUTTONPAD,4,2       ## @INPUT_PROP_BUTTONPAD
	.comm	_CYAPA_MAX_MT_SLOTS,4,2         ## @CYAPA_MAX_MT_SLOTS
	.comm	_INPUT_MT_POINTER,4,2           ## @INPUT_MT_POINTER
	.comm	_INPUT_MT_DROP_UNUSED,4,2       ## @INPUT_MT_DROP_UNUSED
L_.str.1:                               ## @.str.1
	.asciz	"failed to initialize MT slots: %d\n"

L_.str.2:                               ## @.str.2
	.asciz	"failed to register input device: %d\n"

	.no_dead_strip	_cyapa_create_input_dev
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cyapa_create_input_dev
_cyapa_create_input_dev:                ; @cyapa_create_input_dev
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	ldr	w8, [x0]
	cbz	w8, LBB0_17
; %bb.1:
	mov	x20, x0
	ldr	w8, [x0, #4]
	cbz	w8, LBB0_17
; %bb.2:
	ldr	x19, [x20, #48]
	mov	x0, x19
	bl	_devm_input_allocate_device
	cbz	x0, LBB0_20
; %bb.3:
	mov	x21, x0
Lloh0:
	adrp	x8, _CYAPA_NAME@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CYAPA_NAME@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldr	w9, [x20, #56]
	stp	w9, w8, [x0, #56]
Lloh3:
	adrp	x8, _BUS_I2C@GOTPAGE
Lloh4:
	ldr	x8, [x8, _BUS_I2C@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x0, #48]
	mov	w8, #1
	str	w8, [x0, #32]
	str	xzr, [x0, #40]
	ldr	x8, [x20, #48]
	str	x8, [x0, #24]
Lloh6:
	adrp	x8, _cyapa_open@GOTPAGE
Lloh7:
	ldr	x8, [x8, _cyapa_open@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _cyapa_close@GOTPAGE
Lloh10:
	ldr	x9, [x9, _cyapa_close@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	stp	w9, w8, [x0, #12]
	mov	x1, x20
	bl	_input_set_drvdata
Lloh12:
	adrp	x8, _EV_ABS@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EV_ABS@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	ldr	w1, [x21, #8]
	bl	___set_bit
Lloh15:
	adrp	x22, _ABS_MT_POSITION_X@GOTPAGE
Lloh16:
	ldr	x22, [x22, _ABS_MT_POSITION_X@GOTPAGEOFF]
	ldr	w1, [x22]
	ldr	w3, [x20, #8]
	mov	x0, x21
	mov	w2, #0
	mov	w4, #0
	mov	w5, #0
	bl	_input_set_abs_params
Lloh17:
	adrp	x23, _ABS_MT_POSITION_Y@GOTPAGE
Lloh18:
	ldr	x23, [x23, _ABS_MT_POSITION_Y@GOTPAGEOFF]
	ldr	w1, [x23]
	ldr	w3, [x20, #12]
	mov	x0, x21
	mov	w2, #0
	mov	w4, #0
	mov	w5, #0
	bl	_input_set_abs_params
Lloh19:
	adrp	x8, _ABS_MT_PRESSURE@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ABS_MT_PRESSURE@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
	ldr	w3, [x20, #16]
	mov	x0, x21
	mov	w2, #0
	mov	w4, #0
	mov	w5, #0
	bl	_input_set_abs_params
	ldr	x8, [x20, #24]
Lloh22:
	adrp	x9, _CYAPA_GEN3@GOTPAGE
Lloh23:
	ldr	x9, [x9, _CYAPA_GEN3@GOTPAGEOFF]
Lloh24:
	ldr	x9, [x9]
	cmp	x8, x9
	b.le	LBB0_5
; %bb.4:
Lloh25:
	adrp	x8, _ABS_MT_TOUCH_MAJOR@GOTPAGE
Lloh26:
	ldr	x8, [x8, _ABS_MT_TOUCH_MAJOR@GOTPAGEOFF]
Lloh27:
	ldr	w1, [x8]
	mov	x0, x21
	mov	w2, #0
	mov	w3, #255
	mov	w4, #0
	mov	w5, #0
	bl	_input_set_abs_params
Lloh28:
	adrp	x8, _ABS_MT_TOUCH_MINOR@GOTPAGE
Lloh29:
	ldr	x8, [x8, _ABS_MT_TOUCH_MINOR@GOTPAGEOFF]
Lloh30:
	ldr	w1, [x8]
	mov	x0, x21
	mov	w2, #0
	mov	w3, #255
	mov	w4, #0
	mov	w5, #0
	bl	_input_set_abs_params
Lloh31:
	adrp	x8, _ABS_MT_ORIENTATION@GOTPAGE
Lloh32:
	ldr	x8, [x8, _ABS_MT_ORIENTATION@GOTPAGEOFF]
Lloh33:
	ldr	w1, [x8]
	mov	x0, x21
	mov	w2, #-127
	mov	w3, #127
	mov	w4, #0
	mov	w5, #0
	bl	_input_set_abs_params
	ldr	x8, [x20, #24]
LBB0_5:
Lloh34:
	adrp	x9, _CYAPA_GEN5@GOTPAGE
Lloh35:
	ldr	x9, [x9, _CYAPA_GEN5@GOTPAGEOFF]
Lloh36:
	ldr	x9, [x9]
	cmp	x8, x9
	b.lt	LBB0_7
; %bb.6:
Lloh37:
	adrp	x8, _ABS_MT_WIDTH_MAJOR@GOTPAGE
Lloh38:
	ldr	x8, [x8, _ABS_MT_WIDTH_MAJOR@GOTPAGEOFF]
Lloh39:
	ldr	w1, [x8]
	mov	x0, x21
	mov	w2, #0
	mov	w3, #255
	mov	w4, #0
	mov	w5, #0
	bl	_input_set_abs_params
Lloh40:
	adrp	x8, _ABS_MT_WIDTH_MINOR@GOTPAGE
Lloh41:
	ldr	x8, [x8, _ABS_MT_WIDTH_MINOR@GOTPAGEOFF]
Lloh42:
	ldr	w1, [x8]
	mov	x0, x21
	mov	w2, #0
	mov	w3, #255
	mov	w4, #0
	mov	w5, #0
	bl	_input_set_abs_params
Lloh43:
	adrp	x8, _ABS_DISTANCE@GOTPAGE
Lloh44:
	ldr	x8, [x8, _ABS_DISTANCE@GOTPAGEOFF]
Lloh45:
	ldr	w1, [x8]
	mov	x0, x21
	mov	w2, #0
	mov	w3, #1
	mov	w4, #0
	mov	w5, #0
	bl	_input_set_abs_params
LBB0_7:
	ldr	w1, [x22]
	ldr	w8, [x20, #8]
	ldr	w9, [x20]
	sdiv	w2, w8, w9
	mov	x0, x21
	bl	_input_abs_set_res
	ldr	w1, [x23]
	ldr	w8, [x20, #12]
	ldr	w9, [x20, #4]
	sdiv	w2, w8, w9
	mov	x0, x21
	bl	_input_abs_set_res
	ldr	w8, [x20, #32]
Lloh46:
	adrp	x22, _CAPABILITY_LEFT_BTN_MASK@GOTPAGE
Lloh47:
	ldr	x22, [x22, _CAPABILITY_LEFT_BTN_MASK@GOTPAGEOFF]
	ldr	w9, [x22]
	tst	w9, w8
	b.eq	LBB0_9
; %bb.8:
Lloh48:
	adrp	x8, _BTN_LEFT@GOTPAGE
Lloh49:
	ldr	x8, [x8, _BTN_LEFT@GOTPAGEOFF]
Lloh50:
	ldr	w0, [x8]
	ldr	w1, [x21, #4]
	bl	___set_bit
	ldr	w8, [x20, #32]
LBB0_9:
Lloh51:
	adrp	x9, _CAPABILITY_MIDDLE_BTN_MASK@GOTPAGE
Lloh52:
	ldr	x9, [x9, _CAPABILITY_MIDDLE_BTN_MASK@GOTPAGEOFF]
Lloh53:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_11
; %bb.10:
Lloh54:
	adrp	x8, _BTN_MIDDLE@GOTPAGE
Lloh55:
	ldr	x8, [x8, _BTN_MIDDLE@GOTPAGEOFF]
Lloh56:
	ldr	w0, [x8]
	ldr	w1, [x21, #4]
	bl	___set_bit
	ldr	w8, [x20, #32]
LBB0_11:
Lloh57:
	adrp	x9, _CAPABILITY_RIGHT_BTN_MASK@GOTPAGE
Lloh58:
	ldr	x9, [x9, _CAPABILITY_RIGHT_BTN_MASK@GOTPAGEOFF]
Lloh59:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_13
; %bb.12:
Lloh60:
	adrp	x8, _BTN_RIGHT@GOTPAGE
Lloh61:
	ldr	x8, [x8, _BTN_RIGHT@GOTPAGEOFF]
Lloh62:
	ldr	w0, [x8]
	ldr	w1, [x21, #4]
	bl	___set_bit
	ldr	w8, [x20, #32]
LBB0_13:
	ldr	w9, [x22]
	cmp	w8, w9
	b.ne	LBB0_15
; %bb.14:
Lloh63:
	adrp	x8, _INPUT_PROP_BUTTONPAD@GOTPAGE
Lloh64:
	ldr	x8, [x8, _INPUT_PROP_BUTTONPAD@GOTPAGEOFF]
Lloh65:
	ldr	w0, [x8]
	ldr	w1, [x21]
	bl	___set_bit
LBB0_15:
Lloh66:
	adrp	x8, _CYAPA_MAX_MT_SLOTS@GOTPAGE
Lloh67:
	ldr	x8, [x8, _CYAPA_MAX_MT_SLOTS@GOTPAGEOFF]
Lloh68:
	adrp	x9, _INPUT_MT_POINTER@GOTPAGE
Lloh69:
	ldr	x9, [x9, _INPUT_MT_POINTER@GOTPAGEOFF]
Lloh70:
	ldr	w1, [x8]
Lloh71:
	ldr	w8, [x9]
Lloh72:
	adrp	x9, _INPUT_MT_DROP_UNUSED@GOTPAGE
Lloh73:
	ldr	x9, [x9, _INPUT_MT_DROP_UNUSED@GOTPAGEOFF]
Lloh74:
	ldr	w9, [x9]
	orr	w2, w9, w8
	mov	x0, x21
	bl	_input_mt_init_slots
	cbz	w0, LBB0_21
; %bb.16:
	mov	x22, x0
	str	x22, [sp]
Lloh75:
	adrp	x1, l_.str.1@PAGE
Lloh76:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	b	LBB0_19
LBB0_17:
Lloh77:
	adrp	x8, _EINVAL@GOTPAGE
Lloh78:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_18:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_19:
	mov	x0, x22
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_20:
Lloh79:
	adrp	x1, l_.str@PAGE
Lloh80:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_err
Lloh81:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh82:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_18
LBB0_21:
	mov	x0, x21
	bl	_input_register_device
	mov	x22, x0
	cbz	w0, LBB0_23
; %bb.22:
	str	x22, [sp]
Lloh83:
	adrp	x1, l_.str.2@PAGE
Lloh84:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_dev_err
                                        ; kill: def $w22 killed $w22 killed $x22 def $x22
	b	LBB0_19
LBB0_23:
	str	x21, [x20, #40]
	b	LBB0_19
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGot	Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh57, Lloh58, Lloh59
	.loh AdrpLdrGotLdr	Lloh60, Lloh61, Lloh62
	.loh AdrpLdrGotLdr	Lloh63, Lloh64, Lloh65
	.loh AdrpLdrGotLdr	Lloh72, Lloh73, Lloh74
	.loh AdrpLdrGotLdr	Lloh68, Lloh69, Lloh71
	.loh AdrpLdrGotLdr	Lloh66, Lloh67, Lloh70
	.loh AdrpAdd	Lloh75, Lloh76
	.loh AdrpLdrGot	Lloh77, Lloh78
	.loh AdrpLdrGot	Lloh81, Lloh82
	.loh AdrpAdd	Lloh79, Lloh80
	.loh AdrpAdd	Lloh83, Lloh84
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to allocate memory for input device.\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_CYAPA_NAME,4,2                 ; @CYAPA_NAME
	.comm	_BUS_I2C,4,2                    ; @BUS_I2C
	.comm	_cyapa_open,4,2                 ; @cyapa_open
	.comm	_cyapa_close,4,2                ; @cyapa_close
	.comm	_EV_ABS,4,2                     ; @EV_ABS
	.comm	_ABS_MT_POSITION_X,4,2          ; @ABS_MT_POSITION_X
	.comm	_ABS_MT_POSITION_Y,4,2          ; @ABS_MT_POSITION_Y
	.comm	_ABS_MT_PRESSURE,4,2            ; @ABS_MT_PRESSURE
	.comm	_CYAPA_GEN3,8,3                 ; @CYAPA_GEN3
	.comm	_ABS_MT_TOUCH_MAJOR,4,2         ; @ABS_MT_TOUCH_MAJOR
	.comm	_ABS_MT_TOUCH_MINOR,4,2         ; @ABS_MT_TOUCH_MINOR
	.comm	_ABS_MT_ORIENTATION,4,2         ; @ABS_MT_ORIENTATION
	.comm	_CYAPA_GEN5,8,3                 ; @CYAPA_GEN5
	.comm	_ABS_MT_WIDTH_MAJOR,4,2         ; @ABS_MT_WIDTH_MAJOR
	.comm	_ABS_MT_WIDTH_MINOR,4,2         ; @ABS_MT_WIDTH_MINOR
	.comm	_ABS_DISTANCE,4,2               ; @ABS_DISTANCE
	.comm	_CAPABILITY_LEFT_BTN_MASK,4,2   ; @CAPABILITY_LEFT_BTN_MASK
	.comm	_BTN_LEFT,4,2                   ; @BTN_LEFT
	.comm	_CAPABILITY_MIDDLE_BTN_MASK,4,2 ; @CAPABILITY_MIDDLE_BTN_MASK
	.comm	_BTN_MIDDLE,4,2                 ; @BTN_MIDDLE
	.comm	_CAPABILITY_RIGHT_BTN_MASK,4,2  ; @CAPABILITY_RIGHT_BTN_MASK
	.comm	_BTN_RIGHT,4,2                  ; @BTN_RIGHT
	.comm	_INPUT_PROP_BUTTONPAD,4,2       ; @INPUT_PROP_BUTTONPAD
	.comm	_CYAPA_MAX_MT_SLOTS,4,2         ; @CYAPA_MAX_MT_SLOTS
	.comm	_INPUT_MT_POINTER,4,2           ; @INPUT_MT_POINTER
	.comm	_INPUT_MT_DROP_UNUSED,4,2       ; @INPUT_MT_DROP_UNUSED
l_.str.1:                               ; @.str.1
	.asciz	"failed to initialize MT slots: %d\n"

l_.str.2:                               ; @.str.2
	.asciz	"failed to register input device: %d\n"

	.no_dead_strip	_cyapa_create_input_dev
.subsections_via_symbols
