	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iproc_ts_probe
_iproc_ts_probe:                        ## @iproc_ts_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$48, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r15
	movl	(%r14), %edi
	leaq	L_.str(%rip), %rsi
	callq	_syscon_regmap_lookup_by_phandle
	movl	%eax, 44(%r15)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	movl	44(%r15), %edi
	callq	_PTR_ERR
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_4
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_18
LBB0_5:
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	callq	_devm_clk_get
	movl	%eax, 40(%r15)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movl	40(%r15), %edi
	callq	_PTR_ERR
	movl	%eax, %ebx
	leaq	L_.str.3(%rip), %rsi
LBB0_4:
	movq	%r14, %rdi
	movl	%eax, %edx
LBB0_17:
	xorl	%eax, %eax
	callq	_dev_err
LBB0_18:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	%r14, 32(%r15)
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_iproc_get_tsc_config
	testl	%eax, %eax
	je	LBB0_9
## %bb.8:
	movl	%eax, %ebx
	leaq	L_.str.4(%rip), %rsi
LBB0_16:
	movq	%r14, %rdi
	movl	%ebx, %edx
	jmp	LBB0_17
LBB0_9:
	movq	%r14, %rdi
	callq	_devm_input_allocate_device
	testq	%rax, %rax
	je	LBB0_10
## %bb.11:
	movq	%rax, %rbx
	movq	%rax, (%r15)
	movq	_PEN_UP_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%r15)
	movq	_IPROC_TS_NAME@GOTPCREL(%rip), %r13
	movl	(%r13), %eax
	movl	%eax, 56(%rbx)
	movq	%r14, 48(%rbx)
	movq	_BUS_HOST@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 44(%rbx)
	movq	_SERIO_UNKNOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 40(%rbx)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 24(%rbx)
	movq	_EV_KEY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_BIT_MASK
	movl	%eax, %r12d
	movq	_EV_ABS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_BIT_MASK
	orl	%r12d, %eax
	movq	(%rbx), %rcx
	movl	%eax, (%rcx)
	movq	_BTN_TOUCH@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	16(%rbx), %esi
	callq	___set_bit
	movq	_ABS_X@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_X_MIN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	16(%r15), %r8d
	movl	20(%r15), %ecx
	movq	%rbx, %rdi
	xorl	%r9d, %r9d
	callq	_input_set_abs_params
	movq	_ABS_Y@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_Y_MIN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	8(%r15), %r8d
	movl	12(%r15), %ecx
	movq	%rbx, %rdi
	xorl	%r9d, %r9d
	callq	_input_set_abs_params
	movq	_iproc_ts_start@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%rbx)
	movq	_iproc_ts_stop@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_input_set_drvdata
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_platform_set_drvdata
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_platform_get_irq
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_18
## %bb.12:
	movq	_iproc_touchscreen_interrupt@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_IRQF_SHARED@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	(%r13), %r8d
	movq	%r14, %rdi
	movl	%ebx, %esi
	movq	%r14, %r9
	callq	_devm_request_irq
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_18
## %bb.13:
	movq	(%r15), %rdi
	callq	_input_register_device
	testl	%eax, %eax
	je	LBB0_14
## %bb.15:
	movl	%eax, %ebx
	leaq	L_.str.6(%rip), %rsi
	jmp	LBB0_16
