	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mxt_initialize_input_device
_mxt_initialize_input_device:           ## @mxt_initialize_input_device
	.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
	movq	%rdi, %r13
	movq	88(%rdi), %r14
	movl	(%rdi), %eax
	cmpl	$129, %eax
	je	LBB0_4
## %bb.1:
	cmpl	$128, %eax
	jne	LBB0_43
## %bb.2:
	movl	80(%r13), %r12d
	subl	72(%r13), %r12d
	incl	%r12d
	movq	%r13, %rdi
	callq	_mxt_read_t9_resolution
	testl	%eax, %eax
	je	LBB0_7
## %bb.3:
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_6
LBB0_4:
	movl	4(%r13), %r12d
	movq	%r13, %rdi
	callq	_mxt_read_t100_config
	testl	%eax, %eax
	je	LBB0_7
## %bb.5:
	leaq	L_.str.1(%rip), %rsi
LBB0_6:
	movq	%r14, %rdi
	callq	_dev_warn
LBB0_7:
	movl	8(%r13), %edx
	testl	%edx, %edx
	jne	LBB0_9
## %bb.8:
	movl	$1023, 8(%r13)                  ## imm = 0x3FF
	movl	$1023, %edx                     ## imm = 0x3FF
LBB0_9:
	movl	12(%r13), %ecx
	testl	%ecx, %ecx
	jne	LBB0_11
## %bb.10:
	movl	$1023, 12(%r13)                 ## imm = 0x3FF
	movl	$1023, %ecx                     ## imm = 0x3FF
LBB0_11:
	cmpq	$0, 64(%r13)
	je	LBB0_13
## %bb.12:
	movl	%edx, %edi
	movl	%ecx, %esi
	callq	_swap
	movl	8(%r13), %edx
	movl	12(%r13), %ecx
LBB0_13:
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_info
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_input_allocate_device
	testq	%rax, %rax
	je	LBB0_14
## %bb.15:
	movq	%rax, %r15
	leaq	L_.str.4(%rip), %rax
	movq	%rax, (%r15)
	movl	56(%r13), %eax
	movl	%eax, 28(%r15)
	movq	_BUS_I2C@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%r15)
	movq	%r14, 16(%r15)
	movq	_mxt_input_open@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%r15)
	movq	_mxt_input_close@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r15)
	movq	_EV_KEY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_BTN_TOUCH@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_input_set_capability
	movq	_ABS_X@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	8(%r13), %ecx
	movq	%r15, %rdi
	xorl	%edx, %edx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_input_set_abs_params
	movq	_ABS_Y@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	12(%r13), %ecx
	movq	%r15, %rdi
	xorl	%edx, %edx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_input_set_abs_params
	movl	(%r13), %eax
	cmpl	$128, %eax
	je	LBB0_18
## %bb.16:
	cmpl	$129, %eax
	jne	LBB0_19
## %bb.17:
	cmpq	$0, 32(%r13)
	je	LBB0_19
LBB0_18:
	movq	_ABS_PRESSURE@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
LBB0_19:
	cmpq	$0, 48(%r13)
	je	LBB0_20
## %bb.21:
	movq	%r15, %rdi
	movq	%r13, %rsi
	callq	_mxt_set_up_as_touchpad
	movq	_INPUT_MT_POINTER@GOTPCREL(%rip), %rax
	jmp	LBB0_22
