	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tsc200x_irq_thread
_tsc200x_irq_thread:                    ## @tsc200x_irq_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	%rsi, %rbx
	movl	52(%rsi), %edi
	movq	_TSC200X_REG_X@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_TSC200X_DATA_REGS@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-56(%rbp), %rdx
	callq	_regmap_bulk_read
	movl	%eax, %edi
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_14
## %bb.1:
	movq	_MAX_12BIT@GOTPCREL(%rip), %r14
	movl	(%r14), %eax
	cmpl	%eax, -56(%rbp)
	seta	%cl
	cmpl	%eax, -52(%rbp)
	seta	%al
	orb	%cl, %al
	movzbl	%al, %edi
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_14
## %bb.2:
	cmpl	$0, -48(%rbp)
	sete	%al
	movl	-44(%rbp), %ecx
	cmpl	(%r14), %ecx
	seta	%cl
	orb	%al, %cl
	movzbl	%cl, %edi
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_14
## %bb.3:
	movl	-48(%rbp), %eax
	xorl	%edi, %edi
	cmpl	-44(%rbp), %eax
	setae	%dil
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_14
## %bb.4:
	cmpl	$0, 48(%rbx)
	je	LBB0_6
## %bb.5:
	movl	-56(%rbp), %ecx
	jmp	LBB0_12
LBB0_6:
	movl	(%rbx), %eax
	movl	-56(%rbp), %ecx
	cmpl	%ecx, %eax
	jne	LBB0_12
## %bb.7:
	movl	-52(%rbp), %ecx
	cmpq	%rcx, 8(%rbx)
	jne	LBB0_11
## %bb.8:
	movl	16(%rbx), %ecx
	cmpl	-48(%rbp), %ecx
	jne	LBB0_11
## %bb.9:
	movl	20(%rbx), %edx
	movl	%eax, %ecx
	cmpl	-44(%rbp), %edx
	jne	LBB0_12
	jmp	LBB0_14
LBB0_11:
	movl	%eax, %ecx
LBB0_12:
	movl	%ecx, (%rbx)
	movl	-52(%rbp), %eax
	movq	%rax, 8(%rbx)
	movl	-48(%rbp), %esi
	movl	%esi, 16(%rbx)
	movl	-44(%rbp), %eax
	movl	%eax, 20(%rbx)
	subl	%esi, %eax
	imull	%ecx, %eax
	xorl	%edx, %edx
	divl	%esi
	movl	%eax, %r15d
	imull	24(%rbx), %r15d
	shrl	$12, %r15d
	xorl	%edi, %edi
	cmpl	(%r14), %r15d
	seta	%dil
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_14
## %bb.13:
	leaq	40(%rbx), %r14
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movl	-56(%rbp), %esi
	movl	-52(%rbp), %edx
	movq	%rbx, %rdi
	movl	%r15d, %ecx
	callq	_tsc200x_update_pen_state
	leaq	44(%rbx), %r15
	movq	_jiffies@GOTPCREL(%rip), %r13
	movq	(%r13), %r12
	movq	_TSC200X_PENUP_TIME_MS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_msecs_to_jiffies
	addq	%rax, %r12
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_mod_timer
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
	movq	(%r13), %rax
	movq	%rax, 32(%rbx)
LBB0_14:
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TSC200X_REG_X,4,2              ## @TSC200X_REG_X
	.comm	_TSC200X_DATA_REGS,4,2          ## @TSC200X_DATA_REGS
	.comm	_MAX_12BIT,4,2                  ## @MAX_12BIT
	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_TSC200X_PENUP_TIME_MS,4,2      ## @TSC200X_PENUP_TIME_MS
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.no_dead_strip	_tsc200x_irq_thread
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tsc200x_irq_thread
_tsc200x_irq_thread:                    ; @tsc200x_irq_thread
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x1
	ldr	w0, [x1, #52]
Lloh0:
	adrp	x8, _TSC200X_REG_X@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TSC200X_REG_X@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _TSC200X_DATA_REGS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TSC200X_DATA_REGS@GOTPAGEOFF]
