	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function imx6ul_tsc_probe
_imx6ul_tsc_probe:                      ## @imx6ul_tsc_probe
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r13
	movq	(%rdi), %r15
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$88, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movq	%rax, %r12
	movq	%r13, %rdi
	callq	_devm_input_allocate_device
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	movq	%rax, %rbx
	movq	%r12, %r14
	leaq	L_.str(%rip), %rax
	movq	%rax, (%rbx)
	movq	_BUS_HOST@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
	movq	_imx6ul_tsc_open@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%rbx)
	movq	_imx6ul_tsc_close@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	movq	_EV_KEY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_BTN_TOUCH@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_input_set_capability
	movq	_ABS_X@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	movl	$4095, %ecx                     ## imm = 0xFFF
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_input_set_abs_params
	movq	_ABS_Y@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	movl	$4095, %ecx                     ## imm = 0xFFF
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_input_set_abs_params
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_input_set_drvdata
	movq	%r13, 32(%r12)
	movq	%rbx, 16(%r12)
	leaq	80(%r12), %rdi
	callq	_init_completion
	movq	_GPIOD_IN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.1(%rip), %rsi
	movq	%r13, %rdi
	callq	_devm_gpiod_get
	movq	%rax, 72(%r12)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	movq	72(%r14), %rdi
	callq	_PTR_ERR
	movl	%eax, %ebx
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_13
LBB0_4:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_15
LBB0_5:
	movq	%r13, %rdi
	xorl	%esi, %esi
	callq	_devm_platform_ioremap_resource
	movq	%rax, 64(%r14)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	64(%r14), %rdi
	callq	_PTR_ERR
	movl	%eax, %ebx
	leaq	L_.str.3(%rip), %rsi
	jmp	LBB0_13
LBB0_7:
	movq	%r13, %rdi
	movl	$1, %esi
	callq	_devm_platform_ioremap_resource
	movq	%rax, 56(%r14)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movq	56(%r14), %rdi
	callq	_PTR_ERR
	movl	%eax, %ebx
	leaq	L_.str.4(%rip), %rsi
	jmp	LBB0_13
LBB0_9:
	leaq	L_.str.5(%rip), %rsi
	movq	%r13, %rdi
	callq	_devm_clk_get
	movq	%rax, 48(%r14)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	movq	48(%r14), %rdi
	callq	_PTR_ERR
	movl	%eax, %ebx
	leaq	L_.str.6(%rip), %rsi
	jmp	LBB0_13
LBB0_11:
	leaq	L_.str.7(%rip), %rsi
	movq	%r13, %rdi
	callq	_devm_clk_get
	movq	%rax, 40(%r14)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_16
## %bb.12:
	movq	40(%r14), %rdi
	callq	_PTR_ERR
	movl	%eax, %ebx
	leaq	L_.str.8(%rip), %rsi
LBB0_13:
	movq	%r13, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
LBB0_15:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	movq	%r13, %rdi
	xorl	%esi, %esi
	callq	_platform_get_irq
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_15
## %bb.17:
	movq	%r13, %rdi
	movl	$1, %esi
	callq	_platform_get_irq
	testl	%eax, %eax
	js	LBB0_20
## %bb.18:
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	32(%r14), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	_tsc_irq_fn@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	_IRQF_ONESHOT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	movq	%r13, %rdi
	callq	_dev_name
	movq	%r14, (%rsp)
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movl	%ebx, %esi
	xorl	%edx, %edx
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movl	-56(%rbp), %r8d                 ## 4-byte Reload
	movl	%eax, %r9d
	callq	_devm_request_threaded_irq
	testl	%eax, %eax
	je	LBB0_21
## %bb.19:
	leaq	L_.str.9(%rip), %rsi
	movq	%r13, %rdi
	movl	%ebx, %edx
	movl	%eax, %ecx
	movl	%eax, %ebx
	jmp	LBB0_23
LBB0_20:
	movl	%eax, %ebx
	jmp	LBB0_15
LBB0_21:
	movq	32(%r14), %rbx
	movq	_adc_irq_fn@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	%r13, %rdi
	callq	_dev_name
	movq	%rbx, %rdi
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	xorl	%ecx, %ecx
	movl	%eax, %r8d
	movq	%r14, %r9
	callq	_devm_request_irq
	testl	%eax, %eax
	je	LBB0_24