LBB0_43:
	leaq	L_.str.2(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_42
LBB0_14:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_42
LBB0_20:
	movq	_INPUT_MT_DIRECT@GOTPCREL(%rip), %rax
LBB0_22:
	movl	(%rax), %edx
	movq	%r15, %rdi
	movl	%r12d, %esi
	callq	_input_mt_init_slots
	testl	%eax, %eax
	je	LBB0_25
## %bb.23:
	movl	%eax, %ebx
	leaq	L_.str.5(%rip), %rsi
	jmp	LBB0_24
LBB0_25:
	cmpl	$129, (%r13)
	jne	LBB0_27
## %bb.26:
	movq	_ABS_MT_TOOL_TYPE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MT_TOOL_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r15, %rdi
	xorl	%edx, %edx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_input_set_abs_params
	movq	_ABS_MT_DISTANCE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MXT_DISTANCE_ACTIVE_TOUCH@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_MXT_DISTANCE_HOVERING@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r15, %rdi
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_input_set_abs_params
LBB0_27:
	movq	_ABS_MT_POSITION_X@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	8(%r13), %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), %rax
	movl	(%rax), %esi
	movl	12(%r13), %ecx
	movq	%r15, %rdi
	xorl	%edx, %edx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_input_set_abs_params
	movl	(%r13), %eax
	cmpl	$128, %eax
	je	LBB0_30
## %bb.28:
	cmpl	$129, %eax
	jne	LBB0_31
## %bb.29:
	cmpq	$0, 40(%r13)
	je	LBB0_33
LBB0_30:
	movq	_ABS_MT_TOUCH_MAJOR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MXT_MAX_AREA@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r15, %rdi
	xorl	%edx, %edx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_input_set_abs_params
	movl	(%r13), %eax
LBB0_31:
	cmpl	$128, %eax
	je	LBB0_34
## %bb.32:
	cmpl	$129, %eax
	jne	LBB0_39
LBB0_33:
	cmpq	$0, 32(%r13)
	je	LBB0_35
LBB0_34:
	movq	_ABS_MT_PRESSURE@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
	cmpl	$129, (%r13)
	jne	LBB0_39
LBB0_35:
	cmpq	$0, 24(%r13)
	je	LBB0_39
## %bb.36:
	movq	_ABS_MT_ORIENTATION@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r15, %rdi
	xorl	%edx, %edx
	movl	$255, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_input_set_abs_params
	cmpl	$129, (%r13)
	jne	LBB0_39
## %bb.37:
	cmpq	$0, 24(%r13)
	je	LBB0_39
## %bb.38:
	movl	(%rbx), %esi
	movq	%r15, %rdi
	xorl	%edx, %edx
	movl	$255, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_input_set_abs_params
LBB0_39:
	movq	%r15, %rdi
	movq	%r13, %rsi
	callq	_input_set_drvdata
	movq	%r15, %rdi
	callq	_input_register_device
	testl	%eax, %eax
	je	LBB0_41
## %bb.40:
	movl	%eax, %ebx
	leaq	L_.str.6(%rip), %rsi
LBB0_24:
	movq	%r14, %rdi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_dev_err
	movq	%r15, %rdi
	callq	_input_free_device
LBB0_42:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_41:
	movq	%r15, 16(%r13)
	xorl	%ebx, %ebx
	jmp	LBB0_42
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to initialize T9 resolution\n"

L_.str.1:                               ## @.str.1
	.asciz	"Failed to read T100 config\n"

L_.str.2:                               ## @.str.2
	.asciz	"Invalid multitouch object\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.3:                               ## @.str.3
	.asciz	"Touchscreen size X%uY%u\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.4:                               ## @.str.4
	.asciz	"Atmel maXTouch Touchscreen"

	.comm	_BUS_I2C,4,2                    ## @BUS_I2C
	.comm	_mxt_input_open,4,2             ## @mxt_input_open
	.comm	_mxt_input_close,4,2            ## @mxt_input_close
	.comm	_EV_KEY,4,2                     ## @EV_KEY
	.comm	_BTN_TOUCH,4,2                  ## @BTN_TOUCH
	.comm	_ABS_X,4,2                      ## @ABS_X
	.comm	_ABS_Y,4,2                      ## @ABS_Y
	.comm	_ABS_PRESSURE,4,2               ## @ABS_PRESSURE
	.comm	_INPUT_MT_POINTER,4,2           ## @INPUT_MT_POINTER
	.comm	_INPUT_MT_DIRECT,4,2            ## @INPUT_MT_DIRECT
