	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal4,4byte_literals
	.p2align	2                               ## -- Begin function render_text
LCPI0_0:
	.long	0xbf000000                      ## float -0.5
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_render_text
	.p2align	4, 0x90
_render_text:                           ## @render_text
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movss	%xmm2, -116(%rbp)               ## 4-byte Spill
	movss	%xmm1, -124(%rbp)               ## 4-byte Spill
	movss	%xmm0, -120(%rbp)               ## 4-byte Spill
	movl	%esi, %r15d
	movq	%rdi, %r13
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_g@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax), %edx
	movl	4(%rax), %esi
	leaq	-112(%rbp), %r12
	movq	%r12, %rdi
	callq	_set_matrix_2d
	movl	12(%r13), %edi
	callq	_glUseProgram
	movl	8(%r13), %edi
	movq	_GL_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$1, %esi
	movq	%r12, %rcx
	callq	_glUniformMatrix4fv
	movl	4(%r13), %edi
	movl	$1, %esi
	callq	_glUniform1i
	movl	(%r13), %edi
	xorl	%esi, %esi
	callq	_glUniform1i
	movq	%r14, %rdi
	callq	_strlen
	movl	%eax, %r12d
	xorps	%xmm0, %xmm0
	cvtsi2ss	%r15d, %xmm0
	movss	-116(%rbp), %xmm2               ## 4-byte Reload
                                        ## xmm2 = mem[0],zero,zero,zero
	mulss	%xmm2, %xmm0
	leal	-1(%r12), %eax
	xorps	%xmm1, %xmm1
	cvtsi2ss	%eax, %xmm1
	mulss	%xmm0, %xmm1
	mulss	LCPI0_0(%rip), %xmm1
	movss	-120(%rbp), %xmm0               ## 4-byte Reload
                                        ## xmm0 = mem[0],zero,zero,zero
	addss	%xmm1, %xmm0
	movss	-124(%rbp), %xmm1               ## 4-byte Reload
                                        ## xmm1 = mem[0],zero,zero,zero
	movq	%r14, %rdi
	callq	_gen_text_buffer
	movl	%eax, %ebx
	movq	%r13, %rdi
	movl	%eax, %esi
	movl	%r12d, %edx
	callq	_draw_text
	movl	%ebx, %edi
	callq	_del_buffer
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_2
## %bb.1:
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_g,8,3                          ## @g
	.comm	_GL_FALSE,4,2                   ## @GL_FALSE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_render_text                    ; -- Begin function render_text
	.p2align	2
_render_text:                           ; @render_text
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	d11, d10, [sp, #80]             ; 16-byte Folded Spill
	stp	d9, d8, [sp, #96]               ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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 b8, -56
	.cfi_offset b9, -64
	.cfi_offset b10, -72
	.cfi_offset b11, -80
	mov	x20, x2
	fmov	s8, s2
	fmov	s9, s1
	fmov	s10, s0
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #72]
Lloh3:
	adrp	x8, _g@GOTPAGE
Lloh4:
	ldr	x8, [x8, _g@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	ldp	w2, w1, [x8]
	add	x0, sp, #8
	bl	_set_matrix_2d
	ldr	w0, [x19, #12]
	bl	_glUseProgram
	ldr	w0, [x19, #8]
Lloh6:
	adrp	x8, _GL_FALSE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _GL_FALSE@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	add	x3, sp, #8
	mov	w1, #1
	bl	_glUniformMatrix4fv
	ldr	w0, [x19, #4]
	mov	w1, #1
	bl	_glUniform1i
	ldr	w0, [x19]
	mov	w1, #0
	bl	_glUniform1i
	mov	x0, x20
	bl	_strlen
	mov	x22, x0
	scvtf	s0, w21
	fmul	s0, s0, s8
	sub	w8, w0, #1
	scvtf	s1, w8
	fmul	s0, s0, s1
	fmov	s1, #-0.50000000
	fmul	s0, s0, s1
	fadd	s0, s10, s0
	fmov	s1, s9
	fmov	s2, s8
	mov	x0, x20
	bl	_gen_text_buffer
	mov	x20, x0
	mov	x0, x19
	mov	x1, x20
	mov	x2, x22
	bl	_draw_text
	mov	x0, x20
	bl	_del_buffer
	ldr	x8, [sp, #72]
Lloh9:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh10:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_2
; %bb.1:
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #96]               ; 16-byte Folded Reload
	ldp	d11, d10, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
LBB0_2:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_g,8,3                          ; @g
	.comm	_GL_FALSE,4,2                   ; @GL_FALSE
.subsections_via_symbols
