	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tgfx_timer
_tgfx_timer:                            ## @tgfx_timer
	.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	_timer@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rdi, %rsi
	callq	_from_timer
	movq	%rax, %r14
	xorl	%r13d, %r13d
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_1 Depth=1
	incq	%r13
	cmpq	$7, %r13
	je	LBB0_4
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r14), %eax
	movl	$1, %esi
	movl	%r13d, %ecx
	shll	%cl, %esi
	btl	%r13d, %eax
	jae	LBB0_3
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	8(%r14), %rax
	movq	16(%r14), %rcx
	movq	(%rcx,%r13,8), %r15
	movl	(%rax), %edi
	notl	%esi
	callq	_parport_write_data
	movq	8(%r14), %rax
	movl	(%rax), %edi
	callq	_parport_read_status
	movl	%eax, %ebx
	xorl	$127, %ebx
	movq	8(%r14), %rax
	movl	(%rax), %edi
	callq	_parport_read_control
	movl	%eax, %r12d
	xorl	$4, %r12d
	movq	_ABS_X@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	movq	_TGFX_RIGHT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%ebx, %eax
	setne	%dl
	movq	_TGFX_LEFT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%ebx, %eax
	cmpl	$1, %eax
	adcl	$-1, %edx
	movq	%r15, %rdi
	callq	_input_report_abs
	movq	_ABS_Y@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	movq	_TGFX_DOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%ebx, %eax
	setne	%dl
	movq	_TGFX_UP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%ebx, %eax
	cmpl	$1, %eax
	adcl	$-1, %edx
	movq	%r15, %rdi
	callq	_input_report_abs
	movq	_BTN_TRIGGER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_TGFX_TRIGGER@GOTPCREL(%rip), %rax
	andl	(%rax), %ebx
	movq	%r15, %rdi
	movl	%ebx, %edx
	callq	_input_report_key
	movq	_BTN_THUMB@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_TGFX_THUMB@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	andl	%r12d, %edx
	movq	%r15, %rdi
	callq	_input_report_key
	movq	_BTN_THUMB2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_TGFX_THUMB2@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	andl	%r12d, %edx
	movq	%r15, %rdi
	callq	_input_report_key
	movq	_BTN_TOP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_TGFX_TOP@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	andl	%r12d, %edx
	movq	%r15, %rdi
	callq	_input_report_key
	movq	_BTN_TOP2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_TGFX_TOP2@GOTPCREL(%rip), %rax
	andl	(%rax), %r12d
	movq	%r15, %rdi
	movl	%r12d, %edx
	callq	_input_report_key
	movq	%r15, %rdi
	callq	_input_sync
	jmp	LBB0_3
LBB0_4:
	addq	$4, %r14
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	_TGFX_REFRESH_TIME@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	addq	(%rax), %rsi
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mod_timer                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_timer,4,2                      ## @timer
	.comm	_ABS_X,4,2                      ## @ABS_X
	.comm	_TGFX_RIGHT,4,2                 ## @TGFX_RIGHT
	.comm	_TGFX_LEFT,4,2                  ## @TGFX_LEFT
	.comm	_ABS_Y,4,2                      ## @ABS_Y
	.comm	_TGFX_DOWN,4,2                  ## @TGFX_DOWN
	.comm	_TGFX_UP,4,2                    ## @TGFX_UP
	.comm	_BTN_TRIGGER,4,2                ## @BTN_TRIGGER
	.comm	_TGFX_TRIGGER,4,2               ## @TGFX_TRIGGER
	.comm	_BTN_THUMB,4,2                  ## @BTN_THUMB
	.comm	_TGFX_THUMB,4,2                 ## @TGFX_THUMB
	.comm	_BTN_THUMB2,4,2                 ## @BTN_THUMB2
	.comm	_TGFX_THUMB2,4,2                ## @TGFX_THUMB2
	.comm	_BTN_TOP,4,2                    ## @BTN_TOP
	.comm	_TGFX_TOP,4,2                   ## @TGFX_TOP
	.comm	_BTN_TOP2,4,2                   ## @BTN_TOP2
	.comm	_TGFX_TOP2,4,2                  ## @TGFX_TOP2
	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_TGFX_REFRESH_TIME,8,3          ## @TGFX_REFRESH_TIME
	.comm	_tgfx,8,3                       ## @tgfx
	.no_dead_strip	_tgfx_timer
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tgfx_timer
_tgfx_timer:                            ; @tgfx_timer
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
Lloh0:
	adrp	x8, _timer@GOTPAGE
