	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_BN_exp                         ## -- Begin function BN_exp
	.p2align	4, 0x90
_BN_exp:                                ## @BN_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	$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, %r14
	movq	%rsi, %r13
	movq	%rdi, %r12
	movq	_BN_FLG_CONSTTIME@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%rdx, %rdi
	callq	_BN_get_flags
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	movl	(%rbx), %esi
	movq	%r13, %rdi
	callq	_BN_get_flags
	testq	%rax, %rax
	je	LBB0_3
LBB0_2:
	movq	_BN_F_BN_EXP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ERR_R_SHOULD_NOT_HAVE_BEEN_CALLED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_BNerr
	xorl	%r12d, %r12d
LBB0_22:
	movl	%r12d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	%r15, %rdi
	callq	_BN_CTX_start
	cmpq	%r13, %r12
	je	LBB0_5
## %bb.4:
	movq	%r12, %rbx
	cmpq	%r14, %r12
	jne	LBB0_6
LBB0_5:
	movq	%r15, %rdi
	callq	_BN_CTX_get
	movq	%rax, %rbx
LBB0_6:
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	callq	_BN_CTX_get
	xorl	%r12d, %r12d
	testq	%rbx, %rbx
	je	LBB0_21
## %bb.7:
	testq	%rax, %rax
	je	LBB0_21
## %bb.8:
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	%rax, %rdi
	movq	%r13, %rsi
	callq	_BN_copy
	testq	%rax, %rax
	je	LBB0_21
## %bb.9:
	movq	%r14, %rdi
	callq	_BN_num_bits
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	%r14, %rdi
	callq	_BN_is_odd
	movq	%rbx, %rdi
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	movq	%r13, %rsi
	callq	_BN_copy
	testq	%rax, %rax
	jne	LBB0_12
	jmp	LBB0_21
LBB0_11:
	callq	_BN_one
	testl	%eax, %eax
	je	LBB0_21
LBB0_12:
	movq	%rbx, %r13
	cmpl	$2, -44(%rbp)                   ## 4-byte Folded Reload
	jl	LBB0_18
## %bb.13:
	movl	$1, %ebx
	jmp	LBB0_14
LBB0_17:                                ##   in Loop: Header=BB0_14 Depth=1
	incl	%ebx
	cmpl	%ebx, -44(%rbp)                 ## 4-byte Folded Reload
	je	LBB0_18
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%rdi, %rsi
	movq	%r15, %rdx
	callq	_BN_sqr
	testl	%eax, %eax
	je	LBB0_21
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=1
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_BN_is_bit_set
	testq	%rax, %rax
	je	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_14 Depth=1
	movq	%r13, %rdi
	movq	%r13, %rsi
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movq	%r15, %rcx
	callq	_BN_mul
	testl	%eax, %eax
	jne	LBB0_17
	jmp	LBB0_21
LBB0_18:
	cmpq	-56(%rbp), %r13                 ## 8-byte Folded Reload
	je	LBB0_20
## %bb.19:
	movq	%r13, %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_BN_copy
	testq	%rax, %rax
	je	LBB0_21
LBB0_20:
	movl	$1, %r12d
LBB0_21:
	movq	%r15, %rdi
	callq	_BN_CTX_end
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_bn_check_top
	jmp	LBB0_22
	.cfi_endproc
                                        ## -- End function
	.comm	_BN_FLG_CONSTTIME,4,2           ## @BN_FLG_CONSTTIME
	.comm	_BN_F_BN_EXP,4,2                ## @BN_F_BN_EXP
	.comm	_ERR_R_SHOULD_NOT_HAVE_BEEN_CALLED,4,2 ## @ERR_R_SHOULD_NOT_HAVE_BEEN_CALLED
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_BN_exp                         ; -- Begin function BN_exp
	.p2align	2
_BN_exp:                                ; @BN_exp
	.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	x20, x3
	mov	x21, x2
	mov	x24, x1
	mov	x19, x0
