	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function topshooter_r
_topshooter_r:                          ## @topshooter_r
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	cmpl	$2105343, %edi                  ## imm = 0x201FFF
	jg	LBB0_8
## %bb.1:
	movzbl	%dil, %ecx
	addl	$-67, %ecx
	rorl	%ecx
	cmpl	$7, %ecx
	ja	LBB0_7
## %bb.2:
	movl	$165, %eax
	leaq	LJTI0_0(%rip), %rdx
	movslq	(%rdx,%rcx,4), %rcx
	addq	%rdx, %rcx
	jmpq	*%rcx
LBB0_9:
	movq	_input@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax), %ecx
	movq	_INPUT_A@GOTPCREL(%rip), %rax
	xorl	%edx, %edx
	testl	%ecx, (%rax)
	sete	%dl
	shll	$7, %edx
	orl	$127, %edx
	movq	_INPUT_B@GOTPCREL(%rip), %rax
	movl	%edx, %esi
	andl	$-17, %esi
	testl	%ecx, (%rax)
	cmovel	%edx, %esi
	movq	_INPUT_START@GOTPCREL(%rip), %rdx
	movl	%esi, %eax
	andl	$-33, %eax
	testl	%ecx, (%rdx)
	cmovel	%esi, %eax
LBB0_10:
	popq	%rbp
	retq
LBB0_8:
	movq	_sram@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movzwl	%di, %esi
	movl	%eax, %edi
	popq	%rbp
	jmp	_READ_BYTE                      ## TAILCALL
LBB0_3:
	movq	_input@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax), %ecx
	movq	_INPUT_UP@GOTPCREL(%rip), %rax
	xorl	%edx, %edx
	testl	%ecx, (%rax)
	sete	%dl
	leal	247(,%rdx,8), %edx
	movq	_INPUT_DOWN@GOTPCREL(%rip), %rsi
	movl	%edx, %eax
	andl	$-17, %eax
	jmp	LBB0_4
LBB0_5:
	movq	_input@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_INPUT_RIGHT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	xorl	%edx, %edx
	testl	%ecx, (%rax)
	sete	%dl
	leal	(%rdx,%rdx,2), %eax
	orl	$252, %eax
	popq	%rbp
	retq
LBB0_6:
	movq	_input@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax), %ecx
	movq	_INPUT_LEFT@GOTPCREL(%rip), %rax
	xorl	%edx, %edx
	testl	%ecx, (%rax)
	sete	%dl
	leal	(%rdx,%rdx,2), %edx
	orl	$252, %edx
	movq	_INPUT_C@GOTPCREL(%rip), %rsi
	movl	%edx, %eax
	andl	$254, %eax
LBB0_4:
	testl	%ecx, (%rsi)
	cmovel	%edx, %eax
	popq	%rbp
	retq
LBB0_7:
	popq	%rbp
	jmp	_m68k_read_bus_8                ## TAILCALL
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
LJTI0_0:
	.long	L0_0_set_9
	.long	L0_0_set_3
	.long	L0_0_set_5
	.long	L0_0_set_6
	.long	L0_0_set_7
	.long	L0_0_set_7
	.long	L0_0_set_7
	.long	L0_0_set_10
	.end_data_region
                                        ## -- End function
	.comm	_input,8,3                      ## @input
	.comm	_INPUT_A,4,2                    ## @INPUT_A
	.comm	_INPUT_B,4,2                    ## @INPUT_B
	.comm	_INPUT_START,4,2                ## @INPUT_START
	.comm	_INPUT_UP,4,2                   ## @INPUT_UP
	.comm	_INPUT_DOWN,4,2                 ## @INPUT_DOWN
	.comm	_INPUT_RIGHT,4,2                ## @INPUT_RIGHT
	.comm	_INPUT_LEFT,4,2                 ## @INPUT_LEFT
	.comm	_INPUT_C,4,2                    ## @INPUT_C
	.comm	_sram,4,2                       ## @sram
	.no_dead_strip	_topshooter_r
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function topshooter_r
_topshooter_r:                          ; @topshooter_r
	.cfi_startproc
; %bb.0:
	mov	x8, x0
	cmp	w0, #514, lsl #12               ; =2105344
	b.ge	LBB0_4
; %bb.1:
	and	w9, w8, #0xff
	sub	w9, w9, #67
	ror	w9, w9, #1
	cmp	w9, #7
	b.hi	LBB0_10
; %bb.2:
	mov	w0, #165
Lloh0:
	adrp	x10, lJTI0_0@PAGE
Lloh1:
	add	x10, x10, lJTI0_0@PAGEOFF
	adr	x11, LBB0_3
	ldrb	w12, [x10, x9]
	add	x11, x11, x12, lsl #2
	br	x11
LBB0_3:
Lloh2:
	adrp	x8, _input@GOTPAGE
