	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bc_sqrt                        ## -- Begin function bc_sqrt
	.p2align	4, 0x90
_bc_sqrt:                               ## @bc_sqrt
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movq	%rdi, %r12
	movq	(%rdi), %rbx
	movq	__zero_@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	callq	_BCG
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_bc_compare
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	je	LBB0_3
## %bb.5:
	movq	(%r12), %rbx
	movq	__one_@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	callq	_BCG
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_bc_compare
	testl	%eax, %eax
	je	LBB0_6
## %bb.7:
	movl	%eax, %r14d
	movq	(%r12), %rax
	movl	(%rax), %esi
	movl	%r15d, %edi
	callq	_MAX
                                        ## kill: def $eax killed $eax def $rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	leaq	-48(%rbp), %rdi
	callq	_bc_init_num
	leaq	-56(%rbp), %rdi
	callq	_bc_init_num
	leaq	-72(%rbp), %rdi
	callq	_bc_init_num
	movl	$1, %edi
	movl	$1, %esi
	callq	_bc_new_num
	movq	%rax, %r15
	movq	%rax, -88(%rbp)
	movq	8(%rax), %rax
	movl	$5, 4(%rax)
	testl	%r14d, %r14d
	js	LBB0_8
## %bb.9:
	leaq	-48(%rbp), %r14
	movq	%r14, %rdi
	movl	$10, %esi
	callq	_bc_int2num
	movq	(%r12), %rax
	movl	16(%rax), %esi
	leaq	-56(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_bc_int2num
	movq	-56(%rbp), %rdi
	movq	%r15, %rsi
	movq	%rbx, %rdx
	xorl	%ecx, %ecx
	callq	_bc_multiply
	movq	-56(%rbp), %rsi
	movl	$0, (%rsi)
	movq	-48(%rbp), %rdi
	movq	%r14, %rdx
	xorl	%ecx, %ecx
	callq	_bc_raise
	movq	%rbx, %rdi
	callq	_bc_free_num
	movl	$3, %ebx
	jmp	LBB0_10
LBB0_1:
	xorl	%eax, %eax
	jmp	LBB0_19
LBB0_3:
	movq	%r12, %rdi
	callq	_bc_free_num
	movl	(%r14), %edi
	jmp	LBB0_4
LBB0_6:
	movq	%r12, %rdi
	callq	_bc_free_num
	movl	(%r13), %edi
LBB0_4:
	callq	_BCG
	movq	%rax, %rdi
	callq	_bc_copy_num
	movq	%rax, (%r12)
	jmp	LBB0_18
LBB0_8:
	movl	(%r13), %edi
	callq	_BCG
	movq	%rax, %rdi
	callq	_bc_copy_num
	movq	%rax, -48(%rbp)
	movq	(%r12), %rax
	movl	(%rax), %ebx
LBB0_10:
	movq	_FALSE@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_11
LBB0_17:
	movq	%r12, %rdi
	callq	_bc_free_num
	movq	-48(%rbp), %rbx
	movq	__one_@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_BCG
	movq	%rbx, %rdi
	movq	%rax, %rsi
	movq	%r12, %rdx
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
                                        ## kill: def $ecx killed $ecx killed $rcx
	callq	_bc_divide
	leaq	-48(%rbp), %rdi
	callq	_bc_free_num
	leaq	-56(%rbp), %rdi
	callq	_bc_free_num
	leaq	-88(%rbp), %rdi
	callq	_bc_free_num
	leaq	-72(%rbp), %rdi
	callq	_bc_free_num
LBB0_18:
	movl	$1, %eax
LBB0_19:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	incl	%eax
	movl	%eax, -76(%rbp)                 ## 4-byte Spill
	leaq	-48(%rbp), %r14
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_12 Depth=1
	movq	_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
LBB0_16:                                ##   in Loop: Header=BB0_12 Depth=1
	testl	%r13d, %r13d
	jne	LBB0_17
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	leaq	-56(%rbp), %rdi
	callq	_bc_free_num
	movq	-48(%rbp), %rdi
	callq	_bc_copy_num
	movq	%rax, -56(%rbp)
	movq	(%r12), %rdi
	movq	-48(%rbp), %rsi
	movq	%r14, %rdx
	movl	%ebx, %ecx
	callq	_bc_divide
	movq	-48(%rbp), %rdi
	movq	-56(%rbp), %rsi
	xorl	%r13d, %r13d
	movq	%r14, %rdx
	xorl	%ecx, %ecx
	callq	_bc_add
	movq	-48(%rbp), %rdi
	movq	%r15, %rsi
	movq	%r14, %rdx
	movl	%ebx, %ecx
	callq	_bc_multiply
	movq	-48(%rbp), %rdi
	movq	-56(%rbp), %rsi
	leal	1(%rbx), %ecx
	leaq	-72(%rbp), %rdx
	callq	_bc_sub
	movq	-72(%rbp), %rdi
	movl	%ebx, %esi
	callq	_bc_is_near_zero
	testq	%rax, %rax
	je	LBB0_16
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=1
	cmpl	-64(%rbp), %ebx                 ## 4-byte Folded Reload
	jg	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_12 Depth=1
	leal	(%rbx,%rbx,2), %edi
	movl	-76(%rbp), %esi                 ## 4-byte Reload
	callq	_MIN
	movl	%eax, %ebx
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
	.comm	__zero_,4,2                     ## @_zero_
	.comm	__one_,4,2                      ## @_one_
	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_TRUE,4,2                       ## @TRUE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bc_sqrt                        ; -- Begin function bc_sqrt
	.p2align	2
_bc_sqrt:                               ; @bc_sqrt
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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, x1
	mov	x19, x0
	ldr	x21, [x0]
Lloh0:
	adrp	x22, __zero_@GOTPAGE
Lloh1:
	ldr	x22, [x22, __zero_@GOTPAGEOFF]
	ldr	w0, [x22]
	bl	_BCG
	mov	x1, x0
	mov	x0, x21
	bl	_bc_compare
	tbnz	w0, #31, LBB0_5
; %bb.1:
	cbz	w0, LBB0_6
; %bb.2:
	ldr	x21, [x19]
Lloh2:
	adrp	x24, __one_@GOTPAGE
Lloh3:
	ldr	x24, [x24, __one_@GOTPAGEOFF]
	ldr	w0, [x24]
	bl	_BCG
	mov	x1, x0
	mov	x0, x21
	bl	_bc_compare
	cbz	w0, LBB0_7
; %bb.3:
	mov	x22, x0
	ldr	x8, [x19]
	ldr	w1, [x8]
	mov	x0, x20
	bl	_MAX
	mov	x20, x0
	add	x0, sp, #24
	bl	_bc_init_num
	add	x0, sp, #16
	bl	_bc_init_num
	mov	x0, sp
	bl	_bc_init_num
	mov	w0, #1
	mov	w1, #1
	bl	_bc_new_num
	mov	x21, x0
	str	x0, [sp, #8]
	ldr	x8, [x0, #8]
	mov	w9, #5
	str	w9, [x8, #4]
	tbnz	w22, #31, LBB0_9
; %bb.4:
	add	x0, sp, #24
	mov	w1, #10
	bl	_bc_int2num
	ldr	x8, [x19]
	ldr	w1, [x8, #16]
	add	x0, sp, #16
	bl	_bc_int2num
	ldr	x0, [sp, #16]
	add	x2, sp, #16
	mov	x1, x21
	mov	w3, #0
	bl	_bc_multiply
	ldr	x1, [sp, #16]
	str	wzr, [x1]
	ldr	x0, [sp, #24]
	add	x2, sp, #24
	mov	w3, #0
	bl	_bc_raise
	add	x0, sp, #16
	bl	_bc_free_num
	mov	w22, #3
	b	LBB0_10
LBB0_5:
	mov	w0, #0
	b	LBB0_13
LBB0_6:
	mov	x0, x19
	bl	_bc_free_num
	ldr	w0, [x22]
	b	LBB0_8
LBB0_7:
	mov	x0, x19
	bl	_bc_free_num
	ldr	w0, [x24]
LBB0_8:
	bl	_BCG
	bl	_bc_copy_num
	str	x0, [x19]
	b	LBB0_12
LBB0_9:
	ldr	w0, [x24]
	bl	_BCG
	bl	_bc_copy_num
	str	x0, [sp, #24]
	ldr	x8, [x19]
	ldr	w22, [x8]
LBB0_10:
Lloh4:
	adrp	x8, _FALSE@GOTPAGE
Lloh5:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	cbz	w8, LBB0_14
LBB0_11:
	mov	x0, x19
	bl	_bc_free_num
	ldr	x21, [sp, #24]
	ldr	w0, [x24]
	bl	_BCG
	mov	x1, x0
	mov	x0, x21
	mov	x2, x19
	mov	x3, x20
	bl	_bc_divide
	add	x0, sp, #24
	bl	_bc_free_num
	add	x0, sp, #16
	bl	_bc_free_num
	add	x0, sp, #8
	bl	_bc_free_num
	mov	x0, sp
	bl	_bc_free_num
LBB0_12:
	mov	w0, #1
LBB0_13:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_14:
	add	w23, w20, #1
Lloh7:
	adrp	x25, _TRUE@GOTPAGE
Lloh8:
	ldr	x25, [x25, _TRUE@GOTPAGEOFF]
	b	LBB0_17
LBB0_15:                                ;   in Loop: Header=BB0_17 Depth=1
	add	w0, w22, w22, lsl #1
	mov	x1, x23
	bl	_MIN
	mov	x22, x0
LBB0_16:                                ;   in Loop: Header=BB0_17 Depth=1
	mov	w8, #0
	cbnz	w8, LBB0_11
LBB0_17:                                ; =>This Inner Loop Header: Depth=1
	add	x0, sp, #16
	bl	_bc_free_num
	ldr	x0, [sp, #24]
	bl	_bc_copy_num
	str	x0, [sp, #16]
	ldr	x0, [x19]
	ldr	x1, [sp, #24]
	add	x2, sp, #24
	mov	x3, x22
	bl	_bc_divide
	ldp	x1, x0, [sp, #16]
	add	x2, sp, #24
	mov	w3, #0
	bl	_bc_add
	ldr	x0, [sp, #24]
	add	x2, sp, #24
	mov	x1, x21
	mov	x3, x22
	bl	_bc_multiply
	ldp	x1, x0, [sp, #16]
	add	w3, w22, #1
	mov	x2, sp
	bl	_bc_sub
	ldr	x0, [sp]
	mov	x1, x22
	bl	_bc_is_near_zero
	cbz	x0, LBB0_16
; %bb.18:                               ;   in Loop: Header=BB0_17 Depth=1
	cmp	w22, w20
	b.le	LBB0_15
; %bb.19:                               ;   in Loop: Header=BB0_17 Depth=1
	ldr	w8, [x25]
	cbz	w8, LBB0_17
	b	LBB0_11
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	__zero_,4,2                     ; @_zero_
	.comm	__one_,4,2                      ; @_one_
	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_TRUE,4,2                       ; @TRUE
.subsections_via_symbols
