	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mp_int_expt                    ## -- Begin function mp_int_expt
	.p2align	4, 0x90
_mp_int_expt:                           ## @mp_int_expt
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %rbx
	movq	%rdi, %r15
	xorl	%edi, %edi
	testq	%rdx, %rdx
	setne	%dil
	callq	_assert
	testq	%rbx, %rbx
	js	LBB0_1
## %bb.2:
	movl	$1, %edi
	callq	_DECLARE_TEMP
	xorl	%edi, %edi
	callq	_TEMP
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_mp_int_copy
	movl	%eax, %edi
	callq	_REQUIRE
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_mp_int_set_value
	movq	%rbx, %rdi
	callq	_labs
	testl	%eax, %eax
	je	LBB0_8
## %bb.3:
	movl	%eax, %r15d
	testb	$1, %r15b
	je	LBB0_6
	.p2align	4, 0x90
LBB0_5:
	xorl	%edi, %edi
	callq	_TEMP
	movq	%r14, %rdi
	movl	%eax, %esi
	movq	%r14, %rdx
	callq	_mp_int_mul
	movl	%eax, %edi
	callq	_REQUIRE
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	$2, %r15d
	jb	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	shrl	%r15d
	xorl	%edi, %edi
	callq	_TEMP
	movl	%eax, %ebx
	xorl	%edi, %edi
	callq	_TEMP
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_mp_int_sqr
	movl	%eax, %edi
	callq	_REQUIRE
	testb	$1, %r15b
	jne	LBB0_5
	jmp	LBB0_6
LBB0_8:
	xorl	%eax, %eax
	callq	_CLEANUP_TEMP
	movq	_MP_OK@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_1:
	movq	_MP_RANGE@GOTPCREL(%rip), %rax
LBB0_9:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MP_RANGE,4,2                   ## @MP_RANGE
	.comm	_MP_OK,4,2                      ## @MP_OK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mp_int_expt                    ; -- Begin function mp_int_expt
	.p2align	2
_mp_int_expt:                           ; @mp_int_expt
	.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
	mov	x21, x0
	cmp	x2, #0
	cset	w0, ne
	bl	_assert
	tbnz	x20, #63, LBB0_7
; %bb.1:
	mov	w0, #1
	bl	_DECLARE_TEMP
	mov	w0, #0
	bl	_TEMP
	mov	x1, x0
	mov	x0, x21
	bl	_mp_int_copy
	bl	_REQUIRE
	mov	x0, x19
	mov	w1, #1
	bl	_mp_int_set_value
	mov	x0, x20
	bl	_labs
	cbz	w0, LBB0_6
; %bb.2:
	mov	x20, x0
	tbz	w20, #0, LBB0_4
LBB0_3:
	mov	w0, #0
	bl	_TEMP
	mov	x1, x0
	mov	x0, x19
	mov	x2, x19
	bl	_mp_int_mul
	bl	_REQUIRE
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	cmp	w20, #2
	b.lo	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	lsr	w20, w20, #1
	mov	w0, #0
	bl	_TEMP
	mov	x21, x0
	mov	w0, #0
	bl	_TEMP
	mov	x1, x0
	mov	x0, x21
	bl	_mp_int_sqr
	bl	_REQUIRE
	tbnz	w20, #0, LBB0_3
	b	LBB0_4
LBB0_6:
	bl	_CLEANUP_TEMP
Lloh0:
	adrp	x8, _MP_OK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MP_OK@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:
Lloh2:
	adrp	x8, _MP_RANGE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MP_RANGE@GOTPAGEOFF]
LBB0_8:
	ldr	w0, [x8]
	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
	.cfi_endproc
                                        ; -- End function
	.comm	_MP_RANGE,4,2                   ; @MP_RANGE
	.comm	_MP_OK,4,2                      ; @MP_OK
.subsections_via_symbols
