	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function file_modmul
_file_modmul:                           ## @file_modmul
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	leaq	L_.str(%rip), %rsi
	callq	_getBN
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_TEST_ptr
	testl	%eax, %eax
	je	LBB0_19
## %bb.1:
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	callq	_getBN
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_TEST_ptr
	testl	%eax, %eax
	je	LBB0_20
## %bb.2:
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdi
	callq	_getBN
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_TEST_ptr
	testl	%eax, %eax
	je	LBB0_21
## %bb.3:
	leaq	L_.str.3(%rip), %rsi
	movq	%rbx, %rdi
	callq	_getBN
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_TEST_ptr
	testl	%eax, %eax
	je	LBB0_23
## %bb.4:
	xorl	%eax, %eax
	callq	_BN_new
	movq	%rax, %r13
	movq	%rax, %rdi
	callq	_TEST_ptr
	testl	%eax, %eax
	je	LBB0_22
## %bb.5:
	movq	_ctx@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%r13, %rdi
	movq	%r12, %rsi
	movq	%r14, %rdx
	movq	%r15, %rcx
	callq	_BN_mod_mul
	movl	%eax, %edi
	callq	_TEST_true
	testl	%eax, %eax
	je	LBB0_22
## %bb.6:
	leaq	L_.str.4(%rip), %rdi
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rsi
	movq	%r13, %rdx
	callq	_equalBN
	testl	%eax, %eax
	je	LBB0_28
## %bb.7:
	movq	%r15, %rdi
	callq	_BN_is_odd
	testq	%rax, %rax
	je	LBB0_39
## %bb.8:
	movl	$0, -60(%rbp)                   ## 4-byte Folded Spill
	xorl	%eax, %eax
	callq	_BN_MONT_CTX_new
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	callq	_BN_new
	movq	%rax, %rbx
	xorl	%eax, %eax
	callq	_BN_new
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	testq	%rdi, %rdi
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	je	LBB0_31
## %bb.9:
	testq	%rbx, %rbx
	je	LBB0_31
## %bb.10:
	movb	$1, -41(%rbp)                   ## 1-byte Folded Spill
	testq	%rax, %rax
	je	LBB0_37
## %bb.11:
	movq	_ctx@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rsi
	callq	_BN_MONT_CTX_set
	movl	%eax, %edi
	callq	_TEST_true
	testl	%eax, %eax
	je	LBB0_36
## %bb.12:
	movq	_ctx@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movq	%r15, %rdx
	callq	_BN_nnmod
	movl	%eax, %edi
	callq	_TEST_true
	testl	%eax, %eax
	je	LBB0_36
## %bb.13:
	movq	_ctx@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %rsi
	movq	%r15, %rdx
	callq	_BN_nnmod
	movl	%eax, %edi
	callq	_TEST_true
	testl	%eax, %eax
	je	LBB0_36
## %bb.14:
	movq	_ctx@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	movq	%rbx, %rsi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	callq	_BN_to_montgomery
	movl	%eax, %edi
	callq	_TEST_true
	testl	%eax, %eax
	je	LBB0_36
## %bb.15:
	movq	_ctx@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	%rdi, %rsi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	callq	_BN_to_montgomery
	movl	%eax, %edi
	callq	_TEST_true
	testl	%eax, %eax
	je	LBB0_36
## %bb.16:
	movq	_ctx@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%r13, %rdi
	movq	%rbx, %rsi
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	callq	_BN_mod_mul_montgomery
	movl	%eax, %edi
	callq	_TEST_true
	testl	%eax, %eax
	je	LBB0_36
## %bb.17:
	movq	_ctx@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r13, %rdi
	movq	%r13, %rsi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	callq	_BN_from_montgomery
	movl	%eax, %edi
	callq	_TEST_true
	testl	%eax, %eax
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	je	LBB0_37
## %bb.18:
	leaq	L_.str.5(%rip), %rdi
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	movq	%r13, %rdx
	callq	_equalBN
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	xorl	%ecx, %ecx
	testl	%eax, %eax
	sete	-41(%rbp)                       ## 1-byte Folded Spill
	setne	%cl
	movl	%ecx, -60(%rbp)                 ## 4-byte Spill
	jmp	LBB0_37
