	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal4,4byte_literals
	.p2align	2                               ## -- Begin function sdl_run
LCPI0_0:
	.long	0x3f800000                      ## float 1
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_sdl_run
	.p2align	4, 0x90
_sdl_run:                               ## @sdl_run
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	xorl	%eax, %eax
	callq	_SDL_GetTicks
	movq	%rax, %r14
	movq	_next_time@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	subq	%rax, %rdi
	jbe	LBB0_3
## %bb.1:
	cmpq	$11, %rdi
	jb	LBB0_3
## %bb.2:
	callq	_SDL_Delay
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	xorl	%eax, %eax
	callq	_SDL_GetTicks
	cmpq	(%rbx), %rax
	jb	LBB0_3
## %bb.4:
	addq	$16, %r14
	movq	%r14, (%rbx)
	movq	_mouse_moved@GOTPCREL(%rip), %rax
	movl	$0, (%rax)
	movq	_key_pressed@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	leaq	-72(%rbp), %rdi
	callq	_SDL_PollEvent
	movl	$1, %ecx
	testq	%rax, %rax
	je	LBB0_20
## %bb.5:
	movq	_SDL_MOUSEBUTTONDOWN@GOTPCREL(%rip), %r15
	movq	_SDL_QUIT@GOTPCREL(%rip), %r12
	movq	_SDL_KEYDOWN@GOTPCREL(%rip), %r13
	movq	_SDL_MOUSEMOTION@GOTPCREL(%rip), %r14
	leaq	-72(%rbp), %rbx
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_7 Depth=1
	movq	%rbx, %rdi
	callq	_SDL_PollEvent
	testq	%rax, %rax
	je	LBB0_15
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	-72(%rbp), %rax
	cmpq	(%r15), %rax
	je	LBB0_19
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	cmpq	(%r12), %rax
	je	LBB0_19
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=1
	cmpq	(%r13), %rax
	jne	LBB0_13
## %bb.10:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	-64(%rbp), %rcx
	movq	_SDLK_ESCAPE@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	je	LBB0_19
## %bb.11:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	_SDLK_q@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	je	LBB0_19
## %bb.12:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	_key_pressed@GOTPCREL(%rip), %rdx
	movq	%rcx, (%rdx)
LBB0_13:                                ##   in Loop: Header=BB0_7 Depth=1
	cmpq	(%r14), %rax
	jne	LBB0_6
## %bb.14:                              ##   in Loop: Header=BB0_7 Depth=1
	leaq	-52(%rbp), %rdi
	leaq	-48(%rbp), %rsi
	callq	_SDL_GetMouseState
	movq	_mouse_moved@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
	xorps	%xmm0, %xmm0
	cvtsi2ssl	-52(%rbp), %xmm0
	movss	%xmm0, -44(%rbp)                ## 4-byte Spill
	xorl	%eax, %eax
	callq	_SDL_GetVideoSurface
	movl	(%rax), %eax
	decl	%eax
	xorps	%xmm0, %xmm0
	cvtsi2ss	%eax, %xmm0
	movss	-44(%rbp), %xmm1                ## 4-byte Reload
                                        ## xmm1 = mem[0],zero,zero,zero
	divss	%xmm0, %xmm1
	cvttss2si	%xmm1, %eax
	movq	_mouse_x@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	xorps	%xmm0, %xmm0
	cvtsi2ssl	-48(%rbp), %xmm0
	movss	%xmm0, -44(%rbp)                ## 4-byte Spill
	xorl	%eax, %eax
	callq	_SDL_GetVideoSurface
	movl	4(%rax), %eax
	decl	%eax
	xorps	%xmm0, %xmm0
	cvtsi2ss	%eax, %xmm0
	movss	-44(%rbp), %xmm1                ## 4-byte Reload
                                        ## xmm1 = mem[0],zero,zero,zero
	divss	%xmm0, %xmm1
	movss	LCPI0_0(%rip), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	subss	%xmm1, %xmm0
	cvttss2si	%xmm0, %eax
	movq	_mouse_y@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	jmp	LBB0_6
LBB0_19:
	xorl	%ecx, %ecx
	jmp	LBB0_20
LBB0_15:
	movl	$1, %ecx
LBB0_20:
	movl	%ecx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_next_time,8,3                  ## @next_time
	.comm	_mouse_moved,4,2                ## @mouse_moved
	.comm	_key_pressed,8,3                ## @key_pressed
	.comm	_SDL_MOUSEBUTTONDOWN,8,3        ## @SDL_MOUSEBUTTONDOWN
	.comm	_SDL_QUIT,8,3                   ## @SDL_QUIT
	.comm	_SDL_KEYDOWN,8,3                ## @SDL_KEYDOWN
	.comm	_SDLK_ESCAPE,8,3                ## @SDLK_ESCAPE
	.comm	_SDLK_q,8,3                     ## @SDLK_q
	.comm	_SDL_MOUSEMOTION,8,3            ## @SDL_MOUSEMOTION
	.comm	_mouse_x,4,2                    ## @mouse_x
	.comm	_mouse_y,4,2                    ## @mouse_y
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sdl_run                        ; -- Begin function sdl_run
	.p2align	2
