	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function migor_ts_probe
_migor_ts_probe:                        ## @migor_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), %esi
	movl	$24, %edi
	callq	_kzalloc
	movq	%rax, %r14
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	callq	_input_allocate_device
	movq	%rax, %rbx
	testq	%r14, %r14
	je	LBB0_2
## %bb.1:
	testq	%rbx, %rbx
	je	LBB0_2
## %bb.3:
	movq	%r15, 16(%r14)
	movq	%rbx, 8(%r14)
	movl	8(%r15), %eax
	movl	%eax, (%r14)
	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	32(%rbx), %esi
	callq	___set_bit
	movq	_ABS_X@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$95, %edx
	movl	$955, %ecx                      ## imm = 0x3BB
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_input_set_abs_params
	movq	_ABS_Y@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$85, %edx
	movl	$935, %ecx                      ## imm = 0x3A7
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_input_set_abs_params
	movl	4(%r15), %eax
	movl	%eax, 28(%rbx)
	movq	_BUS_I2C@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%rbx)
	movq	%r15, 16(%rbx)
	movq	_migor_ts_open@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%rbx)
	movq	_migor_ts_close@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_input_set_drvdata
	movl	(%r14), %edi
	movq	_migor_ts_isr@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_IRQF_TRIGGER_LOW@GOTPCREL(%rip), %rax
	movq	_IRQF_ONESHOT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movl	4(%r15), %r8d
	xorl	%esi, %esi
	movq	%r14, %r9
	callq	_request_threaded_irq
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	movl	%eax, %r12d
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_err
	jmp	LBB0_8
LBB0_2:
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_err
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %r12d
LBB0_8:
	movq	%rbx, %rdi
	callq	_input_free_device
	movq	%r14, %rdi
	callq	_kfree
LBB0_9:
	movl	%r12d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	%rbx, %rdi
	callq	_input_register_device
	testl	%eax, %eax
	je	LBB0_6
## %bb.7:
	movl	%eax, %r12d
	movl	(%r14), %edi
	movq	%r14, %rsi
	callq	_free_irq
	jmp	LBB0_8
LBB0_6:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_i2c_set_clientdata
	movq	%r15, %rdi
	movl	$1, %esi
	callq	_device_init_wakeup
	xorl	%r12d, %r12d
	jmp	LBB0_9
	.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
	.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	_ABS_Y,4,2                      ## @ABS_Y
	.comm	_BUS_I2C,4,2                    ## @BUS_I2C
	.comm	_migor_ts_open,4,2              ## @migor_ts_open
	.comm	_migor_ts_close,4,2             ## @migor_ts_close
	.comm	_migor_ts_isr,4,2               ## @migor_ts_isr
	.comm	_IRQF_TRIGGER_LOW,4,2           ## @IRQF_TRIGGER_LOW
	.comm	_IRQF_ONESHOT,4,2               ## @IRQF_ONESHOT
L_.str.1:                               ## @.str.1
	.asciz	"Unable to request touchscreen IRQ.\n"

	.no_dead_strip	_migor_ts_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function migor_ts_probe
_migor_ts_probe:                        ; @migor_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	x21, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #24
	bl	_kzalloc
	mov	x19, x0
	bl	_input_allocate_device
	mov	x20, x0
	cmp	x19, #0
	ccmp	x0, #0, #4, ne
	b.ne	LBB0_2
