	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stinger_process_packet
_stinger_process_packet:                ## @stinger_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	cmpl	$0, 8(%rdi)
	je	LBB0_1
## %bb.2:
	movq	(%rdi), %rbx
	movq	16(%rdi), %r14
	movq	_BTN_A@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movzbl	(%rbx), %edx
	shrl	$5, %edx
	andl	$1, %edx
	movq	%r14, %rdi
	callq	_input_report_key
	movq	_BTN_B@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movzbl	(%rbx), %edx
	shrl	$4, %edx
	andl	$1, %edx
	movq	%r14, %rdi
	callq	_input_report_key
	movq	_BTN_C@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movzbl	(%rbx), %edx
	shrl	$3, %edx
	andl	$1, %edx
	movq	%r14, %rdi
	callq	_input_report_key
	movq	_BTN_X@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movzbl	(%rbx), %edx
	shrl	$2, %edx
	andl	$1, %edx
	movq	%r14, %rdi
	callq	_input_report_key
	movq	_BTN_Y@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movzbl	3(%rbx), %edx
	shrl	$5, %edx
	andl	$1, %edx
	movq	%r14, %rdi
	callq	_input_report_key
	movq	_BTN_Z@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movzbl	3(%rbx), %edx
	shrl	$4, %edx
	andl	$1, %edx
	movq	%r14, %rdi
	callq	_input_report_key
	movq	_BTN_TL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movzbl	3(%rbx), %edx
	shrl	$3, %edx
	andl	$1, %edx
	movq	%r14, %rdi
	callq	_input_report_key
	movq	_BTN_TR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movzbl	3(%rbx), %edx
	shrl	$2, %edx
	andl	$1, %edx
	movq	%r14, %rdi
	callq	_input_report_key
	movq	_BTN_SELECT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movzbl	3(%rbx), %edx
	shrl	%edx
	andl	$1, %edx
	movq	%r14, %rdi
	callq	_input_report_key
	movq	_BTN_START@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movzbl	3(%rbx), %edx
	andl	$1, %edx
	movq	%r14, %rdi
	callq	_input_report_key
	movq	_ABS_X@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movb	(%rbx), %al
	movb	1(%rbx), %cl
	andb	$63, %cl
	shlb	$6, %al
	andb	$64, %al
	subb	%al, %cl
	movzbl	%cl, %edx
	movq	%r14, %rdi
	callq	_input_report_abs
	movq	_ABS_Y@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movb	(%rbx), %al
	movb	2(%rbx), %cl
	shlb	$5, %al
	andb	$64, %al
	andb	$63, %cl
	subb	%cl, %al
	movzbl	%al, %edx
	movq	%r14, %rdi
	callq	_input_report_abs
	movq	%r14, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_input_sync                     ## TAILCALL