Lloh5:
	ldr	w3, [x8]
	mov	x2, sp
	bl	_regmap_bulk_read
	bl	_unlikely
	cbnz	x0, LBB0_13
; %bb.1:
Lloh6:
	adrp	x21, _MAX_12BIT@GOTPAGE
Lloh7:
	ldr	x21, [x21, _MAX_12BIT@GOTPAGEOFF]
	ldr	w8, [x21]
	ldp	w9, w10, [sp]
	cmp	w9, w8
	ccmp	w10, w8, #2, ls
	cset	w0, hi
	bl	_unlikely
	cbnz	x0, LBB0_13
; %bb.2:
	ldp	w8, w9, [sp, #8]
	cmp	w8, #0
	ldr	w8, [x21]
	ccmp	w9, w8, #2, ne
	cset	w0, hi
	bl	_unlikely
	cbnz	x0, LBB0_13
; %bb.3:
	ldp	w8, w9, [sp, #8]
	cmp	w8, w9
	cset	w0, hs
	bl	_unlikely
	cbnz	x0, LBB0_13
; %bb.4:
	ldr	w8, [x19, #48]
	cbz	w8, LBB0_6
; %bb.5:
	ldr	w8, [sp]
	b	LBB0_11
LBB0_6:
	ldr	w9, [x19]
	ldr	w8, [sp]
	cmp	w9, w8
	b.ne	LBB0_11
; %bb.7:
	ldr	x8, [x19, #8]
	ldr	w10, [sp, #4]
	cmp	x8, x10
	b.ne	LBB0_10
; %bb.8:
	ldr	w8, [x19, #16]
	ldr	w10, [sp, #8]
	cmp	w8, w10
	b.ne	LBB0_10
; %bb.9:
	ldr	w10, [x19, #20]
	ldr	w11, [sp, #12]
	mov	x8, x9
	cmp	w10, w11
	b.ne	LBB0_11
	b	LBB0_13
LBB0_10:
	mov	x8, x9
LBB0_11:
	str	w8, [x19]
	ldp	w9, w10, [sp, #4]
	str	x9, [x19, #8]
	ldr	w9, [sp, #12]
	stp	w10, w9, [x19, #16]
	sub	w9, w9, w10
	mul	w8, w9, w8
	udiv	w8, w8, w10
	ldr	w9, [x19, #24]
	mul	w8, w9, w8
	lsr	w20, w8, #12
	ldr	w8, [x21]
	cmp	w20, w8
	cset	w0, hi
	bl	_unlikely
	cbnz	x0, LBB0_13
; %bb.12:
	add	x21, x19, #40
	mov	x0, x21
	bl	_spin_lock_irqsave
	ldp	w1, w2, [sp]
	mov	x0, x19
	mov	x3, x20
	bl	_tsc200x_update_pen_state
	add	x20, x19, #44
Lloh8:
	adrp	x22, _jiffies@GOTPAGE
Lloh9:
	ldr	x22, [x22, _jiffies@GOTPAGEOFF]
	ldr	x23, [x22]
Lloh10:
	adrp	x8, _TSC200X_PENUP_TIME_MS@GOTPAGE
Lloh11:
	ldr	x8, [x8, _TSC200X_PENUP_TIME_MS@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	bl	_msecs_to_jiffies
	add	x1, x0, x23
	mov	x0, x20
	bl	_mod_timer
	mov	x0, x21
	bl	_spin_unlock_irqrestore
	ldr	x8, [x22]
	str	x8, [x19, #32]
LBB0_13:
Lloh13:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh14:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_TSC200X_REG_X,4,2              ; @TSC200X_REG_X
	.comm	_TSC200X_DATA_REGS,4,2          ; @TSC200X_DATA_REGS
	.comm	_MAX_12BIT,4,2                  ; @MAX_12BIT
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_TSC200X_PENUP_TIME_MS,4,2      ; @TSC200X_PENUP_TIME_MS
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.no_dead_strip	_tsc200x_irq_thread
.subsections_via_symbols