_sdl_run:                               ; @sdl_run
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	d9, d8, [sp, #32]               ; 16-byte Folded Spill
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	.cfi_offset b8, -104
	.cfi_offset b9, -112
	bl	_SDL_GetTicks
	mov	x19, x0
Lloh0:
	adrp	x20, _next_time@GOTPAGE
Lloh1:
	ldr	x20, [x20, _next_time@GOTPAGEOFF]
	ldr	x8, [x20]
	subs	x0, x8, x0
	b.ls	LBB0_3
; %bb.1:
	cmp	x0, #11
	b.lo	LBB0_3
; %bb.2:
	bl	_SDL_Delay
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	bl	_SDL_GetTicks
	ldr	x8, [x20]
	cmp	x0, x8
	b.lo	LBB0_3
; %bb.4:
	add	x8, x19, #16
	str	x8, [x20]
Lloh2:
	adrp	x20, _mouse_moved@GOTPAGE
Lloh3:
	ldr	x20, [x20, _mouse_moved@GOTPAGEOFF]
	str	wzr, [x20]
Lloh4:
	adrp	x21, _key_pressed@GOTPAGE
Lloh5:
	ldr	x21, [x21, _key_pressed@GOTPAGEOFF]
	str	xzr, [x21]
	add	x0, sp, #16
	bl	_SDL_PollEvent
	mov	w19, #1
	cbz	x0, LBB0_15
; %bb.5:
Lloh6:
	adrp	x22, _SDL_MOUSEBUTTONDOWN@GOTPAGE
Lloh7:
	ldr	x22, [x22, _SDL_MOUSEBUTTONDOWN@GOTPAGEOFF]
Lloh8:
	adrp	x23, _SDL_QUIT@GOTPAGE
Lloh9:
	ldr	x23, [x23, _SDL_QUIT@GOTPAGEOFF]
Lloh10:
	adrp	x24, _SDL_KEYDOWN@GOTPAGE
Lloh11:
	ldr	x24, [x24, _SDL_KEYDOWN@GOTPAGEOFF]
Lloh12:
	adrp	x26, _SDLK_q@GOTPAGE
Lloh13:
	ldr	x26, [x26, _SDLK_q@GOTPAGEOFF]
Lloh14:
	adrp	x27, _SDL_MOUSEMOTION@GOTPAGE
Lloh15:
	ldr	x27, [x27, _SDL_MOUSEMOTION@GOTPAGEOFF]
Lloh16:
	adrp	x28, _mouse_x@GOTPAGE
Lloh17:
	ldr	x28, [x28, _mouse_x@GOTPAGEOFF]
	fmov	s8, #1.00000000
Lloh18:
	adrp	x25, _mouse_y@GOTPAGE
Lloh19:
	ldr	x25, [x25, _mouse_y@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	x0, sp, #16
	bl	_SDL_PollEvent
	cbz	x0, LBB0_14
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [sp, #16]
	ldr	x9, [x22]
	ldr	x10, [x23]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.eq	LBB0_13
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x9, [x24]
	cmp	x8, x9
	b.ne	LBB0_11
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x9, [sp, #24]
Lloh20:
	adrp	x10, _SDLK_ESCAPE@GOTPAGE
Lloh21:
	ldr	x10, [x10, _SDLK_ESCAPE@GOTPAGEOFF]
Lloh22:
	ldr	x10, [x10]
	ldr	x11, [x26]
	cmp	x9, x10
	ccmp	x9, x11, #4, ne
	b.eq	LBB0_13
; %bb.10:                               ;   in Loop: Header=BB0_7 Depth=1
	str	x9, [x21]
LBB0_11:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x9, [x27]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.12:                               ;   in Loop: Header=BB0_7 Depth=1
	add	x0, sp, #12
	add	x1, sp, #8
	bl	_SDL_GetMouseState
	str	w19, [x20]
	ldr	s0, [sp, #12]
	scvtf	s9, s0
	bl	_SDL_GetVideoSurface
	ldr	w8, [x0]
	sub	w8, w8, #1
	scvtf	s0, w8
	fdiv	s0, s9, s0
	fcvtzs	w8, s0
	str	w8, [x28]
	ldr	s0, [sp, #8]
	scvtf	s9, s0
	bl	_SDL_GetVideoSurface
	ldr	w8, [x0, #4]
	sub	w8, w8, #1
	scvtf	s0, w8
	fdiv	s0, s9, s0
	fsub	s0, s8, s0
	fcvtzs	w8, s0
	str	w8, [x25]
	b	LBB0_6
LBB0_13:
	mov	w19, #0
	b	LBB0_15
LBB0_14:
	mov	w19, #1
LBB0_15:
	mov	x0, x19
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #32]               ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_next_time,8,3                  ; @next_time
	.comm	_mouse_moved,4,2                ; @mouse_moved
	.comm	_key_pressed,8,3                ; @key_pressed
	.comm	_SDL_MOUSEBUTTONDOWN,8,3        ; @SDL_MOUSEBUTTONDOWN
	.comm	_SDL_QUIT,8,3                   ; @SDL_QUIT
	.comm	_SDL_KEYDOWN,8,3                ; @SDL_KEYDOWN
	.comm	_SDLK_ESCAPE,8,3                ; @SDLK_ESCAPE
	.comm	_SDLK_q,8,3                     ; @SDLK_q
	.comm	_SDL_MOUSEMOTION,8,3            ; @SDL_MOUSEMOTION
	.comm	_mouse_x,4,2                    ; @mouse_x
	.comm	_mouse_y,4,2                    ; @mouse_y
.subsections_via_symbols
