	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_on_mouse_button                ## -- Begin function on_mouse_button
	.p2align	4, 0x90
_on_mouse_button:                       ## @on_mouse_button
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r15d
	movl	%edx, %ebx
	movl	%esi, %r12d
	movq	%rdi, %r13
	movq	_GLFW_MOD_CONTROL@GOTPCREL(%rip), %rax
	movq	_GLFW_MOD_SUPER@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r14d
	orl	(%rax), %r14d
	movq	_GLFW_CURSOR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_glfwGetInputMode
	movq	%rax, %rcx
	movq	_GLFW_PRESS@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	jne	LBB0_14
## %bb.1:
	andl	%r15d, %r14d
	movq	_GLFW_CURSOR_DISABLED@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	movq	_GLFW_MOUSE_BUTTON_LEFT@GOTPCREL(%rip), %rax
	cmpl	%r12d, (%rax)
	jne	LBB0_5
## %bb.2:
	cmpq	%r15, %rcx
	jne	LBB0_15
## %bb.3:
	xorl	%eax, %eax
	movq	%rcx, %rbx
	testl	%r14d, %r14d
	je	LBB0_9
## %bb.4:
	callq	_on_right_click
	movq	%rbx, %rcx
LBB0_5:
	movq	_GLFW_MOUSE_BUTTON_RIGHT@GOTPCREL(%rip), %rax
	cmpl	%r12d, (%rax)
	jne	LBB0_12
## %bb.6:
	cmpq	%r15, %rcx
	jne	LBB0_12
## %bb.7:
	testl	%r14d, %r14d
	je	LBB0_10
## %bb.8:
	xorl	%eax, %eax
	movq	%rcx, %rbx
	callq	_on_light
	jmp	LBB0_11
LBB0_15:
	movq	_GLFW_CURSOR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	movq	%r15, %rdx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_glfwSetInputMode               ## TAILCALL
LBB0_9:
	callq	_on_left_click
	movq	%rbx, %rcx
	movq	_GLFW_MOUSE_BUTTON_RIGHT@GOTPCREL(%rip), %rax
	cmpl	%r12d, (%rax)
	jne	LBB0_12
LBB0_10:
	xorl	%eax, %eax
	movq	%rcx, %rbx
	callq	_on_right_click
LBB0_11:
	movq	%rbx, %rcx
LBB0_12:
	movq	_GLFW_MOUSE_BUTTON_MIDDLE@GOTPCREL(%rip), %rax
	cmpl	%r12d, (%rax)
	jne	LBB0_14
## %bb.13:
	cmpq	%r15, %rcx
	jne	LBB0_14
## %bb.16:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_on_middle_click                ## TAILCALL
LBB0_14:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GLFW_MOD_CONTROL,4,2           ## @GLFW_MOD_CONTROL
	.comm	_GLFW_MOD_SUPER,4,2             ## @GLFW_MOD_SUPER
	.comm	_GLFW_CURSOR,4,2                ## @GLFW_CURSOR
	.comm	_GLFW_CURSOR_DISABLED,8,3       ## @GLFW_CURSOR_DISABLED
	.comm	_GLFW_PRESS,4,2                 ## @GLFW_PRESS
	.comm	_GLFW_MOUSE_BUTTON_LEFT,4,2     ## @GLFW_MOUSE_BUTTON_LEFT
	.comm	_GLFW_MOUSE_BUTTON_RIGHT,4,2    ## @GLFW_MOUSE_BUTTON_RIGHT
	.comm	_GLFW_MOUSE_BUTTON_MIDDLE,4,2   ## @GLFW_MOUSE_BUTTON_MIDDLE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_on_mouse_button                ; -- Begin function on_mouse_button
	.p2align	2
_on_mouse_button:                       ; @on_mouse_button
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x21, x3
	mov	x23, x2
	mov	x19, x1
	mov	x22, x0
Lloh0:
	adrp	x8, _GLFW_MOD_CONTROL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GLFW_MOD_CONTROL@GOTPAGEOFF]
