	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_iforce_process_packet          ## -- Begin function iforce_process_packet
	.p2align	4, 0x90
_iforce_process_packet:                 ## @iforce_process_packet
	.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	%rdx, %r13
	movq	%rdi, %r14
	movq	8(%rdi), %r15
	cmpl	$3, %esi
	je	LBB0_8
## %bb.1:
	movq	%rcx, %r12
	cmpl	$2, %esi
	je	LBB0_9
## %bb.2:
	cmpl	$1, %esi
	jne	LBB0_18
## %bb.3:
	movq	_ABS_X@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%r13, %rdi
	callq	_get_unaligned_le16
	movq	%r15, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_input_report_abs
	movq	_ABS_Y@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	leaq	8(%r13), %rdi
	callq	_get_unaligned_le16
	movq	%r15, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_input_report_abs
	movq	_ABS_THROTTLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$255, %edx
	subl	16(%r13), %edx
	movq	%r15, %rdi
	callq	_input_report_abs
	cmpq	$8, %r12
	jb	LBB0_7
## %bb.4:
	movq	_ABS_RUDDER@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	movl	(%r15), %esi
	callq	_test_bit
	testl	%eax, %eax
	je	LBB0_7
## %bb.5:
	movl	(%rbx), %esi
	movl	28(%r13), %edx
	movq	%r15, %rdi
	jmp	LBB0_6
LBB0_8:
	movq	_ABS_WHEEL@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	%r13, %rdi
	callq	_get_unaligned_le16
	movq	%r15, %rdi
	movl	%r12d, %esi
	movl	%eax, %edx
	callq	_input_report_abs
	movq	_ABS_GAS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$255, %r12d
	movl	$255, %edx
	subl	8(%r13), %edx
	movq	%r15, %rdi
	callq	_input_report_abs
	movq	_ABS_BRAKE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	subl	12(%r13), %r12d
	movq	%r15, %rdi
	movl	%r12d, %edx
LBB0_6:
	callq	_input_report_abs
LBB0_7:
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_iforce_report_hats_buttons
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_input_sync                     ## TAILCALL
LBB0_9:
	movq	_BTN_DEAD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r13), %edx
	andl	$2, %edx
	movq	%r15, %rdi
	callq	_input_report_key
	movq	%r15, %rdi
	callq	_input_sync
	movl	4(%r13), %eax
	movl	%eax, %ebx
	andl	$127, %ebx
	movq	_FF_CORE_IS_PLAYED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movq	(%r14), %rcx
	movl	(%rcx,%rbx,4), %esi
	testb	$-128, %al
	jne	LBB0_10
## %bb.12:
	callq	_test_and_clear_bit
	testl	%eax, %eax
	je	LBB0_15
## %bb.13:
	movq	_FF_STATUS_STOPPED@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_10:
	callq	_test_and_set_bit
	testl	%eax, %eax
	jne	LBB0_15
## %bb.11:
	movq	_FF_STATUS_PLAYING@GOTPCREL(%rip), %rax
LBB0_14:
	movl	(%rax), %edx
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_input_report_ff_status
LBB0_15:
	cmpq	$4, %r12
	jb	LBB0_18
## %bb.16:
	addq	$12, %r13
	movl	$3, %ebx
	.p2align	4, 0x90
LBB0_17:                                ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	callq	_get_unaligned_le16
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_mark_core_as_ready
	addq	$2, %rbx
	addq	$8, %r13
	cmpq	%r12, %rbx
	jb	LBB0_17
LBB0_18:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ABS_X,4,2                      ## @ABS_X
	.comm	_ABS_Y,4,2                      ## @ABS_Y
	.comm	_ABS_THROTTLE,4,2               ## @ABS_THROTTLE
	.comm	_ABS_RUDDER,4,2                 ## @ABS_RUDDER
	.comm	_ABS_WHEEL,4,2                  ## @ABS_WHEEL
	.comm	_ABS_GAS,4,2                    ## @ABS_GAS
	.comm	_ABS_BRAKE,4,2                  ## @ABS_BRAKE
	.comm	_BTN_DEAD,4,2                   ## @BTN_DEAD
	.comm	_FF_CORE_IS_PLAYED,4,2          ## @FF_CORE_IS_PLAYED
	.comm	_FF_STATUS_PLAYING,4,2          ## @FF_STATUS_PLAYING
	.comm	_FF_STATUS_STOPPED,4,2          ## @FF_STATUS_STOPPED
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_iforce_process_packet          ; -- Begin function iforce_process_packet
	.p2align	2
_iforce_process_packet:                 ; @iforce_process_packet
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x2
	mov	x19, x0
	ldr	x21, [x0, #8]
	cmp	w1, #3
	b.eq	LBB0_6
; %bb.1:
	mov	x22, x3
	cmp	w1, #2
	b.eq	LBB0_9
; %bb.2:
	cmp	w1, #1
	b.ne	LBB0_18
; %bb.3:
Lloh0:
	adrp	x8, _ABS_X@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ABS_X@GOTPAGEOFF]
Lloh2:
	ldr	w23, [x8]
	mov	x0, x20
	bl	_get_unaligned_le16
	mov	x2, x0
	mov	x0, x21
	mov	x1, x23
	bl	_input_report_abs