Lloh1:
	ldr	x8, [x8, _timer@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x1, x0
	bl	_from_timer
	mov	x19, x0
	mov	x21, #0
	mov	w25, #1
Lloh3:
	adrp	x22, _BTN_TOP@GOTPAGE
Lloh4:
	ldr	x22, [x22, _BTN_TOP@GOTPAGEOFF]
Lloh5:
	adrp	x23, _TGFX_TOP@GOTPAGE
Lloh6:
	ldr	x23, [x23, _TGFX_TOP@GOTPAGEOFF]
Lloh7:
	adrp	x24, _BTN_TOP2@GOTPAGE
Lloh8:
	ldr	x24, [x24, _BTN_TOP2@GOTPAGEOFF]
Lloh9:
	adrp	x26, _TGFX_TOP2@GOTPAGE
Lloh10:
	ldr	x26, [x26, _TGFX_TOP2@GOTPAGEOFF]
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	add	x21, x21, #1
	cmp	x21, #7
	b.eq	LBB0_4
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w9, [x19]
	lsl	w8, w25, w21
	tst	w9, w8
	b.eq	LBB0_1
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldp	x10, x9, [x19, #8]
	ldr	x20, [x9, x21, lsl #3]
	ldr	w0, [x10]
	mvn	w1, w8
	bl	_parport_write_data
	ldr	x8, [x19, #8]
	ldr	w0, [x8]
	bl	_parport_read_status
	eor	w28, w0, #0x7f
	ldr	x8, [x19, #8]
	ldr	w0, [x8]
	bl	_parport_read_control
	eor	w27, w0, #0x4
Lloh11:
	adrp	x8, _ABS_X@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ABS_X@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
Lloh14:
	adrp	x8, _TGFX_RIGHT@GOTPAGE
Lloh15:
	ldr	x8, [x8, _TGFX_RIGHT@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	tst	w8, w28
	cset	w8, ne
Lloh17:
	adrp	x9, _TGFX_LEFT@GOTPAGE
Lloh18:
	ldr	x9, [x9, _TGFX_LEFT@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	tst	w9, w28
	cset	w9, ne
	sub	w2, w8, w9
	mov	x0, x20
	bl	_input_report_abs
Lloh20:
	adrp	x8, _ABS_Y@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ABS_Y@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
Lloh23:
	adrp	x8, _TGFX_DOWN@GOTPAGE
Lloh24:
	ldr	x8, [x8, _TGFX_DOWN@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	tst	w8, w28
	cset	w8, ne
Lloh26:
	adrp	x9, _TGFX_UP@GOTPAGE
Lloh27:
	ldr	x9, [x9, _TGFX_UP@GOTPAGEOFF]
Lloh28:
	ldr	w9, [x9]
	tst	w9, w28
	cset	w9, ne
	sub	w2, w8, w9
	mov	x0, x20
	bl	_input_report_abs
Lloh29:
	adrp	x8, _BTN_TRIGGER@GOTPAGE
Lloh30:
	ldr	x8, [x8, _BTN_TRIGGER@GOTPAGEOFF]
Lloh31:
	ldr	w1, [x8]
Lloh32:
	adrp	x8, _TGFX_TRIGGER@GOTPAGE
Lloh33:
	ldr	x8, [x8, _TGFX_TRIGGER@GOTPAGEOFF]
Lloh34:
	ldr	w8, [x8]
	and	w2, w8, w28
	mov	x0, x20
	bl	_input_report_key
Lloh35:
	adrp	x8, _BTN_THUMB@GOTPAGE
Lloh36:
	ldr	x8, [x8, _BTN_THUMB@GOTPAGEOFF]
Lloh37:
	ldr	w1, [x8]
Lloh38:
	adrp	x8, _TGFX_THUMB@GOTPAGE
Lloh39:
	ldr	x8, [x8, _TGFX_THUMB@GOTPAGEOFF]
Lloh40:
	ldr	w8, [x8]
	and	w2, w8, w27
	mov	x0, x20
	bl	_input_report_key
Lloh41:
	adrp	x8, _BTN_THUMB2@GOTPAGE
Lloh42:
	ldr	x8, [x8, _BTN_THUMB2@GOTPAGEOFF]
Lloh43:
	ldr	w1, [x8]
Lloh44:
	adrp	x8, _TGFX_THUMB2@GOTPAGE
Lloh45:
	ldr	x8, [x8, _TGFX_THUMB2@GOTPAGEOFF]
Lloh46:
	ldr	w8, [x8]
	and	w2, w8, w27
	mov	x0, x20
	bl	_input_report_key
	ldr	w1, [x22]
	ldr	w8, [x23]
	and	w2, w8, w27
	mov	x0, x20
	bl	_input_report_key
	ldr	w1, [x24]
	ldr	w8, [x26]
	and	w2, w8, w27
	mov	x0, x20
	bl	_input_report_key
	mov	x0, x20
	bl	_input_sync
	b	LBB0_1
LBB0_4:
	add	x0, x19, #4
Lloh47:
	adrp	x8, _jiffies@GOTPAGE
Lloh48:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh49:
	ldr	x8, [x8]
Lloh50:
	adrp	x9, _TGFX_REFRESH_TIME@GOTPAGE
Lloh51:
	ldr	x9, [x9, _TGFX_REFRESH_TIME@GOTPAGEOFF]
Lloh52:
	ldr	x9, [x9]
	add	x1, x9, x8
	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
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_mod_timer
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.cfi_endproc
                                        ; -- End function
	.comm	_timer,4,2                      ; @timer
	.comm	_ABS_X,4,2                      ; @ABS_X
	.comm	_TGFX_RIGHT,4,2                 ; @TGFX_RIGHT
	.comm	_TGFX_LEFT,4,2                  ; @TGFX_LEFT
	.comm	_ABS_Y,4,2                      ; @ABS_Y
	.comm	_TGFX_DOWN,4,2                  ; @TGFX_DOWN
	.comm	_TGFX_UP,4,2                    ; @TGFX_UP
	.comm	_BTN_TRIGGER,4,2                ; @BTN_TRIGGER
	.comm	_TGFX_TRIGGER,4,2               ; @TGFX_TRIGGER
	.comm	_BTN_THUMB,4,2                  ; @BTN_THUMB
	.comm	_TGFX_THUMB,4,2                 ; @TGFX_THUMB
	.comm	_BTN_THUMB2,4,2                 ; @BTN_THUMB2
	.comm	_TGFX_THUMB2,4,2                ; @TGFX_THUMB2
	.comm	_BTN_TOP,4,2                    ; @BTN_TOP
	.comm	_TGFX_TOP,4,2                   ; @TGFX_TOP
	.comm	_BTN_TOP2,4,2                   ; @BTN_TOP2
	.comm	_TGFX_TOP2,4,2                  ; @TGFX_TOP2
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_TGFX_REFRESH_TIME,8,3          ; @TGFX_REFRESH_TIME
	.comm	_tgfx,8,3                       ; @tgfx
	.no_dead_strip	_tgfx_timer
.subsections_via_symbols