; %bb.1:
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_dev_err
Lloh5:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_6
LBB0_2:
	stp	x20, x21, [x19, #8]
	ldr	w8, [x21, #8]
	str	w8, [x19]
Lloh8:
	adrp	x8, _EV_KEY@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EV_KEY@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	bl	_BIT_MASK
	mov	x22, x0
Lloh11:
	adrp	x8, _EV_ABS@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EV_ABS@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	bl	_BIT_MASK
	orr	w8, w0, w22
	ldr	x9, [x20]
	str	w8, [x9]
Lloh14:
	adrp	x8, _BTN_TOUCH@GOTPAGE
Lloh15:
	ldr	x8, [x8, _BTN_TOUCH@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	ldr	w1, [x20, #32]
	bl	___set_bit
Lloh17:
	adrp	x8, _ABS_X@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ABS_X@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #95
	mov	w3, #955
	mov	w4, #0
	mov	w5, #0
	bl	_input_set_abs_params
Lloh20:
	adrp	x8, _ABS_Y@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ABS_Y@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #85
	mov	w3, #935
	mov	w4, #0
	mov	w5, #0
	bl	_input_set_abs_params
	ldr	w8, [x21, #4]
Lloh23:
	adrp	x9, _BUS_I2C@GOTPAGE
Lloh24:
	ldr	x9, [x9, _BUS_I2C@GOTPAGEOFF]
Lloh25:
	ldr	w9, [x9]
	stp	w9, w8, [x20, #24]
	str	x21, [x20, #16]
Lloh26:
	adrp	x8, _migor_ts_open@GOTPAGE
Lloh27:
	ldr	x8, [x8, _migor_ts_open@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
Lloh29:
	adrp	x9, _migor_ts_close@GOTPAGE
Lloh30:
	ldr	x9, [x9, _migor_ts_close@GOTPAGEOFF]
Lloh31:
	ldr	w9, [x9]
	stp	w9, w8, [x20, #8]
	mov	x0, x20
	mov	x1, x19
	bl	_input_set_drvdata
	ldr	w0, [x19]
Lloh32:
	adrp	x8, _migor_ts_isr@GOTPAGE
Lloh33:
	ldr	x8, [x8, _migor_ts_isr@GOTPAGEOFF]
Lloh34:
	ldr	w2, [x8]
Lloh35:
	adrp	x8, _IRQF_TRIGGER_LOW@GOTPAGE
Lloh36:
	ldr	x8, [x8, _IRQF_TRIGGER_LOW@GOTPAGEOFF]
Lloh37:
	ldr	w8, [x8]
Lloh38:
	adrp	x9, _IRQF_ONESHOT@GOTPAGE
Lloh39:
	ldr	x9, [x9, _IRQF_ONESHOT@GOTPAGEOFF]
Lloh40:
	ldr	w9, [x9]
	orr	w3, w9, w8
	ldr	w4, [x21, #4]
	mov	x1, #0
	mov	x5, x19
	bl	_request_threaded_irq
	cbz	w0, LBB0_4
; %bb.3:
	mov	x22, x0
Lloh41:
	adrp	x1, l_.str.1@PAGE
Lloh42:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x21
	bl	_dev_err
	b	LBB0_6
LBB0_4:
	mov	x0, x20
	bl	_input_register_device
	mov	x22, x0
	cbz	w0, LBB0_8
; %bb.5:
	ldr	w0, [x19]
	mov	x1, x19
	bl	_free_irq
LBB0_6:
	mov	x0, x20
	bl	_input_free_device
	mov	x0, x19
	bl	_kfree
LBB0_7:
	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_8:
	mov	x0, x21
	mov	x1, x19
	bl	_i2c_set_clientdata
	mov	x0, x21
	mov	w1, #1
	bl	_device_init_wakeup
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.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 AdrpAdd	Lloh41, Lloh42
	.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
	.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	_ABS_Y,4,2                      ; @ABS_Y
	.comm	_BUS_I2C,4,2                    ; @BUS_I2C
	.comm	_migor_ts_open,4,2              ; @migor_ts_open
	.comm	_migor_ts_close,4,2             ; @migor_ts_close
	.comm	_migor_ts_isr,4,2               ; @migor_ts_isr
	.comm	_IRQF_TRIGGER_LOW,4,2           ; @IRQF_TRIGGER_LOW
	.comm	_IRQF_ONESHOT,4,2               ; @IRQF_ONESHOT
l_.str.1:                               ; @.str.1
	.asciz	"Unable to request touchscreen IRQ.\n"

	.no_dead_strip	_migor_ts_probe
.subsections_via_symbols
