	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gc_psx_process_packet
_gc_psx_process_packet:                 ## @gc_psx_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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_GC_MAX_DEVICES@GOTPCREL(%rip), %r14
	movl	(%r14), %ebx
	movq	_GC_PSX_BYTES@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	%r15, %rax
	imulq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r13
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rdx
	movq	%r12, %rdi
	movq	%r13, %rsi
	movq	%rdx, -88(%rbp)                 ## 8-byte Spill
	callq	_gc_psx_read_packet
	cmpl	$0, (%r14)
	jle	LBB0_16
## %bb.1:
	movq	%r15, %rsi
	xorl	%ebx, %ebx
	xorl	%r14d, %r14d
	movq	%r12, -80(%rbp)                 ## 8-byte Spill
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_8
LBB0_2:                                 ##   in Loop: Header=BB0_8 Depth=1
	movq	_BTN_THUMBL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movzbl	(%r13,%rbx), %eax
	notb	%al
	andb	$4, %al
	movzbl	%al, %edx
	movq	%r15, %rdi
	callq	_input_report_key
	movq	_BTN_THUMBR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movzbl	(%r13,%rbx), %eax
	notb	%al
	andb	$2, %al
	movzbl	%al, %edx
	movq	%r15, %rdi
	callq	_input_report_key
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
LBB0_3:                                 ##   in Loop: Header=BB0_8 Depth=1
	movq	(%r12), %rax
	movq	_GC_DDR@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	_gc_status_bit@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movl	(%rdx,%r14,4), %edx
	movq	%r14, %rdi
	imulq	%rsi, %rdi
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	testl	%edx, (%rax,%rcx,4)
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	je	LBB0_12
## %bb.4:                               ##   in Loop: Header=BB0_8 Depth=1
	movq	_gc_psx_ddr_btn@GOTPCREL(%rip), %r12
	movq	(%r12), %rax
	movl	(%rax), %esi
	movzbl	(%r13,%rbx), %eax
	notb	%al
	andb	$16, %al
	movzbl	%al, %edx
	movq	%r15, %rdi
	callq	_input_report_key
	movq	(%r12), %rax
	movl	4(%rax), %esi
	movzbl	(%r13,%rbx), %eax
	notb	%al
	andb	$32, %al
	movzbl	%al, %edx
	movq	%r15, %rdi
	callq	_input_report_key
	movq	(%r12), %rax
	movl	8(%rax), %esi
	movzbl	(%r13,%rbx), %eax
	notb	%al
	andb	$64, %al
	movzbl	%al, %edx
	movq	%r15, %rdi
	callq	_input_report_key
	movq	(%r12), %rax
	movl	12(%rax), %esi
	movzbl	(%r13,%rbx), %eax
	notb	%al
	andb	$-128, %al
	movzbl	%al, %edx
	movq	%r15, %rdi
	callq	_input_report_key
