	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gen_sign_buffer                ## -- Begin function gen_sign_buffer
	.p2align	4, 0x90
_gen_sign_buffer:                       ## @gen_sign_buffer
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	xorl	%r12d, %r12d
	cmpl	$0, 8(%rdi)
	movl	$0, %r15d
	jle	LBB0_3
## %bb.1:
	xorl	%r13d, %r13d
	xorl	%ebx, %ebx
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%r14), %rax
	movl	(%rax,%r13), %edi
	callq	_strlen
	addl	%eax, %r15d
	incq	%rbx
	movslq	8(%r14), %rax
	addq	$20, %r13
	cmpq	%rax, %rbx
	jl	LBB0_2
LBB0_3:
	movl	$5, %edi
	movl	%r15d, %esi
	callq	_malloc_faces
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	cmpl	$0, 8(%r14)
	jle	LBB0_6
## %bb.4:
	xorl	%r13d, %r13d
	movl	$16, %ebx
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%r14), %rax
	movl	%r15d, %ecx
	shll	$5, %ecx
	subl	%r15d, %ecx
	subl	%r15d, %ecx
	movslq	%ecx, %rcx
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	leaq	(%rdx,%rcx,4), %rdi
	movl	(%rax,%rbx), %esi
	movl	-4(%rax,%rbx), %edx
	movl	-8(%rax,%rbx), %ecx
	movl	-16(%rax,%rbx), %r9d
	movl	-12(%rax,%rbx), %r8d
	callq	__gen_sign_buffer
	movq	%rax, %r12
	addl	%r15d, %r12d
	incq	%r13
	movslq	8(%r14), %rax
	addq	$20, %rbx
	movl	%r12d, %r15d
	cmpq	%rax, %r13
	jl	LBB0_5
LBB0_6:
	movl	4(%r14), %edi
	callq	_del_buffer
	movl	$5, %edi
	movl	%r12d, %esi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	callq	_gen_faces
	movl	%eax, 4(%r14)
	movl	%r12d, (%r14)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gen_sign_buffer                ; -- Begin function gen_sign_buffer
	.p2align	2
_gen_sign_buffer:                       ; @gen_sign_buffer
	.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	w8, [x0, #8]
	cmp	w8, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x21, #0
	mov	x22, #0
	mov	w20, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #16]
	ldr	w0, [x8, x21]
	bl	_strlen
	add	w20, w20, w0
	add	x22, x22, #1
	ldrsw	x8, [x19, #8]
	add	x21, x21, #20
	cmp	x22, x8
	b.lt	LBB0_2
	b	LBB0_4
LBB0_3:
	mov	w20, #0
LBB0_4:
	mov	w0, #5
	mov	x1, x20
	bl	_malloc_faces
	mov	x20, x0
	ldr	w8, [x19, #8]
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.5:
	mov	x22, #0
	mov	x23, #0
	mov	w21, #0
	mov	w24, #30
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #16]
	mul	w9, w21, w24
	add	x0, x20, w9, sxtw #2
	add	x8, x8, x22
	ldp	w2, w1, [x8, #12]
	ldp	w4, w3, [x8, #4]
	ldr	w5, [x8]
	bl	__gen_sign_buffer
	add	w21, w21, w0
	add	x23, x23, #1
	ldrsw	x8, [x19, #8]
	add	x22, x22, #20
	cmp	x23, x8
	b.lt	LBB0_6
	b	LBB0_8
LBB0_7:
	mov	w21, #0
LBB0_8:
	ldr	w0, [x19, #4]
	bl	_del_buffer
	mov	w0, #5
	mov	x1, x21
	mov	x2, x20
	bl	_gen_faces
	stp	w21, w0, [x19]
	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
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
