	.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
	pushq	%rax
	.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), %r15
	movl	(%r15), %edi
	movq	_current@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_DECLARE_WAITQUEUE
	xorl	%eax, %eax
	callq	_set_freezable
	leaq	8(%rbx), %rdi
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movq	%r15, %rsi
	callq	_add_wait_queue
	xorl	%eax, %eax
	callq	_kthread_should_stop
	testl	%eax, %eax
	je	LBB0_1
LBB0_12:
	movq	_wait@GOTPCREL(%rip), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_remove_wait_queue
	movq	$0, (%rbx)
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	xorl	%r14d, %r14d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	24(%rbx), %edi
	callq	_ucb1x00_disable
	cmpq	$0, 16(%rbx)
	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, %r15
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	xorl	%eax, %eax
	callq	_try_to_freeze
	movq	%r15, %rdi
	callq	_schedule_timeout
	xorl	%eax, %eax
	callq	_kthread_should_stop
	testl	%eax, %eax
	jne	LBB0_12
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	$0, 16(%rbx)
	movl	24(%rbx), %edi
	callq	_ucb1x00_adc_enable
	movq	%rbx, %rdi
	callq	_ucb1x00_ts_read_xpos
	movl	%eax, %r15d
	movq	%rbx, %rdi
	callq	_ucb1x00_ts_read_ypos
	movl	%eax, %r12d
	movq	%rbx, %rdi
	callq	_ucb1x00_ts_read_pressure
	movl	%eax, %r13d
	movq	%rbx, %rdi
	callq	_ucb1x00_ts_mode_int
	movl	24(%rbx), %edi
	callq	_ucb1x00_adc_disable
	movl	$10, %edi
	callq	_msleep
	movl	24(%rbx), %edi
	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
	movl	24(%rbx), %r15d
	movq	_UCB_IRQ_TSPX@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	xorl	%eax, %eax
	callq	_machine_is_collie
	movq	_UCB_RISING@GOTPCREL(%rip), %rcx
	testq	%rax, %rax
	jne	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_UCB_FALLING@GOTPCREL(%rip), %rcx
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	(%rcx), %edx
	movl	%r15d, %edi
	movl	%r12d, %esi
	callq	_ucb1x00_enable_irq
	movl	24(%rbx), %edi
	callq	_ucb1x00_disable
	testl	%r14d, %r14d
	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), %r15
	xorl	%r14d, %r14d
	jmp	LBB0_11
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	movl	%r13d, %esi
	movl	%r15d, %edx
	movl	%r12d, %ecx
	callq	_ucb1x00_ts_evt_add
	movl	$1, %r14d
	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,4,2               ## @UCB_IRQ_TSPX
	.comm	_UCB_RISING,4,2                 ## @UCB_RISING
	.comm	_UCB_FALLING,4,2                ## @UCB_FALLING
	.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	x0, x19, #8
	str	x0, [sp, #8]                    ; 8-byte Folded Spill
	mov	x1, x21
	bl	_add_wait_queue
	bl	_kthread_should_stop
	cbz	w0, LBB0_2
LBB0_1:
Lloh5:
	adrp	x1, _wait@GOTPAGE
Lloh6:
	ldr	x1, [x1, _wait@GOTPAGEOFF]
	ldr	x0, [sp, #8]                    ; 8-byte Folded Reload
	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	w20, #0
Lloh7:
	adrp	x24, _TASK_INTERRUPTIBLE@GOTPAGE
Lloh8:
	ldr	x24, [x24, _TASK_INTERRUPTIBLE@GOTPAGEOFF]
Lloh9:
	adrp	x27, _UCB_IRQ_TSPX@GOTPAGE
Lloh10:
	ldr	x27, [x27, _UCB_IRQ_TSPX@GOTPAGEOFF]
Lloh11:
	adrp	x28, _UCB_RISING@GOTPAGE
Lloh12:
	ldr	x28, [x28, _UCB_RISING@GOTPAGEOFF]
Lloh13:
	adrp	x25, _UCB_FALLING@GOTPAGE
Lloh14:
	ldr	x25, [x25, _UCB_FALLING@GOTPAGEOFF]
Lloh15:
	adrp	x26, _MAX_SCHEDULE_TIMEOUT@GOTPAGE
Lloh16:
	ldr	x26, [x26, _MAX_SCHEDULE_TIMEOUT@GOTPAGEOFF]
	b	LBB0_6
LBB0_3:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	w0, [x19, #24]
	bl	_ucb1x00_disable
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_10
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	w0, [x24]
	bl	_set_current_state
Lloh17:
	adrp	x8, _HZ@GOTPAGE
Lloh18:
	ldr	x8, [x8, _HZ@GOTPAGEOFF]
Lloh19:
	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	x21, w8
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	bl	_try_to_freeze
	mov	x0, x21
	bl	_schedule_timeout
	bl	_kthread_should_stop
	cbnz	w0, LBB0_1
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	str	xzr, [x19, #16]
	ldr	w0, [x19, #24]
	bl	_ucb1x00_adc_enable
	mov	x0, x19
	bl	_ucb1x00_ts_read_xpos
	mov	x21, x0
	mov	x0, x19
	bl	_ucb1x00_ts_read_ypos
	mov	x22, x0
	mov	x0, x19
	bl	_ucb1x00_ts_read_pressure
	mov	x23, x0
	mov	x0, x19
	bl	_ucb1x00_ts_mode_int
	ldr	w0, [x19, #24]
	bl	_ucb1x00_adc_disable
	mov	w0, #10
	bl	_msleep
	ldr	w0, [x19, #24]
	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, [x24]
	bl	_set_current_state
	ldr	w21, [x19, #24]
	ldr	w22, [x27]
	bl	_machine_is_collie
	cmp	x0, #0
	csel	x8, x25, x28, eq
	ldr	w2, [x8]
	mov	x0, x21
	mov	x1, x22
	bl	_ucb1x00_enable_irq
	ldr	w0, [x19, #24]
	bl	_ucb1x00_disable
	cbz	w20, LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x19
	bl	_ucb1x00_ts_event_release
LBB0_9:                                 ;   in Loop: Header=BB0_6 Depth=1
	mov	w20, #0
	ldr	x21, [x26]
	b	LBB0_5
LBB0_10:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x19
	mov	x1, x23
	mov	x2, x21
	mov	x3, x22
	bl	_ucb1x00_ts_evt_add
	mov	w20, #1
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.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,4,2               ; @UCB_IRQ_TSPX
	.comm	_UCB_RISING,4,2                 ; @UCB_RISING
	.comm	_UCB_FALLING,4,2                ; @UCB_FALLING
	.comm	_MAX_SCHEDULE_TIMEOUT,8,3       ; @MAX_SCHEDULE_TIMEOUT
	.comm	_HZ,4,2                         ; @HZ
	.no_dead_strip	_ucb1x00_thread
.subsections_via_symbols