LBB0_5:                                 ##   in Loop: Header=BB0_8 Depth=1
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
LBB0_6:                                 ##   in Loop: Header=BB0_8 Depth=1
	movq	_gc_psx_btn@GOTPCREL(%rip), %r12
	movq	(%r12), %rax
	movl	(%rax), %esi
	movzbl	1(%r13,%rbx), %eax
	notb	%al
	andb	$1, %al
	movzbl	%al, %edx
	movq	%r15, %rdi
	callq	_input_report_key
	movq	(%r12), %rax
	movl	4(%rax), %esi
	movzbl	1(%r13,%rbx), %eax
	notb	%al
	andb	$2, %al
	movzbl	%al, %edx
	movq	%r15, %rdi
	callq	_input_report_key
	movq	(%r12), %rax
	movl	8(%rax), %esi
	movzbl	1(%r13,%rbx), %eax
	notb	%al
	andb	$4, %al
	movzbl	%al, %edx
	movq	%r15, %rdi
	callq	_input_report_key
	movq	(%r12), %rax
	movl	12(%rax), %esi
	movzbl	1(%r13,%rbx), %eax
	notb	%al
	andb	$8, %al
	movzbl	%al, %edx
	movq	%r15, %rdi
	callq	_input_report_key
	movq	(%r12), %rax
	movl	16(%rax), %esi
	movzbl	1(%r13,%rbx), %eax
	notb	%al
	andb	$16, %al
	movzbl	%al, %edx
	movq	%r15, %rdi
	callq	_input_report_key
	movq	(%r12), %rax
	movl	20(%rax), %esi
	movzbl	1(%r13,%rbx), %eax
	notb	%al
	andb	$32, %al
	movzbl	%al, %edx
	movq	%r15, %rdi
	callq	_input_report_key
	movq	(%r12), %rax
	movl	24(%rax), %esi
	movzbl	1(%r13,%rbx), %eax
	notb	%al
	andb	$64, %al
	movzbl	%al, %edx
	movq	%r15, %rdi
	callq	_input_report_key
	movq	(%r12), %rax
	movl	28(%rax), %esi
	movzbl	1(%r13,%rbx), %eax
	notb	%al
	andb	$-128, %al
	movzbl	%al, %edx
	movq	%r15, %rdi
	callq	_input_report_key
	movq	_BTN_START@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movzbl	(%r13,%rbx), %eax
	notb	%al
	andb	$8, %al
	movzbl	%al, %edx
	movq	%r15, %rdi
	callq	_input_report_key
	movq	_BTN_SELECT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movzbl	(%r13,%rbx), %eax
	notb	%al
	andb	$1, %al
	movzbl	%al, %edx
	movq	%r15, %rdi
	callq	_input_report_key
	movq	%r15, %rdi
	callq	_input_sync
	movq	-80(%rbp), %r12                 ## 8-byte Reload
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
LBB0_7:                                 ##   in Loop: Header=BB0_8 Depth=1
	incq	%r14
	movq	_GC_MAX_DEVICES@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	addq	%rsi, %rbx
	cmpq	%rax, %r14
	jge	LBB0_16
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r12), %rax
	movq	(%rax,%r14,8), %r15
	testq	%r15, %r15
	je	LBB0_7
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movzbl	(%rax,%r14), %eax
	leal	126(%rax), %ecx
	cmpb	$2, %cl
	jb	LBB0_3
## %bb.10:                              ##   in Loop: Header=BB0_8 Depth=1
	cmpb	$-127, %al
	je	LBB0_13
## %bb.11:                              ##   in Loop: Header=BB0_8 Depth=1
	cmpb	$-128, %al
	je	LBB0_2
	jmp	LBB0_7
LBB0_12:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	_gc_psx_abs@GOTPCREL(%rip), %r12
	movq	(%r12), %rax
	movl	8(%rax), %esi
	movzbl	2(%r13,%rbx), %edx
	movq	%r15, %rdi
	callq	_input_report_abs
	movq	(%r12), %rax
	movl	12(%rax), %esi
	movzbl	3(%r13,%rbx), %edx
	movq	%r15, %rdi
	callq	_input_report_abs
	movq	(%r12), %rax
	movl	16(%rax), %esi
	movzbl	4(%r13,%rbx), %edx
	movq	%r15, %rdi
	callq	_input_report_abs
	movq	(%r12), %rax
	movl	20(%rax), %esi
	movzbl	5(%r13,%rbx), %edx
	movq	%r15, %rdi
	callq	_input_report_abs
	movq	_ABS_X@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movzbl	(%r13,%rbx), %edx
	xorl	%eax, %eax
	testb	$32, %dl
	sete	%al
	movl	%eax, %ecx
	shll	$7, %ecx
	subl	%eax, %ecx
	andl	$-128, %edx
	orl	%ecx, %edx
	movq	%r15, %rdi
	callq	_input_report_abs
	movq	_ABS_Y@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movzbl	(%r13,%rbx), %edx
	xorl	%eax, %eax
	testb	$64, %dl
	sete	%al
	movl	%eax, %ecx
	shll	$7, %ecx
	subl	%eax, %ecx
	andl	$16, %edx
	shll	$3, %edx
	orl	%ecx, %edx
	movq	%r15, %rdi
	callq	_input_report_abs
	jmp	LBB0_5
