	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function emscripten_mainloop
_emscripten_mainloop:                   ## @emscripten_mainloop
	.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
	xorl	%eax, %eax
	callq	_RWebAudioRecalibrateTime
	movq	_emscripten_frame_count@GOTPCREL(%rip), %rbx
	incl	(%rbx)
	leaq	-48(%rbp), %rdi
	callq	_video_driver_build_info
	cmpq	$0, -16(%rbp)
	je	LBB0_6
## %bb.1:
	cmpl	$0, -24(%rbp)
	jne	LBB0_6
## %bb.2:
	cmpl	$0, -28(%rbp)
	jne	LBB0_6
## %bb.3:
	cmpl	$0, -32(%rbp)
	jne	LBB0_6
## %bb.4:
	testb	$1, (%rbx)
	jne	LBB0_6
## %bb.5:
	movq	_GL_COLOR_BUFFER_BIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_glClear
	movl	-48(%rbp), %edi
	leaq	-48(%rbp), %rsi
	callq	*-40(%rbp)
	jmp	LBB0_11
LBB0_6:
	movq	_emscripten_fullscreen_reinit@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	testq	%rcx, %rcx
	je	LBB0_9
## %bb.7:
	decq	%rcx
	movq	%rcx, (%rax)
	jne	LBB0_9
## %bb.8:
	movq	_CMD_EVENT_REINIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_command_event
LBB0_9:
	xorl	%eax, %eax
	callq	_runloop_iterate
	movl	%eax, %ebx
	xorl	%eax, %eax
	callq	_task_queue_check
	cmpl	$-1, %ebx
	jne	LBB0_11
## %bb.10:
	xorl	%edi, %edi
	callq	_main_exit
	xorl	%edi, %edi
	callq	_emscripten_force_exit
LBB0_11:
	addq	$40, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_emscripten_frame_count,4,2     ## @emscripten_frame_count
	.comm	_GL_COLOR_BUFFER_BIT,4,2        ## @GL_COLOR_BUFFER_BIT
	.comm	_emscripten_fullscreen_reinit,8,3 ## @emscripten_fullscreen_reinit
	.comm	_CMD_EVENT_REINIT,4,2           ## @CMD_EVENT_REINIT
	.no_dead_strip	_emscripten_mainloop
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function emscripten_mainloop
_emscripten_mainloop:                   ; @emscripten_mainloop
	.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
	bl	_RWebAudioRecalibrateTime
Lloh0:
	adrp	x19, _emscripten_frame_count@GOTPAGE
Lloh1:
	ldr	x19, [x19, _emscripten_frame_count@GOTPAGEOFF]
	ldr	w8, [x19]
	add	w8, w8, #1
	str	w8, [x19]
	add	x0, sp, #8
	bl	_video_driver_build_info
	ldr	x8, [sp, #40]
	ldp	w10, w9, [sp, #28]
	ldr	w11, [sp, #24]
	cmp	x8, #0
	ccmp	w9, #0, #0, ne
	ccmp	w10, #0, #0, eq
	ccmp	w11, #0, #0, eq
	b.ne	LBB0_3
; %bb.1:
	ldrb	w8, [x19]
	tbnz	w8, #0, LBB0_3
; %bb.2:
Lloh2:
	adrp	x8, _GL_COLOR_BUFFER_BIT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GL_COLOR_BUFFER_BIT@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	bl	_glClear
	ldr	x8, [sp, #16]
	ldr	w0, [sp, #8]
	add	x1, sp, #8
	blr	x8
	b	LBB0_8
LBB0_3:
Lloh5:
	adrp	x8, _emscripten_fullscreen_reinit@GOTPAGE
Lloh6:
	ldr	x8, [x8, _emscripten_fullscreen_reinit@GOTPAGEOFF]
	ldr	x9, [x8]
	cbz	x9, LBB0_6
; %bb.4:
	subs	x9, x9, #1
	str	x9, [x8]
	b.ne	LBB0_6
; %bb.5:
Lloh7:
	adrp	x8, _CMD_EVENT_REINIT@GOTPAGE
Lloh8:
	ldr	x8, [x8, _CMD_EVENT_REINIT@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	mov	x1, #0
	bl	_command_event
LBB0_6:
	bl	_runloop_iterate
	mov	x19, x0
	bl	_task_queue_check
	cmn	w19, #1
	b.ne	LBB0_8
; %bb.7:
	mov	x0, #0
	bl	_main_exit
	mov	w0, #0
	bl	_emscripten_force_exit
LBB0_8:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_emscripten_frame_count,4,2     ; @emscripten_frame_count
	.comm	_GL_COLOR_BUFFER_BIT,4,2        ; @GL_COLOR_BUFFER_BIT
	.comm	_emscripten_fullscreen_reinit,8,3 ; @emscripten_fullscreen_reinit
	.comm	_CMD_EVENT_REINIT,4,2           ; @CMD_EVENT_REINIT
	.no_dead_strip	_emscripten_mainloop
.subsections_via_symbols
