	.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	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	callq	_input_get_drvdata
	movq	%rax, %rbx
	movq	(%rax), %rdi
	callq	_BUG_ON
	xorl	%eax, %eax
	callq	_machine_is_collie
	testq	%rax, %rax
	jne	LBB0_1
## %bb.2:
	movq	_IRQF_TRIGGER_FALLING@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_IRQF_TRIGGER_RISING@GOTPCREL(%rip), %rax
LBB0_3:
	movq	(%rax), %r14
	movq	$0, 32(%rbx)
	leaq	24(%rbx), %rdi
	callq	_init_waitqueue_head
	movq	8(%rbx), %rax
	movq	_UCB_IRQ_TSPX@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	addq	(%rax), %rdi
	movq	_ucb1x00_ts_irq@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rcx
	movq	%r14, %rdx
	movq	%rbx, %r8
	callq	_request_irq
	testl	%eax, %eax
	js	LBB0_7
## %bb.4:
	movq	8(%rbx), %rdi
	callq	_ucb1x00_adc_enable
	movq	%rbx, %rdi
	callq	_ucb1x00_ts_read_xres
	movl	%eax, 20(%rbx)
	movq	%rbx, %rdi
	callq	_ucb1x00_ts_read_yres
	movl	%eax, 16(%rbx)
	movq	8(%rbx), %rdi
	callq	_ucb1x00_adc_disable
	movq	_ucb1x00_thread@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rdx
	movq	%rbx, %rsi
	callq	_kthread_run
	movq	%rax, (%rbx)
	movq	%rax, %rdi
	callq	_IS_ERR
	testl	%eax, %eax
	je	LBB0_5
## %bb.6:
	movq	8(%rbx), %rax
	movq	(%r15), %rdi
	addq	(%rax), %rdi
	movq	%rbx, %rsi
	callq	_free_irq
	movq	$0, (%rbx)
	movq	_EFAULT@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_7
LBB0_5:
	xorl	%eax, %eax
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IRQF_TRIGGER_RISING,8,3        ## @IRQF_TRIGGER_RISING
	.comm	_IRQF_TRIGGER_FALLING,8,3       ## @IRQF_TRIGGER_FALLING
	.comm	_UCB_IRQ_TSPX,8,3               ## @UCB_IRQ_TSPX
	.comm	_ucb1x00_ts_irq,4,2             ## @ucb1x00_ts_irq
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ucb1x00-ts"

	.comm	_ucb1x00_thread,4,2             ## @ucb1x00_thread
L_.str.1:                               ## @.str.1
	.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	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
	bl	_input_get_drvdata
	mov	x19, x0
	ldr	x0, [x0]
	bl	_BUG_ON
	bl	_machine_is_collie
Lloh0:
	adrp	x8, _IRQF_TRIGGER_FALLING@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IRQF_TRIGGER_FALLING@GOTPAGEOFF]
Lloh2:
	adrp	x9, _IRQF_TRIGGER_RISING@GOTPAGE
Lloh3:
	ldr	x9, [x9, _IRQF_TRIGGER_RISING@GOTPAGEOFF]
	cmp	x0, #0
	csel	x8, x8, x9, eq
	ldr	x20, [x8]
	str	xzr, [x19, #32]
	add	x0, x19, #24
	bl	_init_waitqueue_head
	ldr	x8, [x19, #8]
Lloh4:
	adrp	x21, _UCB_IRQ_TSPX@GOTPAGE
Lloh5:
	ldr	x21, [x21, _UCB_IRQ_TSPX@GOTPAGEOFF]
	ldr	x8, [x8]
	ldr	x9, [x21]
	add	x0, x9, x8
Lloh6:
	adrp	x8, _ucb1x00_ts_irq@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ucb1x00_ts_irq@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
Lloh9:
	adrp	x3, l_.str@PAGE
Lloh10:
	add	x3, x3, l_.str@PAGEOFF
	mov	x2, x20
	mov	x4, x19
	bl	_request_irq
	tbnz	w0, #31, LBB0_3
; %bb.1:
	ldr	x0, [x19, #8]
	bl	_ucb1x00_adc_enable
	mov	x0, x19
	bl	_ucb1x00_ts_read_xres
	str	w0, [x19, #20]
	mov	x0, x19
	bl	_ucb1x00_ts_read_yres
	str	w0, [x19, #16]
	ldr	x0, [x19, #8]
	bl	_ucb1x00_adc_disable
Lloh11:
	adrp	x8, _ucb1x00_thread@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ucb1x00_thread@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
Lloh14:
	adrp	x2, l_.str.1@PAGE
Lloh15:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x1, x19
	bl	_kthread_run
	str	x0, [x19]
	bl	_IS_ERR
	cbz	w0, LBB0_3
; %bb.2:
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	ldr	x9, [x21]
	add	x0, x9, x8
	mov	x1, x19
	bl	_free_irq
	str	xzr, [x19]
Lloh16:
	adrp	x8, _EFAULT@GOTPAGE
Lloh17:
	ldr	x8, [x8, _EFAULT@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_3:
	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 AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_IRQF_TRIGGER_RISING,8,3        ; @IRQF_TRIGGER_RISING
	.comm	_IRQF_TRIGGER_FALLING,8,3       ; @IRQF_TRIGGER_FALLING
	.comm	_UCB_IRQ_TSPX,8,3               ; @UCB_IRQ_TSPX
	.comm	_ucb1x00_ts_irq,4,2             ; @ucb1x00_ts_irq
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ucb1x00-ts"

	.comm	_ucb1x00_thread,4,2             ; @ucb1x00_thread
l_.str.1:                               ; @.str.1
	.asciz	"ktsd"

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