Lloh0:
	adrp	x22, _BN_FLG_CONSTTIME@GOTPAGE
Lloh1:
	ldr	x22, [x22, _BN_FLG_CONSTTIME@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x2
	bl	_BN_get_flags
	cbnz	x0, LBB0_2
; %bb.1:
	ldr	w1, [x22]
	mov	x0, x24
	bl	_BN_get_flags
	cbz	x0, LBB0_4
LBB0_2:
Lloh2:
	adrp	x8, _BN_F_BN_EXP@GOTPAGE
Lloh3:
	ldr	x8, [x8, _BN_F_BN_EXP@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
Lloh5:
	adrp	x8, _ERR_R_SHOULD_NOT_HAVE_BEEN_CALLED@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ERR_R_SHOULD_NOT_HAVE_BEEN_CALLED@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	bl	_BNerr
	mov	w25, #0
LBB0_3:
	mov	x0, x25
	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
LBB0_4:
	mov	x0, x20
	bl	_BN_CTX_start
	cmp	x19, x24
	b.eq	LBB0_6
; %bb.5:
	mov	x22, x19
	cmp	x19, x21
	b.ne	LBB0_7
LBB0_6:
	mov	x0, x20
	bl	_BN_CTX_get
	mov	x22, x0
LBB0_7:
	mov	x0, x20
	bl	_BN_CTX_get
	mov	w25, #0
	cbz	x22, LBB0_23
; %bb.8:
	mov	x23, x0
	cbz	x0, LBB0_23
; %bb.9:
	mov	x0, x23
	mov	x1, x24
	bl	_BN_copy
	cbz	x0, LBB0_22
; %bb.10:
	mov	x0, x21
	bl	_BN_num_bits
	mov	x25, x0
	mov	x0, x21
	bl	_BN_is_odd
	cbz	x0, LBB0_12
; %bb.11:
	mov	x0, x22
	mov	x1, x24
	bl	_BN_copy
	cbnz	x0, LBB0_13
	b	LBB0_22
LBB0_12:
	mov	x0, x22
	bl	_BN_one
	cbz	w0, LBB0_22
LBB0_13:
	cmp	w25, #2
	b.lt	LBB0_19
; %bb.14:
	mov	w24, #1
	b	LBB0_16
LBB0_15:                                ;   in Loop: Header=BB0_16 Depth=1
	add	w24, w24, #1
	cmp	w25, w24
	b.eq	LBB0_19
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x23
	mov	x1, x23
	mov	x2, x20
	bl	_BN_sqr
	cbz	w0, LBB0_22
; %bb.17:                               ;   in Loop: Header=BB0_16 Depth=1
	mov	x0, x21
	mov	x1, x24
	bl	_BN_is_bit_set
	cbz	x0, LBB0_15
; %bb.18:                               ;   in Loop: Header=BB0_16 Depth=1
	mov	x0, x22
	mov	x1, x22
	mov	x2, x23
	mov	x3, x20
	bl	_BN_mul
	cbnz	w0, LBB0_15
	b	LBB0_22
LBB0_19:
	cmp	x22, x19
	b.eq	LBB0_21
; %bb.20:
	mov	x0, x19
	mov	x1, x22
	bl	_BN_copy
	cbz	x0, LBB0_22
LBB0_21:
	mov	w25, #1
	b	LBB0_23
LBB0_22:
	mov	w25, #0
LBB0_23:
	mov	x0, x20
	bl	_BN_CTX_end
	mov	x0, x19
	bl	_bn_check_top
	b	LBB0_3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_BN_FLG_CONSTTIME,4,2           ; @BN_FLG_CONSTTIME
	.comm	_BN_F_BN_EXP,4,2                ; @BN_F_BN_EXP
	.comm	_ERR_R_SHOULD_NOT_HAVE_BEEN_CALLED,4,2 ; @ERR_R_SHOULD_NOT_HAVE_BEEN_CALLED
.subsections_via_symbols
