	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function warrior_process_packet
_warrior_process_packet:                ## @warrior_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_8
## %bb.1:
	movq	(%rdi), %rbx
	movq	16(%rdi), %r14
	movzbl	(%rbx), %eax
	movl	%eax, %ecx
	shrl	$4, %ecx
	andl	$7, %ecx
	cmpl	$5, %ecx
	je	LBB0_6
## %bb.2:
	cmpl	$3, %ecx
	je	LBB0_5
## %bb.3:
	cmpl	$1, %ecx
	jne	LBB0_7
## %bb.4:
	movq	_BTN_TRIGGER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movzbl	3(%rbx), %edx
	andl	$1, %edx
	movq	%r14, %rdi
	callq	_input_report_key
	movq	_BTN_THUMB@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movzbl	3(%rbx), %edx
	shrl	%edx
	andl	$1, %edx
	movq	%r14, %rdi
	callq	_input_report_key
	movq	_BTN_TOP@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_TOP2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movzbl	3(%rbx), %edx
	shrl	$3, %edx
	andl	$1, %edx
	movq	%r14, %rdi
	callq	_input_report_key
	jmp	LBB0_7
LBB0_8:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_6:
	movq	_ABS_THROTTLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movzbl	1(%rbx), %ecx
	shll	$7, %eax
	movzbl	%al, %edx
	orl	%ecx, %edx
	andl	$256, %eax                      ## imm = 0x100
	subl	%eax, %edx
	movq	%r14, %rdi
	callq	_input_report_abs
	movq	_ABS_HAT0X@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movzbl	3(%rbx), %eax
	movl	%eax, %edx
	andl	$1, %edx
	btl	$1, %eax
	sbbl	$0, %edx
	negl	%edx
	movq	%r14, %rdi
	callq	_input_report_abs
	movq	_ABS_HAT0Y@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movzbl	3(%rbx), %eax
	movl	%eax, %edx
	shll	$29, %edx
	sarl	$31, %edx
	btl	$3, %eax
	adcl	$0, %edx
	movq	%r14, %rdi
	callq	_input_report_abs
	movq	_REL_DIAL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movb	(%rbx), %al
	shlb	$5, %al
	andb	$-128, %al
	orb	2(%rbx), %al
	movzbl	%al, %edx
	movq	%r14, %rdi
	callq	_input_report_rel
	jmp	LBB0_7
LBB0_5:
	movq	_ABS_X@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	shll	$5, %eax
	movl	%eax, %edx
	andl	$256, %edx                      ## imm = 0x100
	movzbl	2(%rbx), %ecx
	andl	$128, %eax
	orl	%ecx, %eax
	subl	%eax, %edx
	movq	%r14, %rdi
	callq	_input_report_abs
	movq	_ABS_Y@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movzbl	1(%rbx), %eax
	movzbl	(%rbx), %ecx
	shll	$7, %ecx
	movzbl	%cl, %edx
	orl	%eax, %edx
	andl	$256, %ecx                      ## imm = 0x100
	subl	%ecx, %edx
	movq	%r14, %rdi
	callq	_input_report_abs
