	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function amijoy_interrupt
_amijoy_interrupt:                      ## @amijoy_interrupt
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_amijoy@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	cmpq	$0, (%rax)
	je	LBB0_2
## %bb.1:
	movq	_amiga_custom@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movl	%r12d, %ebx
	notl	%ebx
	movq	_ciaa@GOTPCREL(%rip), %rax
	xorl	%edx, %edx
	testb	$64, (%rax)
	sete	%dl
	movq	_amijoy_dev@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	movl	(%rax), %edi
	movq	_BTN_TRIGGER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_input_report_key
	movq	(%r15), %rax
	movl	(%rax), %edi
	movq	_ABS_X@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edx
	shll	$22, %edx
	sarl	$31, %edx
	btl	$1, %r12d
	sbbl	$-1, %edx
	callq	_input_report_abs
	addl	%ebx, %ebx
	xorl	%r12d, %ebx
	movq	(%r15), %rax
	movl	(%rax), %edi
	movq	_ABS_Y@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edx
	shll	$22, %edx
	sarl	$31, %edx
	btl	$1, %ebx
	adcl	$0, %edx
	callq	_input_report_abs
	movq	(%r15), %rax
	movl	(%rax), %edi
	callq	_input_sync
	movq	(%r14), %rax
LBB0_2:
	cmpq	$0, 8(%rax)
	je	LBB0_4
## %bb.3:
	movq	_amiga_custom@GOTPCREL(%rip), %rax
	movl	4(%rax), %r15d
	movl	%r15d, %ebx
	notl	%ebx
	movq	_ciaa@GOTPCREL(%rip), %rax
	xorl	%edx, %edx
	testb	$-128, (%rax)
	sete	%dl
	movq	_amijoy_dev@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	movl	4(%rax), %edi
	movq	_BTN_TRIGGER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_input_report_key
	movq	(%r14), %rax
	movl	4(%rax), %edi
	movq	_ABS_X@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edx
	shll	$22, %edx
	sarl	$31, %edx
	btl	$1, %r15d
	sbbl	$-1, %edx
	callq	_input_report_abs
	addl	%ebx, %ebx
	xorl	%r15d, %ebx
	movq	(%r14), %rax
	movl	4(%rax), %edi
	movq	_ABS_Y@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edx
	shll	$22, %edx
	sarl	$31, %edx
	btl	$1, %ebx
	adcl	$0, %edx
	callq	_input_report_abs
	movq	(%r14), %rax
	movl	4(%rax), %edi
	callq	_input_sync
LBB0_4:
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_amijoy,8,3                     ## @amijoy
	.comm	_amiga_custom,8,2               ## @amiga_custom
	.comm	_ciaa,4,2                       ## @ciaa
	.comm	_amijoy_dev,8,3                 ## @amijoy_dev
	.comm	_BTN_TRIGGER,4,2                ## @BTN_TRIGGER
	.comm	_ABS_X,4,2                      ## @ABS_X
	.comm	_ABS_Y,4,2                      ## @ABS_Y
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.no_dead_strip	_amijoy_interrupt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function amijoy_interrupt
_amijoy_interrupt:                      ; @amijoy_interrupt
	.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	x25, _amijoy@GOTPAGE
Lloh1:
	ldr	x25, [x25, _amijoy@GOTPAGEOFF]
	ldr	x8, [x25]
	ldr	x9, [x8]
Lloh2:
	adrp	x24, _amiga_custom@GOTPAGE
Lloh3:
	ldr	x24, [x24, _amiga_custom@GOTPAGEOFF]
Lloh4:
	adrp	x23, _ciaa@GOTPAGE
Lloh5:
	ldr	x23, [x23, _ciaa@GOTPAGEOFF]
Lloh6:
	adrp	x19, _amijoy_dev@GOTPAGE
Lloh7:
	ldr	x19, [x19, _amijoy_dev@GOTPAGEOFF]
Lloh8:
	adrp	x22, _BTN_TRIGGER@GOTPAGE
Lloh9:
	ldr	x22, [x22, _BTN_TRIGGER@GOTPAGEOFF]
Lloh10:
	adrp	x21, _ABS_X@GOTPAGE
Lloh11:
	ldr	x21, [x21, _ABS_X@GOTPAGEOFF]
Lloh12:
	adrp	x20, _ABS_Y@GOTPAGE
Lloh13:
	ldr	x20, [x20, _ABS_Y@GOTPAGEOFF]
	cbz	x9, LBB0_2
; %bb.1:
	ldr	w26, [x24]
	mvn	w27, w26
	ldr	w8, [x23]
	mov	w9, #1
	bic	w2, w9, w8, lsr #6
	ldr	x8, [x19]
	ldr	w0, [x8]
	ldr	w1, [x22]
	bl	_input_report_key
	ldr	x8, [x19]
	ldr	w0, [x8]
	ldr	w1, [x21]
	ubfx	w8, w27, #1, #1
	lsl	w9, w27, #22
	add	w2, w8, w9, asr #31
	bl	_input_report_abs
	eor	w8, w26, w27, lsl #1
	ldr	x9, [x19]
	ldr	w0, [x9]
	ldr	w1, [x20]
	ubfx	w9, w8, #1, #1
	lsl	w8, w8, #22
	add	w2, w9, w8, asr #31
	bl	_input_report_abs
	ldr	x8, [x19]
	ldr	w0, [x8]
	bl	_input_sync
	ldr	x8, [x25]
LBB0_2:
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_4
; %bb.3:
	ldr	w24, [x24, #4]
	mvn	w25, w24
	ldr	w8, [x23]
	mov	w9, #1
	bic	w2, w9, w8, lsr #7
	ldr	x8, [x19]
	ldr	w0, [x8, #4]
	ldr	w1, [x22]
	bl	_input_report_key
	ldr	x8, [x19]
	ldr	w0, [x8, #4]
	ldr	w1, [x21]
	ubfx	w8, w25, #1, #1
	lsl	w9, w25, #22
	add	w2, w8, w9, asr #31
	bl	_input_report_abs
	eor	w8, w24, w25, lsl #1
	ldr	x9, [x19]
	ldr	w0, [x9, #4]
	ldr	w1, [x20]
	ubfx	w9, w8, #1, #1
	lsl	w8, w8, #22
	add	w2, w9, w8, asr #31
	bl	_input_report_abs
	ldr	x8, [x19]
	ldr	w0, [x8, #4]
	bl	_input_sync
LBB0_4:
Lloh14:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh15:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
Lloh16:
	ldr	w0, [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
	ret
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_amijoy,8,3                     ; @amijoy
	.comm	_amiga_custom,8,2               ; @amiga_custom
	.comm	_ciaa,4,2                       ; @ciaa
	.comm	_amijoy_dev,8,3                 ; @amijoy_dev
	.comm	_BTN_TRIGGER,4,2                ; @BTN_TRIGGER
	.comm	_ABS_X,4,2                      ; @ABS_X
	.comm	_ABS_Y,4,2                      ; @ABS_Y
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.no_dead_strip	_amijoy_interrupt
.subsections_via_symbols
