	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mp_mul_2d
_mp_mul_2d:                             ## @mp_mul_2d
	.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
	movq	%rdx, %r12
	movl	%esi, %r14d
	cmpq	%rdx, %rdi
	je	LBB0_2
## %bb.1:
	movq	%r12, %rsi
	callq	_mp_copy
	movq	_MP_OKAY@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_15
LBB0_2:
	movl	(%r12), %ecx
	movq	_DIGIT_BIT@GOTPCREL(%rip), %r15
	movl	(%r15), %r8d
	movl	%r14d, %eax
	cltd
	idivl	%r8d
	addl	4(%r12), %eax
	cmpl	%eax, %ecx
	jg	LBB0_5
## %bb.3:
	incl	%eax
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_mp_grow
	movq	_MP_OKAY@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_15
## %bb.4:
	movl	(%r15), %r8d
LBB0_5:
	cmpl	%r14d, %r8d
	jg	LBB0_8
## %bb.6:
	movl	%r14d, %eax
	cltd
	idivl	%r8d
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_mp_lshd
	movq	_MP_OKAY@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_15
## %bb.7:
	movl	(%r15), %r8d
LBB0_8:
	movl	%r14d, %eax
	cltd
	idivl	%r8d
	testl	%edx, %edx
	je	LBB0_14
## %bb.9:
	movl	%edx, %r10d
	movl	$-1, %r11d
	movl	%r10d, %ecx
	shll	%cl, %r11d
	cmpl	$0, 4(%r12)
	jle	LBB0_14
## %bb.10:
	notl	%r11d
	subl	%r10d, %r8d
	movq	8(%r12), %rdi
	xorl	%esi, %esi
	movq	_MP_MASK@GOTPCREL(%rip), %r9
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %edx
	movl	(%rdi,%rsi,4), %eax
	movl	%eax, %ebx
	movl	%r8d, %ecx
	sarl	%cl, %ebx
	movl	%r10d, %ecx
	shll	%cl, %eax
	andl	%r11d, %ebx
	orl	%edx, %eax
	andl	(%r9), %eax
	movl	%eax, (%rdi,%rsi,4)
	movslq	4(%r12), %rcx
	incq	%rsi
	cmpl	%ecx, %esi
	jl	LBB0_11
## %bb.12:
	testl	%ebx, %ebx
	je	LBB0_14
## %bb.13:
	leal	1(%rcx), %eax
	movl	%eax, 4(%r12)
	movl	%ebx, (%rdi,%rcx,4)
LBB0_14:
	movq	%r12, %rdi
	callq	_mp_clamp
	movq	_MP_OKAY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_15:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MP_OKAY,4,2                    ## @MP_OKAY
	.comm	_DIGIT_BIT,4,2                  ## @DIGIT_BIT
	.comm	_MP_MASK,4,2                    ## @MP_MASK
	.no_dead_strip	_mp_mul_2d
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mp_mul_2d
_mp_mul_2d:                             ; @mp_mul_2d
	.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
	mov	x19, x2
	mov	x20, x1
Lloh0:
	adrp	x21, _MP_OKAY@GOTPAGE
Lloh1:
	ldr	x21, [x21, _MP_OKAY@GOTPAGEOFF]
	cmp	x0, x2
	b.eq	LBB0_2
; %bb.1:
	mov	x1, x19
	bl	_mp_copy
	ldr	w8, [x21]
	cmp	w0, w8
	b.ne	LBB0_15
LBB0_2:
	ldp	w9, w8, [x19]
Lloh2:
	adrp	x22, _DIGIT_BIT@GOTPAGE
Lloh3:
	ldr	x22, [x22, _DIGIT_BIT@GOTPAGEOFF]
	ldr	w10, [x22]
	sdiv	w11, w20, w10
	add	w8, w11, w8
	cmp	w9, w8
	b.gt	LBB0_5
; %bb.3:
	add	w1, w8, #1
	mov	x0, x19
	bl	_mp_grow
	ldr	w8, [x21]
	cmp	w0, w8
	b.ne	LBB0_15
; %bb.4:
	ldr	w10, [x22]
LBB0_5:
	cmp	w10, w20
	b.gt	LBB0_8
; %bb.6:
	sdiv	w1, w20, w10
	mov	x0, x19
	bl	_mp_lshd
	ldr	w8, [x21]
	cmp	w0, w8
	b.ne	LBB0_15
; %bb.7:
	ldr	w10, [x22]
LBB0_8:
	sdiv	w8, w20, w10
	msub	w8, w8, w10, w20
	cbz	w8, LBB0_14
; %bb.9:
	ldr	w9, [x19, #4]
	cmp	w9, #1
	b.lt	LBB0_14
; %bb.10:
	mov	x11, #0
	mov	w9, #0
	mov	w12, #-1
	lsl	w12, w12, w8
	mvn	w12, w12
	sub	w13, w10, w8
	ldr	x10, [x19, #8]
Lloh4:
	adrp	x14, _MP_MASK@GOTPAGE
Lloh5:
	ldr	x14, [x14, _MP_MASK@GOTPAGEOFF]
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	lsl	x15, x11, #2
	ldr	w16, [x10, x15]
	asr	w17, w16, w13
	lsl	w16, w16, w8
	orr	w16, w16, w9
	and	w9, w17, w12
	ldr	w17, [x14]
	and	w16, w16, w17
	str	w16, [x10, x15]
	ldrsw	x15, [x19, #4]
	add	x11, x11, #1
	cmp	w11, w15
	b.lt	LBB0_11
; %bb.12:
	cbz	w9, LBB0_14
; %bb.13:
	add	w8, w15, #1
	str	w8, [x19, #4]
	str	w9, [x10, x15, lsl #2]
LBB0_14:
	mov	x0, x19
	bl	_mp_clamp
	ldr	w0, [x21]
LBB0_15:
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_MP_OKAY,4,2                    ; @MP_OKAY
	.comm	_DIGIT_BIT,4,2                  ; @DIGIT_BIT
	.comm	_MP_MASK,4,2                    ; @MP_MASK
	.no_dead_strip	_mp_mul_2d
.subsections_via_symbols
