	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_BN_mul                         ## -- Begin function BN_mul
	.p2align	4, 0x90
_BN_mul:                                ## @BN_mul
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r15
	movq	%rdx, %r12
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	%rsi, %rdi
	callq	_bn_check_top
	movq	%r12, %rdi
	callq	_bn_check_top
	movq	%r14, %rdi
	callq	_bn_check_top
	movl	(%rbx), %r13d
	testl	%r13d, %r13d
	je	LBB0_2
## %bb.1:
	movl	(%r12), %eax
	testl	%eax, %eax
	je	LBB0_2
## %bb.3:
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	callq	_BN_CTX_start
	cmpq	%rbx, %r14
	je	LBB0_5
## %bb.4:
	movq	%r14, %r15
	cmpq	%r12, %r14
	jne	LBB0_7
LBB0_5:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_BN_CTX_get
	movq	%rax, %r15
	testq	%rax, %rax
	je	LBB0_6
LBB0_7:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	leal	(%rax,%r13), %esi
	movl	4(%r12), %eax
	xorl	4(%rbx), %eax
	movl	%eax, 4(%r15)
	movq	%r15, %rdi
	movl	%esi, -52(%rbp)                 ## 4-byte Spill
	callq	_bn_wexpand
	testq	%rax, %rax
	je	LBB0_6
## %bb.8:
	movl	-52(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, (%r15)
	movl	8(%r15), %edi
	movl	8(%rbx), %esi
	movl	8(%r12), %ecx
	movl	%r13d, %edx
	movq	-64(%rbp), %r8                  ## 8-byte Reload
                                        ## kill: def $r8d killed $r8d killed $r8
	callq	_bn_mul_normal
	movq	%r15, %rdi
	callq	_bn_fix_top
	movl	$1, %ebx
	cmpq	%r14, %r15
	je	LBB0_10
## %bb.9:
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_BN_copy
	jmp	LBB0_10
LBB0_2:
	movq	%r14, %rdi
	callq	_BN_zero
	movl	$1, %ebx
	jmp	LBB0_11
LBB0_6:
	xorl	%ebx, %ebx
LBB0_10:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_BN_CTX_end
LBB0_11:
	movl	%ebx, %eax
	addq	$24, %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	_BN_mul                         ; -- Begin function BN_mul
	.p2align	2
_BN_mul:                                ; @BN_mul
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x3
	mov	x21, x2
	mov	x22, x1
	mov	x20, x0
	mov	x0, x1
	bl	_bn_check_top
	mov	x0, x21
	bl	_bn_check_top
	mov	x0, x20
	bl	_bn_check_top
	ldr	w24, [x22]
	ldr	w23, [x21]
	cmp	w24, #0
	ccmp	w23, #0, #4, ne
	b.ne	LBB0_2
; %bb.1:
	mov	x0, x20
	bl	_BN_zero
	mov	w20, #1
	b	LBB0_11
LBB0_2:
	mov	x0, x19
	bl	_BN_CTX_start
	cmp	x20, x22
	b.eq	LBB0_4
; %bb.3:
	mov	x25, x20
	cmp	x20, x21
	b.ne	LBB0_5
LBB0_4:
	mov	x0, x19
	bl	_BN_CTX_get
	mov	x25, x0
	cbz	x0, LBB0_9
LBB0_5:
	add	w26, w23, w24
	ldr	w8, [x22, #4]
	ldr	w9, [x21, #4]
	eor	w8, w9, w8
	str	w8, [x25, #4]
	mov	x0, x25
	mov	x1, x26
	bl	_bn_wexpand
	cbz	x0, LBB0_9
; %bb.6:
	str	w26, [x25]
	ldr	w0, [x25, #8]
	ldr	w1, [x22, #8]
	ldr	w3, [x21, #8]
	mov	x2, x24
	mov	x4, x23
	bl	_bn_mul_normal
	mov	x0, x25
	bl	_bn_fix_top
	cmp	x25, x20
	b.eq	LBB0_8
; %bb.7:
	mov	x0, x20
	mov	x1, x25
	bl	_BN_copy
LBB0_8:
	mov	w20, #1
	b	LBB0_10
LBB0_9:
	mov	w20, #0
LBB0_10:
	mov	x0, x19
	bl	_BN_CTX_end
LBB0_11:
	mov	x0, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
