	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function render_wireframe
LCPI0_0:
	.quad	0x3fe0f5c28f5c28f6              ## double 0.53000000000000003
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_render_wireframe
	.p2align	4, 0x90
_render_wireframe:                      ## @render_wireframe
	.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	%r12
	pushq	%rbx
	subq	$96, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	movq	_g@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	16(%rax), %esi
	movl	12(%rax), %edx
	movl	16(%rbx), %ecx
	movl	12(%rbx), %r8d
	movl	8(%rbx), %r9d
	movl	(%rbx), %r10d
	movl	4(%rbx), %r11d
	movl	8(%rax), %r15d
	movl	(%rax), %r12d
	movl	4(%rax), %eax
	subq	$8, %rsp
	leaq	-112(%rbp), %rdi
	pushq	%r12
	pushq	%rax
	pushq	%r15
	pushq	%r10
	pushq	%r11
	callq	_set_matrix_3d
	addq	$48, %rsp
	movl	16(%rbx), %esi
	movl	12(%rbx), %edx
	movl	8(%rbx), %ecx
	movl	(%rbx), %r9d
	movl	4(%rbx), %r8d
	subq	$8, %rsp
	leaq	-116(%rbp), %rax
	leaq	-120(%rbp), %rbx
	leaq	-124(%rbp), %r10
	xorl	%edi, %edi
	pushq	%rax
	pushq	%rbx
	pushq	%r10
	callq	_hit_test
	addq	$32, %rsp
	movl	%eax, %edi
	callq	_is_obstacle
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movl	4(%r14), %edi
	callq	_glUseProgram
	movl	$1, %edi
	callq	_glLineWidth
	movq	_GL_COLOR_LOGIC_OP@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	callq	_glEnable
	movl	(%r14), %edi
	movq	_GL_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-112(%rbp), %rcx
	movl	$1, %esi
	callq	_glUniformMatrix4fv
	movl	-124(%rbp), %edi
	movl	-120(%rbp), %esi
	movl	-116(%rbp), %edx
	movsd	LCPI0_0(%rip), %xmm0            ## xmm0 = mem[0],zero
	callq	_gen_wireframe_buffer
	movl	%eax, %ebx
	movq	%r14, %rdi
	movl	%eax, %esi
	movl	$3, %edx
	movl	$24, %ecx
	callq	_draw_lines
	movl	%ebx, %edi
	callq	_del_buffer
	movl	(%r15), %edi
	callq	_glDisable
LBB0_2:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_4
## %bb.3:
	addq	$96, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_g,8,3                          ## @g
	.comm	_GL_COLOR_LOGIC_OP,4,2          ## @GL_COLOR_LOGIC_OP
	.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_wireframe               ; -- Begin function render_wireframe
	.p2align	2
_render_wireframe:                      ; @render_wireframe
	.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	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _g@GOTPAGE
Lloh4:
	ldr	x9, [x9, _g@GOTPAGEOFF]
	stur	x8, [x29, #-40]
Lloh5:
	ldr	x8, [x9]
	ldp	w2, w1, [x8, #12]
	ldp	w4, w3, [x20, #12]
	ldp	w6, w5, [x20, #4]
	ldr	w7, [x20]
	ldp	w10, w9, [x8, #4]
	ldr	w8, [x8]
	stp	w10, w8, [sp, #4]
	add	x0, sp, #24
	str	w9, [sp]
	bl	_set_matrix_3d
	ldp	w2, w1, [x20, #12]
	ldp	w4, w3, [x20, #4]
	ldr	w5, [x20]
	add	x8, sp, #12
	str	x8, [sp]
	add	x6, sp, #20
	add	x7, sp, #16
	mov	w0, #0
	bl	_hit_test
	bl	_is_obstacle
	cbz	x0, LBB0_2
; %bb.1:
	ldr	w0, [x19, #4]
	bl	_glUseProgram
	mov	w0, #1
	bl	_glLineWidth
Lloh6:
	adrp	x21, _GL_COLOR_LOGIC_OP@GOTPAGE
Lloh7:
	ldr	x21, [x21, _GL_COLOR_LOGIC_OP@GOTPAGEOFF]
	ldr	w0, [x21]
	bl	_glEnable
	ldr	w0, [x19]
Lloh8:
	adrp	x8, _GL_FALSE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _GL_FALSE@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	add	x3, sp, #24
	mov	w1, #1
	bl	_glUniformMatrix4fv
	ldp	w1, w0, [sp, #16]
	ldr	w2, [sp, #12]
	mov	x8, #10486
	movk	x8, #36700, lsl #16
	movk	x8, #62914, lsl #32
	movk	x8, #16352, lsl #48
	fmov	d0, x8
	bl	_gen_wireframe_buffer
	mov	x20, x0
	mov	x0, x19
	mov	x1, x20
	mov	w2, #3
	mov	w3, #24
	bl	_draw_lines
	mov	x0, x20
	bl	_del_buffer
	ldr	w0, [x21]
	bl	_glDisable
LBB0_2:
	ldur	x8, [x29, #-40]
Lloh11:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh12:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_4
; %bb.3:
	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_4:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_g,8,3                          ; @g
	.comm	_GL_COLOR_LOGIC_OP,4,2          ; @GL_COLOR_LOGIC_OP
	.comm	_GL_FALSE,4,2                   ; @GL_FALSE
.subsections_via_symbols
