	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cyttsp_probe                   ## -- Begin function cyttsp_probe
	.p2align	4, 0x90
_cyttsp_probe:                          ## @cyttsp_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
	movl	%edx, %ebx
	movq	%rsi, %r14
	movq	%rdi, %r13
	leal	48(%rcx), %esi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	movq	%rax, %r12
	movq	%r14, %rdi
	callq	_devm_input_allocate_device
	testq	%rax, %rax
	je	LBB0_6
## %bb.2:
	movq	%rax, %r15
	movq	%r14, 8(%r12)
	movq	%rax, 40(%r12)
	movq	%r13, 32(%r12)
	movl	%ebx, (%r12)
	movq	_GPIOD_OUT_LOW@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_devm_gpiod_get_optional
	movl	%eax, 24(%r12)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_8
## %bb.3:
	movl	24(%r12), %edi
	callq	_PTR_ERR
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
LBB0_4:
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_7
LBB0_6:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_7:
	movl	%ebx, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ERR_PTR                        ## TAILCALL
LBB0_8:
	movq	%r12, %rdi
	callq	_cyttsp_parse_properties
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_7
## %bb.9:
	movq	%r12, %rdi
	addq	$20, %rdi
	callq	_init_completion
	movl	16(%r12), %ebx
	movq	%r14, %rdi
	callq	_dev_name
	leaq	L_.str.2(%rip), %rdx
	movl	%ebx, %edi
	movl	$4, %esi
	movq	%rax, %rcx
	callq	_snprintf
	leaq	L_.str.3(%rip), %rax
	movq	%rax, (%r15)
	movl	16(%r12), %eax
	movl	%eax, 28(%r15)
	movl	(%r13), %eax
	movl	%eax, 24(%r15)
	movq	8(%r12), %rax
	movq	%rax, 16(%r15)
	movq	_cyttsp_open@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%r15)
	movq	_cyttsp_close@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r15)
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_input_set_drvdata
	movq	_EV_ABS@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	_ABS_MT_POSITION_X@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_input_set_capability
	movl	(%rbx), %esi
	movq	_ABS_MT_POSITION_Y@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_input_set_capability
	movq	%r15, %rdi
	movl	$1, %esi
	xorl	%edx, %edx
	callq	_touchscreen_parse_properties
	movq	_CY_MAX_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_input_mt_init_slots
	testl	%eax, %eax
	je	LBB0_11
