	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function egalax_ts_probe
_egalax_ts_probe:                       ## @egalax_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, %r12
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$16, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	%rax, %r14
	movq	%r12, %rdi
	callq	_devm_input_allocate_device
	testq	%rax, %rax
	je	LBB0_1
## %bb.4:
	movq	%rax, %r15
	movq	%r12, 8(%r14)
	movq	%rax, (%r14)
	movq	%r12, %rdi
	callq	_egalax_wake_up_device
	testl	%eax, %eax
	je	LBB0_7
## %bb.5:
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rsi
LBB0_6:
	movq	%r12, %rdi
	callq	_dev_err
	jmp	LBB0_2
LBB0_1:
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	callq	_dev_err
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_2:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	%r12, %rdi
	callq	_egalax_firmware_version
	testl	%eax, %eax
	js	LBB0_8
## %bb.9:
	leaq	L_.str.3(%rip), %rax
	movq	%rax, (%r15)
	movq	_BUS_I2C@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r15)
	movq	_EV_ABS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	12(%r15), %esi
	callq	___set_bit
	movq	_EV_KEY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	12(%r15), %esi
	callq	___set_bit
	movq	_BTN_TOUCH@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	8(%r15), %esi
	callq	___set_bit
	movq	_ABS_X@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_EGALAX_MAX_X@GOTPCREL(%rip), %r13
	movl	(%r13), %ecx
	movq	%r15, %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	_EGALAX_MAX_Y@GOTPCREL(%rip), %rbx
	movl	(%rbx), %ecx
	movq	%r15, %rdi
	xorl	%edx, %edx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_input_set_abs_params
	movq	_ABS_MT_POSITION_X@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r13), %ecx
	movq	%r15, %rdi
	xorl	%edx, %edx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_input_set_abs_params
	movq	_ABS_MT_POSITION_Y@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%rbx), %ecx
	movq	%r15, %rdi
	xorl	%edx, %edx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_input_set_abs_params
	movq	_MAX_SUPPORT_POINTS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_input_mt_init_slots
	movl	4(%r12), %esi
	movq	_egalax_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	%r14, (%rsp)
	leaq	L_.str.4(%rip), %r9
	movq	%r12, %rdi
	xorl	%edx, %edx
	callq	_devm_request_threaded_irq
	testl	%eax, %eax
	js	LBB0_10
## %bb.11:
	movq	(%r14), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_input_register_device          ## TAILCALL
LBB0_8:
	movl	%eax, %ebx
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_6
LBB0_10:
	movl	%eax, %ebx
	leaq	L_.str.5(%rip), %rsi
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.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 wake up the controller\n"

L_.str.2:                               ## @.str.2
	.asciz	"Failed to read firmware version\n"

L_.str.3:                               ## @.str.3
	.asciz	"EETI eGalax Touch Screen"

	.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	_EGALAX_MAX_X,4,2               ## @EGALAX_MAX_X
	.comm	_ABS_Y,4,2                      ## @ABS_Y
	.comm	_EGALAX_MAX_Y,4,2               ## @EGALAX_MAX_Y
	.comm	_ABS_MT_POSITION_X,4,2          ## @ABS_MT_POSITION_X
	.comm	_ABS_MT_POSITION_Y,4,2          ## @ABS_MT_POSITION_Y
	.comm	_MAX_SUPPORT_POINTS,4,2         ## @MAX_SUPPORT_POINTS
	.comm	_egalax_ts_interrupt,4,2        ## @egalax_ts_interrupt
	.comm	_IRQF_TRIGGER_LOW,4,2           ## @IRQF_TRIGGER_LOW
	.comm	_IRQF_ONESHOT,4,2               ## @IRQF_ONESHOT
L_.str.4:                               ## @.str.4
	.asciz	"egalax_ts"

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

	.no_dead_strip	_egalax_ts_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function egalax_ts_probe
_egalax_ts_probe:                       ; @egalax_ts_probe
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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, #16
	bl	_devm_kzalloc
	cbz	x0, LBB0_5
; %bb.1:
	mov	x20, x0
	mov	x0, x19
	bl	_devm_input_allocate_device
	cbz	x0, LBB0_5
; %bb.2:
	mov	x21, x0
	stp	x0, x19, [x20]
	mov	x0, x19
	bl	_egalax_wake_up_device
	cbz	w0, LBB0_7
; %bb.3:
	mov	x22, x0
Lloh3:
	adrp	x1, l_.str.1@PAGE
Lloh4:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_4:
	mov	x0, x19
	bl	_dev_err
	b	LBB0_6
LBB0_5:
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_err
Lloh7:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_6:
	mov	x0, x22
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_7:
	mov	x0, x19
	bl	_egalax_firmware_version
	tbnz	w0, #31, LBB0_10
; %bb.8:
Lloh10:
	adrp	x8, l_.str.3@PAGE
Lloh11:
	add	x8, x8, l_.str.3@PAGEOFF
	str	x8, [x21]
Lloh12:
	adrp	x8, _BUS_I2C@GOTPAGE