L_.str.5:                               ## @.str.5
	.asciz	"Error %d initialising slots\n"

	.comm	_ABS_MT_TOOL_TYPE,4,2           ## @ABS_MT_TOOL_TYPE
	.comm	_MT_TOOL_MAX,4,2                ## @MT_TOOL_MAX
	.comm	_ABS_MT_DISTANCE,4,2            ## @ABS_MT_DISTANCE
	.comm	_MXT_DISTANCE_ACTIVE_TOUCH,4,2  ## @MXT_DISTANCE_ACTIVE_TOUCH
	.comm	_MXT_DISTANCE_HOVERING,4,2      ## @MXT_DISTANCE_HOVERING
	.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_TOUCH_MAJOR,4,2         ## @ABS_MT_TOUCH_MAJOR
	.comm	_MXT_MAX_AREA,4,2               ## @MXT_MAX_AREA
	.comm	_ABS_MT_PRESSURE,4,2            ## @ABS_MT_PRESSURE
	.comm	_ABS_MT_ORIENTATION,4,2         ## @ABS_MT_ORIENTATION
L_.str.6:                               ## @.str.6
	.asciz	"Error %d registering input device\n"

	.no_dead_strip	_mxt_initialize_input_device
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mxt_initialize_input_device
_mxt_initialize_input_device:           ; @mxt_initialize_input_device
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x20, x0
	ldr	x19, [x0, #88]
	ldr	w8, [x0]
	cmp	w8, #129
	b.eq	LBB0_4
; %bb.1:
	cmp	w8, #128
	b.ne	LBB0_18
; %bb.2:
	ldr	w8, [x20, #80]
	ldr	w9, [x20, #72]
	sub	w8, w8, w9
	add	w22, w8, #1
	mov	x0, x20
	bl	_mxt_read_t9_resolution
	cbz	w0, LBB0_7
; %bb.3:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_6
LBB0_4:
	ldr	w22, [x20, #4]
	mov	x0, x20
	bl	_mxt_read_t100_config
	cbz	w0, LBB0_7
; %bb.5:
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_6:
	mov	x0, x19
	bl	_dev_warn
LBB0_7:
	ldr	w2, [x20, #8]
	cbz	w2, LBB0_19
; %bb.8:
	ldr	w3, [x20, #12]
	cbz	w3, LBB0_20
LBB0_9:
	ldr	x8, [x20, #64]
	cbz	x8, LBB0_11
LBB0_10:
	mov	x0, x2
	mov	x1, x3
	bl	_swap
	ldp	w2, w3, [x20, #8]
LBB0_11:
Lloh4:
	adrp	x1, l_.str.3@PAGE
Lloh5:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_dev_info
	bl	_input_allocate_device
	cbz	x0, LBB0_21
; %bb.12:
	mov	x21, x0
Lloh6:
	adrp	x8, l_.str.4@PAGE
Lloh7:
	add	x8, x8, l_.str.4@PAGEOFF
	str	x8, [x0]
	ldr	w8, [x20, #56]
Lloh8:
	adrp	x9, _BUS_I2C@GOTPAGE
Lloh9:
	ldr	x9, [x9, _BUS_I2C@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	stp	w9, w8, [x0, #24]
	str	x19, [x0, #16]
Lloh11:
	adrp	x8, _mxt_input_open@GOTPAGE
Lloh12:
	ldr	x8, [x8, _mxt_input_open@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
Lloh14:
	adrp	x9, _mxt_input_close@GOTPAGE
Lloh15:
	ldr	x9, [x9, _mxt_input_close@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	stp	w9, w8, [x0, #8]
Lloh17:
	adrp	x8, _EV_KEY@GOTPAGE
Lloh18:
	ldr	x8, [x8, _EV_KEY@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
Lloh20:
	adrp	x8, _BTN_TOUCH@GOTPAGE
Lloh21:
	ldr	x8, [x8, _BTN_TOUCH@GOTPAGEOFF]
Lloh22:
	ldr	w2, [x8]
	bl	_input_set_capability
Lloh23:
	adrp	x8, _ABS_X@GOTPAGE
Lloh24:
	ldr	x8, [x8, _ABS_X@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
	ldr	w3, [x20, #8]
	mov	x0, x21
	mov	w2, #0
	mov	w4, #0
	mov	w5, #0
	bl	_input_set_abs_params
Lloh26:
	adrp	x8, _ABS_Y@GOTPAGE
Lloh27:
	ldr	x8, [x8, _ABS_Y@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x8]
	ldr	w3, [x20, #12]
	mov	x0, x21
	mov	w2, #0
	mov	w4, #0
	mov	w5, #0
	bl	_input_set_abs_params
	ldr	w8, [x20]
	cmp	w8, #128
	b.eq	LBB0_15
; %bb.13:
	cmp	w8, #129
	b.ne	LBB0_16
; %bb.14:
	ldr	x8, [x20, #32]
	cbz	x8, LBB0_16
LBB0_15:
Lloh29:
	adrp	x8, _ABS_PRESSURE@GOTPAGE
Lloh30:
	ldr	x8, [x8, _ABS_PRESSURE@GOTPAGEOFF]
Lloh31:
	ldr	w1, [x8]
	mov	x0, x21
	mov	w2, #0
	mov	w3, #255
	mov	w4, #0
	mov	w5, #0
	bl	_input_set_abs_params
LBB0_16:
	ldr	x8, [x20, #48]
	cbz	x8, LBB0_23
; %bb.17:
	mov	x0, x21
	mov	x1, x20
	bl	_mxt_set_up_as_touchpad
Lloh32:
	adrp	x8, _INPUT_MT_POINTER@GOTPAGE
Lloh33:
	ldr	x8, [x8, _INPUT_MT_POINTER@GOTPAGEOFF]
	b	LBB0_24
LBB0_18:
Lloh34:
	adrp	x1, l_.str.2@PAGE
Lloh35:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_dev_err
Lloh36:
	adrp	x8, _EINVAL@GOTPAGE
Lloh37:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_22
LBB0_19:
	mov	w2, #1023
	str	w2, [x20, #8]
	ldr	w3, [x20, #12]
	cbnz	w3, LBB0_9
LBB0_20:
	mov	w3, #1023
	str	w3, [x20, #12]
	ldr	x8, [x20, #64]
	cbnz	x8, LBB0_10
	b	LBB0_11
LBB0_21:
Lloh38:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh39:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_22:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_43
LBB0_23:
Lloh40:
	adrp	x8, _INPUT_MT_DIRECT@GOTPAGE
Lloh41:
	ldr	x8, [x8, _INPUT_MT_DIRECT@GOTPAGEOFF]
LBB0_24:
	ldr	w2, [x8]
	mov	x0, x21
	mov	x1, x22
	bl	_input_mt_init_slots
	cbz	w0, LBB0_26
; %bb.25:
	mov	x22, x0
	str	x22, [sp]
Lloh42:
	adrp	x1, l_.str.5@PAGE
Lloh43:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	b	LBB0_42
LBB0_26:
	ldr	w8, [x20]
	cmp	w8, #129
	b.ne	LBB0_28
; %bb.27:
Lloh44:
	adrp	x8, _ABS_MT_TOOL_TYPE@GOTPAGE
Lloh45:
	ldr	x8, [x8, _ABS_MT_TOOL_TYPE@GOTPAGEOFF]
Lloh46:
	ldr	w1, [x8]
Lloh47:
	adrp	x8, _MT_TOOL_MAX@GOTPAGE
Lloh48:
	ldr	x8, [x8, _MT_TOOL_MAX@GOTPAGEOFF]
Lloh49:
	ldr	w3, [x8]
	mov	x0, x21
	mov	w2, #0
	mov	w4, #0
	mov	w5, #0
	bl	_input_set_abs_params
Lloh50:
	adrp	x8, _ABS_MT_DISTANCE@GOTPAGE
Lloh51:
	ldr	x8, [x8, _ABS_MT_DISTANCE@GOTPAGEOFF]
Lloh52:
	ldr	w1, [x8]
Lloh53:
	adrp	x8, _MXT_DISTANCE_ACTIVE_TOUCH@GOTPAGE
Lloh54:
	ldr	x8, [x8, _MXT_DISTANCE_ACTIVE_TOUCH@GOTPAGEOFF]
Lloh55:
	ldr	w2, [x8]
Lloh56:
	adrp	x8, _MXT_DISTANCE_HOVERING@GOTPAGE
Lloh57:
	ldr	x8, [x8, _MXT_DISTANCE_HOVERING@GOTPAGEOFF]
Lloh58:
	ldr	w3, [x8]
	mov	x0, x21
	mov	w4, #0
	mov	w5, #0
	bl	_input_set_abs_params
LBB0_28:
Lloh59:
	adrp	x8, _ABS_MT_POSITION_X@GOTPAGE
Lloh60:
	ldr	x8, [x8, _ABS_MT_POSITION_X@GOTPAGEOFF]
Lloh61:
	ldr	w1, [x8]
	ldr	w3, [x20, #8]
	mov	x0, x21
	mov	w2, #0
	mov	w4, #0
	mov	w5, #0
	bl	_input_set_abs_params
Lloh62:
	adrp	x8, _ABS_MT_POSITION_Y@GOTPAGE
Lloh63:
	ldr	x8, [x8, _ABS_MT_POSITION_Y@GOTPAGEOFF]
Lloh64:
	ldr	w1, [x8]
	ldr	w3, [x20, #12]
	mov	x0, x21
	mov	w2, #0
	mov	w4, #0
	mov	w5, #0
	bl	_input_set_abs_params
	ldr	w8, [x20]
	cmp	w8, #128
	b.eq	LBB0_31
; %bb.29:
	cmp	w8, #129
	b.ne	LBB0_32
; %bb.30:
	ldr	x8, [x20, #40]
	cbz	x8, LBB0_34
LBB0_31:
Lloh65:
	adrp	x8, _ABS_MT_TOUCH_MAJOR@GOTPAGE
Lloh66:
	ldr	x8, [x8, _ABS_MT_TOUCH_MAJOR@GOTPAGEOFF]
Lloh67:
	ldr	w1, [x8]
Lloh68:
	adrp	x8, _MXT_MAX_AREA@GOTPAGE
Lloh69:
	ldr	x8, [x8, _MXT_MAX_AREA@GOTPAGEOFF]
Lloh70:
	ldr	w3, [x8]
	mov	x0, x21
	mov	w2, #0
	mov	w4, #0
	mov	w5, #0
	bl	_input_set_abs_params
	ldr	w8, [x20]
LBB0_32:
	cmp	w8, #128
	b.eq	LBB0_35
; %bb.33:
	cmp	w8, #129
	b.ne	LBB0_40
LBB0_34:
	ldr	x8, [x20, #32]
	cbz	x8, LBB0_36
LBB0_35:
Lloh71:
	adrp	x8, _ABS_MT_PRESSURE@GOTPAGE
Lloh72:
	ldr	x8, [x8, _ABS_MT_PRESSURE@GOTPAGEOFF]
Lloh73:
	ldr	w1, [x8]
	mov	x0, x21
	mov	w2, #0
	mov	w3, #255
	mov	w4, #0
	mov	w5, #0
	bl	_input_set_abs_params
	ldr	w8, [x20]
	cmp	w8, #129
	b.ne	LBB0_40
LBB0_36:
	ldr	x8, [x20, #24]
	cbz	x8, LBB0_40
; %bb.37:
Lloh74:
	adrp	x22, _ABS_MT_ORIENTATION@GOTPAGE
Lloh75:
	ldr	x22, [x22, _ABS_MT_ORIENTATION@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x21
	mov	w2, #0
	mov	w3, #255
	mov	w4, #0
	mov	w5, #0
	bl	_input_set_abs_params
	ldr	w8, [x20]
	cmp	w8, #129
	b.ne	LBB0_40
; %bb.38:
	ldr	x8, [x20, #24]
	cbz	x8, LBB0_40
; %bb.39:
	ldr	w1, [x22]
	mov	x0, x21
	mov	w2, #0
	mov	w3, #255
	mov	w4, #0
	mov	w5, #0
	bl	_input_set_abs_params
LBB0_40:
	mov	x0, x21
	mov	x1, x20
	bl	_input_set_drvdata
	mov	x0, x21
	bl	_input_register_device
	mov	x22, x0
	cbz	w0, LBB0_44
; %bb.41:
	str	x22, [sp]
Lloh76:
	adrp	x1, l_.str.6@PAGE
Lloh77:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x19
	bl	_dev_err
                                        ; kill: def $w22 killed $w22 killed $x22 def $x22
LBB0_42:
	mov	x0, x21
	bl	_input_free_device
LBB0_43:
	mov	x0, x22
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_44:
	str	x21, [x20, #16]
	b	LBB0_43
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh36, Lloh37
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh38, Lloh39
	.loh AdrpLdrGot	Lloh40, Lloh41
	.loh AdrpAdd	Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh56, Lloh57, Lloh58
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh62, Lloh63, Lloh64
	.loh AdrpLdrGotLdr	Lloh59, Lloh60, Lloh61
	.loh AdrpLdrGotLdr	Lloh68, Lloh69, Lloh70
	.loh AdrpLdrGotLdr	Lloh65, Lloh66, Lloh67
	.loh AdrpLdrGotLdr	Lloh71, Lloh72, Lloh73
	.loh AdrpLdrGot	Lloh74, Lloh75
	.loh AdrpAdd	Lloh76, Lloh77
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to initialize T9 resolution\n"

l_.str.1:                               ; @.str.1
	.asciz	"Failed to read T100 config\n"

l_.str.2:                               ; @.str.2
	.asciz	"Invalid multitouch object\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.3:                               ; @.str.3
	.asciz	"Touchscreen size X%uY%u\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.4:                               ; @.str.4
	.asciz	"Atmel maXTouch Touchscreen"

	.comm	_BUS_I2C,4,2                    ; @BUS_I2C
	.comm	_mxt_input_open,4,2             ; @mxt_input_open
	.comm	_mxt_input_close,4,2            ; @mxt_input_close
	.comm	_EV_KEY,4,2                     ; @EV_KEY
	.comm	_BTN_TOUCH,4,2                  ; @BTN_TOUCH
	.comm	_ABS_X,4,2                      ; @ABS_X
	.comm	_ABS_Y,4,2                      ; @ABS_Y
	.comm	_ABS_PRESSURE,4,2               ; @ABS_PRESSURE
	.comm	_INPUT_MT_POINTER,4,2           ; @INPUT_MT_POINTER
	.comm	_INPUT_MT_DIRECT,4,2            ; @INPUT_MT_DIRECT
l_.str.5:                               ; @.str.5
	.asciz	"Error %d initialising slots\n"

	.comm	_ABS_MT_TOOL_TYPE,4,2           ; @ABS_MT_TOOL_TYPE
	.comm	_MT_TOOL_MAX,4,2                ; @MT_TOOL_MAX
	.comm	_ABS_MT_DISTANCE,4,2            ; @ABS_MT_DISTANCE
	.comm	_MXT_DISTANCE_ACTIVE_TOUCH,4,2  ; @MXT_DISTANCE_ACTIVE_TOUCH
	.comm	_MXT_DISTANCE_HOVERING,4,2      ; @MXT_DISTANCE_HOVERING
	.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_TOUCH_MAJOR,4,2         ; @ABS_MT_TOUCH_MAJOR
	.comm	_MXT_MAX_AREA,4,2               ; @MXT_MAX_AREA
	.comm	_ABS_MT_PRESSURE,4,2            ; @ABS_MT_PRESSURE
	.comm	_ABS_MT_ORIENTATION,4,2         ; @ABS_MT_ORIENTATION
l_.str.6:                               ; @.str.6
	.asciz	"Error %d registering input device\n"

	.no_dead_strip	_mxt_initialize_input_device
.subsections_via_symbols
