	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ucb1400_ts_thread
_ucb1400_ts_thread:                     ## @ucb1400_ts_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	_current@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movl	$1, -48(%rbp)
	movq	_SCHED_FIFO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-48(%rbp), %rdx
	callq	_sched_setscheduler
	xorl	%eax, %eax
	callq	_set_freezable
	xorl	%eax, %eax
	callq	_kthread_should_stop
	testq	%rax, %rax
	jne	LBB0_15
## %bb.1:
	xorl	%r14d, %r14d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	movzbl	%al, %esi
	movl	%r12d, %edi
	movq	%r15, %rdx
	callq	_wait_event_freezable_timeout
	xorl	%eax, %eax
	callq	_kthread_should_stop
	testq	%rax, %rax
	jne	LBB0_13
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	$0, 16(%rbx)
	cmpq	$0, 24(%rbx)
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	$0, 24(%rbx)
	movq	%rbx, %rdi
	callq	_ucb1400_handle_pending_irq
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	36(%rbx), %edi
	callq	_ucb1400_adc_enable
	movq	%rbx, %rdi
	callq	_ucb1400_ts_read_xpos
	movl	%eax, %r15d
	movq	%rbx, %rdi
	callq	_ucb1400_ts_read_ypos
	movl	%eax, %r12d
	movq	%rbx, %rdi
	callq	_ucb1400_ts_read_pressure
	movl	%eax, %r13d
	movl	36(%rbx), %edi
	callq	_ucb1400_adc_disable
	movl	36(%rbx), %edi
	callq	_ucb1400_ts_mode_int
	movl	$10, %edi
	callq	_msleep
	movl	36(%rbx), %edi
	callq	_ucb1400_ts_pen_up
	testq	%rax, %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	je	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	36(%rbx), %edi
	callq	_ucb1400_ts_irq_enable
	testl	%r14d, %r14d
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	8(%rbx), %edi
	callq	_ucb1400_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_9
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	8(%rbx), %edi
	movl	%r13d, %esi
	movl	%r15d, %edx
	movl	%r12d, %ecx
	callq	_ucb1400_ts_evt_add
	movl	$10, %edi
	callq	_msecs_to_jiffies
	movq	%rax, %r15
	movl	$1, %r14d
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	32(%rbx), %r12d
	movb	$1, %al
	cmpq	$0, 24(%rbx)
	jne	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_2 Depth=1
	cmpq	$0, 16(%rbx)
	jne	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_2 Depth=1
	xorl	%eax, %eax
	callq	_kthread_should_stop
	testq	%rax, %rax
	setne	%al
	jmp	LBB0_12
LBB0_13:
	cmpq	$0, -56(%rbp)                   ## 8-byte Folded Reload
	jne	LBB0_15
## %bb.14:
	movl	8(%rbx), %edi
	callq	_ucb1400_ts_event_release
LBB0_15:
	movq	$0, (%rbx)
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_current,8,3                    ## @current
	.comm	_SCHED_FIFO,4,2                 ## @SCHED_FIFO
	.comm	_MAX_SCHEDULE_TIMEOUT,8,3       ## @MAX_SCHEDULE_TIMEOUT
	.no_dead_strip	_ucb1400_ts_thread
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ucb1400_ts_thread
_ucb1400_ts_thread:                     ; @ucb1400_ts_thread
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, _current@GOTPAGE
Lloh1:
	ldr	x8, [x8, _current@GOTPAGEOFF]
Lloh2:
	ldr	x0, [x8]
	mov	w8, #1
	str	w8, [sp, #8]
Lloh3:
	adrp	x8, _SCHED_FIFO@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SCHED_FIFO@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	add	x2, sp, #8
	bl	_sched_setscheduler
	bl	_set_freezable
	bl	_kthread_should_stop
	cbnz	x0, LBB0_16
; %bb.1:
	mov	w25, #0
Lloh6:
	adrp	x24, _MAX_SCHEDULE_TIMEOUT@GOTPAGE
Lloh7:
	ldr	x24, [x24, _MAX_SCHEDULE_TIMEOUT@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	w1, #1
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x22
	mov	x2, x21
	bl	_wait_event_freezable_timeout
	bl	_kthread_should_stop
	cbnz	x0, LBB0_14
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	str	xzr, [x19, #16]
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	str	xzr, [x19, #24]
	mov	x0, x19
	bl	_ucb1400_handle_pending_irq
LBB0_6:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x19, #36]
	bl	_ucb1400_adc_enable
	mov	x0, x19
	bl	_ucb1400_ts_read_xpos
	mov	x21, x0
	mov	x0, x19
	bl	_ucb1400_ts_read_ypos
	mov	x22, x0
	mov	x0, x19
	bl	_ucb1400_ts_read_pressure
	mov	x23, x0
	ldr	w0, [x19, #36]
	bl	_ucb1400_adc_disable
	ldr	w0, [x19, #36]
	bl	_ucb1400_ts_mode_int
	mov	w0, #10
	bl	_msleep
	ldr	w0, [x19, #36]
	bl	_ucb1400_ts_pen_up
	mov	x20, x0
	cbz	x0, LBB0_10
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x19, #36]
	bl	_ucb1400_ts_irq_enable
	cbz	w25, LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x19, #8]
	bl	_ucb1400_ts_event_release
LBB0_9:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	w25, #0
	ldr	x21, [x24]
	b	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x19, #8]
	mov	x1, x23
	mov	x2, x21
	mov	x3, x22
	bl	_ucb1400_ts_evt_add
	mov	w0, #10
	bl	_msecs_to_jiffies
	mov	x21, x0
	mov	w25, #1
LBB0_11:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w22, [x19, #32]
	ldr	x8, [x19, #24]
	cbnz	x8, LBB0_2
; %bb.12:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x19, #16]
	cbnz	x8, LBB0_2
; %bb.13:                               ;   in Loop: Header=BB0_4 Depth=1
	bl	_kthread_should_stop
	cmp	x0, #0
	cset	w1, ne
	b	LBB0_3
LBB0_14:
	cbnz	x20, LBB0_16
; %bb.15:
	ldr	w0, [x19, #8]
	bl	_ucb1400_ts_event_release
LBB0_16:
	str	xzr, [x19]
	mov	w0, #0
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_current,8,3                    ; @current
	.comm	_SCHED_FIFO,4,2                 ; @SCHED_FIFO
	.comm	_MAX_SCHEDULE_TIMEOUT,8,3       ; @MAX_SCHEDULE_TIMEOUT
	.no_dead_strip	_ucb1400_ts_thread
.subsections_via_symbols
