	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_crypto_mod_exp                 ## -- Begin function crypto_mod_exp
	.p2align	4, 0x90
_crypto_mod_exp:                        ## @crypto_mod_exp
	.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	%r9, -56(%rbp)                  ## 8-byte Spill
	movq	%r8, -48(%rbp)                  ## 8-byte Spill
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movq	%rsi, -80(%rbp)                 ## 8-byte Spill
	movq	%rdi, %rbx
	xorl	%eax, %eax
	callq	_bignum_init
	movq	%rax, %r13
	xorl	%eax, %eax
	callq	_bignum_init
	movq	%rax, %r14
	xorl	%eax, %eax
	callq	_bignum_init
	movq	%rax, %r15
	xorl	%eax, %eax
	callq	_bignum_init
	movq	%rax, %r12
	testq	%r13, %r13
	je	LBB0_15
## %bb.1:
	testq	%r14, %r14
	je	LBB0_15
## %bb.2:
	testq	%r15, %r15
	je	LBB0_15
## %bb.3:
	testq	%r12, %r12
	je	LBB0_15
## %bb.4:
	movq	%r13, %rdi
	movq	%rbx, %rsi
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	callq	_bignum_set_unsigned_bin
	testq	%rax, %rax
	js	LBB0_15
## %bb.5:
	movq	%r14, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	callq	_bignum_set_unsigned_bin
	testq	%rax, %rax
	js	LBB0_15
## %bb.6:
	movq	%r15, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	callq	_bignum_set_unsigned_bin
	testq	%rax, %rax
	js	LBB0_15
## %bb.7:
	movq	%r13, %rdi
	movq	%r14, %rsi
	movq	%r15, %rdx
	movq	%r12, %rcx
	callq	_bignum_exptmod
	testq	%rax, %rax
	movl	$-1, %ebx
	js	LBB0_16
## %bb.8:
	movq	24(%rbp), %rdx
	movq	16(%rbp), %rsi
	movq	%r12, %rdi
	callq	_bignum_get_unsigned_bin
	movl	%eax, %ebx
	jmp	LBB0_16
LBB0_15:
	movl	$-1, %ebx
LBB0_16:
	movq	%r13, %rdi
	callq	_bignum_deinit
	movq	%r14, %rdi
	callq	_bignum_deinit
	movq	%r15, %rdi
	callq	_bignum_deinit
	movq	%r12, %rdi
	callq	_bignum_deinit
	movl	%ebx, %eax
	addq	$40, %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	_crypto_mod_exp                 ; -- Begin function crypto_mod_exp
	.p2align	2
_crypto_mod_exp:                        ; @crypto_mod_exp
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	stp	x6, x7, [sp, #8]                ; 16-byte Folded Spill
	str	x5, [sp, #24]                   ; 8-byte Folded Spill
	mov	x26, x4
	mov	x28, x3
	mov	x23, x2
	mov	x24, x1
	mov	x25, x0
	bl	_bignum_init
	mov	x19, x0
	bl	_bignum_init
	mov	x20, x0
	bl	_bignum_init
	mov	x21, x0
	bl	_bignum_init
	mov	x22, x0
	mov	w27, #-1
	cbz	x19, LBB0_10
; %bb.1:
	cbz	x20, LBB0_10
; %bb.2:
	cbz	x21, LBB0_10
; %bb.3:
	cbz	x22, LBB0_10
; %bb.4:
	mov	x0, x19
	mov	x1, x25
	mov	x2, x24
	bl	_bignum_set_unsigned_bin
	tbnz	x0, #63, LBB0_9
; %bb.5:
	mov	x0, x20
	mov	x1, x23
	mov	x2, x28
	bl	_bignum_set_unsigned_bin
	tbnz	x0, #63, LBB0_9
; %bb.6:
	mov	x0, x21
	mov	x1, x26
	ldr	x2, [sp, #24]                   ; 8-byte Folded Reload
	bl	_bignum_set_unsigned_bin
	tbnz	x0, #63, LBB0_9
; %bb.7:
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	mov	x3, x22
	bl	_bignum_exptmod
	tbnz	x0, #63, LBB0_9
; %bb.8:
	mov	x0, x22
	ldp	x1, x2, [sp, #8]                ; 16-byte Folded Reload
	bl	_bignum_get_unsigned_bin
	mov	x27, x0
	b	LBB0_10
LBB0_9:
	mov	w27, #-1
LBB0_10:
	mov	x0, x19
	bl	_bignum_deinit
	mov	x0, x20
	bl	_bignum_deinit
	mov	x0, x21
	bl	_bignum_deinit
	mov	x0, x22
	bl	_bignum_deinit
	mov	x0, x27
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
