	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_PLATFORM_TRIG                  ## -- Begin function PLATFORM_TRIG
	.p2align	4, 0x90
_PLATFORM_TRIG:                         ## @PLATFORM_TRIG
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	cmpl	$1, %edi
	je	LBB0_3
## %bb.1:
	movl	$1, %eax
	testl	%edi, %edi
	jne	LBB0_6
## %bb.2:
	movq	_joy0@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_joyswap@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	movl	$1, %edx
	je	LBB0_4
	jmp	LBB0_5
LBB0_3:
	movq	_joy1@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_joyswap@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	movl	$1, %edx
	je	LBB0_5
LBB0_4:
	movq	_trig0@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
LBB0_5:
	xorl	%eax, %eax
	cmpl	$16, %ecx
	cmovll	%edx, %eax
LBB0_6:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_joy0,4,2                       ## @joy0
	.comm	_joyswap,4,2                    ## @joyswap
	.comm	_trig0,4,2                      ## @trig0
	.comm	_joy1,4,2                       ## @joy1
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_PLATFORM_TRIG                  ; -- Begin function PLATFORM_TRIG
	.p2align	2
_PLATFORM_TRIG:                         ; @PLATFORM_TRIG
	.cfi_startproc
; %bb.0:
	cmp	w0, #1
	b.eq	LBB0_3
; %bb.1:
	cbnz	w0, LBB0_5
; %bb.2:
Lloh0:
	adrp	x8, _joy0@GOTPAGE
Lloh1:
	ldr	x8, [x8, _joy0@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _joyswap@GOTPAGE
Lloh4:
	ldr	x9, [x9, _joyswap@GOTPAGEOFF]
Lloh5:
	adrp	x10, _trig0@GOTPAGE
Lloh6:
	ldr	x10, [x10, _trig0@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
Lloh8:
	ldr	w10, [x10]
	cmp	w9, #0
	csinc	w9, w10, wzr, eq
	b	LBB0_4
LBB0_3:
Lloh9:
	adrp	x8, _joy1@GOTPAGE
Lloh10:
	ldr	x8, [x8, _joy1@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
Lloh12:
	adrp	x9, _joyswap@GOTPAGE
Lloh13:
	ldr	x9, [x9, _joyswap@GOTPAGEOFF]
Lloh14:
	adrp	x10, _trig0@GOTPAGE
Lloh15:
	ldr	x10, [x10, _trig0@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
Lloh17:
	ldr	w10, [x10]
	cmp	w9, #0
	csinc	w9, w10, wzr, ne
LBB0_4:
	cmp	w8, #15
	csel	w0, wzr, w9, gt
	ret
LBB0_5:
	mov	w0, #1
	ret
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh16
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_joy0,4,2                       ; @joy0
	.comm	_joyswap,4,2                    ; @joyswap
	.comm	_trig0,4,2                      ; @trig0
	.comm	_joy1,4,2                       ; @joy1
.subsections_via_symbols