Lloh13:
	ldr	x8, [x8, _BUS_I2C@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	str	w8, [x21, #16]
Lloh15:
	adrp	x8, _EV_ABS@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EV_ABS@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	ldr	w1, [x21, #12]
	bl	___set_bit
Lloh18:
	adrp	x8, _EV_KEY@GOTPAGE
Lloh19:
	ldr	x8, [x8, _EV_KEY@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	ldr	w1, [x21, #12]
	bl	___set_bit
Lloh21:
	adrp	x8, _BTN_TOUCH@GOTPAGE
Lloh22:
	ldr	x8, [x8, _BTN_TOUCH@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
	ldr	w1, [x21, #8]
	bl	___set_bit
Lloh24:
	adrp	x8, _ABS_X@GOTPAGE
Lloh25:
	ldr	x8, [x8, _ABS_X@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
Lloh27:
	adrp	x22, _EGALAX_MAX_X@GOTPAGE
Lloh28:
	ldr	x22, [x22, _EGALAX_MAX_X@GOTPAGEOFF]
	ldr	w3, [x22]
	mov	x0, x21
	mov	w2, #0
	mov	w4, #0
	mov	w5, #0
	bl	_input_set_abs_params
Lloh29:
	adrp	x8, _ABS_Y@GOTPAGE
Lloh30:
	ldr	x8, [x8, _ABS_Y@GOTPAGEOFF]
Lloh31:
	ldr	w1, [x8]
Lloh32:
	adrp	x23, _EGALAX_MAX_Y@GOTPAGE
Lloh33:
	ldr	x23, [x23, _EGALAX_MAX_Y@GOTPAGEOFF]
	ldr	w3, [x23]
	mov	x0, x21
	mov	w2, #0
	mov	w4, #0
	mov	w5, #0
	bl	_input_set_abs_params
Lloh34:
	adrp	x8, _ABS_MT_POSITION_X@GOTPAGE
Lloh35:
	ldr	x8, [x8, _ABS_MT_POSITION_X@GOTPAGEOFF]
Lloh36:
	ldr	w1, [x8]
	ldr	w3, [x22]
	mov	x0, x21
	mov	w2, #0
	mov	w4, #0
	mov	w5, #0
	bl	_input_set_abs_params
Lloh37:
	adrp	x8, _ABS_MT_POSITION_Y@GOTPAGE
Lloh38:
	ldr	x8, [x8, _ABS_MT_POSITION_Y@GOTPAGEOFF]
Lloh39:
	ldr	w1, [x8]
	ldr	w3, [x23]
	mov	x0, x21
	mov	w2, #0
	mov	w4, #0
	mov	w5, #0
	bl	_input_set_abs_params
Lloh40:
	adrp	x8, _MAX_SUPPORT_POINTS@GOTPAGE
Lloh41:
	ldr	x8, [x8, _MAX_SUPPORT_POINTS@GOTPAGEOFF]
Lloh42:
	ldr	w1, [x8]
	mov	x0, x21
	mov	w2, #0
	bl	_input_mt_init_slots
	ldr	w1, [x19, #4]
Lloh43:
	adrp	x8, _egalax_ts_interrupt@GOTPAGE
Lloh44:
	ldr	x8, [x8, _egalax_ts_interrupt@GOTPAGEOFF]
Lloh45:
	adrp	x9, _IRQF_TRIGGER_LOW@GOTPAGE
Lloh46:
	ldr	x9, [x9, _IRQF_TRIGGER_LOW@GOTPAGEOFF]
Lloh47:
	ldr	w3, [x8]
Lloh48:
	ldr	w8, [x9]
Lloh49:
	adrp	x9, _IRQF_ONESHOT@GOTPAGE
Lloh50:
	ldr	x9, [x9, _IRQF_ONESHOT@GOTPAGEOFF]
Lloh51:
	ldr	w9, [x9]
	orr	w4, w9, w8
Lloh52:
	adrp	x5, l_.str.4@PAGE
Lloh53:
	add	x5, x5, l_.str.4@PAGEOFF
	mov	x0, x19
	mov	x2, #0
	mov	x6, x20
	bl	_devm_request_threaded_irq
	tbnz	w0, #31, LBB0_11
; %bb.9:
	ldr	x0, [x20]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_input_register_device
LBB0_10:
	mov	x22, x0
Lloh54:
	adrp	x1, l_.str.2@PAGE
Lloh55:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_4
LBB0_11:
	mov	x22, x0
Lloh56:
	adrp	x1, l_.str.5@PAGE
Lloh57:
	add	x1, x1, l_.str.5@PAGEOFF
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh48
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh47
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh54, Lloh55
	.loh AdrpAdd	Lloh56, Lloh57
	.cfi_endproc
                                        ; -- End function
	.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 wake up the controller\n"

l_.str.2:                               ; @.str.2
	.asciz	"Failed to read firmware version\n"

l_.str.3:                               ; @.str.3
	.asciz	"EETI eGalax Touch Screen"

	.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	_EGALAX_MAX_X,4,2               ; @EGALAX_MAX_X
	.comm	_ABS_Y,4,2                      ; @ABS_Y
	.comm	_EGALAX_MAX_Y,4,2               ; @EGALAX_MAX_Y
	.comm	_ABS_MT_POSITION_X,4,2          ; @ABS_MT_POSITION_X
	.comm	_ABS_MT_POSITION_Y,4,2          ; @ABS_MT_POSITION_Y
	.comm	_MAX_SUPPORT_POINTS,4,2         ; @MAX_SUPPORT_POINTS
	.comm	_egalax_ts_interrupt,4,2        ; @egalax_ts_interrupt
	.comm	_IRQF_TRIGGER_LOW,4,2           ; @IRQF_TRIGGER_LOW
	.comm	_IRQF_ONESHOT,4,2               ; @IRQF_ONESHOT
l_.str.4:                               ; @.str.4
	.asciz	"egalax_ts"

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

	.no_dead_strip	_egalax_ts_probe
.subsections_via_symbols
