	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_render_sky                     ## -- Begin function render_sky
	.p2align	4, 0x90
_render_sky:                            ## @render_sky
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_g@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movl	12(%rcx), %eax
	movl	8(%rcx), %edx
	movl	(%rsi), %r10d
	movl	4(%rsi), %r11d
	movl	(%rcx), %r12d
	movl	4(%rcx), %r13d
	subq	$8, %rsp
	leaq	-112(%rbp), %r15
	movq	%r15, %rdi
	movl	%eax, %esi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	pushq	%r12
	pushq	$0
	pushq	%r13
	pushq	%r10
	pushq	%r11
	callq	_set_matrix_3d
	addq	$48, %rsp
	movl	12(%rbx), %edi
	callq	_glUseProgram
	movl	8(%rbx), %edi
	movq	_GL_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$1, %esi
	movq	%r15, %rcx
	callq	_glUniformMatrix4fv
	movl	4(%rbx), %edi
	movl	$2, %esi
	callq	_glUniform1i
	movl	(%rbx), %r15d
	xorl	%eax, %eax
	callq	_time_of_day
	movl	%r15d, %edi
	movl	%eax, %esi
	callq	_glUniform1f
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	$1536, %edx                     ## imm = 0x600
	callq	_draw_triangles_3d
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_2
## %bb.1:
	addq	$72, %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_sky                     ; -- Begin function render_sky
	.p2align	2
_render_sky:                            ; @render_sky
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	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
	mov	x19, x2
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
Lloh3:
	adrp	x8, _g@GOTPAGE
Lloh4:
	ldr	x8, [x8, _g@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x8]
	ldp	w2, w8, [x9, #8]
	ldp	w7, w6, [x1]
	ldp	w9, w10, [x9]
	stp	wzr, w9, [sp, #4]
	add	x0, sp, #24
	str	w10, [sp]
	mov	x1, x8
	mov	w3, #0
	mov	w4, #0
	mov	w5, #0
	bl	_set_matrix_3d
	ldr	w0, [x20, #12]
	bl	_glUseProgram
	ldr	w0, [x20, #8]
Lloh6:
	adrp	x8, _GL_FALSE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _GL_FALSE@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	add	x3, sp, #24
	mov	w1, #1
	bl	_glUniformMatrix4fv
	ldr	w0, [x20, #4]
	mov	w1, #2
	bl	_glUniform1i
	ldr	w21, [x20]
	bl	_time_of_day
	mov	x1, x0
	mov	x0, x21
	bl	_glUniform1f
	mov	x0, x20
	mov	x1, x19
	mov	w2, #1536
	bl	_draw_triangles_3d
	ldur	x8, [x29, #-40]
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, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	add	sp, sp, #144
	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
