	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gc_multi_process_packet
_gc_multi_process_packet:               ## @gc_multi_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_GC_MULTI2_LENGTH@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r15
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movq	8(%r14), %rax
	cmpq	$0, 1024(%rax)
	jne	LBB0_2
## %bb.1:
	movq	_GC_MULTI_LENGTH@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_2:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%ebx, %esi
	movq	%r15, %rdx
	callq	_gc_multi_read_packet
	movq	_GC_MAX_DEVICES@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	jle	LBB0_9
## %bb.3:
	movl	$8, %ebx
	xorl	%r12d, %r12d
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	_ABS_X@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movzbl	2(%r15), %eax
	xorl	%edx, %edx
	testl	%eax, %r14d
	sete	%dl
	movzbl	3(%r15), %eax
	andl	%r14d, %eax
	cmpl	$1, %eax
	sbbl	$0, %edx
	movq	%r13, %rdi
	callq	_input_report_abs
	movq	_ABS_Y@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movzbl	(%r15), %eax
	xorl	%edx, %edx
	testl	%eax, %r14d
	sete	%dl
	movzbl	1(%r15), %eax
	andl	%r14d, %eax
	cmpl	$1, %eax
	sbbl	$0, %edx
	movq	%r13, %rdi
	callq	_input_report_abs
	movq	_BTN_TRIGGER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movzbl	4(%r15), %edx
	andl	%r14d, %edx
	movq	%r13, %rdi
	callq	_input_report_key
	movq	%r13, %rdi
	callq	_input_sync
	movq	_GC_MAX_DEVICES@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=1
	incq	%r12
	movslq	%eax, %rcx
	addq	$16, %rbx
	cmpq	%rcx, %r12
	jge	LBB0_9
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx), %rcx
	movq	(%rcx,%rbx), %r13
	movq	_gc_status_bit@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movl	(%rdx,%r12,4), %r14d
	movl	-8(%rcx,%rbx), %ecx
	cmpl	$129, %ecx
	je	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpl	$128, %ecx
	jne	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	_BTN_THUMB@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movzbl	5(%r15), %edx
	andl	%r14d, %edx
	movq	%r13, %rdi
	callq	_input_report_key
	jmp	LBB0_7
LBB0_9:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_11
## %bb.10:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_GC_MULTI2_LENGTH,4,2           ## @GC_MULTI2_LENGTH
	.comm	_GC_MULTI_LENGTH,4,2            ## @GC_MULTI_LENGTH
	.comm	_GC_MAX_DEVICES,4,2             ## @GC_MAX_DEVICES
	.comm	_gc_status_bit,8,3              ## @gc_status_bit
	.comm	_BTN_THUMB,4,2                  ## @BTN_THUMB
	.comm	_ABS_X,4,2                      ## @ABS_X
	.comm	_ABS_Y,4,2                      ## @ABS_Y
	.comm	_BTN_TRIGGER,4,2                ## @BTN_TRIGGER
	.no_dead_strip	_gc_multi_process_packet
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gc_multi_process_packet
_gc_multi_process_packet:               ; @gc_multi_process_packet
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #16
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x8, _GC_MULTI2_LENGTH@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GC_MULTI2_LENGTH@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x10, x8, #15
	and	x10, x10, #0x1fffffff0
	sub	x20, x9, x10
	mov	sp, x20
	ldr	x9, [x0, #8]
	ldr	x9, [x9, #1024]
Lloh8:
	adrp	x10, _GC_MULTI_LENGTH@GOTPAGE
Lloh9:
	ldr	x10, [x10, _GC_MULTI_LENGTH@GOTPAGEOFF]
Lloh10:
	ldr	w10, [x10]
	cmp	x9, #0
	csel	w1, w10, w8, eq
	mov	x2, x20
	bl	_gc_multi_read_packet
Lloh11:
	adrp	x22, _GC_MAX_DEVICES@GOTPAGE
Lloh12:
	ldr	x22, [x22, _GC_MAX_DEVICES@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.1:
	mov	x23, #0
	mov	x24, #0
Lloh13:
	adrp	x25, _gc_status_bit@GOTPAGE
Lloh14:
	ldr	x25, [x25, _gc_status_bit@GOTPAGEOFF]
Lloh15:
	adrp	x27, _ABS_Y@GOTPAGE
Lloh16:
	ldr	x27, [x27, _ABS_Y@GOTPAGEOFF]
Lloh17:
	adrp	x28, _BTN_TRIGGER@GOTPAGE
Lloh18:
	ldr	x28, [x28, _BTN_TRIGGER@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
Lloh19:
	adrp	x8, _ABS_X@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ABS_X@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
	ldrb	w8, [x20, #2]
	tst	w26, w8
	cset	w8, eq
	ldrb	w9, [x20, #3]
	tst	w26, w9
	cset	w9, eq
	sub	w2, w8, w9
	mov	x0, x21
	bl	_input_report_abs
	ldr	w1, [x27]
	ldrb	w8, [x20]
	tst	w26, w8
	cset	w8, eq
	ldrb	w9, [x20, #1]
	tst	w26, w9
	cset	w9, eq
	sub	w2, w8, w9
	mov	x0, x21
	bl	_input_report_abs
	ldr	w1, [x28]
	ldrb	w8, [x20, #4]
	and	w2, w26, w8
	mov	x0, x21
	bl	_input_report_key
	mov	x0, x21
	bl	_input_sync
	ldr	w8, [x22]
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x24, x24, #1
	add	x23, x23, #16
	cmp	x24, w8, sxtw
	b.ge	LBB0_7
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x19]
	add	x9, x9, x23
	ldr	x21, [x9, #8]
	ldr	x10, [x25]
	ldr	w26, [x10, x24, lsl #2]
	ldr	w9, [x9]
	cmp	w9, #129
	b.eq	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	w9, #128
	b.ne	LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
Lloh22:
	adrp	x8, _BTN_THUMB@GOTPAGE
Lloh23:
	ldr	x8, [x8, _BTN_THUMB@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x8]
	ldrb	w8, [x20, #5]
	and	w2, w26, w8
	mov	x0, x21
	bl	_input_report_key
	b	LBB0_2
LBB0_7:
	ldur	x8, [x29, #-88]
Lloh25:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh26:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh27:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_9
; %bb.8:
	sub	sp, x29, #80
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_9:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_GC_MULTI2_LENGTH,4,2           ; @GC_MULTI2_LENGTH
	.comm	_GC_MULTI_LENGTH,4,2            ; @GC_MULTI_LENGTH
	.comm	_GC_MAX_DEVICES,4,2             ; @GC_MAX_DEVICES
	.comm	_gc_status_bit,8,3              ; @gc_status_bit
	.comm	_BTN_THUMB,4,2                  ; @BTN_THUMB
	.comm	_ABS_X,4,2                      ; @ABS_X
	.comm	_ABS_Y,4,2                      ; @ABS_Y
	.comm	_BTN_TRIGGER,4,2                ; @BTN_TRIGGER
	.no_dead_strip	_gc_multi_process_packet
.subsections_via_symbols