LBB0_19:
	movq	%r12, %rdi
	xorl	%r13d, %r13d
	xorl	%ebx, %ebx
	xorl	%r12d, %r12d
	xorl	%r15d, %r15d
	xorl	%r14d, %r14d
	jmp	LBB0_27
LBB0_20:
	movq	%r12, %rdi
	xorl	%r13d, %r13d
	xorl	%ebx, %ebx
	xorl	%r12d, %r12d
	jmp	LBB0_26
LBB0_21:
	movq	%r12, %rdi
	xorl	%ebx, %ebx
	jmp	LBB0_24
LBB0_22:
	movq	%r12, %rdi
	movq	%r13, %r12
	jmp	LBB0_25
LBB0_23:
	movq	%r12, %rdi
LBB0_24:
	xorl	%r12d, %r12d
LBB0_25:
	movq	%r15, %r13
LBB0_26:
	xorl	%r15d, %r15d
LBB0_27:
	callq	_BN_free
	movq	%r14, %rdi
	callq	_BN_free
	movq	%r13, %rdi
	callq	_BN_free
	movq	%rbx, %rdi
	callq	_BN_free
	movq	%r12, %rdi
	callq	_BN_free
	movl	%r15d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_28:
	movq	%r12, %rdi
	movq	%r13, %r12
	movq	%r15, %r13
	xorl	%r15d, %r15d
	jmp	LBB0_40
LBB0_36:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	jmp	LBB0_37
LBB0_31:
	movb	$1, -41(%rbp)                   ## 1-byte Folded Spill
LBB0_37:
	callq	_BN_MONT_CTX_free
	movq	%rbx, %rdi
	callq	_BN_free
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_BN_free
	cmpb	$0, -41(%rbp)                   ## 1-byte Folded Reload
	je	LBB0_39
## %bb.38:
	movq	%r12, %rdi
	movq	%r13, %r12
	movq	%r15, %r13
	movl	-60(%rbp), %r15d                ## 4-byte Reload
	jmp	LBB0_40
LBB0_39:
	movq	%r12, %rdi
	movq	%r13, %r12
	movq	%r15, %r13
	movl	$1, %r15d
LBB0_40:
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_27
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"A"

L_.str.1:                               ## @.str.1
	.asciz	"B"

L_.str.2:                               ## @.str.2
	.asciz	"M"

L_.str.3:                               ## @.str.3
	.asciz	"ModMul"

	.comm	_ctx,4,2                        ## @ctx
L_.str.4:                               ## @.str.4
	.asciz	"A * B (mod M)"

L_.str.5:                               ## @.str.5
	.asciz	"A * B (mod M) (mont)"

	.no_dead_strip	_file_modmul
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function file_modmul
_file_modmul:                           ; @file_modmul
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x22, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_getBN
	mov	x19, x0
	bl	_TEST_ptr
	cbz	w0, LBB0_19
; %bb.1:
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x22
	bl	_getBN
	mov	x20, x0
	bl	_TEST_ptr
	cbz	w0, LBB0_20
; %bb.2:
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x22
	bl	_getBN
	mov	x21, x0
	bl	_TEST_ptr
	cbz	w0, LBB0_21
; %bb.3:
Lloh6:
	adrp	x1, l_.str.3@PAGE
Lloh7:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x22
	bl	_getBN
	mov	x22, x0
	bl	_TEST_ptr
	cbz	w0, LBB0_22
; %bb.4:
	bl	_BN_new
	mov	x23, x0
	bl	_TEST_ptr
	cbz	w0, LBB0_23
; %bb.5:
Lloh8:
	adrp	x28, _ctx@GOTPAGE
Lloh9:
	ldr	x28, [x28, _ctx@GOTPAGEOFF]
	ldr	w4, [x28]
	mov	x0, x23
	mov	x1, x19
	mov	x2, x20
	mov	x3, x21
	bl	_BN_mod_mul
	bl	_TEST_true
	cbz	w0, LBB0_23
; %bb.6:
Lloh10:
	adrp	x0, l_.str.4@PAGE
Lloh11:
	add	x0, x0, l_.str.4@PAGEOFF
	mov	x1, x22
	mov	x2, x23
	bl	_equalBN
	cbz	w0, LBB0_23
