	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function interact_poll
_interact_poll:                         ## @interact_poll
	.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
	subq	$32, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -24(%rbp)
	callq	_gameport_get_drvdata
	movq	%rax, %rbx
	movq	24(%rax), %r14
	incl	20(%rax)
	movl	16(%rax), %edi
	movq	(%rax), %rsi
	leaq	-36(%rbp), %rdx
	callq	_interact_read_packet
	movq	(%rbx), %rdx
	cmpq	%rdx, %rax
	jge	LBB0_1
## %bb.4:
	incl	12(%rbx)
	jmp	LBB0_7
LBB0_1:
	movq	_INTERACT_MAX_LENGTH@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	subl	%edx, %ecx
	movl	-36(%rbp), %eax
	shll	%cl, %eax
	movl	%eax, -36(%rbp)
	shll	%cl, -32(%rbp)
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, -28(%rbp)
	movl	8(%rbx), %ecx
	cmpl	$128, %ecx
	je	LBB0_5
## %bb.2:
	cmpl	$129, %ecx
	jne	LBB0_7
## %bb.3:
	movq	_interact_abs_hhfx@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rcx
	movl	(%rcx), %esi
	movzbl	%al, %edx
	movq	%r14, %rdi
	callq	_input_report_abs
	movq	(%rbx), %rax
	movl	4(%rax), %esi
	movzbl	-32(%rbp), %edx
	movq	%r14, %rdi
	callq	_input_report_abs
	movq	(%rbx), %rax
	movl	8(%rax), %esi
	movzbl	-35(%rbp), %edx
	movq	%r14, %rdi
	callq	_input_report_abs
	movq	(%rbx), %rax
	movl	12(%rax), %esi
	movzbl	-31(%rbp), %edx
	movq	%r14, %rdi
	callq	_input_report_abs
	movq	_ABS_HAT0Y@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movl	-32(%rbp), %eax
	movl	%eax, %edx
	shll	$15, %edx
	sarl	$31, %edx
	btl	$17, %eax
	adcl	$0, %edx
	movq	%r14, %rdi
	callq	_input_report_abs
	movl	(%rbx), %esi
	decl	%esi
	movl	-32(%rbp), %eax
	movl	%eax, %edx
	shll	$13, %edx
	sarl	$31, %edx
	btl	$19, %eax
	adcl	$0, %edx
	movq	%r14, %rdi
	callq	_input_report_abs
	movq	_interact_btn_hhfx@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rax
	movl	(%rax), %esi
	movl	-36(%rbp), %edx
	shrl	$16, %edx
	andl	$1, %edx
	movq	%r14, %rdi
	callq	_input_report_key
	movq	(%rbx), %rax
	movl	4(%rax), %esi
	movl	-36(%rbp), %edx
	shrl	$17, %edx
	andl	$1, %edx
	movq	%r14, %rdi
	callq	_input_report_key
	movq	(%rbx), %rax
	movl	8(%rax), %esi
	movl	-36(%rbp), %edx
	shrl	$18, %edx
	andl	$1, %edx
	movq	%r14, %rdi
	callq	_input_report_key
	movq	(%rbx), %rax
	movl	12(%rax), %esi
	movl	-36(%rbp), %edx
	shrl	$19, %edx
	andl	$1, %edx
	movq	%r14, %rdi
	callq	_input_report_key
	movq	(%rbx), %rax
	movl	16(%rax), %esi
	movl	-36(%rbp), %edx
	shrl	$20, %edx
	andl	$1, %edx
	movq	%r14, %rdi
	callq	_input_report_key
	movq	(%rbx), %rax
	movl	20(%rax), %esi
	movl	-36(%rbp), %edx
	shrl	$21, %edx
	andl	$1, %edx
	movq	%r14, %rdi
	callq	_input_report_key
	movq	(%rbx), %rax
	movl	24(%rax), %esi
	movl	-36(%rbp), %edx
	shrl	$22, %edx
	andl	$1, %edx
	movq	%r14, %rdi
	callq	_input_report_key
	movq	(%rbx), %rax
	movl	28(%rax), %esi
	movl	-36(%rbp), %edx
	shrl	$23, %edx
	andl	$1, %edx
	movq	%r14, %rdi
	callq	_input_report_key
	movq	(%rbx), %rax
	movl	32(%rax), %esi
	movl	-32(%rbp), %edx
	shrl	$20, %edx
	andl	$1, %edx
	movq	%r14, %rdi
	callq	_input_report_key
	movq	(%rbx), %rax
	movl	36(%rax), %esi
	movl	-32(%rbp), %edx
	shrl	$21, %edx
	andl	$1, %edx
	movq	%r14, %rdi
	callq	_input_report_key
	movq	(%rbx), %rax
	movl	40(%rax), %esi
	movl	-32(%rbp), %edx
	shrl	$22, %edx
	andl	$1, %edx
	movq	%r14, %rdi
	callq	_input_report_key
	movq	(%rbx), %rax
	movl	44(%rax), %esi
	jmp	LBB0_6