LBB0_7:
	movq	%r14, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_input_sync                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_BTN_TRIGGER,4,2                ## @BTN_TRIGGER
	.comm	_BTN_THUMB,4,2                  ## @BTN_THUMB
	.comm	_BTN_TOP,4,2                    ## @BTN_TOP
	.comm	_BTN_TOP2,4,2                   ## @BTN_TOP2
	.comm	_ABS_X,4,2                      ## @ABS_X
	.comm	_ABS_Y,4,2                      ## @ABS_Y
	.comm	_ABS_THROTTLE,4,2               ## @ABS_THROTTLE
	.comm	_ABS_HAT0X,4,2                  ## @ABS_HAT0X
	.comm	_ABS_HAT0Y,4,2                  ## @ABS_HAT0Y
	.comm	_REL_DIAL,4,2                   ## @REL_DIAL
	.no_dead_strip	_warrior_process_packet
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function warrior_process_packet
_warrior_process_packet:                ; @warrior_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_5
; %bb.1:
	ldr	x19, [x0, #16]
	ldr	x20, [x0]
	ldrb	w8, [x20]
	ubfx	w9, w8, #4, #3
	cmp	w9, #5
	b.eq	LBB0_6
; %bb.2:
	cmp	w9, #3
	b.eq	LBB0_7
; %bb.3:
	cmp	w9, #1
	b.ne	LBB0_8
; %bb.4:
Lloh0:
	adrp	x8, _BTN_TRIGGER@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BTN_TRIGGER@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	ldrb	w8, [x20, #3]
	and	w2, w8, #0x1
	mov	x0, x19
	bl	_input_report_key
Lloh3:
	adrp	x8, _BTN_THUMB@GOTPAGE
Lloh4:
	ldr	x8, [x8, _BTN_THUMB@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	ldrb	w8, [x20, #3]
	ubfx	w2, w8, #1, #1
	mov	x0, x19
	bl	_input_report_key
Lloh6:
	adrp	x8, _BTN_TOP@GOTPAGE
Lloh7:
	ldr	x8, [x8, _BTN_TOP@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	ldrb	w8, [x20, #3]
	ubfx	w2, w8, #2, #1
	mov	x0, x19
	bl	_input_report_key
Lloh9:
	adrp	x8, _BTN_TOP2@GOTPAGE
Lloh10:
	ldr	x8, [x8, _BTN_TOP2@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	ldrb	w8, [x20, #3]
	ubfx	w2, w8, #3, #1
	mov	x0, x19
	bl	_input_report_key
	b	LBB0_8
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_6:
Lloh12:
	adrp	x9, _ABS_THROTTLE@GOTPAGE
Lloh13:
	ldr	x9, [x9, _ABS_THROTTLE@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x9]
	ldrb	w9, [x20, #1]
	lsl	w8, w8, #7
	and	w10, w8, #0x80
	orr	w9, w10, w9
	and	w8, w8, #0x100
	sub	w2, w9, w8
	mov	x0, x19
	bl	_input_report_abs
Lloh15:
	adrp	x8, _ABS_HAT0X@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ABS_HAT0X@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	ldrb	w8, [x20, #3]
	ubfx	w9, w8, #1, #1
	and	w8, w8, #0x1
	sub	w2, w9, w8
	mov	x0, x19
	bl	_input_report_abs
Lloh18:
	adrp	x8, _ABS_HAT0Y@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ABS_HAT0Y@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	ldrb	w8, [x20, #3]
	ubfx	w9, w8, #3, #1
	lsl	w8, w8, #29
	add	w2, w9, w8, asr #31
	mov	x0, x19
	bl	_input_report_abs
Lloh21:
	adrp	x8, _REL_DIAL@GOTPAGE
Lloh22:
	ldr	x8, [x8, _REL_DIAL@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	ldrb	w8, [x20, #2]
	ldrb	w9, [x20]
	lsl	w9, w9, #5
	and	w9, w9, #0x80
	orr	w2, w9, w8
	mov	x0, x19
	bl	_input_report_rel
	b	LBB0_8
LBB0_7:
Lloh24:
	adrp	x9, _ABS_X@GOTPAGE
Lloh25:
	ldr	x9, [x9, _ABS_X@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x9]
	lsl	w8, w8, #5
	and	w9, w8, #0x100
	ldrb	w10, [x20, #2]
	and	w8, w8, #0x80
	orr	w8, w8, w10
	sub	w2, w9, w8
	mov	x0, x19
	bl	_input_report_abs
Lloh27:
	adrp	x8, _ABS_Y@GOTPAGE
Lloh28:
	ldr	x8, [x8, _ABS_Y@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
	ldrb	w8, [x20, #1]
	ldrb	w9, [x20]
	lsl	w9, w9, #7
	and	w10, w9, #0x80
	orr	w8, w10, w8
	and	w9, w9, #0x100
	sub	w2, w8, w9
	mov	x0, x19
	bl	_input_report_abs
LBB0_8:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_input_sync
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_BTN_TRIGGER,4,2                ; @BTN_TRIGGER
	.comm	_BTN_THUMB,4,2                  ; @BTN_THUMB
	.comm	_BTN_TOP,4,2                    ; @BTN_TOP
	.comm	_BTN_TOP2,4,2                   ; @BTN_TOP2
	.comm	_ABS_X,4,2                      ; @ABS_X
	.comm	_ABS_Y,4,2                      ; @ABS_Y
	.comm	_ABS_THROTTLE,4,2               ; @ABS_THROTTLE
	.comm	_ABS_HAT0X,4,2                  ; @ABS_HAT0X
	.comm	_ABS_HAT0Y,4,2                  ; @ABS_HAT0Y
	.comm	_REL_DIAL,4,2                   ; @REL_DIAL
	.no_dead_strip	_warrior_process_packet
.subsections_via_symbols