Lloh2:
	ldr	w25, [x8]
Lloh3:
	adrp	x8, _GLFW_MOD_SUPER@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GLFW_MOD_SUPER@GOTPAGEOFF]
Lloh5:
	ldr	w26, [x8]
Lloh6:
	adrp	x24, _GLFW_CURSOR@GOTPAGE
Lloh7:
	ldr	x24, [x24, _GLFW_CURSOR@GOTPAGEOFF]
	ldr	w1, [x24]
	bl	_glfwGetInputMode
Lloh8:
	adrp	x8, _GLFW_PRESS@GOTPAGE
Lloh9:
	ldr	x8, [x8, _GLFW_PRESS@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	cmp	w8, w23
	b.ne	LBB0_12
; %bb.1:
	mov	x20, x0
	orr	w8, w26, w25
Lloh11:
	adrp	x9, _GLFW_CURSOR_DISABLED@GOTPAGE
Lloh12:
	ldr	x9, [x9, _GLFW_CURSOR_DISABLED@GOTPAGEOFF]
	and	w23, w8, w21
Lloh13:
	ldr	x21, [x9]
Lloh14:
	adrp	x8, _GLFW_MOUSE_BUTTON_LEFT@GOTPAGE
Lloh15:
	ldr	x8, [x8, _GLFW_MOUSE_BUTTON_LEFT@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	cmp	w8, w19
	b.ne	LBB0_5
; %bb.2:
	cmp	x20, x21
	b.ne	LBB0_8
; %bb.3:
	cbz	w23, LBB0_9
; %bb.4:
	bl	_on_right_click
LBB0_5:
Lloh17:
	adrp	x8, _GLFW_MOUSE_BUTTON_RIGHT@GOTPAGE
Lloh18:
	ldr	x8, [x8, _GLFW_MOUSE_BUTTON_RIGHT@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	cmp	w8, w19
	ccmp	x20, x21, #0, eq
	b.ne	LBB0_11
; %bb.6:
	cbz	w23, LBB0_10
; %bb.7:
	bl	_on_light
	b	LBB0_11
LBB0_8:
	ldr	w1, [x24]
	mov	x0, x22
	mov	x2, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_glfwSetInputMode
LBB0_9:
	bl	_on_left_click
Lloh20:
	adrp	x8, _GLFW_MOUSE_BUTTON_RIGHT@GOTPAGE
Lloh21:
	ldr	x8, [x8, _GLFW_MOUSE_BUTTON_RIGHT@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	cmp	w8, w19
	b.ne	LBB0_11
LBB0_10:
	bl	_on_right_click
LBB0_11:
Lloh23:
	adrp	x8, _GLFW_MOUSE_BUTTON_MIDDLE@GOTPAGE
Lloh24:
	ldr	x8, [x8, _GLFW_MOUSE_BUTTON_MIDDLE@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	cmp	w8, w19
	ccmp	x20, x21, #0, eq
	b.eq	LBB0_13
LBB0_12:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_13:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_on_middle_click
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_GLFW_MOD_CONTROL,4,2           ; @GLFW_MOD_CONTROL
	.comm	_GLFW_MOD_SUPER,4,2             ; @GLFW_MOD_SUPER
	.comm	_GLFW_CURSOR,4,2                ; @GLFW_CURSOR
	.comm	_GLFW_CURSOR_DISABLED,8,3       ; @GLFW_CURSOR_DISABLED
	.comm	_GLFW_PRESS,4,2                 ; @GLFW_PRESS
	.comm	_GLFW_MOUSE_BUTTON_LEFT,4,2     ; @GLFW_MOUSE_BUTTON_LEFT
	.comm	_GLFW_MOUSE_BUTTON_RIGHT,4,2    ; @GLFW_MOUSE_BUTTON_RIGHT
	.comm	_GLFW_MOUSE_BUTTON_MIDDLE,4,2   ; @GLFW_MOUSE_BUTTON_MIDDLE
.subsections_via_symbols
