	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pullup_alloc_buffer
_pullup_alloc_buffer:                   ## @pullup_alloc_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpq	$0, 8(%rsi)
	je	LBB0_1
LBB0_5:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	%rsi, %r14
	movq	%rdi, %r12
	movl	(%rdi), %r15d
	movl	%r15d, %edi
	movl	$8, %esi
	callq	_calloc
	movq	%rax, 8(%r14)
	movl	%r15d, %edi
	movl	$4, %esi
	callq	_calloc
	movq	%rax, (%r14)
	testl	%r15d, %r15d
	jle	LBB0_5
## %bb.2:
	movl	$1, %ebx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r12), %rcx
	movq	16(%r12), %rdx
	movl	-4(%rdx,%rbx,4), %edi
	imull	-4(%rcx,%rbx,4), %edi
	movl	%edi, -4(%rax,%rbx,4)
	callq	_malloc
	movq	8(%r14), %rcx
	movl	%eax, -4(%rcx,%rbx,4)
	movq	24(%r12), %rcx
	movl	-4(%rcx,%rbx,4), %esi
	movq	(%r14), %rcx
	movl	-4(%rcx,%rbx,4), %edx
	movl	%eax, %edi
	callq	_memset
	movslq	(%r12), %rax
	cmpq	%rax, %rbx
	jge	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	(%r14), %rax
	incq	%rbx
	jmp	LBB0_3
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_pullup_alloc_buffer
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pullup_alloc_buffer
_pullup_alloc_buffer:                   ; @pullup_alloc_buffer
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	ldr	x8, [x1, #8]
	cbz	x8, LBB0_2
LBB0_1:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_2:
	mov	x19, x1
	mov	x20, x0
	ldr	w21, [x0]
	mov	x0, x21
	mov	w1, #8
	bl	_calloc
	str	x0, [x19, #8]
	mov	x0, x21
	mov	w1, #4
	bl	_calloc
	str	x0, [x19]
	cmp	w21, #1
	b.lt	LBB0_1
; %bb.3:
	mov	x21, #0
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	lsl	x22, x21, #2
	ldp	x8, x9, [x20, #8]
	ldr	w8, [x8, x22]
	ldr	w9, [x9, x22]
	mul	w8, w9, w8
	str	w8, [x0, x22]
	mov	x0, x8
	bl	_malloc
	ldp	x9, x8, [x19]
	str	w0, [x8, x22]
	ldr	x8, [x20, #24]
	ldr	w1, [x8, x22]
	ldr	w2, [x9, x22]
	bl	_memset
	add	x21, x21, #1
	ldrsw	x8, [x20]
	cmp	x21, x8
	b.ge	LBB0_1
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x0, [x19]
	b	LBB0_4
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_pullup_alloc_buffer
.subsections_via_symbols