Lloh3:
	ldr	x8, [x8, _input@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
Lloh5:
	adrp	x9, _INPUT_A@GOTPAGE
Lloh6:
	ldr	x9, [x9, _INPUT_A@GOTPAGEOFF]
	ldr	w8, [x8]
Lloh7:
	ldr	w9, [x9]
	tst	w9, w8
	mov	w9, #127
	mov	w10, #255
	csel	w9, w10, w9, eq
Lloh8:
	adrp	x10, _INPUT_B@GOTPAGE
Lloh9:
	ldr	x10, [x10, _INPUT_B@GOTPAGEOFF]
Lloh10:
	ldr	w10, [x10]
	and	w11, w9, #0xffffffef
	tst	w10, w8
	csel	w9, w9, w11, eq
Lloh11:
	adrp	x10, _INPUT_START@GOTPAGE
Lloh12:
	ldr	x10, [x10, _INPUT_START@GOTPAGEOFF]
Lloh13:
	ldr	w10, [x10]
	and	w11, w9, #0xffffffdf
	b	LBB0_9
LBB0_4:
Lloh14:
	adrp	x9, _sram@GOTPAGE
Lloh15:
	ldr	x9, [x9, _sram@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x9]
	and	w1, w8, #0xffff
	b	_READ_BYTE
LBB0_5:
Lloh17:
	adrp	x8, _input@GOTPAGE
Lloh18:
	ldr	x8, [x8, _input@GOTPAGEOFF]
Lloh19:
	ldr	x8, [x8]
Lloh20:
	adrp	x9, _INPUT_UP@GOTPAGE
Lloh21:
	ldr	x9, [x9, _INPUT_UP@GOTPAGEOFF]
	ldr	w8, [x8]
Lloh22:
	ldr	w9, [x9]
	tst	w9, w8
	mov	w9, #247
	mov	w10, #255
	csel	w9, w10, w9, eq
Lloh23:
	adrp	x10, _INPUT_DOWN@GOTPAGE
Lloh24:
	ldr	x10, [x10, _INPUT_DOWN@GOTPAGEOFF]
Lloh25:
	ldr	w10, [x10]
	and	w11, w9, #0xffffffef
	b	LBB0_9
LBB0_6:
Lloh26:
	adrp	x8, _input@GOTPAGE
Lloh27:
	ldr	x8, [x8, _input@GOTPAGEOFF]
Lloh28:
	ldr	x8, [x8]
Lloh29:
	adrp	x9, _INPUT_RIGHT@GOTPAGE
Lloh30:
	ldr	x9, [x9, _INPUT_RIGHT@GOTPAGEOFF]
	ldr	w8, [x8]
Lloh31:
	ldr	w9, [x9]
	tst	w9, w8
	mov	w8, #252
	mov	w9, #255
	csel	w0, w9, w8, eq
LBB0_7:
	ret
LBB0_8:
Lloh32:
	adrp	x8, _input@GOTPAGE
Lloh33:
	ldr	x8, [x8, _input@GOTPAGEOFF]
Lloh34:
	ldr	x8, [x8]
Lloh35:
	adrp	x9, _INPUT_LEFT@GOTPAGE
Lloh36:
	ldr	x9, [x9, _INPUT_LEFT@GOTPAGEOFF]
	ldr	w8, [x8]
Lloh37:
	ldr	w9, [x9]
	tst	w9, w8
	mov	w9, #252
	mov	w10, #255
	csel	w9, w10, w9, eq
Lloh38:
	adrp	x10, _INPUT_C@GOTPAGE
Lloh39:
	ldr	x10, [x10, _INPUT_C@GOTPAGEOFF]
Lloh40:
	ldr	w10, [x10]
	and	w11, w9, #0xfe
LBB0_9:
	tst	w10, w8
	csel	w0, w9, w11, eq
	ret
LBB0_10:
	mov	x0, x8
	b	_m68k_read_bus_8
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_5-LBB0_3)>>2
	.byte	(LBB0_6-LBB0_3)>>2
	.byte	(LBB0_8-LBB0_3)>>2
	.byte	(LBB0_10-LBB0_3)>>2
	.byte	(LBB0_10-LBB0_3)>>2
	.byte	(LBB0_10-LBB0_3)>>2
	.byte	(LBB0_7-LBB0_3)>>2
                                        ; -- End function
	.comm	_input,8,3                      ; @input
	.comm	_INPUT_A,4,2                    ; @INPUT_A
	.comm	_INPUT_B,4,2                    ; @INPUT_B
	.comm	_INPUT_START,4,2                ; @INPUT_START
	.comm	_INPUT_UP,4,2                   ; @INPUT_UP
	.comm	_INPUT_DOWN,4,2                 ; @INPUT_DOWN
	.comm	_INPUT_RIGHT,4,2                ; @INPUT_RIGHT
	.comm	_INPUT_LEFT,4,2                 ; @INPUT_LEFT
	.comm	_INPUT_C,4,2                    ; @INPUT_C
	.comm	_sram,4,2                       ; @sram
	.no_dead_strip	_topshooter_r
.subsections_via_symbols