LBB0_5:
	movq	_interact_abs_pp8d@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edx
	shll	$10, %edx
	sarl	$31, %edx
	btl	$20, %eax
	adcl	$0, %edx
	movq	%r14, %rdi
	callq	_input_report_abs
	movq	(%rbx), %rax
	movl	4(%rax), %esi
	movl	-36(%rbp), %eax
	movl	%eax, %edx
	shll	$8, %edx
	sarl	$31, %edx
	btl	$22, %eax
	adcl	$0, %edx
	movq	%r14, %rdi
	callq	_input_report_abs
	movq	_interact_btn_pp8d@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rax
	movl	(%rax), %esi
	movl	-32(%rbp), %edx
	shrl	$16, %edx
	andl	$1, %edx
	movq	%r14, %rdi
	callq	_input_report_key
	movq	(%rbx), %rax
	movl	4(%rax), %esi
	movl	-32(%rbp), %edx
	shrl	$17, %edx
	andl	$1, %edx
	movq	%r14, %rdi
	callq	_input_report_key
	movq	(%rbx), %rax
	movl	8(%rax), %esi
	movl	-32(%rbp), %edx
	shrl	$18, %edx
	andl	$1, %edx
	movq	%r14, %rdi
	callq	_input_report_key
	movq	(%rbx), %rax
	movl	12(%rax), %esi
	movl	-32(%rbp), %edx
	shrl	$19, %edx
	andl	$1, %edx
	movq	%r14, %rdi
	callq	_input_report_key
	movq	(%rbx), %rax
	movl	16(%rax), %esi
	movl	-32(%rbp), %edx
	shrl	$20, %edx
	andl	$1, %edx
	movq	%r14, %rdi
	callq	_input_report_key
	movq	(%rbx), %rax
	movl	20(%rax), %esi
	movl	-32(%rbp), %edx
	shrl	$21, %edx
	andl	$1, %edx
	movq	%r14, %rdi
	callq	_input_report_key
	movq	(%rbx), %rax
	movl	24(%rax), %esi
	movl	-32(%rbp), %edx
	shrl	$22, %edx
	andl	$1, %edx
	movq	%r14, %rdi
	callq	_input_report_key
	movq	(%rbx), %rax
	movl	28(%rax), %esi
LBB0_6:
	movl	-32(%rbp), %edx
	shrl	$23, %edx
	andl	$1, %edx
	movq	%r14, %rdi
	callq	_input_report_key
LBB0_7:
	movq	%r14, %rdi
	callq	_input_sync
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-24(%rbp), %rax
	jne	LBB0_9
