	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal4,4byte_literals
	.p2align	2                               ## -- Begin function demo_run
LCPI0_0:
	.long	0x3f7d70a4                      ## float 0.990000009
LCPI0_1:
	.long	0x3f4ccccd                      ## float 0.800000011
LCPI0_2:
	.long	0x3a83126f                      ## float 0.00100000005
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_demo_run:                              ## @demo_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movl	24(%rdi), %edi
	callq	_glfwWindowShouldClose
	testl	%eax, %eax
	je	LBB0_1
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	_INT32_MAX@GOTPCREL(%rip), %r14
	movq	_GLFW_TRUE@GOTPCREL(%rip), %r15
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	24(%rbx), %edi
	callq	_glfwWindowShouldClose
	testl	%eax, %eax
	jne	LBB0_11
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	xorl	%eax, %eax
	callq	_glfwPollEvents
	movq	%rbx, %rdi
	callq	_demo_draw
	movss	(%rbx), %xmm0                   ## xmm0 = mem[0],zero,zero,zero
	ucomiss	LCPI0_0(%rip), %xmm0
	jbe	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	$-1165815185, 4(%rbx)           ## imm = 0xBA83126F
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movss	LCPI0_1(%rip), %xmm1            ## xmm1 = mem[0],zero,zero,zero
	ucomiss	%xmm0, %xmm1
	jbe	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	$981668463, 4(%rbx)             ## imm = 0x3A83126F
	movss	LCPI0_2(%rip), %xmm1            ## xmm1 = mem[0],zero,zero,zero
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movss	4(%rbx), %xmm1                  ## xmm1 = mem[0],zero,zero,zero
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	addss	%xmm1, %xmm0
	movss	%xmm0, (%rbx)
	movl	28(%rbx), %edi
	callq	_vkDeviceWaitIdle
	movq	8(%rbx), %rax
	movq	16(%rbx), %rcx
	incq	%rax
	movq	%rax, 8(%rbx)
	cmpq	(%r14), %rcx
	je	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpq	%rcx, %rax
	jne	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	24(%rbx), %edi
	movl	(%r15), %esi
	callq	_glfwSetWindowShouldClose
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_INT32_MAX,8,3                  ## @INT32_MAX
	.comm	_GLFW_TRUE,4,2                  ## @GLFW_TRUE
	.no_dead_strip	_demo_run
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function demo_run
_demo_run:                              ; @demo_run
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x0
	ldr	w0, [x0, #24]
	bl	_glfwWindowShouldClose
	cbz	w0, LBB0_2
LBB0_1:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_2:
	mov	w20, #28836
	movk	w20, #16253, lsl #16
	mov	w21, #4719
	movk	w21, #47747, lsl #16
	mov	w22, #52429
	movk	w22, #16204, lsl #16
Lloh0:
	adrp	x23, _INT32_MAX@GOTPAGE
Lloh1:
	ldr	x23, [x23, _INT32_MAX@GOTPAGEOFF]
Lloh2:
	adrp	x24, _GLFW_TRUE@GOTPAGE
Lloh3:
	ldr	x24, [x24, _GLFW_TRUE@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x19, #24]
	bl	_glfwWindowShouldClose
	cbnz	w0, LBB0_1
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	bl	_glfwPollEvents
	mov	x0, x19
	bl	_demo_draw
	ldr	s0, [x19]
	fmov	s1, w20
	fcmp	s0, s1
	b.le	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	str	w21, [x19, #4]
LBB0_6:                                 ;   in Loop: Header=BB0_4 Depth=1
	fmov	s1, w22
	fcmp	s0, s1
	b.pl	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	w8, #4719
	movk	w8, #14979, lsl #16
	str	w8, [x19, #4]
	fmov	s1, w8
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	s1, [x19, #4]
LBB0_9:                                 ;   in Loop: Header=BB0_4 Depth=1
	fadd	s0, s0, s1
	str	s0, [x19]
	ldr	w0, [x19, #28]
	bl	_vkDeviceWaitIdle
	ldp	x8, x9, [x19, #8]
	add	x8, x8, #1
	str	x8, [x19, #8]
	ldr	x10, [x23]
	cmp	x9, x10
	ccmp	x8, x9, #0, ne
	b.ne	LBB0_3
; %bb.10:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x19, #24]
	ldr	w1, [x24]
	bl	_glfwSetWindowShouldClose
	b	LBB0_3
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_INT32_MAX,8,3                  ; @INT32_MAX
	.comm	_GLFW_TRUE,4,2                  ; @GLFW_TRUE
	.no_dead_strip	_demo_run
.subsections_via_symbols
