	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mcs5000_ts_probe
_mcs5000_ts_probe:                      ## @mcs5000_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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	callq	_dev_get_platdata
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	%rax, %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	movl	$16, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_4
## %bb.6:
	movq	%rax, %r15
	movq	%r12, 8(%rax)
	movq	%r12, %rdi
	callq	_devm_input_allocate_device
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:
	movq	%rax, %rbx
	leaq	L_.str.2(%rip), %rax
	movq	%rax, (%rbx)
	movq	_BUS_I2C@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%rbx)
	movq	%r12, 16(%rbx)
	movq	_EV_ABS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	12(%rbx), %esi
	callq	___set_bit
	movq	_EV_KEY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	12(%rbx), %esi
	callq	___set_bit
	movq	_BTN_TOUCH@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	8(%rbx), %esi
	callq	___set_bit
	movq	_ABS_X@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MCS5000_MAX_XC@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	xorl	%edx, %edx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_input_set_abs_params
	movq	_ABS_Y@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MCS5000_MAX_YC@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	xorl	%edx, %edx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_input_set_abs_params
	movq	%rbx, (%r15)
	movq	(%r14), %rcx
	testq	%rcx, %rcx
	je	LBB0_10
## %bb.9:
	xorl	%eax, %eax
	callq	*%rcx
LBB0_10:
	movl	4(%r12), %esi
	movq	_mcs5000_ts_interrupt@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_IRQF_TRIGGER_LOW@GOTPCREL(%rip), %rax
	movq	_IRQF_ONESHOT@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r8d
	orl	(%rax), %r8d
	movq	%r15, (%rsp)
	leaq	L_.str.3(%rip), %r9
	movq	%r12, %rdi
	xorl	%edx, %edx
	callq	_devm_request_threaded_irq
	testl	%eax, %eax
	je	LBB0_13
## %bb.11:
	movl	%eax, %ebx
	leaq	L_.str.4(%rip), %rsi
	jmp	LBB0_12
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_4:
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_5
LBB0_7:
	leaq	L_.str.1(%rip), %rsi
LBB0_5:
	movq	%r12, %rdi
	callq	_dev_err
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_16
LBB0_13:
	movq	(%r15), %rdi
	callq	_input_register_device
	testl	%eax, %eax
	je	LBB0_15
## %bb.14:
	movl	%eax, %ebx
	leaq	L_.str.5(%rip), %rsi
LBB0_12:
	movq	%r12, %rdi
	callq	_dev_err
LBB0_16:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_mcs5000_ts_phys_init
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_i2c_set_clientdata
	xorl	%ebx, %ebx
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to allocate memory\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.1:                               ## @.str.1
	.asciz	"Failed to allocate input device\n"

L_.str.2:                               ## @.str.2
	.asciz	"MELFAS MCS-5000 Touchscreen"

	.comm	_BUS_I2C,4,2                    ## @BUS_I2C
	.comm	_EV_ABS,4,2                     ## @EV_ABS
	.comm	_EV_KEY,4,2                     ## @EV_KEY
	.comm	_BTN_TOUCH,4,2                  ## @BTN_TOUCH
	.comm	_ABS_X,4,2                      ## @ABS_X
	.comm	_MCS5000_MAX_XC,4,2             ## @MCS5000_MAX_XC
	.comm	_ABS_Y,4,2                      ## @ABS_Y
	.comm	_MCS5000_MAX_YC,4,2             ## @MCS5000_MAX_YC
	.comm	_mcs5000_ts_interrupt,4,2       ## @mcs5000_ts_interrupt
	.comm	_IRQF_TRIGGER_LOW,4,2           ## @IRQF_TRIGGER_LOW
	.comm	_IRQF_ONESHOT,4,2               ## @IRQF_ONESHOT
L_.str.3:                               ## @.str.3
	.asciz	"mcs5000_ts"

L_.str.4:                               ## @.str.4
	.asciz	"Failed to register interrupt\n"

L_.str.5:                               ## @.str.5
	.asciz	"Failed to register input device\n"

	.no_dead_strip	_mcs5000_ts_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mcs5000_ts_probe
_mcs5000_ts_probe:                      ; @mcs5000_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
	bl	_dev_get_platdata
	cbz	x0, LBB0_7
; %bb.1:
	mov	x20, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #16
	bl	_devm_kzalloc
	cbz	x0, LBB0_8