LBB0_10:
	leaq	L_.str.5(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_18
LBB0_14:
	xorl	%ebx, %ebx
	jmp	LBB0_18
	.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	"ts_syscon"

L_.str.1:                               ## @.str.1
	.asciz	"unable to map I/O memory:%d\n"

L_.str.2:                               ## @.str.2
	.asciz	"tsc_clk"

L_.str.3:                               ## @.str.3
	.asciz	"failed getting clock tsc_clk: %d\n"

L_.str.4:                               ## @.str.4
	.asciz	"get_tsc_config failed: %d\n"

L_.str.5:                               ## @.str.5
	.asciz	"failed to allocate input device\n"

	.comm	_PEN_UP_STATUS,4,2              ## @PEN_UP_STATUS
	.comm	_IPROC_TS_NAME,4,2              ## @IPROC_TS_NAME
	.comm	_BUS_HOST,4,2                   ## @BUS_HOST
	.comm	_SERIO_UNKNOWN,4,2              ## @SERIO_UNKNOWN
	.comm	_EV_KEY,4,2                     ## @EV_KEY
	.comm	_EV_ABS,4,2                     ## @EV_ABS
	.comm	_BTN_TOUCH,4,2                  ## @BTN_TOUCH
	.comm	_ABS_X,4,2                      ## @ABS_X
	.comm	_X_MIN,4,2                      ## @X_MIN
	.comm	_ABS_Y,4,2                      ## @ABS_Y
	.comm	_Y_MIN,4,2                      ## @Y_MIN
	.comm	_iproc_ts_start,4,2             ## @iproc_ts_start
	.comm	_iproc_ts_stop,4,2              ## @iproc_ts_stop
	.comm	_iproc_touchscreen_interrupt,4,2 ## @iproc_touchscreen_interrupt
	.comm	_IRQF_SHARED,4,2                ## @IRQF_SHARED
L_.str.6:                               ## @.str.6
	.asciz	"failed to register input device: %d\n"

	.no_dead_strip	_iproc_ts_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function iproc_ts_probe
_iproc_ts_probe:                        ; @iproc_ts_probe
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	w1, #48
	bl	_devm_kzalloc
	cbz	x0, LBB0_14
; %bb.1:
	mov	x20, x0
	ldr	w0, [x19]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_syscon_regmap_lookup_by_phandle
	str	w0, [x20, #44]
	bl	_IS_ERR
	cbz	x0, LBB0_3
; %bb.2:
	ldr	w0, [x20, #44]
	bl	_PTR_ERR
	mov	x21, x0
	str	x21, [sp]
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	b	LBB0_15
LBB0_3:
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_devm_clk_get
	str	w0, [x20, #40]
	bl	_IS_ERR
	cbz	x0, LBB0_5
; %bb.4:
	ldr	w0, [x20, #40]
	bl	_PTR_ERR
	mov	x21, x0
	str	x21, [sp]
Lloh9:
	adrp	x1, l_.str.3@PAGE
Lloh10:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_7
LBB0_5:
	str	x19, [x20, #32]
	mov	x0, x19
	mov	x1, x20
	bl	_iproc_get_tsc_config
	cbz	w0, LBB0_8
; %bb.6:
	mov	x21, x0
	str	x21, [sp]
Lloh11:
	adrp	x1, l_.str.4@PAGE
Lloh12:
	add	x1, x1, l_.str.4@PAGEOFF
LBB0_7:
	mov	x0, x19
	bl	_dev_err
                                        ; kill: def $w21 killed $w21 killed $x21 def $x21
	b	LBB0_15
LBB0_8:
	mov	x0, x19
	bl	_devm_input_allocate_device
	cbz	x0, LBB0_13
; %bb.9:
	mov	x21, x0
	str	x0, [x20]
Lloh13:
	adrp	x8, _PEN_UP_STATUS@GOTPAGE
Lloh14:
	ldr	x8, [x8, _PEN_UP_STATUS@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	str	w8, [x20, #24]
Lloh16:
	adrp	x23, _IPROC_TS_NAME@GOTPAGE
Lloh17:
	ldr	x23, [x23, _IPROC_TS_NAME@GOTPAGEOFF]
	ldr	w8, [x23]
	str	w8, [x0, #56]
Lloh18:
	adrp	x8, _BUS_HOST@GOTPAGE
Lloh19:
	ldr	x8, [x8, _BUS_HOST@GOTPAGEOFF]
	str	x19, [x0, #48]
Lloh20:
	ldr	w8, [x8]
Lloh21:
	adrp	x9, _SERIO_UNKNOWN@GOTPAGE
Lloh22:
	ldr	x9, [x9, _SERIO_UNKNOWN@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	stp	w9, w8, [x0, #40]
	stp	xzr, xzr, [x0, #24]
Lloh24:
	adrp	x8, _EV_KEY@GOTPAGE
Lloh25:
	ldr	x8, [x8, _EV_KEY@GOTPAGEOFF]
Lloh26:
	ldr	w0, [x8]
	bl	_BIT_MASK
	mov	x22, x0
Lloh27:
	adrp	x8, _EV_ABS@GOTPAGE
Lloh28:
	ldr	x8, [x8, _EV_ABS@GOTPAGEOFF]
Lloh29:
	ldr	w0, [x8]
	bl	_BIT_MASK
	orr	w8, w0, w22
	ldr	x9, [x21]
	str	w8, [x9]
Lloh30:
	adrp	x8, _BTN_TOUCH@GOTPAGE
Lloh31:
	ldr	x8, [x8, _BTN_TOUCH@GOTPAGEOFF]
Lloh32:
	ldr	w0, [x8]
	ldr	w1, [x21, #16]
	bl	___set_bit
Lloh33:
	adrp	x8, _ABS_X@GOTPAGE
Lloh34:
	ldr	x8, [x8, _ABS_X@GOTPAGEOFF]
Lloh35:
	ldr	w1, [x8]
Lloh36:
	adrp	x8, _X_MIN@GOTPAGE
Lloh37:
	ldr	x8, [x8, _X_MIN@GOTPAGEOFF]
Lloh38:
	ldr	w2, [x8]
	ldp	w4, w3, [x20, #16]
	mov	x0, x21
	mov	w5, #0
	bl	_input_set_abs_params
Lloh39:
	adrp	x8, _ABS_Y@GOTPAGE
Lloh40:
	ldr	x8, [x8, _ABS_Y@GOTPAGEOFF]
Lloh41:
	ldr	w1, [x8]
Lloh42:
	adrp	x8, _Y_MIN@GOTPAGE
Lloh43:
	ldr	x8, [x8, _Y_MIN@GOTPAGEOFF]
Lloh44:
	ldr	w2, [x8]
	ldp	w4, w3, [x20, #8]
	mov	x0, x21
	mov	w5, #0
	bl	_input_set_abs_params
Lloh45:
	adrp	x8, _iproc_ts_start@GOTPAGE
Lloh46:
	ldr	x8, [x8, _iproc_ts_start@GOTPAGEOFF]
Lloh47:
	ldr	w8, [x8]
Lloh48:
	adrp	x9, _iproc_ts_stop@GOTPAGE
Lloh49:
	ldr	x9, [x9, _iproc_ts_stop@GOTPAGEOFF]
Lloh50:
	ldr	w9, [x9]
	stp	w9, w8, [x21, #8]
	mov	x0, x21
	mov	x1, x20
	bl	_input_set_drvdata
	mov	x0, x19
	mov	x1, x20
	bl	_platform_set_drvdata
	mov	x0, x19
	mov	w1, #0
	bl	_platform_get_irq
	mov	x21, x0
	tbnz	w0, #31, LBB0_15
; %bb.10:
Lloh51:
	adrp	x8, _iproc_touchscreen_interrupt@GOTPAGE
Lloh52:
	ldr	x8, [x8, _iproc_touchscreen_interrupt@GOTPAGEOFF]
Lloh53:
	ldr	w2, [x8]
Lloh54:
	adrp	x8, _IRQF_SHARED@GOTPAGE
Lloh55:
	ldr	x8, [x8, _IRQF_SHARED@GOTPAGEOFF]
Lloh56:
	ldr	w3, [x8]
	ldr	w4, [x23]
	mov	x0, x19
	mov	x1, x21
	mov	x5, x19
	bl	_devm_request_irq
	mov	x21, x0
	cbnz	w0, LBB0_15
; %bb.11:
	ldr	x0, [x20]
	bl	_input_register_device
	mov	x21, x0
	cbz	w0, LBB0_15
; %bb.12:
	str	x21, [sp]
Lloh57:
	adrp	x1, l_.str.6@PAGE
Lloh58:
	add	x1, x1, l_.str.6@PAGEOFF
	b	LBB0_7
LBB0_13:
Lloh59:
	adrp	x1, l_.str.5@PAGE
Lloh60:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x19
	bl	_dev_err
LBB0_14:
Lloh61:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh62:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh63:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_15:
	mov	x0, x21
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpAdd	Lloh57, Lloh58
	.loh AdrpAdd	Lloh59, Lloh60
	.loh AdrpLdrGotLdr	Lloh61, Lloh62, Lloh63
	.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	"ts_syscon"

l_.str.1:                               ; @.str.1
	.asciz	"unable to map I/O memory:%d\n"

l_.str.2:                               ; @.str.2
	.asciz	"tsc_clk"

l_.str.3:                               ; @.str.3
	.asciz	"failed getting clock tsc_clk: %d\n"

l_.str.4:                               ; @.str.4
	.asciz	"get_tsc_config failed: %d\n"

l_.str.5:                               ; @.str.5
	.asciz	"failed to allocate input device\n"

	.comm	_PEN_UP_STATUS,4,2              ; @PEN_UP_STATUS
	.comm	_IPROC_TS_NAME,4,2              ; @IPROC_TS_NAME
	.comm	_BUS_HOST,4,2                   ; @BUS_HOST
	.comm	_SERIO_UNKNOWN,4,2              ; @SERIO_UNKNOWN
	.comm	_EV_KEY,4,2                     ; @EV_KEY
	.comm	_EV_ABS,4,2                     ; @EV_ABS
	.comm	_BTN_TOUCH,4,2                  ; @BTN_TOUCH
	.comm	_ABS_X,4,2                      ; @ABS_X
	.comm	_X_MIN,4,2                      ; @X_MIN
	.comm	_ABS_Y,4,2                      ; @ABS_Y
	.comm	_Y_MIN,4,2                      ; @Y_MIN
	.comm	_iproc_ts_start,4,2             ; @iproc_ts_start
	.comm	_iproc_ts_stop,4,2              ; @iproc_ts_stop
	.comm	_iproc_touchscreen_interrupt,4,2 ; @iproc_touchscreen_interrupt
	.comm	_IRQF_SHARED,4,2                ; @IRQF_SHARED
l_.str.6:                               ; @.str.6
	.asciz	"failed to register input device: %d\n"

	.no_dead_strip	_iproc_ts_probe
.subsections_via_symbols
