	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gc_psx_report_one
_gc_psx_report_one:                     ## @gc_psx_report_one
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
                                        ## kill: def $esi killed $esi def $rsi
	movq	%rdi, %rbx
	movq	8(%rdi), %r15
	leal	126(%rsi), %eax
	cmpb	$2, %al
	jb	LBB0_4
## %bb.1:
	cmpb	$-127, %sil
	je	LBB0_7
## %bb.2:
	cmpb	$-128, %sil
	jne	LBB0_10
## %bb.3:
	movq	_BTN_THUMBL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movb	(%r14), %al
	notb	%al
	andb	$4, %al
	movzbl	%al, %edx
	movq	%r15, %rdi
	callq	_input_report_key
	movq	_BTN_THUMBR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movb	(%r14), %al
	notb	%al
	andb	$2, %al
	movzbl	%al, %edx
	movq	%r15, %rdi
	callq	_input_report_key
LBB0_4:
	movl	(%rbx), %eax
	movq	_GC_DDR@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_8
## %bb.5:
	movq	_gc_psx_abs@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rax
	movl	8(%rax), %esi
	movzbl	2(%r14), %edx
	movq	%r15, %rdi
	callq	_input_report_abs
	movq	(%rbx), %rax
	movl	12(%rax), %esi
	movzbl	3(%r14), %edx
	movq	%r15, %rdi
	callq	_input_report_abs
	movq	(%rbx), %rax
	movl	16(%rax), %esi
	movzbl	4(%r14), %edx
	movq	%r15, %rdi
	callq	_input_report_abs
	movq	(%rbx), %rax
	movl	20(%rax), %esi
	movzbl	5(%r14), %edx
	movq	%r15, %rdi
	callq	_input_report_abs
	jmp	LBB0_6
LBB0_7:
	movl	(%rbx), %eax
	movq	_GC_DDR@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_6
LBB0_8:
	movq	_gc_psx_ddr_btn@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rax
	movl	(%rax), %esi
	movb	(%r14), %al
	notb	%al
	andb	$16, %al
	movzbl	%al, %edx
	movq	%r15, %rdi
	callq	_input_report_key
	movq	(%rbx), %rax
	movl	4(%rax), %esi
	movb	(%r14), %al
	notb	%al
	andb	$32, %al
	movzbl	%al, %edx
	movq	%r15, %rdi
	callq	_input_report_key
	movq	(%rbx), %rax
	movl	8(%rax), %esi
	movb	(%r14), %al
	notb	%al
	andb	$64, %al
	movzbl	%al, %edx
	movq	%r15, %rdi
	callq	_input_report_key
	movq	(%rbx), %rax
	movl	12(%rax), %esi
	movb	(%r14), %al
	notb	%al
	andb	$-128, %al
	movzbl	%al, %edx
	movq	%r15, %rdi
	callq	_input_report_key
	jmp	LBB0_9
LBB0_6:
	movq	_ABS_X@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movzbl	(%r14), %eax
	movl	%eax, %ecx
	andl	$-128, %ecx
	xorl	%edi, %edi
	testb	$32, %al
	sete	%dil
	movl	%edi, %edx
	shll	$7, %edx
	subl	%edi, %edx
	orl	%ecx, %edx
	movq	%r15, %rdi
	callq	_input_report_abs
	movq	_ABS_Y@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movzbl	(%r14), %eax
	movl	%eax, %ecx
	andl	$16, %ecx
	shll	$3, %ecx
	xorl	%edi, %edi
	testb	$64, %al
	sete	%dil
	movl	%edi, %edx
	shll	$7, %edx
	subl	%edi, %edx
	orl	%ecx, %edx
	movq	%r15, %rdi
	callq	_input_report_abs