## %bb.22:
	movl	%eax, %ebx
	leaq	L_.str.10(%rip), %rsi
	movq	%r13, %rdi
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	movl	%eax, %ecx
LBB0_23:
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_15
LBB0_24:
	leaq	L_.str.11(%rip), %rsi
	movq	%r15, %rdi
	movq	%r14, %rdx
	callq	_of_property_read_u32
	testl	%eax, %eax
	je	LBB0_26
## %bb.25:
	movl	$65535, (%r14)                  ## imm = 0xFFFF
LBB0_26:
	addq	$4, %r12
	leaq	L_.str.12(%rip), %rsi
	movq	%r15, %rdi
	movq	%r12, %rdx
	callq	_of_property_read_u32
	testl	%eax, %eax
	je	LBB0_28
## %bb.27:
	movl	$4095, (%r12)                   ## imm = 0xFFF
LBB0_28:
	leaq	L_.str.13(%rip), %rsi
	leaq	-52(%rbp), %rdx
	movq	%r15, %rdi
	callq	_of_property_read_u32
	testl	%eax, %eax
	je	LBB0_31
## %bb.29:
	movl	$1, -52(%rbp)
LBB0_30:
	movl	$0, 8(%r14)
	xorl	%eax, %eax
	jmp	LBB0_34
LBB0_31:
	movl	-52(%rbp), %edx
	cmpq	$32, %rdx
	ja	LBB0_38
## %bb.32:
	movabsq	$4295033104, %rax               ## imm = 0x100010110
	btq	%rdx, %rax
	jae	LBB0_37
## %bb.33:
	movl	$1, 8(%r14)
	movl	%edx, %edi
	callq	_ilog2
	addl	$-2, %eax
LBB0_34:
	movl	%eax, 24(%r14)
	movq	16(%r14), %rdi
	callq	_input_register_device
	testl	%eax, %eax
	je	LBB0_36
## %bb.35:
	movl	%eax, %ebx
	leaq	L_.str.15(%rip), %rsi
	jmp	LBB0_13
LBB0_36:
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_platform_set_drvdata
	xorl	%ebx, %ebx
	jmp	LBB0_15
LBB0_37:
	cmpq	$1, %rdx
	je	LBB0_30
