	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ts4800_ts_probe
_ts4800_ts_probe:                       ## @ts4800_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$32, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r12
	movq	%r15, %rdi
	movq	%rax, %rsi
	callq	_ts4800_parse_dt
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_7
## %bb.3:
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_devm_platform_ioremap_resource
	movl	%eax, 24(%r12)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_4
## %bb.8:
	movl	24(%r12), %edi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_4:
	movq	%r15, %rdi
	callq	_devm_input_allocate_polled_device
	testq	%rax, %rax
	je	LBB0_1
## %bb.5:
	movq	%rax, %r14
	movl	(%r12), %ebx
	movq	%r15, %rdi
	callq	_dev_name
	leaq	L_.str(%rip), %rdx
	movl	%ebx, %edi
	movl	$4, %esi
	movq	%rax, %rcx
	callq	_snprintf
	movq	%r14, 16(%r12)
	movq	%r15, 8(%r12)
	movq	%r12, 24(%r14)
	movq	_POLL_INTERVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%r14)
	movq	_ts4800_ts_open@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r14)
	movq	_ts4800_ts_close@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%r14)
	movq	_ts4800_ts_poll@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r14)
	movq	(%r14), %rdi
	leaq	L_.str.1(%rip), %rax
	movq	%rax, (%rdi)
	movl	(%r12), %eax
	movl	%eax, 8(%rdi)
	movq	_EV_KEY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_BTN_TOUCH@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_input_set_capability
	movq	(%r14), %rdi
	movq	_ABS_X@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MAX_12BIT@GOTPCREL(%rip), %r12
	movl	(%r12), %ecx
	xorl	%ebx, %ebx
	xorl	%edx, %edx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_input_set_abs_params
	movq	(%r14), %rdi
	movq	_ABS_Y@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r12), %ecx
	xorl	%edx, %edx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_input_set_abs_params
	movq	%r14, %rdi
	callq	_input_register_polled_device
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	movl	%eax, %r14d
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdi
	movl	%eax, %edx
	callq	_dev_err
	movl	%r14d, %ebx
	jmp	LBB0_7
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_7:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	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	"%s/input0"

	.comm	_POLL_INTERVAL,4,2              ## @POLL_INTERVAL
	.comm	_ts4800_ts_open,4,2             ## @ts4800_ts_open
	.comm	_ts4800_ts_close,4,2            ## @ts4800_ts_close
	.comm	_ts4800_ts_poll,4,2             ## @ts4800_ts_poll
L_.str.1:                               ## @.str.1
	.asciz	"TS-4800 Touchscreen"

	.comm	_EV_KEY,4,2                     ## @EV_KEY
	.comm	_BTN_TOUCH,4,2                  ## @BTN_TOUCH
	.comm	_ABS_X,4,2                      ## @ABS_X
	.comm	_MAX_12BIT,4,2                  ## @MAX_12BIT
	.comm	_ABS_Y,4,2                      ## @ABS_Y
L_.str.2:                               ## @.str.2
	.asciz	"Unabled to register polled input device (%d)\n"

	.no_dead_strip	_ts4800_ts_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ts4800_ts_probe
_ts4800_ts_probe:                       ; @ts4800_ts_probe
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x19, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	w1, #32
	bl	_devm_kzalloc
	cbz	x0, LBB0_7
; %bb.1:
	mov	x21, x0
	mov	x0, x19
	mov	x1, x21
	bl	_ts4800_parse_dt
	mov	x20, x0
	cbnz	w0, LBB0_8
