	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bsqrt
_bsqrt:                                 ## @bsqrt
	.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
	movl	$0, -44(%rbp)
	xorl	%eax, %eax
	callq	_pop_number
	testq	%rax, %rax
	je	LBB0_10
## %bb.1:
	movq	%rax, %r15
	movq	8(%rax), %rdi
	callq	_BN_is_zero
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	xorl	%eax, %eax
	callq	_new_number
	movq	%rax, %rdi
LBB0_8:
	callq	_push_number
	jmp	LBB0_9
LBB0_3:
	movq	8(%r15), %rdi
	callq	_BN_is_negative
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	leaq	L_.str(%rip), %rdi
	callq	_warnx
LBB0_9:
	movq	%r15, %rdi
	callq	_free_number
LBB0_10:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	_bmachine@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r15), %esi
	callq	_max
                                        ## kill: def $eax killed $eax def $rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	leal	(%rax,%rax), %esi
	movq	%r15, %rdi
	callq	_normalize
	movq	8(%r15), %rdi
	callq	_BN_dup
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_bn_checkp
	movq	%rbx, %rdi
	callq	_BN_num_bits
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%eax, %edx
	sarl	%edx
	movq	%rbx, %rdi
	movq	%rbx, %rsi
	callq	_BN_rshift
	movl	%eax, %edi
	callq	_bn_check
	xorl	%eax, %eax
	callq	_BN_new
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_bn_checkp
	xorl	%eax, %eax
	callq	_BN_CTX_new
	movq	%rax, %r13
	movq	%rax, %rdi
	callq	_bn_checkp
	leaq	-44(%rbp), %r14
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_BN_copy
	movq	%rax, %rdi
	callq	_bn_checkp
	movq	8(%r15), %rdx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movq	%rbx, %rcx
	movq	%r13, %r8
	callq	_BN_div
	movl	%eax, %edi
	callq	_bn_check
	movq	%rbx, %rdi
	movq	%rbx, %rsi
	movq	%r12, %rdx
	callq	_BN_add
	movl	%eax, %edi
	callq	_bn_check
	movq	%rbx, %rdi
	movq	%rbx, %rsi
	callq	_BN_rshift1
	movl	%eax, %edi
	callq	_bn_check
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movq	%r14, %rdx
	callq	_bsqrt_stop
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	movl	$16, %edi
	callq	_bmalloc
	movq	%rax, %r14
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	%eax, (%r14)
	movq	%r12, 8(%r14)
	movq	%rbx, %rdi
	callq	_BN_free
	movq	%r13, %rdi
	callq	_BN_CTX_free
	movq	%r14, %rdi
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"square root of negative number"

	.comm	_bmachine,4,2                   ## @bmachine
	.no_dead_strip	_bsqrt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bsqrt
_bsqrt:                                 ; @bsqrt
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	str	wzr, [sp, #12]
	bl	_pop_number
	cbz	x0, LBB0_7
; %bb.1:
	mov	x19, x0
	ldr	x0, [x0, #8]
	bl	_BN_is_zero
	cbz	x0, LBB0_4
; %bb.2:
	bl	_new_number
LBB0_3:
	bl	_push_number
	b	LBB0_6
LBB0_4:
	ldr	x0, [x19, #8]
	bl	_BN_is_negative
	cbz	x0, LBB0_8
; %bb.5:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_warnx
LBB0_6:
	mov	x0, x19
	bl	_free_number
LBB0_7:
	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
	add	sp, sp, #80
	ret
LBB0_8:
Lloh2:
	adrp	x8, _bmachine@GOTPAGE
Lloh3:
	ldr	x8, [x8, _bmachine@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	ldr	w1, [x19]
	bl	_max
	mov	x20, x0
	lsl	w1, w0, #1
	mov	x0, x19
	bl	_normalize
	ldr	x0, [x19, #8]
	bl	_BN_dup
	mov	x21, x0
	bl	_bn_checkp
	mov	x0, x21
	bl	_BN_num_bits
	cmp	w0, #0
	cinc	w8, w0, lt
	asr	w2, w8, #1
	mov	x0, x21
	mov	x1, x21
	bl	_BN_rshift
	bl	_bn_check
	bl	_BN_new
	mov	x22, x0
	bl	_bn_checkp
	bl	_BN_CTX_new
	mov	x23, x0
	bl	_bn_checkp
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x22
	mov	x1, x21
	bl	_BN_copy
	bl	_bn_checkp
	ldr	x2, [x19, #8]
	mov	x0, x21
	mov	x1, #0
	mov	x3, x21
	mov	x4, x23
	bl	_BN_div
	bl	_bn_check
	mov	x0, x21
	mov	x1, x21
	mov	x2, x22
	bl	_BN_add
	bl	_bn_check
	mov	x0, x21
	mov	x1, x21
	bl	_BN_rshift1
	bl	_bn_check
	add	x2, sp, #12
	mov	x0, x21
	mov	x1, x22
	bl	_bsqrt_stop
	cbz	x0, LBB0_9
; %bb.10:
	mov	w0, #16
	bl	_bmalloc
	mov	x24, x0
	str	w20, [x0]
	str	x22, [x0, #8]
	mov	x0, x21
	bl	_BN_free
	mov	x0, x23
	bl	_BN_CTX_free
	mov	x0, x24
	b	LBB0_3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"square root of negative number"

	.comm	_bmachine,4,2                   ; @bmachine
	.no_dead_strip	_bsqrt
.subsections_via_symbols
