	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ts_interrupt_main
_ts_interrupt_main:                     ## @ts_interrupt_main
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movl	4(%rdi), %edi
	callq	_IRQ_TO_GPIO
	movl	%eax, %edi
	callq	_GPLR
	movl	%eax, %ebx
	movl	4(%r14), %edi
	callq	_IRQ_TO_GPIO
	movl	%eax, %edi
	callq	_GPIO_bit
	testl	%ebx, %eax
	je	LBB0_1
## %bb.4:
	movl	(%r14), %eax
	leal	-1(%rax), %ecx
	cmpl	$2, %ecx
	jae	LBB0_5
## %bb.9:
	leaq	16(%r14), %rdi
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	_HZ@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	imulq	$1374389535, %rcx, %rcx         ## imm = 0x51EB851F
	movq	%rcx, %rdx
	shrq	$63, %rdx
	sarq	$37, %rcx
	addl	%edx, %ecx
	movslq	%ecx, %rsi
	addq	(%rax), %rsi
	callq	_mod_timer
	incl	(%r14)
	jmp	LBB0_8
LBB0_1:
	movl	4(%r14), %edi
	movq	_IRQ_TYPE_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_set_irq_type
	movq	%r14, %rdi
	callq	_read_xydata
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movl	$1, (%r14)
	movq	%r14, %rdi
	callq	_new_data
LBB0_3:
	addq	$16, %r14
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	_HZ@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	imulq	$1374389535, %rcx, %rcx         ## imm = 0x51EB851F
	movq	%rcx, %rdx
	shrq	$63, %rdx
	sarq	$37, %rcx
	addl	%edx, %ecx
	movslq	%ecx, %rsi
	addq	(%rax), %rsi
	movq	%r14, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_mod_timer                      ## TAILCALL
LBB0_5:
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	movq	$0, 8(%r14)
	movq	%r14, %rdi
	callq	_new_data
LBB0_7:
	movl	4(%r14), %edi
	movq	_IRQ_TYPE_EDGE_FALLING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_set_irq_type
	movl	$0, (%r14)
LBB0_8:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IRQ_TYPE_NONE,4,2              ## @IRQ_TYPE_NONE
	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_HZ,4,2                         ## @HZ
	.comm	_IRQ_TYPE_EDGE_FALLING,4,2      ## @IRQ_TYPE_EDGE_FALLING
	.no_dead_strip	_ts_interrupt_main
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ts_interrupt_main
_ts_interrupt_main:                     ; @ts_interrupt_main
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	w0, [x0, #4]
	bl	_IRQ_TO_GPIO
	bl	_GPLR
	mov	x20, x0
	ldr	w0, [x19, #4]
	bl	_IRQ_TO_GPIO
	bl	_GPIO_bit
	tst	w0, w20
	b.eq	LBB0_3
; %bb.1:
	ldr	w8, [x19]
	sub	w9, w8, #1
	cmp	w9, #2
	b.hs	LBB0_6
; %bb.2:
	add	x0, x19, #16
Lloh0:
	adrp	x8, _jiffies@GOTPAGE
Lloh1:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _HZ@GOTPAGE
Lloh4:
	ldr	x9, [x9, _HZ@GOTPAGEOFF]
Lloh5:
	ldrsw	x9, [x9]
	mov	w10, #34079
	movk	w10, #20971, lsl #16
	mul	x9, x9, x10
	lsr	x10, x9, #63
	asr	x9, x9, #37
	add	w9, w9, w10
	add	x1, x8, w9, sxtw
	bl	_mod_timer
	ldr	w8, [x19]
	add	w8, w8, #1
	str	w8, [x19]
	b	LBB0_9
LBB0_3:
	ldr	w0, [x19, #4]
Lloh6:
	adrp	x8, _IRQ_TYPE_NONE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IRQ_TYPE_NONE@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	bl	_set_irq_type
	mov	x0, x19
	bl	_read_xydata
	cbz	x0, LBB0_5
; %bb.4:
	mov	w8, #1
	str	w8, [x19]
	mov	x0, x19
	bl	_new_data
LBB0_5:
	add	x0, x19, #16
Lloh9:
	adrp	x8, _jiffies@GOTPAGE
Lloh10:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
Lloh12:
	adrp	x9, _HZ@GOTPAGE
Lloh13:
	ldr	x9, [x9, _HZ@GOTPAGEOFF]
Lloh14:
	ldrsw	x9, [x9]
	mov	w10, #34079
	movk	w10, #20971, lsl #16
	mul	x9, x9, x10
	lsr	x10, x9, #63
	asr	x9, x9, #37
	add	w9, w9, w10
	add	x1, x8, w9, sxtw
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_mod_timer
LBB0_6:
	cbz	w8, LBB0_8
; %bb.7:
	str	xzr, [x19, #8]
	mov	x0, x19
	bl	_new_data
LBB0_8:
	ldr	w0, [x19, #4]
Lloh15:
	adrp	x8, _IRQ_TYPE_EDGE_FALLING@GOTPAGE
Lloh16:
	ldr	x8, [x8, _IRQ_TYPE_EDGE_FALLING@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	bl	_set_irq_type
	str	wzr, [x19]
LBB0_9:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_IRQ_TYPE_NONE,4,2              ; @IRQ_TYPE_NONE
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_HZ,4,2                         ; @HZ
	.comm	_IRQ_TYPE_EDGE_FALLING,4,2      ; @IRQ_TYPE_EDGE_FALLING
	.no_dead_strip	_ts_interrupt_main
.subsections_via_symbols