; %bb.7:
	mov	x0, x21
	bl	_BN_is_odd
	cbz	x0, LBB0_27
; %bb.8:
	bl	_BN_MONT_CTX_new
	mov	x24, x0
	bl	_BN_new
	mov	x25, x0
	bl	_BN_new
	mov	w27, #0
	mov	w26, #1
	str	x0, [sp, #8]                    ; 8-byte Folded Spill
	cbz	x24, LBB0_26
; %bb.9:
	cbz	x25, LBB0_26
; %bb.10:
	cbz	x0, LBB0_26
; %bb.11:
	ldr	w2, [x28]
	mov	x0, x24
	mov	x1, x21
	bl	_BN_MONT_CTX_set
	bl	_TEST_true
	cbz	w0, LBB0_25
; %bb.12:
	ldr	w3, [x28]
	mov	x0, x25
	mov	x1, x19
	mov	x2, x21
	bl	_BN_nnmod
	bl	_TEST_true
	cbz	w0, LBB0_25
; %bb.13:
	ldr	w3, [x28]
	ldr	x0, [sp, #8]                    ; 8-byte Folded Reload
	mov	x1, x20
	mov	x2, x21
	bl	_BN_nnmod
	bl	_TEST_true
	cbz	w0, LBB0_25
; %bb.14:
	ldr	w3, [x28]
	mov	x0, x25
	mov	x1, x25
	mov	x2, x24
	bl	_BN_to_montgomery
	bl	_TEST_true
	cbz	w0, LBB0_25
; %bb.15:
	ldr	w3, [x28]
	ldr	x26, [sp, #8]                   ; 8-byte Folded Reload
	mov	x0, x26
	mov	x1, x26
	mov	x2, x24
	bl	_BN_to_montgomery
	bl	_TEST_true
	cbz	w0, LBB0_25
; %bb.16:
	ldr	w4, [x28]
	mov	x0, x23
	mov	x1, x25
	mov	x2, x26
	mov	x3, x24
	bl	_BN_mod_mul_montgomery
	bl	_TEST_true
	cbz	w0, LBB0_25
; %bb.17:
	ldr	w3, [x28]
	mov	x0, x23
	mov	x1, x23
	mov	x2, x24
	bl	_BN_from_montgomery
	bl	_TEST_true
	cbz	w0, LBB0_25
; %bb.18:
Lloh12:
	adrp	x0, l_.str.5@PAGE
Lloh13:
	add	x0, x0, l_.str.5@PAGEOFF
	mov	x1, x22
	mov	x2, x23
	bl	_equalBN
	cmp	w0, #0
	cset	w26, eq
	cset	w27, ne
	b	LBB0_26
LBB0_19:
	mov	x21, #0
	mov	x22, #0
	mov	x23, #0
	mov	w27, #0
	mov	x20, #0
	b	LBB0_24
LBB0_20:
	mov	x21, #0
LBB0_21:
	mov	x22, #0
LBB0_22:
	mov	x23, #0
LBB0_23:
	mov	w27, #0
LBB0_24:
	mov	x0, x19
	bl	_BN_free
	mov	x0, x20
	bl	_BN_free
	mov	x0, x21
	bl	_BN_free
	mov	x0, x22
	bl	_BN_free
	mov	x0, x23
	bl	_BN_free
	mov	x0, x27
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_25:
	mov	w27, #0
	mov	w26, #1
LBB0_26:
	mov	x0, x24
	bl	_BN_MONT_CTX_free
	mov	x0, x25
	bl	_BN_free
	ldr	x0, [sp, #8]                    ; 8-byte Folded Reload
	bl	_BN_free
	tbnz	w26, #0, LBB0_24
LBB0_27:
	mov	w27, #1
	b	LBB0_24
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"A"

l_.str.1:                               ; @.str.1
	.asciz	"B"

l_.str.2:                               ; @.str.2
	.asciz	"M"

l_.str.3:                               ; @.str.3
	.asciz	"ModMul"

	.comm	_ctx,4,2                        ; @ctx
l_.str.4:                               ; @.str.4
	.asciz	"A * B (mod M)"

l_.str.5:                               ; @.str.5
	.asciz	"A * B (mod M) (mont)"

	.no_dead_strip	_file_modmul
.subsections_via_symbols
