	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function analog_poll
_analog_poll:                           ## @analog_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	%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
	callq	_gameport_get_drvdata
	movq	%rax, %rbx
	movq	16(%rax), %rax
	movl	(%rax), %r12d
	movq	_ANALOG_SAITEK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%r14d, %r14d
	testl	%r12d, %eax
	setne	%dl
	movq	_ANALOG_ANY_CHF@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r13d
	xorl	%r15d, %r15d
	testl	%r12d, %r13d
	setne	%cl
	cmpq	$0, 48(%rbx)
	je	LBB0_7
## %bb.1:
	movl	8(%rbx), %esi
	movl	40(%rbx), %edi
	movq	%rbx, %rdx
	callq	_gameport_cooked_read
	subl	%eax, 36(%rbx)
	testl	%r12d, %r13d
	je	LBB0_6
## %bb.2:
	movslq	(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	_analog_chf@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movb	(%rcx,%rax,4), %cl
	movl	$1, %eax
	shll	%cl, %eax
	jmp	LBB0_5
LBB0_7:
	movl	%ecx, %r13d
	subq	$1, 24(%rbx)
	jae	LBB0_9
## %bb.8:
	movq	%rbx, %rdi
	movl	%edx, %r12d
	callq	_analog_cooked_read
	subl	%eax, 36(%rbx)
	movb	%r12b, %r14b
	movb	%r13b, %r15b
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	%r15d, %edx
	callq	_analog_button_read
	subl	%eax, 36(%rbx)
	incl	32(%rbx)
	movq	_ANALOG_AXIS_TIME@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	decq	%rax
	movq	%rax, 24(%rbx)
	jmp	LBB0_11
LBB0_9:
	testl	%r12d, %eax
	jne	LBB0_11
## %bb.10:
	movzbl	%r13b, %edx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_analog_button_read
	jmp	LBB0_11
LBB0_3:
	xorl	%eax, %eax
LBB0_5:
	movl	%eax, (%rbx)
LBB0_6:
	incl	32(%rbx)
LBB0_11:
	movq	16(%rbx), %rdi
	cmpl	$0, (%rdi)
	je	LBB0_13
## %bb.12:
	movl	4(%rbx), %edx
	movl	8(%rbx), %esi
	movslq	(%rbx), %rcx
	callq	_analog_decode
	movq	16(%rbx), %rdi
LBB0_13:
	cmpl	$0, 4(%rdi)
	je	LBB0_14
## %bb.15:
	addq	$4, %rdi
	movl	4(%rbx), %edx
	movl	8(%rbx), %esi
	movslq	(%rbx), %rcx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_analog_decode                  ## TAILCALL
LBB0_14:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ANALOG_SAITEK,4,2              ## @ANALOG_SAITEK
	.comm	_ANALOG_ANY_CHF,4,2             ## @ANALOG_ANY_CHF
	.comm	_analog_chf,8,3                 ## @analog_chf
	.comm	_ANALOG_AXIS_TIME,8,3           ## @ANALOG_AXIS_TIME
	.no_dead_strip	_analog_poll
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function analog_poll
_analog_poll:                           ; @analog_poll
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	bl	_gameport_get_drvdata
	mov	x19, x0
	ldr	x8, [x0, #16]
	ldr	w9, [x8]
Lloh0:
	adrp	x8, _ANALOG_SAITEK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ANALOG_SAITEK@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ands	w8, w8, w9
	cset	w21, ne
Lloh3:
	adrp	x10, _ANALOG_ANY_CHF@GOTPAGE
Lloh4:
	ldr	x10, [x10, _ANALOG_ANY_CHF@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	ands	w22, w10, w9
	cset	w20, ne
	ldr	x9, [x0, #48]
	cbz	x9, LBB0_10
; %bb.1:
	ldr	w0, [x19, #40]
	ldr	w1, [x19, #8]
	mov	x2, x19
	bl	_gameport_cooked_read
	ldr	w8, [x19, #36]
	sub	w8, w8, w0
	str	w8, [x19, #36]
	cbz	w22, LBB0_5
; %bb.2:
	ldrsw	x8, [x19]
	cbz	w8, LBB0_4
; %bb.3:
Lloh6:
	adrp	x9, _analog_chf@GOTPAGE
Lloh7:
	ldr	x9, [x9, _analog_chf@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	ldr	w8, [x9, x8, lsl #2]
	mov	w9, #1
	lsl	w8, w9, w8
LBB0_4:
	str	w8, [x19]
LBB0_5:
	ldr	w8, [x19, #32]
	add	w8, w8, #1
	str	w8, [x19, #32]
LBB0_6:
	ldr	x0, [x19, #16]
	ldr	w8, [x0]
	cbz	w8, LBB0_8
; %bb.7:
	ldp	w2, w1, [x19, #4]
	ldrsw	x3, [x19]
	bl	_analog_decode
	ldr	x0, [x19, #16]
LBB0_8:
	ldr	w8, [x0, #4]!
	cbz	w8, LBB0_13
; %bb.9:
	ldp	w2, w1, [x19, #4]
	ldrsw	x3, [x19]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_analog_decode
LBB0_10:
	ldr	x9, [x19, #24]
	sub	x10, x9, #1
	str	x10, [x19, #24]
	cbz	x9, LBB0_14
; %bb.11:
	cbnz	w8, LBB0_6
; %bb.12:
	mov	x0, x19
	mov	w1, #0
	mov	x2, x20
	bl	_analog_button_read
	b	LBB0_6
LBB0_13:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_14:
	mov	x0, x19
	bl	_analog_cooked_read
	ldr	w8, [x19, #36]
	sub	w8, w8, w0
	str	w8, [x19, #36]
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	bl	_analog_button_read
	ldp	w9, w8, [x19, #32]
	sub	w8, w8, w0
	add	w9, w9, #1
	stp	w9, w8, [x19, #32]
Lloh9:
	adrp	x8, _ANALOG_AXIS_TIME@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ANALOG_AXIS_TIME@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	sub	x8, x8, #1
	str	x8, [x19, #24]
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_ANALOG_SAITEK,4,2              ; @ANALOG_SAITEK
	.comm	_ANALOG_ANY_CHF,4,2             ; @ANALOG_ANY_CHF
	.comm	_analog_chf,8,3                 ; @analog_chf
	.comm	_ANALOG_AXIS_TIME,8,3           ; @ANALOG_AXIS_TIME
	.no_dead_strip	_analog_poll
.subsections_via_symbols
