	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_BN_sqr                         ## -- Begin function BN_sqr
	.p2align	4, 0x90
_BN_sqr:                                ## @BN_sqr
	.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	$168, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movq	%rsi, %r14
	movq	%rdi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	%rsi, %rdi
	callq	_bn_check_top
	movl	(%r14), %r15d
	testl	%r15d, %r15d
	jle	LBB0_1
## %bb.2:
	movq	%rbx, %rdi
	callq	_BN_CTX_start
	movq	%r12, -184(%rbp)                ## 8-byte Spill
	cmpq	%r12, %r14
	jne	LBB0_4
## %bb.3:
	movq	%rbx, %rdi
	callq	_BN_CTX_get
	movq	%rax, -184(%rbp)                ## 8-byte Spill
LBB0_4:
	movq	%rbx, -200(%rbp)                ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_BN_CTX_get
	xorl	%r13d, %r13d
	testq	%rax, %rax
	je	LBB0_14
## %bb.5:
	movq	%rax, %rbx
	leal	(%r15,%r15), %esi
	incl	%esi
	movq	-184(%rbp), %rdi                ## 8-byte Reload
	callq	_bn_wexpand
	testq	%rax, %rax
	je	LBB0_14
## %bb.6:
	leal	(%r15,%r15), %esi
	movq	$0, 16(%r12)
	cmpl	$8, %r15d
	movq	%rsi, -192(%rbp)                ## 8-byte Spill
	je	LBB0_9
## %bb.7:
	cmpl	$4, %r15d
	jne	LBB0_10
## %bb.8:
	movq	-184(%rbp), %rbx                ## 8-byte Reload
	movq	8(%rbx), %rdi
	movq	8(%r14), %rsi
	leaq	-176(%rbp), %rcx
	movl	$4, %edx
	jmp	LBB0_12
LBB0_1:
	movl	$0, (%r12)
	movl	$1, %r13d
	jmp	LBB0_15
LBB0_9:
	movq	-184(%rbp), %rbx                ## 8-byte Reload
	movq	8(%rbx), %rdi
	movq	8(%r14), %rsi
	leaq	-176(%rbp), %rcx
	movl	$8, %edx
	jmp	LBB0_12
LBB0_10:
	movq	%rbx, %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_bn_wexpand
	testq	%rax, %rax
	je	LBB0_14
## %bb.11:
	movq	-184(%rbp), %rax                ## 8-byte Reload
	movq	8(%rax), %rdi
	movq	8(%r14), %rsi
	movq	8(%rbx), %rcx
	movq	%rax, %rbx
	movl	%r15d, %edx
LBB0_12:
	callq	_bn_sqr_normal
	movq	8(%rbx), %rax
	movq	-192(%rbp), %rdx                ## 8-byte Reload
	leal	-1(%rdx), %ecx
	cmpq	$0, (%rax,%rcx,8)
	cmovel	%ecx, %edx
	movl	%edx, (%rbx)
	movl	$1, %r13d
	cmpq	%r12, %rbx
	je	LBB0_14
## %bb.13:
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_BN_copy
LBB0_14:
	movq	-200(%rbp), %rdi                ## 8-byte Reload
	callq	_BN_CTX_end
LBB0_15:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_17
## %bb.16:
	movl	%r13d, %eax
	addq	$168, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_17:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_BN_sqr                         ; -- Begin function BN_sqr
	.p2align	2
_BN_sqr:                                ; @BN_sqr
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #224
	.cfi_def_cfa_offset 224
	stp	x26, x25, [sp, #144]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #160]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #176]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #192]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #208]            ; 16-byte Folded Spill
	add	x29, sp, #208
	.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, x2
	mov	x22, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
	mov	x0, x1
	bl	_bn_check_top
	ldr	w23, [x22]
	cmp	w23, #0
	b.le	LBB0_8
; %bb.1:
	mov	x0, x19
	bl	_BN_CTX_start
	mov	x21, x20
	cmp	x22, x20
	b.ne	LBB0_3
; %bb.2:
	mov	x0, x19
	bl	_BN_CTX_get
	mov	x21, x0
LBB0_3:
	mov	x0, x19
	bl	_BN_CTX_get
	cbz	x0, LBB0_15
; %bb.4:
	mov	x25, x0
	mov	w1, #1
	bfi	w1, w23, #1, #31
	mov	x0, x21
	bl	_bn_wexpand
	cbz	x0, LBB0_15
; %bb.5:
	lsl	w24, w23, #1
	str	xzr, [x20, #16]
	cmp	w23, #8
	b.eq	LBB0_9
; %bb.6:
	cmp	w23, #4
	b.ne	LBB0_10
; %bb.7:
	ldr	x0, [x21, #8]
	ldr	x1, [x22, #8]
	add	x3, sp, #8
	mov	w2, #4
	b	LBB0_12
LBB0_8:
	str	wzr, [x20]
	mov	w20, #1
	b	LBB0_17
LBB0_9:
	ldr	x0, [x21, #8]
	ldr	x1, [x22, #8]
	add	x3, sp, #8
	mov	w2, #8
	b	LBB0_12
LBB0_10:
	mov	x0, x25
	mov	x1, x24
	bl	_bn_wexpand
	cbz	x0, LBB0_15
; %bb.11:
	ldr	x0, [x21, #8]
	ldr	x1, [x22, #8]
	ldr	x3, [x25, #8]
	mov	x2, x23
LBB0_12:
	bl	_bn_sqr_normal
	ldr	x8, [x21, #8]
	sub	w9, w24, #1
	ldr	x8, [x8, w9, uxtw #3]
	cmp	x8, #0
	csel	w8, w9, w24, eq
	str	w8, [x21]
	cmp	x21, x20
	b.eq	LBB0_14
; %bb.13:
	mov	x0, x20
	mov	x1, x21
	bl	_BN_copy
LBB0_14:
	mov	w20, #1
	b	LBB0_16
LBB0_15:
	mov	w20, #0
LBB0_16:
	mov	x0, x19
	bl	_BN_CTX_end
LBB0_17:
	ldur	x8, [x29, #-72]
Lloh3:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh4:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_19
; %bb.18:
	mov	x0, x20
	ldp	x29, x30, [sp, #208]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #192]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #176]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #160]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #144]            ; 16-byte Folded Reload
	add	sp, sp, #224
	ret
LBB0_19:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
