	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ucb1x00_ts_open
_ucb1x00_ts_open:                       ## @ucb1x00_ts_open
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	callq	_input_get_drvdata
	movq	%rax, %rbx
	movq	(%rax), %rdi
	callq	_BUG_ON
	leaq	20(%rbx), %rdi
	callq	_init_waitqueue_head
	movl	8(%rbx), %edi
	movq	_UCB_IRQ_TSPX@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	_ucb1x00_ts_irq@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rcx
	callq	_ucb1x00_hook_irq
	testl	%eax, %eax
	js	LBB0_4
## %bb.1:
	movl	8(%rbx), %edi
	callq	_ucb1x00_adc_enable
	movq	%rbx, %rdi
	callq	_ucb1x00_ts_read_xres
	movl	%eax, 16(%rbx)
	movq	%rbx, %rdi
	callq	_ucb1x00_ts_read_yres
	movl	%eax, 12(%rbx)
	movl	8(%rbx), %edi
	callq	_ucb1x00_adc_disable
	movq	_ucb1x00_thread@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rdx
	movq	%rbx, %rsi
	callq	_kthread_run
	movq	%rax, (%rbx)
	movq	%rax, %rdi
	callq	_IS_ERR
	testl	%eax, %eax
	je	LBB0_2
## %bb.3:
	movl	8(%rbx), %edi
	movl	(%r14), %esi
	movq	%rbx, %rdx
	callq	_ucb1x00_free_irq
	movq	$0, (%rbx)
	movq	_EFAULT@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_4
LBB0_2:
	xorl	%eax, %eax
LBB0_4:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_UCB_IRQ_TSPX,4,2               ## @UCB_IRQ_TSPX
	.comm	_ucb1x00_ts_irq,4,2             ## @ucb1x00_ts_irq
	.comm	_ucb1x00_thread,4,2             ## @ucb1x00_thread
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ktsd"

	.comm	_EFAULT,4,2                     ## @EFAULT
	.no_dead_strip	_ucb1x00_ts_open
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ucb1x00_ts_open
_ucb1x00_ts_open:                       ; @ucb1x00_ts_open
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	bl	_input_get_drvdata
	mov	x19, x0
	ldr	x0, [x0]
	bl	_BUG_ON
	add	x0, x19, #20
	bl	_init_waitqueue_head
	ldr	w0, [x19, #8]
Lloh0:
	adrp	x20, _UCB_IRQ_TSPX@GOTPAGE
Lloh1:
	ldr	x20, [x20, _UCB_IRQ_TSPX@GOTPAGEOFF]
	ldr	w1, [x20]
Lloh2:
	adrp	x8, _ucb1x00_ts_irq@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ucb1x00_ts_irq@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	mov	x3, x19
	bl	_ucb1x00_hook_irq
	tbnz	w0, #31, LBB0_3
; %bb.1:
	ldr	w0, [x19, #8]
	bl	_ucb1x00_adc_enable
	mov	x0, x19
	bl	_ucb1x00_ts_read_xres
	str	w0, [x19, #16]
	mov	x0, x19
	bl	_ucb1x00_ts_read_yres
	str	w0, [x19, #12]
	ldr	w0, [x19, #8]
	bl	_ucb1x00_adc_disable
Lloh5:
	adrp	x8, _ucb1x00_thread@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ucb1x00_thread@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
Lloh8:
	adrp	x2, l_.str@PAGE
Lloh9:
	add	x2, x2, l_.str@PAGEOFF
	mov	x1, x19
	bl	_kthread_run
	str	x0, [x19]
	bl	_IS_ERR
	cbz	w0, LBB0_3
; %bb.2:
	ldr	w0, [x19, #8]
	ldr	w1, [x20]
	mov	x2, x19
	bl	_ucb1x00_free_irq
	str	xzr, [x19]
Lloh10:
	adrp	x8, _EFAULT@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EFAULT@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_UCB_IRQ_TSPX,4,2               ; @UCB_IRQ_TSPX
	.comm	_ucb1x00_ts_irq,4,2             ; @ucb1x00_ts_irq
	.comm	_ucb1x00_thread,4,2             ; @ucb1x00_thread
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ktsd"

	.comm	_EFAULT,4,2                     ; @EFAULT
	.no_dead_strip	_ucb1x00_ts_open
.subsections_via_symbols