## %bb.10:
	movl	%eax, %ebx
	leaq	L_.str.4(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_7
LBB0_11:
	movl	(%r12), %esi
	movq	_cyttsp_irq@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_IRQF_TRIGGER_FALLING@GOTPCREL(%rip), %rax
	movq	_IRQF_ONESHOT@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r8d
	orl	(%rax), %r8d
	movq	%r12, (%rsp)
	leaq	L_.str.5(%rip), %r9
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_devm_request_threaded_irq
	testl	%eax, %eax
	je	LBB0_13
## %bb.12:
	movl	%eax, %ebx
	movq	8(%r12), %rdi
	movl	(%r12), %edx
	leaq	L_.str.6(%rip), %rsi
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_7
LBB0_13:
	movl	(%r12), %edi
	callq	_disable_irq
	movq	%r12, %rdi
	callq	_cyttsp_hard_reset
	movq	%r12, %rdi
	callq	_cyttsp_power_on
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_7
## %bb.14:
	movq	%r15, %rdi
	callq	_input_register_device
	testl	%eax, %eax
	je	LBB0_16
## %bb.15:
	movl	%eax, %ebx
	movq	8(%r12), %rdi
	leaq	L_.str.7(%rip), %rsi
	jmp	LBB0_4
LBB0_16:
	movq	%r12, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.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	"reset"

	.comm	_GPIOD_OUT_LOW,4,2              ## @GPIOD_OUT_LOW
L_.str.1:                               ## @.str.1
	.asciz	"Failed to request reset gpio, error %d\n"

L_.str.2:                               ## @.str.2
	.asciz	"%s/input0"

L_.str.3:                               ## @.str.3
	.asciz	"Cypress TTSP TouchScreen"

	.comm	_cyttsp_open,4,2                ## @cyttsp_open
	.comm	_cyttsp_close,4,2               ## @cyttsp_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	_CY_MAX_ID,4,2                  ## @CY_MAX_ID
L_.str.4:                               ## @.str.4
	.asciz	"Unable to init MT slots.\n"

	.comm	_cyttsp_irq,4,2                 ## @cyttsp_irq
	.comm	_IRQF_TRIGGER_FALLING,4,2       ## @IRQF_TRIGGER_FALLING
	.comm	_IRQF_ONESHOT,4,2               ## @IRQF_ONESHOT
L_.str.5:                               ## @.str.5
	.asciz	"cyttsp"

L_.str.6:                               ## @.str.6
	.asciz	"failed to request IRQ %d, err: %d\n"

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

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cyttsp_probe                   ; -- Begin function cyttsp_probe
	.p2align	2
_cyttsp_probe:                          ; @cyttsp_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	x23, x2
	mov	x20, x1
	mov	x22, x0
	add	w1, w3, #48
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_devm_kzalloc
	cbz	x0, LBB0_5
; %bb.1:
	mov	x19, x0
	mov	x0, x20
	bl	_devm_input_allocate_device
	cbz	x0, LBB0_5
; %bb.2:
	mov	x21, x0
	str	x20, [x19, #8]
	stp	x22, x0, [x19, #32]
	str	w23, [x19]
Lloh3:
	adrp	x8, _GPIOD_OUT_LOW@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GPIOD_OUT_LOW@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_devm_gpiod_get_optional
	str	w0, [x19, #24]
	bl	_IS_ERR
	cbz	x0, LBB0_7
; %bb.3:
	ldr	w0, [x19, #24]
	bl	_PTR_ERR
	mov	x23, x0
	str	x23, [sp]
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_4:
	mov	x0, x20
	bl	_dev_err
	b	LBB0_6
LBB0_5:
Lloh10:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w23, w8
LBB0_6:
	mov	x0, x23
	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
	b	_ERR_PTR
LBB0_7:
	mov	x0, x19
	bl	_cyttsp_parse_properties
	mov	x23, x0
	cbnz	w0, LBB0_6
; %bb.8:
	add	x0, x19, #20
	bl	_init_completion
	ldr	w23, [x19, #16]
	mov	x0, x20
	bl	_dev_name
	mov	x3, x0
Lloh13:
	adrp	x2, l_.str.2@PAGE
Lloh14:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, x23
	mov	w1, #4
	bl	_snprintf
Lloh15:
	adrp	x8, l_.str.3@PAGE
Lloh16:
	add	x8, x8, l_.str.3@PAGEOFF
	str	x8, [x21]
	ldr	w8, [x19, #16]
	ldr	w9, [x22]
	stp	w9, w8, [x21, #24]
	ldr	x8, [x19, #8]
	str	x8, [x21, #16]
Lloh17:
	adrp	x8, _cyttsp_open@GOTPAGE
Lloh18:
	ldr	x8, [x8, _cyttsp_open@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
Lloh20:
	adrp	x9, _cyttsp_close@GOTPAGE
Lloh21:
	ldr	x9, [x9, _cyttsp_close@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	stp	w9, w8, [x21, #8]
	mov	x0, x21
	mov	x1, x19
	bl	_input_set_drvdata
Lloh23:
	adrp	x22, _EV_ABS@GOTPAGE
Lloh24:
	ldr	x22, [x22, _EV_ABS@GOTPAGEOFF]
	ldr	w1, [x22]
Lloh25:
	adrp	x8, _ABS_MT_POSITION_X@GOTPAGE
Lloh26:
	ldr	x8, [x8, _ABS_MT_POSITION_X@GOTPAGEOFF]
Lloh27:
	ldr	w2, [x8]
	mov	x0, x21
	bl	_input_set_capability
	ldr	w1, [x22]
Lloh28:
	adrp	x8, _ABS_MT_POSITION_Y@GOTPAGE
Lloh29:
	ldr	x8, [x8, _ABS_MT_POSITION_Y@GOTPAGEOFF]
Lloh30:
	ldr	w2, [x8]
	mov	x0, x21
	bl	_input_set_capability
	mov	x0, x21
	mov	w1, #1
	mov	x2, #0
	bl	_touchscreen_parse_properties
Lloh31:
	adrp	x8, _CY_MAX_ID@GOTPAGE
Lloh32:
	ldr	x8, [x8, _CY_MAX_ID@GOTPAGEOFF]
Lloh33:
	ldr	w1, [x8]
	mov	x0, x21
	mov	w2, #0
	bl	_input_mt_init_slots
	cbz	w0, LBB0_10
; %bb.9:
	mov	x23, x0
Lloh34:
	adrp	x1, l_.str.4@PAGE
Lloh35:
	add	x1, x1, l_.str.4@PAGEOFF
	b	LBB0_4
LBB0_10:
	ldr	w1, [x19]
Lloh36:
	adrp	x8, _cyttsp_irq@GOTPAGE
Lloh37:
	ldr	x8, [x8, _cyttsp_irq@GOTPAGEOFF]
Lloh38:
	adrp	x9, _IRQF_TRIGGER_FALLING@GOTPAGE
Lloh39:
	ldr	x9, [x9, _IRQF_TRIGGER_FALLING@GOTPAGEOFF]
Lloh40:
	ldr	w3, [x8]
Lloh41:
	ldr	w8, [x9]
Lloh42:
	adrp	x9, _IRQF_ONESHOT@GOTPAGE
Lloh43:
	ldr	x9, [x9, _IRQF_ONESHOT@GOTPAGEOFF]
Lloh44:
	ldr	w9, [x9]
	orr	w4, w9, w8
Lloh45:
	adrp	x5, l_.str.5@PAGE
Lloh46:
	add	x5, x5, l_.str.5@PAGEOFF
	mov	x0, x20
	mov	x2, #0
	mov	x6, x19
	bl	_devm_request_threaded_irq
	cbz	w0, LBB0_13
; %bb.11:
	mov	x23, x0
	ldr	x0, [x19, #8]
	ldr	w8, [x19]
	stp	x8, x23, [sp]
Lloh47:
	adrp	x1, l_.str.6@PAGE
Lloh48:
	add	x1, x1, l_.str.6@PAGEOFF
LBB0_12:
	bl	_dev_err
                                        ; kill: def $w23 killed $w23 killed $x23 def $x23
	b	LBB0_6
LBB0_13:
	ldr	w0, [x19]
	bl	_disable_irq
	mov	x0, x19
	bl	_cyttsp_hard_reset
	mov	x0, x19
	bl	_cyttsp_power_on
	mov	x23, x0
	cbnz	w0, LBB0_6
; %bb.14:
	mov	x0, x21
	bl	_input_register_device
	cbz	w0, LBB0_16
; %bb.15:
	mov	x23, x0
	ldr	x0, [x19, #8]
	str	x23, [sp]
Lloh49:
	adrp	x1, l_.str.7@PAGE
Lloh50:
	add	x1, x1, l_.str.7@PAGEOFF
	b	LBB0_12
LBB0_16:
	mov	x0, x19
	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	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpAdd	Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh40
	.loh AdrpAdd	Lloh47, Lloh48
	.loh AdrpAdd	Lloh49, Lloh50
	.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	"reset"

	.comm	_GPIOD_OUT_LOW,4,2              ; @GPIOD_OUT_LOW
l_.str.1:                               ; @.str.1
	.asciz	"Failed to request reset gpio, error %d\n"

l_.str.2:                               ; @.str.2
	.asciz	"%s/input0"

l_.str.3:                               ; @.str.3
	.asciz	"Cypress TTSP TouchScreen"

	.comm	_cyttsp_open,4,2                ; @cyttsp_open
	.comm	_cyttsp_close,4,2               ; @cyttsp_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	_CY_MAX_ID,4,2                  ; @CY_MAX_ID
l_.str.4:                               ; @.str.4
	.asciz	"Unable to init MT slots.\n"

	.comm	_cyttsp_irq,4,2                 ; @cyttsp_irq
	.comm	_IRQF_TRIGGER_FALLING,4,2       ; @IRQF_TRIGGER_FALLING
	.comm	_IRQF_ONESHOT,4,2               ; @IRQF_ONESHOT
l_.str.5:                               ; @.str.5
	.asciz	"cyttsp"

l_.str.6:                               ; @.str.6
	.asciz	"failed to request IRQ %d, err: %d\n"

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

.subsections_via_symbols
