	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function GetJSOr
LCPI0_0:
	.quad	0x3fd0000000000000              ## double 0.25
LCPI0_1:
	.quad	0x3ffc000000000000              ## double 1.75
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_GetJSOr
	.p2align	4, 0x90
_GetJSOr:                               ## @GetJSOr
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	xorb	$1, _GetJSOr.rtoggle(%rip)
	movq	_soundo@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jne	LBB0_2
## %bb.1:
	xorl	%eax, %eax
	callq	_UpdateJoyData
LBB0_2:
	movq	_joybuttons@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_joyBMap@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_joy@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	leal	-8(,%rcx,8), %ecx
	movl	(%rax), %esi
	andl	%edx, %esi
	movl	$1, %edi
	shll	%cl, %edi
	testl	%esi, %esi
	cmovel	%esi, %edi
	andl	4(%rax), %edx
	movl	$2, %eax
	shll	%cl, %eax
	testl	%edx, %edx
	cmovel	%edx, %eax
	orl	%edi, %eax
	movq	_joyx@GOTPCREL(%rip), %rdx
	movsd	(%rdx), %xmm0                   ## xmm0 = mem[0],zero
	movq	_joyxcenter@GOTPCREL(%rip), %rdx
	movsd	(%rdx), %xmm1                   ## xmm1 = mem[0],zero
	movsd	LCPI0_0(%rip), %xmm2            ## xmm2 = mem[0],zero
	mulsd	%xmm1, %xmm2
	ucomisd	%xmm0, %xmm2
	jae	LBB0_3
## %bb.4:
	mulsd	LCPI0_1(%rip), %xmm1
	ucomisd	%xmm1, %xmm0
	jb	LBB0_7
## %bb.5:
	movq	_JOY_RIGHT@GOTPCREL(%rip), %rdx
	jmp	LBB0_6
LBB0_3:
	movq	_JOY_LEFT@GOTPCREL(%rip), %rdx
LBB0_6:
	movl	(%rdx), %edx
	shll	%cl, %edx
	orl	%edx, %eax
LBB0_7:
	movq	_joyy@GOTPCREL(%rip), %rdx
	movsd	(%rdx), %xmm0                   ## xmm0 = mem[0],zero
	movq	_joyycenter@GOTPCREL(%rip), %rdx
	movsd	(%rdx), %xmm1                   ## xmm1 = mem[0],zero
	movsd	LCPI0_0(%rip), %xmm2            ## xmm2 = mem[0],zero
	mulsd	%xmm1, %xmm2
	ucomisd	%xmm0, %xmm2
	jae	LBB0_8
## %bb.9:
	mulsd	LCPI0_1(%rip), %xmm1
	ucomisd	%xmm1, %xmm0
	jb	LBB0_12
## %bb.10:
	movq	_JOY_DOWN@GOTPCREL(%rip), %rdx
	jmp	LBB0_11
LBB0_8:
	movq	_JOY_UP@GOTPCREL(%rip), %rdx
LBB0_11:
	movl	(%rdx), %edx
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %edx
	orl	%edx, %eax
LBB0_12:
	cltq
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_GetJSOr.rtoggle,4,2 ## @GetJSOr.rtoggle
	.comm	_soundo,4,2                     ## @soundo
	.comm	_joybuttons,4,2                 ## @joybuttons
	.comm	_joyBMap,8,3                    ## @joyBMap
	.comm	_joy,4,2                        ## @joy
	.comm	_joyx,8,3                       ## @joyx
	.comm	_joyxcenter,8,3                 ## @joyxcenter
	.comm	_JOY_LEFT,4,2                   ## @JOY_LEFT
	.comm	_JOY_RIGHT,4,2                  ## @JOY_RIGHT
	.comm	_joyy,8,3                       ## @joyy
	.comm	_joyycenter,8,3                 ## @joyycenter
	.comm	_JOY_UP,4,2                     ## @JOY_UP
	.comm	_JOY_DOWN,4,2                   ## @JOY_DOWN
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_GetJSOr                        ; -- Begin function GetJSOr
	.p2align	2
_GetJSOr:                               ; @GetJSOr
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
Lloh0:
	adrp	x8, _GetJSOr.rtoggle@PAGE
	ldr	w9, [x8, _GetJSOr.rtoggle@PAGEOFF]
	eor	w9, w9, #0x1
	str	w9, [x8, _GetJSOr.rtoggle@PAGEOFF]
Lloh1:
	adrp	x8, _soundo@GOTPAGE
Lloh2:
	ldr	x8, [x8, _soundo@GOTPAGEOFF]
Lloh3:
	ldr	w8, [x8]
	cbnz	w8, LBB0_2