LBB0_38:
	leaq	L_.str.14(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r13, %rdi
                                        ## kill: def $edx killed $edx killed $rdx
	xorl	%eax, %eax
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"iMX6UL Touchscreen Controller"

	.comm	_BUS_HOST,4,2                   ## @BUS_HOST
	.comm	_imx6ul_tsc_open,4,2            ## @imx6ul_tsc_open
	.comm	_imx6ul_tsc_close,4,2           ## @imx6ul_tsc_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
L_.str.1:                               ## @.str.1
	.asciz	"xnur"

	.comm	_GPIOD_IN,4,2                   ## @GPIOD_IN
L_.str.2:                               ## @.str.2
	.asciz	"failed to request GPIO tsc_X- (xnur): %d\n"

L_.str.3:                               ## @.str.3
	.asciz	"failed to remap tsc memory: %d\n"

L_.str.4:                               ## @.str.4
	.asciz	"failed to remap adc memory: %d\n"

L_.str.5:                               ## @.str.5
	.asciz	"tsc"

L_.str.6:                               ## @.str.6
	.asciz	"failed getting tsc clock: %d\n"

L_.str.7:                               ## @.str.7
	.asciz	"adc"

L_.str.8:                               ## @.str.8
	.asciz	"failed getting adc clock: %d\n"

	.comm	_tsc_irq_fn,4,2                 ## @tsc_irq_fn
	.comm	_IRQF_ONESHOT,4,2               ## @IRQF_ONESHOT
L_.str.9:                               ## @.str.9
	.asciz	"failed requesting tsc irq %d: %d\n"

	.comm	_adc_irq_fn,4,2                 ## @adc_irq_fn
L_.str.10:                              ## @.str.10
	.asciz	"failed requesting adc irq %d: %d\n"

L_.str.11:                              ## @.str.11
	.asciz	"measure-delay-time"

L_.str.12:                              ## @.str.12
	.asciz	"pre-charge-time"

L_.str.13:                              ## @.str.13
	.asciz	"touchscreen-average-samples"

L_.str.14:                              ## @.str.14
	.asciz	"touchscreen-average-samples (%u) must be 1, 4, 8, 16 or 32\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.15:                              ## @.str.15
	.asciz	"failed to register input device: %d\n"

	.no_dead_strip	_imx6ul_tsc_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function imx6ul_tsc_probe
_imx6ul_tsc_probe:                      ; @imx6ul_tsc_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x0
	ldr	x21, [x0]
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	w1, #88
	bl	_devm_kzalloc
	cbz	x0, LBB0_4
; %bb.1:
	mov	x20, x0
	mov	x0, x19
	bl	_devm_input_allocate_device
	cbz	x0, LBB0_4
; %bb.2:
	mov	x22, x0
Lloh3:
	adrp	x8, l_.str@PAGE
Lloh4:
	add	x8, x8, l_.str@PAGEOFF
	str	x8, [x0]
Lloh5:
	adrp	x8, _BUS_HOST@GOTPAGE
Lloh6:
	ldr	x8, [x8, _BUS_HOST@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	str	w8, [x0, #16]
Lloh8:
	adrp	x8, _imx6ul_tsc_open@GOTPAGE
Lloh9:
	ldr	x8, [x8, _imx6ul_tsc_open@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
Lloh11:
	adrp	x9, _imx6ul_tsc_close@GOTPAGE
Lloh12:
	ldr	x9, [x9, _imx6ul_tsc_close@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	stp	w9, w8, [x0, #8]
Lloh14:
	adrp	x8, _EV_KEY@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EV_KEY@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
Lloh17:
	adrp	x8, _BTN_TOUCH@GOTPAGE
Lloh18:
	ldr	x8, [x8, _BTN_TOUCH@GOTPAGEOFF]
Lloh19:
	ldr	w2, [x8]
	bl	_input_set_capability
Lloh20:
	adrp	x8, _ABS_X@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ABS_X@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	mov	x0, x22
	mov	w2, #0
	mov	w3, #4095
	mov	w4, #0
	mov	w5, #0
	bl	_input_set_abs_params
Lloh23:
	adrp	x8, _ABS_Y@GOTPAGE
Lloh24:
	ldr	x8, [x8, _ABS_Y@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
	mov	x0, x22
	mov	w2, #0
	mov	w3, #4095
	mov	w4, #0
	mov	w5, #0
	bl	_input_set_abs_params
	mov	x0, x22
	mov	x1, x20
	bl	_input_set_drvdata
	str	x19, [x20, #32]
	str	x22, [x20, #16]
	add	x0, x20, #80
	bl	_init_completion
Lloh26:
	adrp	x8, _GPIOD_IN@GOTPAGE
Lloh27:
	ldr	x8, [x8, _GPIOD_IN@GOTPAGEOFF]
Lloh28:
	ldr	w2, [x8]
Lloh29:
	adrp	x1, l_.str.1@PAGE
Lloh30:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_devm_gpiod_get
	str	x0, [x20, #72]
	bl	_IS_ERR
	cbz	x0, LBB0_6
; %bb.3:
	ldr	x0, [x20, #72]
	bl	_PTR_ERR
	mov	x22, x0
Lloh31:
	adrp	x1, l_.str.2@PAGE
Lloh32:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_14
LBB0_4:
Lloh33:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh34:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_5:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_16
LBB0_6:
	mov	x0, x19
	mov	w1, #0
	bl	_devm_platform_ioremap_resource
	str	x0, [x20, #64]
	bl	_IS_ERR
	cbz	x0, LBB0_8
; %bb.7:
	ldr	x0, [x20, #64]
	bl	_PTR_ERR
	mov	x22, x0
Lloh35:
	adrp	x1, l_.str.3@PAGE
Lloh36:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_14
LBB0_8:
	mov	x0, x19
	mov	w1, #1
	bl	_devm_platform_ioremap_resource
	str	x0, [x20, #56]
	bl	_IS_ERR
	cbz	x0, LBB0_10
; %bb.9:
	ldr	x0, [x20, #56]
	bl	_PTR_ERR
	mov	x22, x0
Lloh37:
	adrp	x1, l_.str.4@PAGE
Lloh38:
	add	x1, x1, l_.str.4@PAGEOFF
	b	LBB0_14
LBB0_10:
Lloh39:
	adrp	x1, l_.str.5@PAGE
Lloh40:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x19
	bl	_devm_clk_get
	str	x0, [x20, #48]
	bl	_IS_ERR
	cbz	x0, LBB0_12
; %bb.11:
	ldr	x0, [x20, #48]
	bl	_PTR_ERR
	mov	x22, x0
Lloh41:
	adrp	x1, l_.str.6@PAGE
Lloh42:
	add	x1, x1, l_.str.6@PAGEOFF
	b	LBB0_14
LBB0_12:
Lloh43:
	adrp	x1, l_.str.7@PAGE
Lloh44:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x19
	bl	_devm_clk_get
	str	x0, [x20, #40]
	bl	_IS_ERR
	cbz	x0, LBB0_17
; %bb.13:
	ldr	x0, [x20, #40]
	bl	_PTR_ERR
	mov	x22, x0
Lloh45:
	adrp	x1, l_.str.8@PAGE
Lloh46:
	add	x1, x1, l_.str.8@PAGEOFF
LBB0_14:
	mov	x0, x19
	mov	x2, x22
LBB0_15:
	bl	_dev_err
LBB0_16:
	mov	x0, x22
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_17:
	mov	x0, x19
	mov	w1, #0
	bl	_platform_get_irq
	mov	x22, x0
	tbnz	w0, #31, LBB0_16
; %bb.18:
	mov	x0, x19
	mov	w1, #1
	bl	_platform_get_irq
	mov	x23, x0
	tbnz	w0, #31, LBB0_21
; %bb.19:
	ldr	x24, [x20, #32]
Lloh47:
	adrp	x8, _tsc_irq_fn@GOTPAGE
Lloh48:
	ldr	x8, [x8, _tsc_irq_fn@GOTPAGEOFF]
Lloh49:
	ldr	w25, [x8]
Lloh50:
	adrp	x8, _IRQF_ONESHOT@GOTPAGE
Lloh51:
	ldr	x8, [x8, _IRQF_ONESHOT@GOTPAGEOFF]
Lloh52:
	ldr	w26, [x8]
	mov	x0, x19
	bl	_dev_name
	mov	x5, x0
	mov	x0, x24
	mov	x1, x22
	mov	x2, #0
	mov	x3, x25
	mov	x4, x26
	mov	x6, x20
	bl	_devm_request_threaded_irq
	cbz	w0, LBB0_22
; %bb.20:
	mov	x24, x0
	str	x24, [sp]
Lloh53:
	adrp	x1, l_.str.9@PAGE
Lloh54:
	add	x1, x1, l_.str.9@PAGEOFF
	mov	x0, x19
	mov	x2, x22
	bl	_dev_err
	mov	x22, x24
	b	LBB0_16
LBB0_21:
	mov	x22, x23
	b	LBB0_16
LBB0_22:
	ldr	x22, [x20, #32]
Lloh55:
	adrp	x8, _adc_irq_fn@GOTPAGE
Lloh56:
	ldr	x8, [x8, _adc_irq_fn@GOTPAGEOFF]
Lloh57:
	ldr	w24, [x8]
	mov	x0, x19
	bl	_dev_name
	mov	x4, x0
	mov	x0, x22
	mov	x1, x23
	mov	x2, x24
	mov	w3, #0
	mov	x5, x20
	bl	_devm_request_irq
	cbz	w0, LBB0_24
; %bb.23:
	mov	x22, x0
	str	x22, [sp]
Lloh58:
	adrp	x1, l_.str.10@PAGE
Lloh59:
	add	x1, x1, l_.str.10@PAGEOFF
	mov	x0, x19
	mov	x2, x23
	b	LBB0_15
LBB0_24:
Lloh60:
	adrp	x1, l_.str.11@PAGE
Lloh61:
	add	x1, x1, l_.str.11@PAGEOFF
	mov	x0, x21
	mov	x2, x20
	bl	_of_property_read_u32
	cbz	w0, LBB0_26
; %bb.25:
	mov	w8, #65535
	str	w8, [x20]
LBB0_26:
	add	x22, x20, #4
Lloh62:
	adrp	x1, l_.str.12@PAGE
Lloh63:
	add	x1, x1, l_.str.12@PAGEOFF
	mov	x0, x21
	mov	x2, x22
	bl	_of_property_read_u32
	cbz	w0, LBB0_28
; %bb.27:
	mov	w8, #4095
	str	w8, [x22]
LBB0_28:
Lloh64:
	adrp	x1, l_.str.13@PAGE
Lloh65:
	add	x1, x1, l_.str.13@PAGEOFF
	add	x2, sp, #12
	mov	x0, x21
	bl	_of_property_read_u32
	cbz	w0, LBB0_31
; %bb.29:
	mov	w8, #1
	str	w8, [sp, #12]
LBB0_30:
	mov	w8, #0
	str	wzr, [x20, #8]
	b	LBB0_34
LBB0_31:
	ldr	w2, [sp, #12]
	cmp	w2, #32
	b.hi	LBB0_38
; %bb.32:
	mov	w8, #1
	lsl	x9, x8, x2
	mov	x10, #272
	movk	x10, #1, lsl #16
	movk	x10, #1, lsl #32
	tst	x9, x10
	b.eq	LBB0_37
; %bb.33:
	str	w8, [x20, #8]
	mov	x0, x2
	bl	_ilog2
	sub	w8, w0, #2
LBB0_34:
	str	w8, [x20, #24]
	ldr	x0, [x20, #16]
	bl	_input_register_device
	mov	x22, x0
	cbz	w0, LBB0_36
; %bb.35:
Lloh66:
	adrp	x1, l_.str.15@PAGE
Lloh67:
	add	x1, x1, l_.str.15@PAGEOFF
	b	LBB0_14
LBB0_36:
	mov	x0, x19
	mov	x1, x20
	bl	_platform_set_drvdata
	b	LBB0_16
LBB0_37:
	cmp	x2, #1
	b.eq	LBB0_30
LBB0_38:
Lloh68:
	adrp	x1, l_.str.14@PAGE
Lloh69:
	add	x1, x1, l_.str.14@PAGEOFF
	mov	x0, x19
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_dev_err
Lloh70:
	adrp	x8, _EINVAL@GOTPAGE
Lloh71:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh29, Lloh30
	.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 AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpAdd	Lloh43, Lloh44
	.loh AdrpAdd	Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpAdd	Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh55, Lloh56, Lloh57
	.loh AdrpAdd	Lloh58, Lloh59
	.loh AdrpAdd	Lloh60, Lloh61
	.loh AdrpAdd	Lloh62, Lloh63
	.loh AdrpAdd	Lloh64, Lloh65
	.loh AdrpAdd	Lloh66, Lloh67
	.loh AdrpLdrGot	Lloh70, Lloh71
	.loh AdrpAdd	Lloh68, Lloh69
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"iMX6UL Touchscreen Controller"

	.comm	_BUS_HOST,4,2                   ; @BUS_HOST
	.comm	_imx6ul_tsc_open,4,2            ; @imx6ul_tsc_open
	.comm	_imx6ul_tsc_close,4,2           ; @imx6ul_tsc_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
l_.str.1:                               ; @.str.1
	.asciz	"xnur"

	.comm	_GPIOD_IN,4,2                   ; @GPIOD_IN
l_.str.2:                               ; @.str.2
	.asciz	"failed to request GPIO tsc_X- (xnur): %d\n"

l_.str.3:                               ; @.str.3
	.asciz	"failed to remap tsc memory: %d\n"

l_.str.4:                               ; @.str.4
	.asciz	"failed to remap adc memory: %d\n"

l_.str.5:                               ; @.str.5
	.asciz	"tsc"

l_.str.6:                               ; @.str.6
	.asciz	"failed getting tsc clock: %d\n"

l_.str.7:                               ; @.str.7
	.asciz	"adc"

l_.str.8:                               ; @.str.8
	.asciz	"failed getting adc clock: %d\n"

	.comm	_tsc_irq_fn,4,2                 ; @tsc_irq_fn
	.comm	_IRQF_ONESHOT,4,2               ; @IRQF_ONESHOT
l_.str.9:                               ; @.str.9
	.asciz	"failed requesting tsc irq %d: %d\n"

	.comm	_adc_irq_fn,4,2                 ; @adc_irq_fn
l_.str.10:                              ; @.str.10
	.asciz	"failed requesting adc irq %d: %d\n"

l_.str.11:                              ; @.str.11
	.asciz	"measure-delay-time"

l_.str.12:                              ; @.str.12
	.asciz	"pre-charge-time"

l_.str.13:                              ; @.str.13
	.asciz	"touchscreen-average-samples"

l_.str.14:                              ; @.str.14
	.asciz	"touchscreen-average-samples (%u) must be 1, 4, 8, 16 or 32\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.15:                              ; @.str.15
	.asciz	"failed to register input device: %d\n"

	.no_dead_strip	_imx6ul_tsc_probe
.subsections_via_symbols
