	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function multadd
_multadd:                               ## @multadd
	.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
	movl	%ecx, %ebx
	movq	%rsi, %r14
	movq	%rdi, %r15
	movslq	(%rsi), %r13
	cmpl	$2, %r13d
	movl	$1, %r9d
	cmovgel	%r13d, %r9d
	movq	8(%rsi), %r8
	cmpq	$2, %r13
	jge	LBB0_2
## %bb.1:
                                        ## implicit-def: $edi
	movq	%r8, %rsi
	jmp	LBB0_4
LBB0_2:
	movl	%r9d, %ecx
	andl	$2147483646, %ecx               ## imm = 0x7FFFFFFE
	movq	%r8, %rsi
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rsi), %edi
	imull	%edx, %edi
	addl	%ebx, %edi
	movzwl	%di, %ebx
	movl	%edi, %eax
	sarl	$16, %eax
	movl	%ebx, (%rsi)
	movl	4(%rsi), %edi
	imull	%edx, %edi
	addl	%eax, %edi
	movl	%edi, %ebx
	sarl	$16, %ebx
	movzwl	%di, %eax
	movl	%eax, 4(%rsi)
	addq	$8, %rsi
	addl	$-2, %ecx
	jne	LBB0_3
LBB0_4:
	testb	$1, %r9b
	je	LBB0_6
## %bb.5:
	imull	(%rsi), %edx
	addl	%ebx, %edx
	movl	%edx, %ebx
	sarl	$16, %ebx
	movzwl	%dx, %eax
	movl	%eax, (%rsi)
	movl	%edx, %edi
LBB0_6:
	cmpl	$65536, %edi                    ## imm = 0x10000
	jb	LBB0_10
## %bb.7:
	cmpl	16(%r14), %r13d
	jl	LBB0_9
## %bb.8:
	movq	24(%r14), %rsi
	incq	%rsi
	movq	%r15, %rdi
	callq	_Balloc
	movq	%rax, %r12
	movq	%rax, %rdi
	movq	%r14, %rsi
	callq	_Bcopy
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_Bfree
	movq	8(%r12), %r8
	movq	%r12, %r14
LBB0_9:
	leal	1(%r13), %eax
	movl	%ebx, (%r8,%r13,4)
	movl	%eax, (%r14)
LBB0_10:
	movq	%r14, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FFFFFFFF,4,2                   ## @FFFFFFFF
	.no_dead_strip	_multadd
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function multadd
_multadd:                               ; @multadd
	.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	x20, x3
	mov	x19, x1
	mov	x21, x0
	mov	x9, #0
	ldrsw	x23, [x1]
	ldr	x8, [x1, #8]
	cmp	w23, #1
	csinc	w10, w23, wzr, gt
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	lsl	x12, x9, #2
	ldr	w11, [x8, x12]
	madd	w11, w11, w2, w20
	asr	w20, w11, #16
	and	w13, w11, #0xffff
	str	w13, [x8, x12]
	add	x9, x9, #1
	cmp	w10, w9
	b.ne	LBB0_1
; %bb.2:
	cmp	w11, #16, lsl #12               ; =65536
	b.lo	LBB0_6
; %bb.3:
	ldr	w9, [x19, #16]
	cmp	w23, w9
	b.lt	LBB0_5
; %bb.4:
	ldr	x8, [x19, #24]
	add	x1, x8, #1
	mov	x0, x21
	bl	_Balloc
	mov	x22, x0
	mov	x1, x19
	bl	_Bcopy
	mov	x0, x21
	mov	x1, x19
	bl	_Bfree
	ldr	x8, [x22, #8]
	mov	x19, x22
LBB0_5:
	add	w9, w23, #1
	str	w20, [x8, x23, lsl #2]
	str	w9, [x19]
LBB0_6:
	mov	x0, 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
	.comm	_FFFFFFFF,4,2                   ; @FFFFFFFF
	.no_dead_strip	_multadd
.subsections_via_symbols
