	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_lightgun_reset                 ## -- Begin function lightgun_reset
	.p2align	4, 0x90
_lightgun_reset:                        ## @lightgun_reset
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_bitmap@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%ecx, %edx
	shrl	$31, %edx
	addl	%ecx, %edx
	sarl	%edx
	movq	_input@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movslq	%edi, %rsi
	movq	(%rcx,%rsi,8), %rcx
	movl	%edx, (%rcx)
	movl	4(%rax), %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%eax, %edx
	sarl	%edx
	movl	%edx, 4(%rcx)
	movq	_lightgun@GOTPCREL(%rip), %rax
	movabsq	$17179869248, %rcx              ## imm = 0x400000040
	movq	%rcx, (%rax)
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_bitmap,8,2                     ## @bitmap
	.comm	_input,8,3                      ## @input
	.comm	_lightgun,8,2                   ## @lightgun
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function lightgun_reset
lCPI0_0:
	.long	64                              ; 0x40
	.long	4                               ; 0x4
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_lightgun_reset
	.p2align	2
_lightgun_reset:                        ; @lightgun_reset
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _bitmap@GOTPAGE
Lloh1:
	ldr	x8, [x8, _bitmap@GOTPAGEOFF]
	ldr	w9, [x8]
	cmp	w9, #0
	cinc	w9, w9, lt
Lloh2:
	adrp	x10, _input@GOTPAGE
Lloh3:
	ldr	x10, [x10, _input@GOTPAGEOFF]
Lloh4:
	ldr	x10, [x10]
	ldr	x10, [x10, w0, sxtw #3]
	asr	w9, w9, #1
	str	w9, [x10]
	ldr	w8, [x8, #4]
	cmp	w8, #0
	cinc	w8, w8, lt
	asr	w8, w8, #1
	str	w8, [x10, #4]
Lloh5:
	adrp	x8, lCPI0_0@PAGE
Lloh6:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
Lloh7:
	adrp	x8, _lightgun@GOTPAGE
Lloh8:
	ldr	x8, [x8, _lightgun@GOTPAGEOFF]
Lloh9:
	str	d0, [x8]
	ret
	.loh AdrpLdrGotStr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdrp	Lloh5, Lloh7
	.loh AdrpLdr	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_bitmap,8,2                     ; @bitmap
	.comm	_input,8,3                      ; @input
	.comm	_lightgun,8,2                   ; @lightgun
.subsections_via_symbols