LBB0_13:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	(%r12), %rax
	movq	_GC_DDR@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	_gc_status_bit@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movl	(%rdx,%r14,4), %edx
	testl	%edx, (%rax,%rcx,4)
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	je	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	%r14, %r12
	imulq	%rsi, %r12
	movq	_gc_psx_ddr_btn@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax), %esi
	movzbl	(%r13,%rbx), %eax
	notb	%al
	andb	$16, %al
	movzbl	%al, %edx
	movq	%r15, %rdi
	callq	_input_report_key
	movq	_gc_psx_ddr_btn@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	4(%rax), %esi
	movzbl	(%r13,%rbx), %eax
	notb	%al
	andb	$32, %al
	movzbl	%al, %edx
	movq	%r15, %rdi
	callq	_input_report_key
	movq	_gc_psx_ddr_btn@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	8(%rax), %esi
	movzbl	(%r13,%rbx), %eax
	notb	%al
	andb	$64, %al
	movzbl	%al, %edx
	movq	%r15, %rdi
	callq	_input_report_key
	movq	_gc_psx_ddr_btn@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	12(%rax), %esi
	movzbl	(%r13,%rbx), %eax
	movq	%r12, %rbx
	notb	%al
	andb	$-128, %al
	movzbl	%al, %edx
	movq	%r15, %rdi
	callq	_input_report_key
	jmp	LBB0_6
LBB0_15:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	_ABS_X@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movzbl	(%r13,%rbx), %edx
	xorl	%eax, %eax
	testb	$32, %dl
	sete	%al
	movl	%eax, %ecx
	shll	$7, %ecx
	subl	%eax, %ecx
	andl	$-128, %edx
	orl	%ecx, %edx
	movq	%r15, %rdi
	callq	_input_report_abs
	movq	_ABS_Y@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movzbl	(%r13,%rbx), %edx
	xorl	%eax, %eax
	testb	$64, %dl
	sete	%al
	movl	%eax, %ecx
	shll	$7, %ecx
	subl	%eax, %ecx
	andl	$16, %edx
	shll	$3, %edx
	orl	%ecx, %edx
	movq	%r15, %rdi
	callq	_input_report_abs
	jmp	LBB0_6
LBB0_16:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_18
## %bb.17:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_18:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_GC_MAX_DEVICES,4,2             ## @GC_MAX_DEVICES
	.comm	_GC_PSX_BYTES,4,2               ## @GC_PSX_BYTES
	.comm	_BTN_THUMBL,4,2                 ## @BTN_THUMBL
	.comm	_BTN_THUMBR,4,2                 ## @BTN_THUMBR
	.comm	_GC_DDR,8,3                     ## @GC_DDR
	.comm	_gc_status_bit,8,3              ## @gc_status_bit
	.comm	_gc_psx_ddr_btn,8,3             ## @gc_psx_ddr_btn
	.comm	_gc_psx_abs,8,3                 ## @gc_psx_abs
	.comm	_ABS_X,4,2                      ## @ABS_X
	.comm	_ABS_Y,4,2                      ## @ABS_Y
	.comm	_gc_psx_btn,8,3                 ## @gc_psx_btn
	.comm	_BTN_START,4,2                  ## @BTN_START
	.comm	_BTN_SELECT,4,2                 ## @BTN_SELECT
	.no_dead_strip	_gc_psx_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_psx_process_packet
_gc_psx_process_packet:                 ; @gc_psx_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, #32
	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	x28, _GC_MAX_DEVICES@GOTPAGE
Lloh4:
	ldr	x28, [x28, _GC_MAX_DEVICES@GOTPAGEOFF]
	ldr	w8, [x28]
Lloh5:
	adrp	x9, _GC_PSX_BYTES@GOTPAGE
Lloh6:
	ldr	x9, [x9, _GC_PSX_BYTES@GOTPAGEOFF]
Lloh7:
	ldr	w24, [x9]
	mul	x9, x24, x8
	add	x10, x9, #15
	and	x12, x10, #0xfffffffffffffff0
