	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ucb1x00_thread
_ucb1x00_thread:                        ## @ucb1x00_thread
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	_wait@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	movq	_current@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_DECLARE_WAITQUEUE
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_set_freezable
	leaq	8(%rbx), %rdi
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	movq	%r14, %rsi
	callq	_add_wait_queue
	leaq	-48(%rbp), %rdi
	callq	_kthread_freezable_should_stop
	testl	%eax, %eax
	je	LBB0_1
LBB0_12:
	movq	_wait@GOTPCREL(%rip), %rsi
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_remove_wait_queue
	movq	$0, (%rbx)
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	leaq	24(%rbx), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	16(%rbx), %rdi
	callq	_ucb1x00_disable
	testl	%r15d, %r15d
	je	LBB0_9
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	_TASK_INTERRUPTIBLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_set_current_state
	movq	_HZ@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	imulq	$1374389535, %rax, %rax         ## imm = 0x51EB851F
	movq	%rax, %rcx
	shrq	$63, %rcx
	sarq	$37, %rax
	addl	%ecx, %eax
	movslq	%eax, %rdi
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	callq	_schedule_timeout
	leaq	-48(%rbp), %rdi
	callq	_kthread_freezable_should_stop
	testl	%eax, %eax
	jne	LBB0_12
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	$0, -48(%rbp)
	movl	$1, %eax
	cmovnel	%eax, %r15d
	movq	16(%rbx), %rdi
	callq	_ucb1x00_adc_enable
	movq	%rbx, %rdi
	callq	_ucb1x00_ts_read_xpos
	movl	%eax, %r13d
	movq	%rbx, %rdi
	callq	_ucb1x00_ts_read_ypos
	movl	%eax, %r14d
	movq	%rbx, %rdi
	callq	_ucb1x00_ts_read_pressure
	movl	%eax, %r12d
	movq	%rbx, %rdi
	callq	_ucb1x00_ts_mode_int
	movq	16(%rbx), %rdi
	callq	_ucb1x00_adc_disable
	movl	$10, %edi
	callq	_msleep
	movq	16(%rbx), %rdi
	callq	_ucb1x00_enable
	movq	%rbx, %rdi
	callq	_ucb1x00_ts_pen_down
	testq	%rax, %rax
	je	LBB0_8
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_TASK_INTERRUPTIBLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_set_current_state
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_spin_lock_irq
	cmpq	$0, 32(%rbx)
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	$0, 32(%rbx)
	movq	16(%rbx), %rax
	movq	_UCB_IRQ_TSPX@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdi
	addq	(%rax), %rdi
	callq	_enable_irq
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_spin_unlock_irq
	movq	16(%rbx), %rdi
	callq	_ucb1x00_disable
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	callq	_ucb1x00_ts_event_release
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	_MAX_SCHEDULE_TIMEOUT@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_11
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	movl	%r12d, %esi
	movl	%r13d, %edx
	movl	%r14d, %ecx
	callq	_ucb1x00_ts_evt_add
	movl	$1, -44(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_wait,4,2                       ## @wait
	.comm	_current,4,2                    ## @current
	.comm	_TASK_INTERRUPTIBLE,4,2         ## @TASK_INTERRUPTIBLE
	.comm	_UCB_IRQ_TSPX,8,3               ## @UCB_IRQ_TSPX
	.comm	_MAX_SCHEDULE_TIMEOUT,8,3       ## @MAX_SCHEDULE_TIMEOUT
	.comm	_HZ,4,2                         ## @HZ
	.no_dead_strip	_ucb1x00_thread
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ucb1x00_thread
_ucb1x00_thread:                        ; @ucb1x00_thread
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
Lloh0:
	adrp	x21, _wait@GOTPAGE
Lloh1:
	ldr	x21, [x21, _wait@GOTPAGEOFF]
	ldr	w0, [x21]
Lloh2:
	adrp	x8, _current@GOTPAGE
Lloh3:
	ldr	x8, [x8, _current@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	bl	_DECLARE_WAITQUEUE
	bl	_set_freezable
	add	x20, x19, #8
	mov	x0, x20
	mov	x1, x21
	bl	_add_wait_queue
	add	x0, sp, #12
	bl	_kthread_freezable_should_stop
	cbz	w0, LBB0_2
LBB0_1:
Lloh5:
	adrp	x1, _wait@GOTPAGE
Lloh6:
	ldr	x1, [x1, _wait@GOTPAGEOFF]
	mov	x0, x20
	bl	_remove_wait_queue
	str	xzr, [x19]
	mov	w0, #0
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_2:
	mov	w25, #0
	mov	w28, #0
Lloh7:
	adrp	x26, _TASK_INTERRUPTIBLE@GOTPAGE
Lloh8:
	ldr	x26, [x26, _TASK_INTERRUPTIBLE@GOTPAGEOFF]
	add	x21, x19, #24
Lloh9:
	adrp	x27, _MAX_SCHEDULE_TIMEOUT@GOTPAGE
Lloh10:
	ldr	x27, [x27, _MAX_SCHEDULE_TIMEOUT@GOTPAGEOFF]
	b	LBB0_6
LBB0_3:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	x0, [x19, #16]
	bl	_ucb1x00_disable
	cbz	w25, LBB0_12
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	w0, [x26]
	bl	_set_current_state
Lloh11:
	adrp	x8, _HZ@GOTPAGE
Lloh12:
	ldr	x8, [x8, _HZ@GOTPAGEOFF]
Lloh13:
	ldrsw	x8, [x8]
	mov	w9, #34079
	movk	w9, #20971, lsl #16
	mul	x8, x8, x9
	lsr	x9, x8, #63
	asr	x8, x8, #37
	add	w8, w8, w9
	sxtw	x0, w8
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	bl	_schedule_timeout
	add	x0, sp, #12
	bl	_kthread_freezable_should_stop
	cbnz	w0, LBB0_1
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [sp, #12]
	cmp	w8, #0
	csinc	w25, w25, wzr, eq
	ldr	x0, [x19, #16]
	bl	_ucb1x00_adc_enable
	mov	x0, x19
	bl	_ucb1x00_ts_read_xpos
	mov	x22, x0
	mov	x0, x19
	bl	_ucb1x00_ts_read_ypos
	mov	x23, x0
	mov	x0, x19
	bl	_ucb1x00_ts_read_pressure
	mov	x24, x0
	mov	x0, x19
	bl	_ucb1x00_ts_mode_int
	ldr	x0, [x19, #16]
	bl	_ucb1x00_adc_disable
	mov	w0, #10
	bl	_msleep
	ldr	x0, [x19, #16]
	bl	_ucb1x00_enable
	mov	x0, x19
	bl	_ucb1x00_ts_pen_down
	cbz	x0, LBB0_3
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w0, [x26]
	bl	_set_current_state
	mov	x0, x21
	bl	_spin_lock_irq
	ldr	x8, [x19, #32]
	cbz	x8, LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	str	xzr, [x19, #32]
	ldr	x8, [x19, #16]
	ldr	x8, [x8]
Lloh14:
	adrp	x9, _UCB_IRQ_TSPX@GOTPAGE
Lloh15:
	ldr	x9, [x9, _UCB_IRQ_TSPX@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_enable_irq
LBB0_9:                                 ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x21
	bl	_spin_unlock_irq
	ldr	x0, [x19, #16]
	bl	_ucb1x00_disable
	cbz	w28, LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x19
	bl	_ucb1x00_ts_event_release
LBB0_11:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	w28, #0
	ldr	x0, [x27]
	b	LBB0_5
LBB0_12:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x19
	mov	x1, x24
	mov	x2, x22
	mov	x3, x23
	bl	_ucb1x00_ts_evt_add
	mov	w28, #1
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_wait,4,2                       ; @wait
	.comm	_current,4,2                    ; @current
	.comm	_TASK_INTERRUPTIBLE,4,2         ; @TASK_INTERRUPTIBLE
	.comm	_UCB_IRQ_TSPX,8,3               ; @UCB_IRQ_TSPX
	.comm	_MAX_SCHEDULE_TIMEOUT,8,3       ; @MAX_SCHEDULE_TIMEOUT
	.comm	_HZ,4,2                         ; @HZ
	.no_dead_strip	_ucb1x00_thread
.subsections_via_symbols