; %bb.2:
	mov	x21, x0
	str	x19, [x0, #8]
	mov	x0, x19
	bl	_devm_input_allocate_device
	cbz	x0, LBB0_9
; %bb.3:
	mov	x22, x0
Lloh3:
	adrp	x8, l_.str.2@PAGE
Lloh4:
	add	x8, x8, l_.str.2@PAGEOFF
	str	x8, [x0]
Lloh5:
	adrp	x8, _BUS_I2C@GOTPAGE
Lloh6:
	ldr	x8, [x8, _BUS_I2C@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	str	w8, [x0, #24]
	str	x19, [x0, #16]
Lloh8:
	adrp	x8, _EV_ABS@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EV_ABS@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	ldr	w1, [x22, #12]
	bl	___set_bit
Lloh11:
	adrp	x8, _EV_KEY@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EV_KEY@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	ldr	w1, [x22, #12]
	bl	___set_bit
Lloh14:
	adrp	x8, _BTN_TOUCH@GOTPAGE
Lloh15:
	ldr	x8, [x8, _BTN_TOUCH@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	ldr	w1, [x22, #8]
	bl	___set_bit
Lloh17:
	adrp	x8, _ABS_X@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ABS_X@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
Lloh20:
	adrp	x8, _MCS5000_MAX_XC@GOTPAGE
Lloh21:
	ldr	x8, [x8, _MCS5000_MAX_XC@GOTPAGEOFF]
Lloh22:
	ldr	w3, [x8]
	mov	x0, x22
	mov	w2, #0
	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]
Lloh26:
	adrp	x8, _MCS5000_MAX_YC@GOTPAGE
Lloh27:
	ldr	x8, [x8, _MCS5000_MAX_YC@GOTPAGEOFF]
Lloh28:
	ldr	w3, [x8]
	mov	x0, x22
	mov	w2, #0
	mov	w4, #0
	mov	w5, #0
	bl	_input_set_abs_params
	str	x22, [x21]
	ldr	x8, [x20]
	cbz	x8, LBB0_5
; %bb.4:
	blr	x8
LBB0_5:
	ldr	w1, [x19, #4]
Lloh29:
	adrp	x8, _mcs5000_ts_interrupt@GOTPAGE
Lloh30:
	ldr	x8, [x8, _mcs5000_ts_interrupt@GOTPAGEOFF]
Lloh31:
	adrp	x9, _IRQF_TRIGGER_LOW@GOTPAGE
Lloh32:
	ldr	x9, [x9, _IRQF_TRIGGER_LOW@GOTPAGEOFF]
Lloh33:
	ldr	w3, [x8]
Lloh34:
	ldr	w8, [x9]
Lloh35:
	adrp	x9, _IRQF_ONESHOT@GOTPAGE
Lloh36:
	ldr	x9, [x9, _IRQF_ONESHOT@GOTPAGEOFF]
Lloh37:
	ldr	w9, [x9]
	orr	w4, w9, w8
Lloh38:
	adrp	x5, l_.str.3@PAGE
Lloh39:
	add	x5, x5, l_.str.3@PAGEOFF
	mov	x0, x19
	mov	x2, #0
	mov	x6, x21
	bl	_devm_request_threaded_irq
	cbz	w0, LBB0_12
; %bb.6:
	mov	x22, x0
Lloh40:
	adrp	x1, l_.str.4@PAGE
Lloh41:
	add	x1, x1, l_.str.4@PAGEOFF
	b	LBB0_14
LBB0_7:
Lloh42:
	adrp	x8, _EINVAL@GOTPAGE
Lloh43:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_11
LBB0_8:
Lloh44:
	adrp	x1, l_.str@PAGE
Lloh45:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_10
LBB0_9:
Lloh46:
	adrp	x1, l_.str.1@PAGE
Lloh47:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_10:
	mov	x0, x19
	bl	_dev_err
Lloh48:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh49:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_11:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_15
LBB0_12:
	ldr	x0, [x21]
	bl	_input_register_device
	mov	x22, x0
	cbz	w0, LBB0_16
; %bb.13:
Lloh50:
	adrp	x1, l_.str.5@PAGE
Lloh51:
	add	x1, x1, l_.str.5@PAGEOFF
LBB0_14:
	mov	x0, x19
	bl	_dev_err
LBB0_15:
	mov	x0, x22
	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
LBB0_16:
	mov	x0, x21
	mov	x1, x20
	bl	_mcs5000_ts_phys_init
	mov	x0, x19
	mov	x1, x21
	bl	_i2c_set_clientdata
	b	LBB0_15
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.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	Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh33
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpLdrGot	Lloh42, Lloh43
	.loh AdrpAdd	Lloh44, Lloh45
	.loh AdrpAdd	Lloh46, Lloh47
	.loh AdrpLdrGot	Lloh48, Lloh49
	.loh AdrpAdd	Lloh50, Lloh51
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to allocate memory\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.1:                               ; @.str.1
	.asciz	"Failed to allocate input device\n"

l_.str.2:                               ; @.str.2
	.asciz	"MELFAS MCS-5000 Touchscreen"

	.comm	_BUS_I2C,4,2                    ; @BUS_I2C
	.comm	_EV_ABS,4,2                     ; @EV_ABS
	.comm	_EV_KEY,4,2                     ; @EV_KEY
	.comm	_BTN_TOUCH,4,2                  ; @BTN_TOUCH
	.comm	_ABS_X,4,2                      ; @ABS_X
	.comm	_MCS5000_MAX_XC,4,2             ; @MCS5000_MAX_XC
	.comm	_ABS_Y,4,2                      ; @ABS_Y
	.comm	_MCS5000_MAX_YC,4,2             ; @MCS5000_MAX_YC
	.comm	_mcs5000_ts_interrupt,4,2       ; @mcs5000_ts_interrupt
	.comm	_IRQF_TRIGGER_LOW,4,2           ; @IRQF_TRIGGER_LOW
	.comm	_IRQF_ONESHOT,4,2               ; @IRQF_ONESHOT
l_.str.3:                               ; @.str.3
	.asciz	"mcs5000_ts"

l_.str.4:                               ; @.str.4
	.asciz	"Failed to register interrupt\n"

l_.str.5:                               ; @.str.5
	.asciz	"Failed to register input device\n"

	.no_dead_strip	_mcs5000_ts_probe
.subsections_via_symbols