Lloh8:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh9:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	sub	x20, x9, x12
	mov	sp, x20
	mov	x9, x8
Lloh10:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh11:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x2, x9, x8
	mov	sp, x2
	mov	x1, x20
	stur	x2, [x29, #-96]                 ; 8-byte Folded Spill
	bl	_gc_psx_read_packet
	ldr	w8, [x28]
	cmp	w8, #1
	b.lt	LBB0_15
; %bb.1:
	mov	x25, #0
	mov	x26, #0
Lloh12:
	adrp	x27, _gc_psx_btn@GOTPAGE
Lloh13:
	ldr	x27, [x27, _gc_psx_btn@GOTPAGEOFF]
	stur	x19, [x29, #-104]               ; 8-byte Folded Spill
	b	LBB0_7
LBB0_2:                                 ;   in Loop: Header=BB0_7 Depth=1
Lloh14:
	adrp	x8, _BTN_THUMBL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _BTN_THUMBL@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	ldrb	w8, [x20, x25]
	mvn	w8, w8
	and	w2, w8, #0x4
	mov	x0, x22
	bl	_input_report_key
Lloh17:
	adrp	x8, _BTN_THUMBR@GOTPAGE
Lloh18:
	ldr	x8, [x8, _BTN_THUMBR@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	ldrb	w8, [x20, x25]
	mvn	w8, w8
	and	w2, w8, #0x2
	mov	x0, x22
	bl	_input_report_key
LBB0_3:                                 ;   in Loop: Header=BB0_7 Depth=1
	ldr	x8, [x19]
Lloh20:
	adrp	x9, _GC_DDR@GOTPAGE
Lloh21:
	ldr	x9, [x9, _GC_DDR@GOTPAGEOFF]
Lloh22:
	ldr	x9, [x9]
	ldr	w8, [x8, x9, lsl #2]
Lloh23:
	adrp	x9, _gc_status_bit@GOTPAGE
Lloh24:
	ldr	x9, [x9, _gc_status_bit@GOTPAGEOFF]
Lloh25:
	ldr	x9, [x9]
	ldr	w9, [x9, x26, lsl #2]
	mul	x23, x26, x24
	tst	w9, w8
	b.eq	LBB0_11
LBB0_4:                                 ;   in Loop: Header=BB0_7 Depth=1
Lloh26:
	adrp	x21, _gc_psx_ddr_btn@GOTPAGE
Lloh27:
	ldr	x21, [x21, _gc_psx_ddr_btn@GOTPAGEOFF]
	ldr	x8, [x21]
	ldr	w1, [x8]
	ldrb	w8, [x20, x25]
	mvn	w8, w8
	and	w2, w8, #0x10
	mov	x0, x22
	bl	_input_report_key
	ldr	x8, [x21]
	ldr	w1, [x8, #4]
	ldrb	w8, [x20, x25]
	mvn	w8, w8
	and	w2, w8, #0x20
	mov	x0, x22
	bl	_input_report_key
	ldr	x8, [x21]
	ldr	w1, [x8, #8]
	ldrb	w8, [x20, x25]
	mvn	w8, w8
	and	w2, w8, #0x40
	mov	x0, x22
	bl	_input_report_key
	ldr	x8, [x21]
	ldr	w1, [x8, #12]
	ldrb	w8, [x20, x25]
	mvn	w8, w8
	and	w2, w8, #0x80
	mov	x0, x22
	bl	_input_report_key
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	x23, x20, x23
	ldr	x8, [x27]
	ldr	w1, [x8]
	ldrb	w8, [x23, #1]
	mvn	w8, w8
	and	w2, w8, #0x1
	mov	x0, x22
	bl	_input_report_key
	ldr	x8, [x27]
	ldr	w1, [x8, #4]
	ldrb	w8, [x23, #1]
	mvn	w8, w8
	and	w2, w8, #0x2
	mov	x0, x22
	bl	_input_report_key
	ldr	x8, [x27]
	ldr	w1, [x8, #8]
	ldrb	w8, [x23, #1]
	mvn	w8, w8
	and	w2, w8, #0x4
	mov	x0, x22
	bl	_input_report_key
	ldr	x8, [x27]
	ldr	w1, [x8, #12]
	ldrb	w8, [x23, #1]
	mvn	w8, w8
	and	w2, w8, #0x8
	mov	x0, x22
	bl	_input_report_key
	ldr	x8, [x27]
	ldr	w1, [x8, #16]
	ldrb	w8, [x23, #1]
	mvn	w8, w8
	and	w2, w8, #0x10
	mov	x0, x22
	bl	_input_report_key
	ldr	x8, [x27]
	ldr	w1, [x8, #20]
	ldrb	w8, [x23, #1]
	mvn	w8, w8
	and	w2, w8, #0x20
	mov	x0, x22
	bl	_input_report_key
	ldr	x8, [x27]
	ldr	w1, [x8, #24]
	ldrb	w8, [x23, #1]
	mvn	w8, w8
	and	w2, w8, #0x40
	mov	x0, x22
	bl	_input_report_key
	ldr	x8, [x27]
	ldr	w1, [x8, #28]
	ldrb	w8, [x23, #1]
	mvn	w8, w8
	and	w2, w8, #0x80
	mov	x0, x22
	bl	_input_report_key
Lloh28:
	adrp	x8, _BTN_START@GOTPAGE
Lloh29:
	ldr	x8, [x8, _BTN_START@GOTPAGEOFF]
Lloh30:
	ldr	w1, [x8]
	ldrb	w8, [x23]
	mvn	w8, w8
	and	w2, w8, #0x8
	mov	x0, x22
	bl	_input_report_key
Lloh31:
	adrp	x8, _BTN_SELECT@GOTPAGE
Lloh32:
	ldr	x8, [x8, _BTN_SELECT@GOTPAGEOFF]
Lloh33:
	ldr	w1, [x8]
	ldrb	w8, [x23]
	mvn	w8, w8
	and	w2, w8, #0x1
	mov	x0, x22
	bl	_input_report_key
	mov	x0, x22
	bl	_input_sync
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	x26, x26, #1
	ldrsw	x8, [x28]
	add	x25, x25, x24
	cmp	x26, x8
	b.ge	LBB0_15
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	ldr	x22, [x8, x26, lsl #3]
	cbz	x22, LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldur	x8, [x29, #-96]                 ; 8-byte Folded Reload
	ldrb	w8, [x8, x26]
	sub	w9, w8, #130
	cmp	w9, #2
	b.lo	LBB0_3
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	cmp	w8, #129
	b.eq	LBB0_12
; %bb.10:                               ;   in Loop: Header=BB0_7 Depth=1
	cmp	w8, #128
	b.eq	LBB0_2
	b	LBB0_6
LBB0_11:                                ;   in Loop: Header=BB0_7 Depth=1
Lloh34:
	adrp	x21, _gc_psx_abs@GOTPAGE
Lloh35:
	ldr	x21, [x21, _gc_psx_abs@GOTPAGEOFF]
	ldr	x8, [x21]
	ldr	w1, [x8, #8]
	mov	x19, x24
	mov	x24, x28
	add	x28, x20, x25
	ldrb	w2, [x28, #2]
	mov	x0, x22
	bl	_input_report_abs
	ldr	x8, [x21]
	ldr	w1, [x8, #12]
	ldrb	w2, [x28, #3]
	mov	x0, x22
	bl	_input_report_abs
	ldr	x8, [x21]
	ldr	w1, [x8, #16]
	ldrb	w2, [x28, #4]
	mov	x0, x22
	bl	_input_report_abs
	ldr	x8, [x21]
	ldr	w1, [x8, #20]
	ldrb	w2, [x28, #5]
	mov	x0, x22
	bl	_input_report_abs
Lloh36:
	adrp	x8, _ABS_X@GOTPAGE
Lloh37:
	ldr	x8, [x8, _ABS_X@GOTPAGEOFF]
Lloh38:
	ldr	w1, [x8]
	ldrb	w8, [x28]
	mov	w21, #1
	bic	w9, w21, w8, lsr #5
	lsl	w10, w9, #7
	and	w8, w8, #0x80
	sub	w9, w10, w9
	orr	w2, w8, w9
	mov	x0, x22
	bl	_input_report_abs
Lloh39:
	adrp	x8, _ABS_Y@GOTPAGE
Lloh40:
	ldr	x8, [x8, _ABS_Y@GOTPAGEOFF]
Lloh41:
	ldr	w1, [x8]
	ldrb	w8, [x28]
	mov	x28, x24
	mov	x24, x19
	ldur	x19, [x29, #-104]               ; 8-byte Folded Reload
	bic	w9, w21, w8, lsr #6
	lsl	w10, w9, #7
	lsl	w8, w8, #3
	and	w8, w8, #0x80
	sub	w9, w10, w9
	orr	w2, w8, w9
	mov	x0, x22
	bl	_input_report_abs
	b	LBB0_5
LBB0_12:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x8, [x19]
Lloh42:
	adrp	x9, _GC_DDR@GOTPAGE
Lloh43:
	ldr	x9, [x9, _GC_DDR@GOTPAGEOFF]
Lloh44:
	ldr	x9, [x9]
	ldr	w8, [x8, x9, lsl #2]
Lloh45:
	adrp	x9, _gc_status_bit@GOTPAGE
Lloh46:
	ldr	x9, [x9, _gc_status_bit@GOTPAGEOFF]
Lloh47:
	ldr	x9, [x9]
	ldr	w9, [x9, x26, lsl #2]
	tst	w9, w8
	b.eq	LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_7 Depth=1
	mul	x23, x26, x24
	b	LBB0_4
LBB0_14:                                ;   in Loop: Header=BB0_7 Depth=1
	ldrb	w8, [x20, x25]
Lloh48:
	adrp	x9, _ABS_X@GOTPAGE
Lloh49:
	ldr	x9, [x9, _ABS_X@GOTPAGEOFF]
Lloh50:
	ldr	w1, [x9]
	mov	w21, #1
	bic	w9, w21, w8, lsr #5
	lsl	w10, w9, #7
	and	w8, w8, #0x80
	sub	w9, w10, w9
	orr	w2, w8, w9
	mov	x0, x22
	bl	_input_report_abs
Lloh51:
	adrp	x8, _ABS_Y@GOTPAGE
Lloh52:
	ldr	x8, [x8, _ABS_Y@GOTPAGEOFF]
Lloh53:
	ldr	w1, [x8]
	ldrb	w8, [x20, x25]
	bic	w9, w21, w8, lsr #6
	lsl	w10, w9, #7
	lsl	w8, w8, #3
	and	w8, w8, #0x80
	sub	w9, w10, w9
	orr	w2, w8, w9
	mov	x0, x22
	bl	_input_report_abs
	mov	x23, x25
	b	LBB0_5
LBB0_15:
	ldur	x8, [x29, #-88]
Lloh54:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh55:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh56:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_17
; %bb.16:
	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_17:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.cfi_endproc
                                        ; -- End function
	.comm	_GC_MAX_DEVICES,4,2             ; @GC_MAX_DEVICES
	.comm	_GC_PSX_BYTES,4,2               ; @GC_PSX_BYTES
	.comm	_BTN_THUMBL,4,2                 ; @BTN_THUMBL
	.comm	_BTN_THUMBR,4,2                 ; @BTN_THUMBR
	.comm	_GC_DDR,8,3                     ; @GC_DDR
	.comm	_gc_status_bit,8,3              ; @gc_status_bit
	.comm	_gc_psx_ddr_btn,8,3             ; @gc_psx_ddr_btn
	.comm	_gc_psx_abs,8,3                 ; @gc_psx_abs
	.comm	_ABS_X,4,2                      ; @ABS_X
	.comm	_ABS_Y,4,2                      ; @ABS_Y
	.comm	_gc_psx_btn,8,3                 ; @gc_psx_btn
	.comm	_BTN_START,4,2                  ; @BTN_START
	.comm	_BTN_SELECT,4,2                 ; @BTN_SELECT
	.no_dead_strip	_gc_psx_process_packet
.subsections_via_symbols