LBB0_9:
	movq	_gc_psx_btn@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rax
	movl	(%rax), %esi
	movb	1(%r14), %al
	notb	%al
	andb	$1, %al
	movzbl	%al, %edx
	movq	%r15, %rdi
	callq	_input_report_key
	movq	(%rbx), %rax
	movl	4(%rax), %esi
	movb	1(%r14), %al
	notb	%al
	andb	$2, %al
	movzbl	%al, %edx
	movq	%r15, %rdi
	callq	_input_report_key
	movq	(%rbx), %rax
	movl	8(%rax), %esi
	movb	1(%r14), %al
	notb	%al
	andb	$4, %al
	movzbl	%al, %edx
	movq	%r15, %rdi
	callq	_input_report_key
	movq	(%rbx), %rax
	movl	12(%rax), %esi
	movb	1(%r14), %al
	notb	%al
	andb	$8, %al
	movzbl	%al, %edx
	movq	%r15, %rdi
	callq	_input_report_key
	movq	(%rbx), %rax
	movl	16(%rax), %esi
	movb	1(%r14), %al
	notb	%al
	andb	$16, %al
	movzbl	%al, %edx
	movq	%r15, %rdi
	callq	_input_report_key
	movq	(%rbx), %rax
	movl	20(%rax), %esi
	movb	1(%r14), %al
	notb	%al
	andb	$32, %al
	movzbl	%al, %edx
	movq	%r15, %rdi
	callq	_input_report_key
	movq	(%rbx), %rax
	movl	24(%rax), %esi
	movb	1(%r14), %al
	notb	%al
	andb	$64, %al
	movzbl	%al, %edx
	movq	%r15, %rdi
	callq	_input_report_key
	movq	(%rbx), %rax
	movl	28(%rax), %esi
	movb	1(%r14), %al
	notb	%al
	andb	$-128, %al
	movzbl	%al, %edx
	movq	%r15, %rdi
	callq	_input_report_key
	movq	_BTN_START@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movb	(%r14), %al
	notb	%al
	andb	$8, %al
	movzbl	%al, %edx
	movq	%r15, %rdi
	callq	_input_report_key
	movq	_BTN_SELECT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movb	(%r14), %al
	notb	%al
	andb	$1, %al
	movzbl	%al, %edx
	movq	%r15, %rdi
	callq	_input_report_key
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_input_sync                     ## TAILCALL
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BTN_THUMBL,4,2                 ## @BTN_THUMBL
	.comm	_BTN_THUMBR,4,2                 ## @BTN_THUMBR
	.comm	_GC_DDR,4,2                     ## @GC_DDR
	.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_report_one
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gc_psx_report_one
_gc_psx_report_one:                     ; @gc_psx_report_one
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x2
	mov	x21, x0
	ldr	x19, [x0, #8]
	sub	w8, w1, #130
	cmp	w8, #2
	b.lo	LBB0_4
; %bb.1:
	cmp	w1, #129
	b.eq	LBB0_6
; %bb.2:
	cmp	w1, #128
	b.ne	LBB0_10
; %bb.3:
Lloh0:
	adrp	x8, _BTN_THUMBL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BTN_THUMBL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	ldrb	w8, [x20]
	mvn	w8, w8
	and	w2, w8, #0x4
	mov	x0, x19
	bl	_input_report_key
Lloh3:
	adrp	x8, _BTN_THUMBR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _BTN_THUMBR@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	ldrb	w8, [x20]
	mvn	w8, w8
	and	w2, w8, #0x2
	mov	x0, x19
	bl	_input_report_key
LBB0_4:
	ldr	w8, [x21]
Lloh6:
	adrp	x9, _GC_DDR@GOTPAGE
Lloh7:
	ldr	x9, [x9, _GC_DDR@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	cmp	w8, w9
	b.eq	LBB0_7
; %bb.5:
Lloh9:
	adrp	x21, _gc_psx_abs@GOTPAGE
Lloh10:
	ldr	x21, [x21, _gc_psx_abs@GOTPAGEOFF]
	ldr	x8, [x21]
	ldr	w1, [x8, #8]
	ldrb	w2, [x20, #2]
	mov	x0, x19
	bl	_input_report_abs
	ldr	x8, [x21]
	ldr	w1, [x8, #12]
	ldrb	w2, [x20, #3]
	mov	x0, x19
	bl	_input_report_abs
	ldr	x8, [x21]
	ldr	w1, [x8, #16]
	ldrb	w2, [x20, #4]
	mov	x0, x19
	bl	_input_report_abs
	ldr	x8, [x21]
	ldr	w1, [x8, #20]
	ldrb	w2, [x20, #5]
	mov	x0, x19
	bl	_input_report_abs
	b	LBB0_8
LBB0_6:
	ldr	w8, [x21]
Lloh11:
	adrp	x9, _GC_DDR@GOTPAGE
Lloh12:
	ldr	x9, [x9, _GC_DDR@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_8
LBB0_7:
Lloh14:
	adrp	x21, _gc_psx_ddr_btn@GOTPAGE
Lloh15:
	ldr	x21, [x21, _gc_psx_ddr_btn@GOTPAGEOFF]
	ldr	x8, [x21]
	ldr	w1, [x8]
	ldrb	w8, [x20]
	mvn	w8, w8
	and	w2, w8, #0x10
	mov	x0, x19
	bl	_input_report_key
	ldr	x8, [x21]
	ldr	w1, [x8, #4]
	ldrb	w8, [x20]
	mvn	w8, w8
	and	w2, w8, #0x20
	mov	x0, x19
	bl	_input_report_key
	ldr	x8, [x21]
	ldr	w1, [x8, #8]
	ldrb	w8, [x20]
	mvn	w8, w8
	and	w2, w8, #0x40
	mov	x0, x19
	bl	_input_report_key
	ldr	x8, [x21]
	ldr	w1, [x8, #12]
	ldrb	w8, [x20]
	mvn	w8, w8
	and	w2, w8, #0x80
	mov	x0, x19
	bl	_input_report_key
	b	LBB0_9
LBB0_8:
Lloh16:
	adrp	x8, _ABS_X@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ABS_X@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	ldrb	w8, [x20]
	and	w9, w8, #0x80
	mov	w21, #1
	bic	w8, w21, w8, lsr #5
	lsl	w10, w8, #7
	sub	w8, w10, w8
	orr	w2, w8, w9
	mov	x0, x19
	bl	_input_report_abs
Lloh19:
	adrp	x8, _ABS_Y@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ABS_Y@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
	ldrb	w8, [x20]
	lsl	w9, w8, #3
	and	w9, w9, #0x80
	bic	w8, w21, w8, lsr #6
	lsl	w10, w8, #7
	sub	w8, w10, w8
	orr	w2, w8, w9
	mov	x0, x19
	bl	_input_report_abs
LBB0_9:
Lloh22:
	adrp	x21, _gc_psx_btn@GOTPAGE
Lloh23:
	ldr	x21, [x21, _gc_psx_btn@GOTPAGEOFF]
	ldr	x8, [x21]
	ldr	w1, [x8]
	ldrb	w8, [x20, #1]
	mvn	w8, w8
	and	w2, w8, #0x1
	mov	x0, x19
	bl	_input_report_key
	ldr	x8, [x21]
	ldr	w1, [x8, #4]
	ldrb	w8, [x20, #1]
	mvn	w8, w8
	and	w2, w8, #0x2
	mov	x0, x19
	bl	_input_report_key
	ldr	x8, [x21]
	ldr	w1, [x8, #8]
	ldrb	w8, [x20, #1]
	mvn	w8, w8
	and	w2, w8, #0x4
	mov	x0, x19
	bl	_input_report_key
	ldr	x8, [x21]
	ldr	w1, [x8, #12]
	ldrb	w8, [x20, #1]
	mvn	w8, w8
	and	w2, w8, #0x8
	mov	x0, x19
	bl	_input_report_key
	ldr	x8, [x21]
	ldr	w1, [x8, #16]
	ldrb	w8, [x20, #1]
	mvn	w8, w8
	and	w2, w8, #0x10
	mov	x0, x19
	bl	_input_report_key
	ldr	x8, [x21]
	ldr	w1, [x8, #20]
	ldrb	w8, [x20, #1]
	mvn	w8, w8
	and	w2, w8, #0x20
	mov	x0, x19
	bl	_input_report_key
	ldr	x8, [x21]
	ldr	w1, [x8, #24]
	ldrb	w8, [x20, #1]
	mvn	w8, w8
	and	w2, w8, #0x40
	mov	x0, x19
	bl	_input_report_key
	ldr	x8, [x21]
	ldr	w1, [x8, #28]
	ldrb	w8, [x20, #1]
	mvn	w8, w8
	and	w2, w8, #0x80
	mov	x0, x19
	bl	_input_report_key
Lloh24:
	adrp	x8, _BTN_START@GOTPAGE
Lloh25:
	ldr	x8, [x8, _BTN_START@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
	ldrb	w8, [x20]
	mvn	w8, w8
	and	w2, w8, #0x8
	mov	x0, x19
	bl	_input_report_key
Lloh27:
	adrp	x8, _BTN_SELECT@GOTPAGE
Lloh28:
	ldr	x8, [x8, _BTN_SELECT@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
	ldrb	w8, [x20]
	mvn	w8, w8
	and	w2, w8, #0x1
	mov	x0, x19
	bl	_input_report_key
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_input_sync
LBB0_10:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_BTN_THUMBL,4,2                 ; @BTN_THUMBL
	.comm	_BTN_THUMBR,4,2                 ; @BTN_THUMBR
	.comm	_GC_DDR,4,2                     ; @GC_DDR
	.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_report_one
.subsections_via_symbols