## %bb.8:
	addq	$32, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_9:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_INTERACT_MAX_LENGTH,4,2        ## @INTERACT_MAX_LENGTH
	.comm	_interact_abs_hhfx,8,3          ## @interact_abs_hhfx
	.comm	_ABS_HAT0Y,4,2                  ## @ABS_HAT0Y
	.comm	_interact_btn_hhfx,8,3          ## @interact_btn_hhfx
	.comm	_interact_abs_pp8d,8,3          ## @interact_abs_pp8d
	.comm	_interact_btn_pp8d,8,3          ## @interact_btn_pp8d
	.no_dead_strip	_interact_poll
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function interact_poll
_interact_poll:                         ; @interact_poll
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	bl	_gameport_get_drvdata
	mov	x20, x0
	ldr	x19, [x0, #24]
	ldp	w0, w8, [x0, #16]
	add	w8, w8, #1
	str	w8, [x20, #20]
	ldr	x1, [x20]
	add	x2, sp, #8
	bl	_interact_read_packet
	ldr	x8, [x20]
	cmp	x0, x8
	b.ge	LBB0_2
; %bb.1:
	ldr	w8, [x20, #12]
	add	w8, w8, #1
	str	w8, [x20, #12]
	b	LBB0_7
LBB0_2:
Lloh3:
	adrp	x9, _INTERACT_MAX_LENGTH@GOTPAGE
Lloh4:
	ldr	x9, [x9, _INTERACT_MAX_LENGTH@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	sub	w8, w9, w8
	ldr	d0, [sp, #8]
	dup.2s	v1, w8
	ushl.2s	v0, v0, v1
	str	d0, [sp, #8]
	ldr	w9, [sp, #16]
	lsl	w8, w9, w8
	str	w8, [sp, #16]
	ldr	w8, [x20, #8]
	cmp	w8, #128
	b.eq	LBB0_5
; %bb.3:
	cmp	w8, #129
	b.ne	LBB0_7
; %bb.4:
Lloh6:
	adrp	x20, _interact_abs_hhfx@GOTPAGE
Lloh7:
	ldr	x20, [x20, _interact_abs_hhfx@GOTPAGEOFF]
	ldr	x8, [x20]
	ldr	w1, [x8]
	fmov	w8, s0
	and	w2, w8, #0xff
	mov	x0, x19
	bl	_input_report_abs
	ldr	x8, [x20]
	ldr	w1, [x8, #4]
	ldrb	w2, [sp, #12]
	mov	x0, x19
	bl	_input_report_abs
	ldr	x8, [x20]
	ldr	w1, [x8, #8]
	ldrb	w2, [sp, #9]
	mov	x0, x19
	bl	_input_report_abs
	ldr	x8, [x20]
	ldr	w1, [x8, #12]
	ldrb	w2, [sp, #13]
	mov	x0, x19
	bl	_input_report_abs
Lloh8:
	adrp	x20, _ABS_HAT0Y@GOTPAGE
Lloh9:
	ldr	x20, [x20, _ABS_HAT0Y@GOTPAGEOFF]
	ldr	w1, [x20]
	ldr	w8, [sp, #12]
	ubfx	w9, w8, #17, #1
	lsl	w8, w8, #15
	add	w2, w9, w8, asr #31
	mov	x0, x19
	bl	_input_report_abs
	ldr	w8, [x20]
	sub	w1, w8, #1
	ldr	w8, [sp, #12]
	ubfx	w9, w8, #19, #1
	lsl	w8, w8, #13
	add	w2, w9, w8, asr #31
	mov	x0, x19
	bl	_input_report_abs
Lloh10:
	adrp	x20, _interact_btn_hhfx@GOTPAGE
Lloh11:
	ldr	x20, [x20, _interact_btn_hhfx@GOTPAGEOFF]
	ldr	x8, [x20]
	ldr	w1, [x8]
	ldr	w8, [sp, #8]
	ubfx	w2, w8, #16, #1
	mov	x0, x19
	bl	_input_report_key
	ldr	x8, [x20]
	ldr	w1, [x8, #4]
	ldr	w8, [sp, #8]
	ubfx	w2, w8, #17, #1
	mov	x0, x19
	bl	_input_report_key
	ldr	x8, [x20]
	ldr	w1, [x8, #8]
	ldr	w8, [sp, #8]
	ubfx	w2, w8, #18, #1
	mov	x0, x19
	bl	_input_report_key
	ldr	x8, [x20]
	ldr	w1, [x8, #12]
	ldr	w8, [sp, #8]
	ubfx	w2, w8, #19, #1
	mov	x0, x19
	bl	_input_report_key
	ldr	x8, [x20]
	ldr	w1, [x8, #16]
	ldr	w8, [sp, #8]
	ubfx	w2, w8, #20, #1
	mov	x0, x19
	bl	_input_report_key
	ldr	x8, [x20]
	ldr	w1, [x8, #20]
	ldr	w8, [sp, #8]
	ubfx	w2, w8, #21, #1
	mov	x0, x19
	bl	_input_report_key
	ldr	x8, [x20]
	ldr	w1, [x8, #24]
	ldr	w8, [sp, #8]
	ubfx	w2, w8, #22, #1
	mov	x0, x19
	bl	_input_report_key
	ldr	x8, [x20]
	ldr	w1, [x8, #28]
	ldr	w8, [sp, #8]
	ubfx	w2, w8, #23, #1
	mov	x0, x19
	bl	_input_report_key
	ldr	x8, [x20]
	ldr	w1, [x8, #32]
	ldr	w8, [sp, #12]
	ubfx	w2, w8, #20, #1
	mov	x0, x19
	bl	_input_report_key
	ldr	x8, [x20]
	ldr	w1, [x8, #36]
	ldr	w8, [sp, #12]
	ubfx	w2, w8, #21, #1
	mov	x0, x19
	bl	_input_report_key
	ldr	x8, [x20]
	ldr	w1, [x8, #40]
	ldr	w8, [sp, #12]
	ubfx	w2, w8, #22, #1
	mov	x0, x19
	bl	_input_report_key
	ldr	x8, [x20]
	ldr	w1, [x8, #44]
	b	LBB0_6
LBB0_5:
Lloh12:
	adrp	x20, _interact_abs_pp8d@GOTPAGE
Lloh13:
	ldr	x20, [x20, _interact_abs_pp8d@GOTPAGEOFF]
	ldr	x8, [x20]
	ldr	w1, [x8]
	fmov	w8, s0
	ubfx	w9, w8, #20, #1
	lsl	w8, w8, #10
	add	w2, w9, w8, asr #31
	mov	x0, x19
	bl	_input_report_abs
	ldr	x8, [x20]
	ldr	w1, [x8, #4]
	ldr	w8, [sp, #8]
	ubfx	w9, w8, #22, #1
	lsl	w8, w8, #8
	add	w2, w9, w8, asr #31
	mov	x0, x19
	bl	_input_report_abs
Lloh14:
	adrp	x20, _interact_btn_pp8d@GOTPAGE
Lloh15:
	ldr	x20, [x20, _interact_btn_pp8d@GOTPAGEOFF]
	ldr	x8, [x20]
	ldr	w1, [x8]
	ldr	w8, [sp, #12]
	ubfx	w2, w8, #16, #1
	mov	x0, x19
	bl	_input_report_key
	ldr	x8, [x20]
	ldr	w1, [x8, #4]
	ldr	w8, [sp, #12]
	ubfx	w2, w8, #17, #1
	mov	x0, x19
	bl	_input_report_key
	ldr	x8, [x20]
	ldr	w1, [x8, #8]
	ldr	w8, [sp, #12]
	ubfx	w2, w8, #18, #1
	mov	x0, x19
	bl	_input_report_key
	ldr	x8, [x20]
	ldr	w1, [x8, #12]
	ldr	w8, [sp, #12]
	ubfx	w2, w8, #19, #1
	mov	x0, x19
	bl	_input_report_key
	ldr	x8, [x20]
	ldr	w1, [x8, #16]
	ldr	w8, [sp, #12]
	ubfx	w2, w8, #20, #1
	mov	x0, x19
	bl	_input_report_key
	ldr	x8, [x20]
	ldr	w1, [x8, #20]
	ldr	w8, [sp, #12]
	ubfx	w2, w8, #21, #1
	mov	x0, x19
	bl	_input_report_key
	ldr	x8, [x20]
	ldr	w1, [x8, #24]
	ldr	w8, [sp, #12]
	ubfx	w2, w8, #22, #1
	mov	x0, x19
	bl	_input_report_key
	ldr	x8, [x20]
	ldr	w1, [x8, #28]
LBB0_6:
	ldr	w8, [sp, #12]
	ubfx	w2, w8, #23, #1
	mov	x0, x19
	bl	_input_report_key
LBB0_7:
	mov	x0, x19
	bl	_input_sync
	ldr	x8, [sp, #24]
Lloh16:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh17:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_9
; %bb.8:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_9:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_INTERACT_MAX_LENGTH,4,2        ; @INTERACT_MAX_LENGTH
	.comm	_interact_abs_hhfx,8,3          ; @interact_abs_hhfx
	.comm	_ABS_HAT0Y,4,2                  ; @ABS_HAT0Y
	.comm	_interact_btn_hhfx,8,3          ; @interact_btn_hhfx
	.comm	_interact_abs_pp8d,8,3          ; @interact_abs_pp8d
	.comm	_interact_btn_pp8d,8,3          ; @interact_btn_pp8d
	.no_dead_strip	_interact_poll
.subsections_via_symbols