LBB0_1:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BTN_A,4,2                      ## @BTN_A
	.comm	_BTN_B,4,2                      ## @BTN_B
	.comm	_BTN_C,4,2                      ## @BTN_C
	.comm	_BTN_X,4,2                      ## @BTN_X
	.comm	_BTN_Y,4,2                      ## @BTN_Y
	.comm	_BTN_Z,4,2                      ## @BTN_Z
	.comm	_BTN_TL,4,2                     ## @BTN_TL
	.comm	_BTN_TR,4,2                     ## @BTN_TR
	.comm	_BTN_SELECT,4,2                 ## @BTN_SELECT
	.comm	_BTN_START,4,2                  ## @BTN_START
	.comm	_ABS_X,4,2                      ## @ABS_X
	.comm	_ABS_Y,4,2                      ## @ABS_Y
	.no_dead_strip	_stinger_process_packet
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stinger_process_packet
_stinger_process_packet:                ; @stinger_process_packet
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	w8, [x0, #8]
	cbz	w8, LBB0_2
; %bb.1:
	ldr	x20, [x0]
	ldr	x19, [x0, #16]
Lloh0:
	adrp	x8, _BTN_A@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BTN_A@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	ldrb	w8, [x20]
	ubfx	w2, w8, #5, #1
	mov	x0, x19
	bl	_input_report_key
Lloh3:
	adrp	x8, _BTN_B@GOTPAGE
Lloh4:
	ldr	x8, [x8, _BTN_B@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	ldrb	w8, [x20]
	ubfx	w2, w8, #4, #1
	mov	x0, x19
	bl	_input_report_key
Lloh6:
	adrp	x8, _BTN_C@GOTPAGE
Lloh7:
	ldr	x8, [x8, _BTN_C@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	ldrb	w8, [x20]
	ubfx	w2, w8, #3, #1
	mov	x0, x19
	bl	_input_report_key
Lloh9:
	adrp	x8, _BTN_X@GOTPAGE
Lloh10:
	ldr	x8, [x8, _BTN_X@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	ldrb	w8, [x20]
	ubfx	w2, w8, #2, #1
	mov	x0, x19
	bl	_input_report_key
Lloh12:
	adrp	x8, _BTN_Y@GOTPAGE
Lloh13:
	ldr	x8, [x8, _BTN_Y@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	ldrb	w8, [x20, #3]
	ubfx	w2, w8, #5, #1
	mov	x0, x19
	bl	_input_report_key
Lloh15:
	adrp	x8, _BTN_Z@GOTPAGE
Lloh16:
	ldr	x8, [x8, _BTN_Z@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	ldrb	w8, [x20, #3]
	ubfx	w2, w8, #4, #1
	mov	x0, x19
	bl	_input_report_key
Lloh18:
	adrp	x8, _BTN_TL@GOTPAGE
Lloh19:
	ldr	x8, [x8, _BTN_TL@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	ldrb	w8, [x20, #3]
	ubfx	w2, w8, #3, #1
	mov	x0, x19
	bl	_input_report_key
Lloh21:
	adrp	x8, _BTN_TR@GOTPAGE
Lloh22:
	ldr	x8, [x8, _BTN_TR@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	ldrb	w8, [x20, #3]
	ubfx	w2, w8, #2, #1
	mov	x0, x19
	bl	_input_report_key
Lloh24:
	adrp	x8, _BTN_SELECT@GOTPAGE
Lloh25:
	ldr	x8, [x8, _BTN_SELECT@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
	ldrb	w8, [x20, #3]
	ubfx	w2, w8, #1, #1
	mov	x0, x19
	bl	_input_report_key
Lloh27:
	adrp	x8, _BTN_START@GOTPAGE
Lloh28:
	ldr	x8, [x8, _BTN_START@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
	ldrb	w8, [x20, #3]
	and	w2, w8, #0x1
	mov	x0, x19
	bl	_input_report_key
Lloh30:
	adrp	x8, _ABS_X@GOTPAGE
Lloh31:
	ldr	x8, [x8, _ABS_X@GOTPAGEOFF]
Lloh32:
	ldr	w1, [x8]
	ldrb	w8, [x20, #1]
	and	w8, w8, #0x3f
	ldrb	w9, [x20]
	ubfiz	w9, w9, #6, #1
	sub	w8, w8, w9
	and	w2, w8, #0xff
	mov	x0, x19
	bl	_input_report_abs
Lloh33:
	adrp	x8, _ABS_Y@GOTPAGE
Lloh34:
	ldr	x8, [x8, _ABS_Y@GOTPAGEOFF]
Lloh35:
	ldr	w1, [x8]
	ldrb	w8, [x20]
	lsl	w8, w8, #5
	and	w8, w8, #0x40
	ldrb	w9, [x20, #2]
	and	w9, w9, #0x3f
	sub	w8, w8, w9
	and	w2, w8, #0xff
	mov	x0, x19
	bl	_input_report_abs
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_input_sync
LBB0_2:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_BTN_A,4,2                      ; @BTN_A
	.comm	_BTN_B,4,2                      ; @BTN_B
	.comm	_BTN_C,4,2                      ; @BTN_C
	.comm	_BTN_X,4,2                      ; @BTN_X
	.comm	_BTN_Y,4,2                      ; @BTN_Y
	.comm	_BTN_Z,4,2                      ; @BTN_Z
	.comm	_BTN_TL,4,2                     ; @BTN_TL
	.comm	_BTN_TR,4,2                     ; @BTN_TR
	.comm	_BTN_SELECT,4,2                 ; @BTN_SELECT
	.comm	_BTN_START,4,2                  ; @BTN_START
	.comm	_ABS_X,4,2                      ; @ABS_X
	.comm	_ABS_Y,4,2                      ; @ABS_Y
	.no_dead_strip	_stinger_process_packet
.subsections_via_symbols