; %bb.2:
	mov	x0, x19
	mov	w1, #0
	bl	_devm_platform_ioremap_resource
	str	w0, [x21, #24]
	bl	_IS_ERR
	cbz	x0, LBB0_4
; %bb.3:
	ldr	w0, [x21, #24]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_PTR_ERR
LBB0_4:
	mov	x0, x19
	bl	_devm_input_allocate_polled_device
	cbz	x0, LBB0_7
; %bb.5:
	mov	x20, x0
	ldr	w22, [x21]
	mov	x0, x19
	bl	_dev_name
	mov	x3, x0
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x22
	mov	w1, #4
	bl	_snprintf
	stp	x19, x20, [x21, #8]
	str	x21, [x20, #24]
Lloh5:
	adrp	x8, _POLL_INTERVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _POLL_INTERVAL@GOTPAGEOFF]
Lloh7:
	adrp	x9, _ts4800_ts_open@GOTPAGE
Lloh8:
	ldr	x9, [x9, _ts4800_ts_open@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
Lloh10:
	ldr	w9, [x9]
	stp	w9, w8, [x20, #16]
Lloh11:
	adrp	x8, _ts4800_ts_close@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ts4800_ts_close@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
Lloh14:
	adrp	x9, _ts4800_ts_poll@GOTPAGE
Lloh15:
	ldr	x9, [x9, _ts4800_ts_poll@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	stp	w9, w8, [x20, #8]
	ldr	x0, [x20]
Lloh17:
	adrp	x8, l_.str.1@PAGE
Lloh18:
	add	x8, x8, l_.str.1@PAGEOFF
	str	x8, [x0]
	ldr	w8, [x21]
	str	w8, [x0, #8]
Lloh19:
	adrp	x8, _EV_KEY@GOTPAGE
Lloh20:
	ldr	x8, [x8, _EV_KEY@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
Lloh22:
	adrp	x8, _BTN_TOUCH@GOTPAGE
Lloh23:
	ldr	x8, [x8, _BTN_TOUCH@GOTPAGEOFF]
Lloh24:
	ldr	w2, [x8]
	bl	_input_set_capability
	ldr	x0, [x20]
Lloh25:
	adrp	x8, _ABS_X@GOTPAGE
Lloh26:
	ldr	x8, [x8, _ABS_X@GOTPAGEOFF]
Lloh27:
	ldr	w1, [x8]
Lloh28:
	adrp	x21, _MAX_12BIT@GOTPAGE
Lloh29:
	ldr	x21, [x21, _MAX_12BIT@GOTPAGEOFF]
	ldr	w3, [x21]
	mov	w2, #0
	mov	w4, #0
	mov	w5, #0
	bl	_input_set_abs_params
	ldr	x0, [x20]
Lloh30:
	adrp	x8, _ABS_Y@GOTPAGE
Lloh31:
	ldr	x8, [x8, _ABS_Y@GOTPAGEOFF]
Lloh32:
	ldr	w1, [x8]
	ldr	w3, [x21]
	mov	w2, #0
	mov	w4, #0
	mov	w5, #0
	bl	_input_set_abs_params
	mov	x0, x20
	bl	_input_register_polled_device
	mov	x20, x0
	cbz	w0, LBB0_8
; %bb.6:
Lloh33:
	adrp	x1, l_.str.2@PAGE
Lloh34:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	mov	x2, x20
	bl	_dev_err
	b	LBB0_8
LBB0_7:
Lloh35:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh36:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh37:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_8:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh9
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.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	"%s/input0"

	.comm	_POLL_INTERVAL,4,2              ; @POLL_INTERVAL
	.comm	_ts4800_ts_open,4,2             ; @ts4800_ts_open
	.comm	_ts4800_ts_close,4,2            ; @ts4800_ts_close
	.comm	_ts4800_ts_poll,4,2             ; @ts4800_ts_poll
l_.str.1:                               ; @.str.1
	.asciz	"TS-4800 Touchscreen"

	.comm	_EV_KEY,4,2                     ; @EV_KEY
	.comm	_BTN_TOUCH,4,2                  ; @BTN_TOUCH
	.comm	_ABS_X,4,2                      ; @ABS_X
	.comm	_MAX_12BIT,4,2                  ; @MAX_12BIT
	.comm	_ABS_Y,4,2                      ; @ABS_Y
l_.str.2:                               ; @.str.2
	.asciz	"Unabled to register polled input device (%d)\n"

	.no_dead_strip	_ts4800_ts_probe
.subsections_via_symbols
