	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_render_sign                    ## -- Begin function render_sign
	.p2align	4, 0x90
_render_sign:                           ## @render_sign
	.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	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_g@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	cmpl	$0, 28(%rax)
	je	LBB0_4
## %bb.1:
	movq	(%rax), %rax
	movq	(%rax), %rax
	movq	_CRAFT_KEY_SIGN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.2:
	movq	%rsi, %rbx
	movq	%rdi, %r14
	leaq	-128(%rbp), %rsi
	leaq	-124(%rbp), %rdx
	leaq	-120(%rbp), %rcx
	leaq	-116(%rbp), %r8
	movq	%rbx, %rdi
	callq	_hit_test_face
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movq	(%r15), %rax
	movl	24(%rax), %esi
	movl	20(%rax), %edx
	movl	16(%rbx), %ecx
	movl	12(%rbx), %r8d
	movl	8(%rbx), %r9d
	movl	(%rbx), %r10d
	movl	4(%rbx), %r11d
	movl	16(%rax), %r13d
	movl	8(%rax), %ebx
	movl	12(%rax), %eax
	subq	$8, %rsp
	leaq	-112(%rbp), %r12
	movq	%r12, %rdi
	pushq	%rbx
	pushq	%rax
	pushq	%r13
	pushq	%r10
	pushq	%r11
	callq	_set_matrix_3d
	addq	$48, %rsp
	movl	12(%r14), %edi
	callq	_glUseProgram
	movl	8(%r14), %edi
	movq	_GL_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$1, %esi
	movq	%r12, %rcx
	callq	_glUniformMatrix4fv
	movl	4(%r14), %edi
	movl	$3, %esi
	callq	_glUniform1i
	movl	(%r14), %edi
	movl	$1, %esi
	callq	_glUniform1i
	movq	%rsp, %r13
	movq	_MAX_SIGN_LENGTH@GOTPCREL(%rip), %r12
	movl	(%r12), %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rbx
	movq	(%r15), %rax
	movq	(%rax), %rsi
	addq	$8, %rsi
	movl	(%r12), %edx
	movq	%rbx, %rdi
	callq	_strncpy
	movslq	(%r12), %rax
	movb	$0, -1(%rax,%rbx)
	movq	%rbx, %rdi
	callq	_strlen
	movl	$5, %edi
	movl	%eax, %esi
	callq	_malloc_faces
	movq	%rax, %r15
	movl	-128(%rbp), %esi
	movl	-124(%rbp), %edx
	movl	-120(%rbp), %ecx
	movl	-116(%rbp), %r8d
	movq	%rax, %rdi
	movq	%rbx, %r9
	callq	__gen_sign_buffer
	movl	%eax, %r12d
	movl	$5, %edi
	movl	%eax, %esi
	movq	%r15, %rdx
	callq	_gen_faces
	movl	%eax, %ebx
	movq	%r14, %rdi
	movl	%eax, %esi
	movl	%r12d, %edx
	callq	_draw_sign
	movl	%ebx, %edi
	callq	_del_buffer
	movq	%r13, %rsp
LBB0_4:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_6
## %bb.5:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_g,8,3                          ## @g
	.comm	_CRAFT_KEY_SIGN,8,3             ## @CRAFT_KEY_SIGN
	.comm	_GL_FALSE,4,2                   ## @GL_FALSE
	.comm	_MAX_SIGN_LENGTH,4,2            ## @MAX_SIGN_LENGTH
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_render_sign                    ; -- Begin function render_sign
	.p2align	2
_render_sign:                           ; @render_sign
	.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
	sub	sp, sp, #96
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
Lloh3:
	adrp	x21, _g@GOTPAGE
Lloh4:
	ldr	x21, [x21, _g@GOTPAGEOFF]
	ldr	x8, [x21]
	ldr	w9, [x8, #28]
	cbz	w9, LBB0_4
; %bb.1:
	ldr	x8, [x8]
	ldr	x8, [x8]
Lloh5:
	adrp	x9, _CRAFT_KEY_SIGN@GOTPAGE
Lloh6:
	ldr	x9, [x9, _CRAFT_KEY_SIGN@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.2:
	mov	x20, x1
	mov	x19, x0
	sub	x1, x29, #124
	sub	x2, x29, #128
	sub	x3, x29, #132
	sub	x4, x29, #136
	mov	x0, x20
	bl	_hit_test_face
	cbz	w0, LBB0_4
; %bb.3:
	ldr	x8, [x21]
	ldp	w2, w1, [x8, #20]
	ldp	w4, w3, [x20, #12]
	ldp	w6, w5, [x20, #4]
	ldr	w7, [x20]
	ldp	w10, w9, [x8, #12]
	ldr	w8, [x8, #8]
	sub	sp, sp, #16
	stp	w10, w8, [sp, #4]
	sub	x0, x29, #120
	str	w9, [sp]
	bl	_set_matrix_3d
	add	sp, sp, #16
	ldr	w0, [x19, #12]
	bl	_glUseProgram
	ldr	w0, [x19, #8]
Lloh8:
	adrp	x8, _GL_FALSE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _GL_FALSE@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	sub	x3, x29, #120
	mov	w1, #1
	bl	_glUniformMatrix4fv
	ldr	w0, [x19, #4]
	mov	w1, #3
	bl	_glUniform1i
	ldr	w0, [x19]
	mov	w1, #1
	bl	_glUniform1i
	mov	x22, sp
Lloh11:
	adrp	x23, _MAX_SIGN_LENGTH@GOTPAGE
Lloh12:
	ldr	x23, [x23, _MAX_SIGN_LENGTH@GOTPAGEOFF]
	ldr	w8, [x23]
	mov	x9, x8
Lloh13:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh14:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x20, x9, x8
	mov	sp, x20
	ldr	x8, [x21]
	ldr	x8, [x8]
	add	x1, x8, #8
	ldr	w2, [x23]
	mov	x0, x20
	bl	_strncpy
	ldrsw	x8, [x23]
	add	x8, x8, x20
	sturb	wzr, [x8, #-1]
	mov	x0, x20
	bl	_strlen
	mov	x1, x0
	mov	w0, #5
	bl	_malloc_faces
	mov	x21, x0
	ldp	w2, w1, [x29, #-128]
	ldp	w4, w3, [x29, #-136]
	mov	x5, x20
	bl	__gen_sign_buffer
	mov	x20, x0
	mov	w0, #5
	mov	x1, x20
	mov	x2, x21
	bl	_gen_faces
	mov	x21, x0
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	bl	_draw_sign
	mov	x0, x21
	bl	_del_buffer
	mov	sp, x22
LBB0_4:
	ldur	x8, [x29, #-56]
Lloh15:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh16:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_6
; %bb.5:
	sub	sp, x29, #48
	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_6:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_g,8,3                          ; @g
	.comm	_CRAFT_KEY_SIGN,8,3             ; @CRAFT_KEY_SIGN
	.comm	_GL_FALSE,4,2                   ; @GL_FALSE
	.comm	_MAX_SIGN_LENGTH,4,2            ; @MAX_SIGN_LENGTH
.subsections_via_symbols