; %bb.1:
	bl	_UpdateJoyData
LBB0_2:
Lloh4:
	adrp	x8, _joybuttons@GOTPAGE
Lloh5:
	ldr	x8, [x8, _joybuttons@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
Lloh7:
	adrp	x9, _joyBMap@GOTPAGE
Lloh8:
	ldr	x9, [x9, _joyBMap@GOTPAGEOFF]
Lloh9:
	adrp	x10, _joy@GOTPAGE
Lloh10:
	ldr	x10, [x10, _joy@GOTPAGEOFF]
Lloh11:
	ldr	x11, [x9]
Lloh12:
	ldr	w9, [x10]
	lsl	w9, w9, #3
	sub	w9, w9, #8
	mov	w10, #1
	lsl	w10, w10, w9
	ldp	w12, w11, [x11]
	tst	w12, w8
	csel	w10, wzr, w10, eq
	mov	w12, #2
	lsl	w12, w12, w9
	tst	w11, w8
	csel	w8, wzr, w12, eq
	orr	w8, w10, w8
Lloh13:
	adrp	x10, _joyx@GOTPAGE
Lloh14:
	ldr	x10, [x10, _joyx@GOTPAGEOFF]
Lloh15:
	ldr	d0, [x10]
Lloh16:
	adrp	x10, _joyxcenter@GOTPAGE
Lloh17:
	ldr	x10, [x10, _joyxcenter@GOTPAGEOFF]
Lloh18:
	ldr	d1, [x10]
	fmov	d2, #0.25000000
	fmul	d2, d1, d2
	fcmp	d0, d2
	b.ls	LBB0_5
; %bb.3:
	fmov	d2, #1.75000000
	fmul	d1, d1, d2
	fcmp	d0, d1
	b.lt	LBB0_7
; %bb.4:
Lloh19:
	adrp	x10, _JOY_RIGHT@GOTPAGE
Lloh20:
	ldr	x10, [x10, _JOY_RIGHT@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
Lloh21:
	adrp	x10, _JOY_LEFT@GOTPAGE
Lloh22:
	ldr	x10, [x10, _JOY_LEFT@GOTPAGEOFF]
LBB0_6:
	ldr	w10, [x10]
	lsl	w10, w10, w9
	orr	w8, w8, w10
LBB0_7:
Lloh23:
	adrp	x10, _joyy@GOTPAGE
Lloh24:
	ldr	x10, [x10, _joyy@GOTPAGEOFF]
Lloh25:
	ldr	d0, [x10]
Lloh26:
	adrp	x10, _joyycenter@GOTPAGE
Lloh27:
	ldr	x10, [x10, _joyycenter@GOTPAGEOFF]
Lloh28:
	ldr	d1, [x10]
	fmov	d2, #0.25000000
	fmul	d2, d1, d2
	fcmp	d0, d2
	b.ls	LBB0_10
; %bb.8:
	fmov	d2, #1.75000000
	fmul	d1, d1, d2
	fcmp	d0, d1
	b.lt	LBB0_12
; %bb.9:
Lloh29:
	adrp	x10, _JOY_DOWN@GOTPAGE
Lloh30:
	ldr	x10, [x10, _JOY_DOWN@GOTPAGEOFF]
	b	LBB0_11
LBB0_10:
Lloh31:
	adrp	x10, _JOY_UP@GOTPAGE
Lloh32:
	ldr	x10, [x10, _JOY_UP@GOTPAGEOFF]
LBB0_11:
	ldr	w10, [x10]
	lsl	w9, w10, w9
	orr	w8, w8, w9
LBB0_12:
	sxtw	x0, w8
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh1, Lloh2, Lloh3
	.loh AdrpAdrp	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh11
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_GetJSOr.rtoggle,4,2 ; @GetJSOr.rtoggle
	.comm	_soundo,4,2                     ; @soundo
	.comm	_joybuttons,4,2                 ; @joybuttons
	.comm	_joyBMap,8,3                    ; @joyBMap
	.comm	_joy,4,2                        ; @joy
	.comm	_joyx,8,3                       ; @joyx
	.comm	_joyxcenter,8,3                 ; @joyxcenter
	.comm	_JOY_LEFT,4,2                   ; @JOY_LEFT
	.comm	_JOY_RIGHT,4,2                  ; @JOY_RIGHT
	.comm	_joyy,8,3                       ; @joyy
	.comm	_joyycenter,8,3                 ; @joyycenter
	.comm	_JOY_UP,4,2                     ; @JOY_UP
	.comm	_JOY_DOWN,4,2                   ; @JOY_DOWN
.subsections_via_symbols