Lloh3:
	adrp	x8, _ABS_Y@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ABS_Y@GOTPAGEOFF]
Lloh5:
	ldr	w23, [x8]
	add	x0, x20, #8
	bl	_get_unaligned_le16
	mov	x2, x0
	mov	x0, x21
	mov	x1, x23
	bl	_input_report_abs
Lloh6:
	adrp	x8, _ABS_THROTTLE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ABS_THROTTLE@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	ldr	w8, [x20, #16]
	mov	w9, #255
	sub	w2, w9, w8
	mov	x0, x21
	bl	_input_report_abs
	cmp	x22, #8
	b.lo	LBB0_8
; %bb.4:
Lloh9:
	adrp	x22, _ABS_RUDDER@GOTPAGE
Lloh10:
	ldr	x22, [x22, _ABS_RUDDER@GOTPAGEOFF]
	ldr	w0, [x22]
	ldr	w1, [x21]
	bl	_test_bit
	cbz	w0, LBB0_8
; %bb.5:
	ldr	w1, [x22]
	ldr	w2, [x20, #28]
	b	LBB0_7
LBB0_6:
Lloh11:
	adrp	x8, _ABS_WHEEL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ABS_WHEEL@GOTPAGEOFF]
Lloh13:
	ldr	w22, [x8]
	mov	x0, x20
	bl	_get_unaligned_le16
	mov	x2, x0
	mov	x0, x21
	mov	x1, x22
	bl	_input_report_abs
Lloh14:
	adrp	x8, _ABS_GAS@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ABS_GAS@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	ldr	w8, [x20, #8]
	mov	w22, #255
	sub	w2, w22, w8
	mov	x0, x21
	bl	_input_report_abs
Lloh17:
	adrp	x8, _ABS_BRAKE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ABS_BRAKE@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	ldr	w8, [x20, #12]
	sub	w2, w22, w8
LBB0_7:
	mov	x0, x21
	bl	_input_report_abs
LBB0_8:
	mov	x0, x19
	mov	x1, x20
	bl	_iforce_report_hats_buttons
	mov	x0, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_input_sync
LBB0_9:
Lloh20:
	adrp	x8, _BTN_DEAD@GOTPAGE
Lloh21:
	ldr	x8, [x8, _BTN_DEAD@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	ldr	w8, [x20]
	and	w2, w8, #0x2
	mov	x0, x21
	bl	_input_report_key
	mov	x0, x21
	bl	_input_sync
	ldr	w8, [x20, #4]
	and	x23, x8, #0x7f
Lloh23:
	adrp	x9, _FF_CORE_IS_PLAYED@GOTPAGE
Lloh24:
	ldr	x9, [x9, _FF_CORE_IS_PLAYED@GOTPAGEOFF]
Lloh25:
	ldr	w0, [x9]
	ldr	x9, [x19]
	ldr	w1, [x9, x23, lsl #2]
	tbnz	w8, #7, LBB0_12
; %bb.10:
	bl	_test_and_clear_bit
	cbz	w0, LBB0_15
; %bb.11:
Lloh26:
	adrp	x8, _FF_STATUS_STOPPED@GOTPAGE
Lloh27:
	ldr	x8, [x8, _FF_STATUS_STOPPED@GOTPAGEOFF]
	b	LBB0_14
LBB0_12:
	bl	_test_and_set_bit
	cbnz	w0, LBB0_15
; %bb.13:
Lloh28:
	adrp	x8, _FF_STATUS_PLAYING@GOTPAGE
Lloh29:
	ldr	x8, [x8, _FF_STATUS_PLAYING@GOTPAGEOFF]
LBB0_14:
	ldr	w2, [x8]
	mov	x0, x21
	mov	x1, x23
	bl	_input_report_ff_status
LBB0_15:
	cmp	x22, #4
	b.lo	LBB0_18
; %bb.16:
	add	x20, x20, #12
	mov	w21, #3
LBB0_17:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_get_unaligned_le16
	mov	x1, x0
	mov	x0, x19
	bl	_mark_core_as_ready
	add	x21, x21, #2
	add	x20, x20, #8
	cmp	x21, x22
	b.lo	LBB0_17
LBB0_18:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_ABS_X,4,2                      ; @ABS_X
	.comm	_ABS_Y,4,2                      ; @ABS_Y
	.comm	_ABS_THROTTLE,4,2               ; @ABS_THROTTLE
	.comm	_ABS_RUDDER,4,2                 ; @ABS_RUDDER
	.comm	_ABS_WHEEL,4,2                  ; @ABS_WHEEL
	.comm	_ABS_GAS,4,2                    ; @ABS_GAS
	.comm	_ABS_BRAKE,4,2                  ; @ABS_BRAKE
	.comm	_BTN_DEAD,4,2                   ; @BTN_DEAD
	.comm	_FF_CORE_IS_PLAYED,4,2          ; @FF_CORE_IS_PLAYED
	.comm	_FF_STATUS_PLAYING,4,2          ; @FF_STATUS_PLAYING
	.comm	_FF_STATUS_STOPPED,4,2          ; @FF_STATUS_STOPPED
.subsections_via_symbols
