	.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
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -24
	movq	_keypad_mode@GOTPCREL(%rip), %rax
	movl	$1, %ebx
	cmpl	%edi, (%rax)
	jne	LBB0_2
## %bb.1:
	movq	_keypad_trig@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_2:
	movq	_xmouse_mode@GOTPCREL(%rip), %rax
	cmpl	%edi, (%rax)
	jne	LBB0_11
## %bb.3:
	movq	_display@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_window@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	subq	$8, %rsp
	leaq	-12(%rbp), %rax
	leaq	-16(%rbp), %r10
	leaq	-20(%rbp), %r11
	leaq	-36(%rbp), %rdx
	leaq	-32(%rbp), %rcx
	leaq	-28(%rbp), %r8
	leaq	-24(%rbp), %r9
	pushq	%rax
	pushq	%r10
	pushq	%r11
	callq	_XQueryPointer
	addq	$32, %rsp
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movl	-20(%rbp), %ecx
	movl	$1, %eax
	testl	%ecx, %ecx
	js	LBB0_10
## %bb.6:
	movq	_window_width@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %ecx
	jg	LBB0_10
## %bb.7:
	movl	-16(%rbp), %ecx
	testl	%ecx, %ecx
	js	LBB0_10
## %bb.8:
	movq	_window_height@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %ecx
	jg	LBB0_10
## %bb.9:
	movq	_Button1Mask@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%eax, %eax
	testl	%ecx, -12(%rbp)
	cmovel	%ebx, %eax
	jmp	LBB0_10
LBB0_4:
	movl	%ebx, %eax
LBB0_10:
	movl	%eax, %ebx
LBB0_11:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_keypad_mode,4,2                ## @keypad_mode
	.comm	_keypad_trig,4,2                ## @keypad_trig
	.comm	_xmouse_mode,4,2                ## @xmouse_mode
	.comm	_display,4,2                    ## @display
	.comm	_window,4,2                     ## @window
	.comm	_window_width,4,2               ## @window_width
	.comm	_window_height,4,2              ## @window_height
	.comm	_Button1Mask,4,2                ## @Button1Mask
	.comm	_JS_RETURN,4,2                  ## @JS_RETURN
	.comm	_js0,4,2                        ## @js0
	.comm	_js0_mode,4,2                   ## @js0_mode
	.comm	_js1,4,2                        ## @js1
	.comm	_js1_mode,4,2                   ## @js1_mode
	.comm	_js_data,4,2                    ## @js_data
.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:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x8, _keypad_mode@GOTPAGE
Lloh1:
	ldr	x8, [x8, _keypad_mode@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _keypad_trig@GOTPAGE
Lloh4:
	ldr	x9, [x9, _keypad_trig@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w8, w0
	csinc	w20, w9, wzr, eq
	mov	x19, x20
Lloh6:
	adrp	x8, _xmouse_mode@GOTPAGE
Lloh7:
	ldr	x8, [x8, _xmouse_mode@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmp	w8, w0
	b.ne	LBB0_8
; %bb.1:
Lloh9:
	adrp	x8, _display@GOTPAGE
Lloh10:
	ldr	x8, [x8, _display@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
Lloh12:
	adrp	x8, _window@GOTPAGE
Lloh13:
	ldr	x8, [x8, _window@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	add	x8, sp, #20
	str	x8, [sp]
	sub	x2, x29, #20
	sub	x3, x29, #24
	sub	x4, x29, #28
	add	x5, sp, #32
	add	x6, sp, #28
	add	x7, sp, #24
	bl	_XQueryPointer
	cbz	x0, LBB0_8
; %bb.2:
	ldr	w8, [sp, #28]
	tbnz	w8, #31, LBB0_7
; %bb.3:
Lloh15:
	adrp	x9, _window_width@GOTPAGE
Lloh16:
	ldr	x9, [x9, _window_width@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	mov	w19, #1
	cmp	w8, w9
	b.gt	LBB0_8
; %bb.4:
	ldr	w8, [sp, #24]
	tbnz	w8, #31, LBB0_8
; %bb.5:
Lloh18:
	adrp	x9, _window_height@GOTPAGE
Lloh19:
	ldr	x9, [x9, _window_height@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	cmp	w8, w9
	b.gt	LBB0_8
; %bb.6:
	ldr	w8, [sp, #20]
Lloh21:
	adrp	x9, _Button1Mask@GOTPAGE
Lloh22:
	ldr	x9, [x9, _Button1Mask@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	tst	w9, w8
	csel	w19, w20, wzr, eq
	b	LBB0_8
LBB0_7:
	mov	w19, #1
LBB0_8:
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_keypad_mode,4,2                ; @keypad_mode
	.comm	_keypad_trig,4,2                ; @keypad_trig
	.comm	_xmouse_mode,4,2                ; @xmouse_mode
	.comm	_display,4,2                    ; @display
	.comm	_window,4,2                     ; @window
	.comm	_window_width,4,2               ; @window_width
	.comm	_window_height,4,2              ; @window_height
	.comm	_Button1Mask,4,2                ; @Button1Mask
	.comm	_JS_RETURN,4,2                  ; @JS_RETURN
	.comm	_js0,4,2                        ; @js0
	.comm	_js0_mode,4,2                   ; @js0_mode
	.comm	_js1,4,2                        ; @js1
	.comm	_js1_mode,4,2                   ; @js1_mode
	.comm	_js_data,4,2                    ; @js_data
.subsections_via_symbols
