	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bc_divide                      ## -- Begin function bc_divide
	.p2align	4, 0x90
_bc_divide:                             ## @bc_divide
	.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	$136, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r12d
	movq	%rdx, %r13
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movq	%rsi, %rdi
	callq	_bc_is_zero
	movq	%rax, %rcx
	movl	$-1, %eax
	testq	%rcx, %rcx
	jne	LBB0_58
## %bb.1:
	movl	(%rbx), %eax
	testl	%eax, %eax
	movq	%r15, -96(%rbp)                 ## 8-byte Spill
	movq	%r13, -144(%rbp)                ## 8-byte Spill
	movq	%rbx, -160(%rbp)                ## 8-byte Spill
	je	LBB0_3
## %bb.2:
	leaq	8(%rbx), %rsi
	leaq	4(%rbx), %r8
LBB0_10:
	movq	(%rsi), %rcx
	movslq	(%r8), %rdx
	movl	%eax, %r14d
	leaq	(%rdx,%rcx), %rax
	decq	%rax
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	cmpb	$0, (%rax,%r14)
	jne	LBB0_14
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	decq	%r14
	testl	%r14d, %r14d
	jne	LBB0_11
	jmp	LBB0_13
LBB0_3:
	leaq	4(%rbx), %r8
	cmpl	$1, 4(%rbx)
	jne	LBB0_5
## %bb.4:
	movq	8(%rbx), %rax
	cmpl	$1, (%rax)
	jne	LBB0_5
## %bb.6:
	movq	%r8, -48(%rbp)                  ## 8-byte Spill
	movl	4(%r15), %edi
	movl	%r12d, %esi
	callq	_bc_new_num
	movq	16(%r15), %rcx
	cmpq	16(%rbx), %rcx
	jne	LBB0_7
## %bb.8:
	movq	_PLUS@GOTPCREL(%rip), %rcx
	jmp	LBB0_9
LBB0_5:
	leaq	8(%rbx), %rsi
LBB0_13:
	xorl	%r14d, %r14d
LBB0_14:
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
	movl	(%r15), %esi
	movl	4(%r15), %eax
	leal	(%rax,%r14), %ecx
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	movl	%esi, %ecx
	subl	%r14d, %ecx
	xorl	%edx, %edx
	movq	%r15, %r13
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
                                        ## kill: def $r12d killed $r12d killed $r12 def $r12
	subl	%ecx, %r12d
	cmovlel	%edx, %r12d
	addl	%eax, %esi
	movq	%r12, -112(%rbp)                ## 8-byte Spill
	leal	2(%r12), %ebx
	movl	$1, %edi
	movq	%r8, %r15
	movq	%rsi, -88(%rbp)                 ## 8-byte Spill
                                        ## kill: def $esi killed $esi killed $rsi
	movl	%ebx, %edx
	callq	_safe_emalloc
	movq	%rax, %r12
	addl	4(%r13), %ebx
	addl	(%r13), %ebx
	movq	%rax, %rdi
	xorl	%esi, %esi
	movl	%ebx, %edx
	callq	_memset
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	leaq	1(%r12), %rdi
	movq	8(%r13), %rsi
	movl	(%r13), %edx
	addl	4(%r13), %edx
	callq	_memcpy
	addl	(%r15), %r14d
	movl	$1, %edi
	movl	%r14d, %esi
	movl	$1, %edx
	callq	_safe_emalloc
	movq	%rax, %rbx
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rsi
	movq	%rbx, %rdi
	movl	%r14d, %edx
	callq	_memcpy
	movb	$0, (%rbx,%r14)
	cmpb	$0, (%rbx)
	je	LBB0_16
## %bb.15:
	movq	%rbx, %rcx
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	jmp	LBB0_18
LBB0_16:
	movq	%rbx, %rax
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_17:                                ## =>This Inner Loop Header: Depth=1
	leaq	1(%rax), %rcx
	decl	%r14d
	cmpb	$0, 1(%rax)
	movq	%rcx, %rax
	je	LBB0_17
LBB0_18:
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	leal	(%rsi,%rdx), %r12d
	movl	%r12d, -72(%rbp)                ## 4-byte Spill
	subl	%r14d, %r12d
	movq	%rbx, -168(%rbp)                ## 8-byte Spill
	jae	LBB0_19
## %bb.20:
	movq	_TRUE@GOTPCREL(%rip), %rax
	jmp	LBB0_21
LBB0_19:
	movq	_FALSE@GOTPCREL(%rip), %rax
LBB0_21:
	cmpl	%r14d, %esi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	cmovbl	%esi, %r12d
	subl	%r14d, -72(%rbp)                ## 4-byte Folded Spill
	cmovbl	%esi, %r12d
	incl	%r12d
	movl	%r12d, %edi
	subl	%esi, %edi
	movb	(%rax), %r13b
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_bc_new_num
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	movq	8(%rax), %rdi
	xorl	%esi, %esi
	movl	%r12d, %edx
	callq	_memset
	movl	$1, %edi
	movl	%r14d, %esi
	movl	$1, %edx
	callq	_safe_emalloc
	movq	%rax, -120(%rbp)                ## 8-byte Spill
	testb	%r13b, %r13b
	movq	-64(%rbp), %r9                  ## 8-byte Reload
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	je	LBB0_22
LBB0_52:
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	movq	16(%rax), %rax
	movq	-160(%rbp), %rcx                ## 8-byte Reload
	cmpq	16(%rcx), %rax
	movq	-168(%rbp), %r14                ## 8-byte Reload
	jne	LBB0_53
## %bb.54:
	movq	_PLUS@GOTPCREL(%rip), %rax
	jmp	LBB0_55
LBB0_53:
	movq	_MINUS@GOTPCREL(%rip), %rax
LBB0_55:
	movq	-144(%rbp), %r15                ## 8-byte Reload
	movq	-104(%rbp), %rbx                ## 8-byte Reload
	movq	(%rax), %rax
	movq	%rax, 16(%rbx)
	movq	%rbx, %rdi
	callq	_bc_is_zero
	testq	%rax, %rax
	je	LBB0_57
## %bb.56:
	movq	_PLUS@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 16(%rbx)
LBB0_57:
	movq	%rbx, %rdi
	callq	__bc_rm_leading_zeros
	movq	%r15, %rdi
	callq	_bc_free_num
	movq	%rbx, (%r15)
	movq	-120(%rbp), %rdi                ## 8-byte Reload
	callq	_efree
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_efree
	movq	%r14, %rdi
	callq	_efree
	xorl	%eax, %eax
LBB0_58:
	addq	$136, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_22:
	movzbl	(%rdi), %ecx
	incl	%ecx
	movw	$10, %ax
	xorl	%edx, %edx
	divw	%cx
	cmpw	$1, %ax
	je	LBB0_24
## %bb.23:
	movzwl	%ax, %r12d
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movq	-112(%rbp), %rcx                ## 8-byte Reload
	leal	(%rax,%rcx), %esi
	incl	%esi
	movq	%r9, %rdi
	movl	%r12d, %edx
	movq	%r9, %rcx
	callq	__one_mult
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%r14d, %esi
	movl	%r12d, %edx
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	callq	__one_mult
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	-64(%rbp), %r9                  ## 8-byte Reload
LBB0_24:
	movq	-104(%rbp), %rax                ## 8-byte Reload
	movq	8(%rax), %rax
	movl	%r14d, %edx
	leaq	(%rax,%rdx), %r15
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	movl	%esi, %ecx
	subq	%rcx, %r15
	cmpl	%r14d, %esi
	cmovaeq	%rax, %r15
	movq	-120(%rbp), %rax                ## 8-byte Reload
	leaq	1(%rax), %rcx
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	addq	%rdx, %rax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movq	%rdx, -112(%rbp)                ## 8-byte Spill
	leaq	(%rdi,%rdx), %rax
	movq	%rax, -152(%rbp)                ## 8-byte Spill
	leal	1(%r14), %eax
	movl	%eax, -132(%rbp)                ## 4-byte Spill
	andl	$-2, %eax
	movl	%eax, -128(%rbp)                ## 4-byte Spill
	movl	%r14d, %eax
	andl	$-2, %eax
	movl	%eax, -124(%rbp)                ## 4-byte Spill
	xorl	%r11d, %r11d
	jmp	LBB0_25
	.p2align	4, 0x90
LBB0_50:                                ##   in Loop: Header=BB0_25 Depth=1
	movq	-48(%rbp), %r11                 ## 8-byte Reload
LBB0_51:                                ##   in Loop: Header=BB0_25 Depth=1
	movb	%r12b, (%r15)
	incq	%r15
	cmpl	-72(%rbp), %r11d                ## 4-byte Folded Reload
	ja	LBB0_52
LBB0_25:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_36 Depth 2
                                        ##     Child Loop BB0_45 Depth 2
                                        ## kill: def $r11d killed $r11d killed $r11 def $r11
	movzbl	(%rdi), %esi
	movl	%r11d, %r13d
	movzbl	(%r9,%r13), %eax
	movzwl	%ax, %r10d
	cmpb	%al, %sil
	jne	LBB0_27
## %bb.26:                              ##   in Loop: Header=BB0_25 Depth=1
	leal	1(%r11), %ecx
	movl	$9, %r12d
	jmp	LBB0_28
	.p2align	4, 0x90
LBB0_27:                                ##   in Loop: Header=BB0_25 Depth=1
	leal	(%r10,%r10,4), %eax
	leal	1(%r11), %ecx
	movzbl	(%r9,%rcx), %edx
	leal	(%rdx,%rax,2), %eax
                                        ## kill: def $ax killed $ax killed $eax
	xorl	%edx, %edx
	divw	%si
	movzwl	%ax, %r12d
LBB0_28:                                ##   in Loop: Header=BB0_25 Depth=1
	movzbl	1(%rdi), %r8d
	movl	%r12d, %ebx
	imull	%r8d, %ebx
	leal	(%r10,%r10,4), %edx
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movzbl	(%r9,%rcx), %eax
	leal	(%rax,%rdx,2), %eax
	movzwl	%si, %esi
	movl	%r12d, %ecx
	imull	%esi, %ecx
	movl	%eax, %edx
	subl	%ecx, %edx
	leal	(%rdx,%rdx,4), %edx
	addl	$2, %r11d
	movzbl	(%r9,%r11), %ecx
	leal	(%rcx,%rdx,2), %edx
	cmpl	%edx, %ebx
	jbe	LBB0_30
## %bb.29:                              ##   in Loop: Header=BB0_25 Depth=1
	leal	-1(%r12), %edx
	imull	%edx, %r8d
	imull	%edx, %esi
	subl	%esi, %eax
	leal	(%rax,%rax,4), %eax
	leal	(%rcx,%rax,2), %eax
	addl	$-2, %r12d
	cmpl	%eax, %r8d
	cmovbel	%edx, %r12d
LBB0_30:                                ##   in Loop: Header=BB0_25 Depth=1
	movq	-48(%rbp), %r11                 ## 8-byte Reload
	testl	%r12d, %r12d
	je	LBB0_31
## %bb.32:                              ##   in Loop: Header=BB0_25 Depth=1
	movq	-120(%rbp), %rax                ## 8-byte Reload
	movb	$0, (%rax)
	movl	%r14d, %esi
	movl	%r12d, %edx
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	callq	__one_mult
	cmpl	$-1, %r14d
	je	LBB0_33
## %bb.34:                              ##   in Loop: Header=BB0_25 Depth=1
	movq	-64(%rbp), %r9                  ## 8-byte Reload
	addq	%r9, %r13
	addq	-112(%rbp), %r13                ## 8-byte Folded Reload
	xorl	%edx, %edx
                                        ## implicit-def: $sil
	movq	%r13, %rax
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	testl	%r14d, %r14d
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	jne	LBB0_35
## %bb.38:                              ##   in Loop: Header=BB0_25 Depth=1
	testb	$1, -132(%rbp)                  ## 1-byte Folded Reload
	jne	LBB0_39
LBB0_40:                                ##   in Loop: Header=BB0_25 Depth=1
	testb	$1, %sil
	je	LBB0_50
	jmp	LBB0_41
	.p2align	4, 0x90
LBB0_31:                                ##   in Loop: Header=BB0_25 Depth=1
	xorl	%r12d, %r12d
	jmp	LBB0_51
	.p2align	4, 0x90
LBB0_33:                                ##   in Loop: Header=BB0_25 Depth=1
	movq	-64(%rbp), %r9                  ## 8-byte Reload
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	jmp	LBB0_50
	.p2align	4, 0x90
LBB0_35:                                ##   in Loop: Header=BB0_25 Depth=1
	xorl	%edx, %edx
	movl	-128(%rbp), %r8d                ## 4-byte Reload
	movq	%r13, %rax
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_36:                                ##   Parent Loop BB0_25 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movzbl	(%rax), %esi
	addl	%edx, %esi
	movzbl	(%rcx), %edx
	subl	%edx, %esi
	leal	10(%rsi), %edx
	movl	%esi, %ebx
	sarl	$31, %ebx
	testl	%esi, %esi
	movzbl	%dl, %edx
	cmovnsl	%esi, %edx
	movb	%dl, (%rax)
	movzbl	-1(%rax), %esi
	addl	%ebx, %esi
	movzbl	-1(%rcx), %edx
	addq	$-2, %rcx
	subl	%edx, %esi
	leal	10(%rsi), %ebx
	movl	%esi, %edx
	sarl	$31, %edx
	testl	%esi, %esi
	movzbl	%bl, %ebx
	cmovnsl	%esi, %ebx
	movb	%bl, -1(%rax)
	addq	$-2, %rax
	addl	$-2, %r8d
	jne	LBB0_36
## %bb.37:                              ##   in Loop: Header=BB0_25 Depth=1
	shrl	$31, %esi
	testb	$1, -132(%rbp)                  ## 1-byte Folded Reload
	je	LBB0_40
LBB0_39:                                ##   in Loop: Header=BB0_25 Depth=1
	movzbl	(%rax), %esi
	addl	%esi, %edx
	movzbl	(%rcx), %ecx
	subl	%ecx, %edx
	movl	%edx, %esi
	shrl	$31, %esi
	leal	10(%rdx), %ecx
	testl	%edx, %edx
	movzbl	%cl, %ecx
	cmovnsl	%edx, %ecx
	movb	%cl, (%rax)
	testb	$1, %sil
	je	LBB0_50
LBB0_41:                                ##   in Loop: Header=BB0_25 Depth=1
	decl	%r12d
	testl	%r14d, %r14d
	je	LBB0_50
## %bb.42:                              ##   in Loop: Header=BB0_25 Depth=1
	xorl	%eax, %eax
	cmpl	$1, %r14d
	jne	LBB0_44
## %bb.43:                              ##   in Loop: Header=BB0_25 Depth=1
	movq	-152(%rbp), %rdx                ## 8-byte Reload
	jmp	LBB0_46
LBB0_44:                                ##   in Loop: Header=BB0_25 Depth=1
	xorl	%eax, %eax
	movl	-124(%rbp), %ecx                ## 4-byte Reload
	movq	-152(%rbp), %rdx                ## 8-byte Reload
	.p2align	4, 0x90
LBB0_45:                                ##   Parent Loop BB0_25 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movzbl	(%r13), %esi
	addl	%eax, %esi
	movzbl	-1(%rdx), %eax
	addl	%esi, %eax
	leal	-10(%rax), %esi
	cmpl	$10, %eax
	movzbl	%sil, %esi
	cmovbl	%eax, %esi
	movb	%sil, (%r13)
	movzbl	-1(%r13), %esi
	movzbl	-2(%rdx), %eax
	sbbl	$-1, %esi
	addq	$-2, %rdx
	addl	%eax, %esi
	leal	-10(%rsi), %ebx
	xorl	%eax, %eax
	cmpl	$10, %esi
	movzbl	%bl, %ebx
	cmovbl	%esi, %ebx
	setae	%al
	movb	%bl, -1(%r13)
	addq	$-2, %r13
	addl	$-2, %ecx
	jne	LBB0_45
LBB0_46:                                ##   in Loop: Header=BB0_25 Depth=1
	testb	$1, %r14b
	je	LBB0_48
## %bb.47:                              ##   in Loop: Header=BB0_25 Depth=1
	movzbl	(%r13), %ecx
	addl	%ecx, %eax
	movzbl	-1(%rdx), %ecx
	addl	%eax, %ecx
	leal	-10(%rcx), %edx
	cmpl	$10, %ecx
	setae	%al
	movzbl	%dl, %edx
	cmovbl	%ecx, %edx
	movb	%dl, (%r13)
	decq	%r13
LBB0_48:                                ##   in Loop: Header=BB0_25 Depth=1
	testb	$1, %al
	je	LBB0_50
## %bb.49:                              ##   in Loop: Header=BB0_25 Depth=1
	movzbl	(%r13), %eax
	movl	%eax, %ecx
	incl	%ecx
	imull	$52429, %ecx, %ecx              ## imm = 0xCCCD
	shrl	$18, %ecx
	andl	$-2, %ecx
	leal	(%rcx,%rcx,4), %ecx
	negl	%ecx
	addl	%ecx, %eax
	incl	%eax
	movb	%al, (%r13)
	jmp	LBB0_50
LBB0_7:
	movq	_MINUS@GOTPCREL(%rip), %rcx
LBB0_9:
	leaq	8(%rbx), %rdx
	movq	%rdx, -72(%rbp)                 ## 8-byte Spill
	movq	(%rcx), %rcx
	movq	%rcx, 16(%rax)
	movslq	4(%r15), %rdi
	shlq	$2, %rdi
	addq	8(%rax), %rdi
	xorl	%r14d, %r14d
	xorl	%esi, %esi
	movl	%r12d, %edx
	movq	%rax, %rbx
	callq	_memset
	movq	8(%rbx), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	8(%r15), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	(%r15), %edi
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	movl	4(%rax), %r15d
	movl	%r12d, %esi
	callq	_MIN
	addl	%eax, %r15d
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movl	%r15d, %edx
	movq	-96(%rbp), %r15                 ## 8-byte Reload
	callq	_memcpy
	movq	%r13, %rdi
	callq	_bc_free_num
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	movq	%rbx, (%r13)
	movq	-160(%rbp), %rax                ## 8-byte Reload
	movl	(%rax), %eax
	testl	%eax, %eax
	movq	-48(%rbp), %r8                  ## 8-byte Reload
	jne	LBB0_10
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_PLUS,8,3                       ## @PLUS
	.comm	_MINUS,8,3                      ## @MINUS
	.comm	_TRUE,1,0                       ## @TRUE
	.comm	_FALSE,1,0                      ## @FALSE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bc_divide                      ; -- Begin function bc_divide
	.p2align	2
_bc_divide:                             ; @bc_divide
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x26, x3
	mov	x25, x2
	mov	x27, x1
	mov	x28, x0
	mov	x0, x1
	bl	_bc_is_zero
	cbz	x0, LBB0_2
; %bb.1:
	mov	w0, #-1
	b	LBB0_18
LBB0_2:
	ldr	w8, [x27]
Lloh0:
	adrp	x22, _PLUS@GOTPAGE
Lloh1:
	ldr	x22, [x22, _PLUS@GOTPAGEOFF]
Lloh2:
	adrp	x23, _MINUS@GOTPAGE
Lloh3:
	ldr	x23, [x23, _MINUS@GOTPAGEOFF]
	cbz	w8, LBB0_7
; %bb.3:
	add	x20, x27, #8
	add	x21, x27, #4
LBB0_4:
	ldr	x9, [x20]
	ldrsw	x10, [x21]
	mov	w24, w8
	add	x8, x10, x9
	sub	x8, x8, #1
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w9, [x8, x24]
	cbnz	w9, LBB0_12
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	sub	x24, x24, #1
	cbnz	w24, LBB0_5
	b	LBB0_12
LBB0_7:
	mov	x21, x27
	ldr	w8, [x21, #4]!
	cmp	w8, #1
	b.ne	LBB0_11
; %bb.8:
	mov	x20, x27
	ldr	x8, [x20, #8]!
	ldr	w8, [x8]
	cmp	w8, #1
	b.ne	LBB0_11
; %bb.9:
	ldr	w0, [x28, #4]
	mov	x1, x26
	bl	_bc_new_num
	mov	x19, x0
	ldr	x8, [x28, #16]
	ldr	x9, [x27, #16]
	cmp	x8, x9
	csel	x8, x22, x23, eq
	ldr	x8, [x8]
	str	x8, [x0, #16]
	ldr	x8, [x0, #8]
	ldrsw	x9, [x28, #4]
	add	x0, x8, x9, lsl #2
	mov	w1, #0
	mov	x2, x26
	bl	_memset
	ldr	x22, [x19, #8]
	ldr	x23, [x28, #8]
	ldp	w0, w24, [x28]
	mov	x1, x26
	bl	_MIN
	add	w2, w0, w24
	mov	x0, x22
	mov	x1, x23
	bl	_memcpy
	mov	x0, x25
	bl	_bc_free_num
	str	x19, [x25]
	ldr	w8, [x27]
	cbnz	w8, LBB0_4
; %bb.10:
	mov	w24, #0
	b	LBB0_12
LBB0_11:
	mov	w24, #0
	add	x20, x27, #8
LBB0_12:
	str	x25, [sp, #24]                  ; 8-byte Folded Spill
	ldp	w9, w8, [x28]
	add	w19, w8, w24
	sub	w10, w9, w24
	subs	w10, w26, w10
	csel	w10, w10, wzr, gt
	add	w1, w9, w8
	str	w10, [sp, #48]                  ; 4-byte Folded Spill
	add	w23, w10, #2
	mov	w0, #1
	str	w1, [sp, #40]                   ; 4-byte Folded Spill
	mov	x2, x23
	bl	_safe_emalloc
	mov	x22, x0
	ldp	w9, w8, [x28]
	add	w8, w23, w8
	add	w2, w8, w9
	mov	w1, #0
	bl	_memset
	add	x0, x22, #1
	ldr	x1, [x28, #8]
	ldp	w9, w8, [x28]
	add	w2, w9, w8
	bl	_memcpy
	ldr	w8, [x21]
	add	w24, w8, w24
	mov	w0, #1
	mov	x1, x24
	mov	w2, #1
	bl	_safe_emalloc
	mov	x25, x0
	ldr	x1, [x20]
	mov	x2, x24
	bl	_memcpy
	strb	wzr, [x25, w24, uxtw]
	ldrb	w8, [x25]
	stp	x28, x27, [sp, #8]              ; 16-byte Folded Spill
	str	x25, [sp]                       ; 8-byte Folded Spill
	cbnz	w8, LBB0_14
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	ldrb	w8, [x25, #1]!
	sub	w24, w24, #1
	cbz	w8, LBB0_13
LBB0_14:
	add	w8, w19, w26
	subs	w11, w8, w24
Lloh4:
	adrp	x9, _TRUE@GOTPAGE
Lloh5:
	ldr	x9, [x9, _TRUE@GOTPAGEOFF]
Lloh6:
	adrp	x10, _FALSE@GOTPAGE
Lloh7:
	ldr	x10, [x10, _FALSE@GOTPAGEOFF]
	csel	x9, x9, x10, lo
	cmp	w19, w24
	ccmp	w8, w24, #0, hs
	str	w11, [sp, #60]                  ; 4-byte Folded Spill
	csel	w8, w26, w11, lo
	ldrb	w20, [x9]
	add	w27, w8, #1
	sub	w0, w27, w26
	mov	x1, x26
	bl	_bc_new_num
	str	x0, [sp, #32]                   ; 8-byte Folded Spill
	ldr	x0, [x0, #8]
	mov	w1, #0
	mov	x2, x27
	bl	_memset
	mov	w0, #1
	mov	x1, x24
	mov	w2, #1
	bl	_safe_emalloc
	mov	x27, x0
	cbz	w20, LBB0_19
LBB0_15:
	ldp	x8, x9, [sp, #8]                ; 16-byte Folded Reload
	ldr	x8, [x8, #16]
	ldr	x9, [x9, #16]
	cmp	x8, x9
Lloh8:
	adrp	x19, _PLUS@GOTPAGE
Lloh9:
	ldr	x19, [x19, _PLUS@GOTPAGEOFF]
Lloh10:
	adrp	x8, _MINUS@GOTPAGE
Lloh11:
	ldr	x8, [x8, _MINUS@GOTPAGEOFF]
	csel	x8, x19, x8, eq
	ldr	x8, [x8]
	ldr	x20, [sp, #32]                  ; 8-byte Folded Reload
	str	x8, [x20, #16]
	mov	x0, x20
	bl	_bc_is_zero
	cbz	x0, LBB0_17
; %bb.16:
	ldr	x8, [x19]
	str	x8, [x20, #16]
LBB0_17:
	mov	x0, x20
	bl	__bc_rm_leading_zeros
	ldr	x19, [sp, #24]                  ; 8-byte Folded Reload
	mov	x0, x19
	bl	_bc_free_num
	str	x20, [x19]
	mov	x0, x27
	bl	_efree
	mov	x0, x22
	bl	_efree
	ldr	x0, [sp]                        ; 8-byte Folded Reload
	bl	_efree
	mov	w0, #0
LBB0_18:
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
LBB0_19:
	ldrb	w8, [x25]
	add	w8, w8, #1
	mov	w20, #10
	udiv	w28, w20, w8
	cmp	w28, #1
	b.eq	LBB0_21
; %bb.20:
	ldr	w8, [sp, #48]                   ; 4-byte Folded Reload
	ldr	w9, [sp, #40]                   ; 4-byte Folded Reload
	add	w8, w9, w8
	add	w1, w8, #1
	mov	x0, x22
	mov	x2, x28
	mov	x3, x22
	bl	__one_mult
	mov	x0, x25
	mov	x1, x24
	mov	x2, x28
	mov	x3, x25
	bl	__one_mult
LBB0_21:
	mov	w21, #0
	ldr	x8, [sp, #32]                   ; 8-byte Folded Reload
	ldr	x8, [x8, #8]
	mov	w9, w24
	str	x9, [sp, #40]                   ; 8-byte Folded Spill
	add	x9, x8, x9
	sub	x9, x9, w19, uxtw
	cmp	w19, w24
	csel	x26, x9, x8, lo
	add	x8, x27, #1
	str	x8, [sp, #48]                   ; 8-byte Folded Spill
	sub	x28, x25, #1
	b	LBB0_23
LBB0_22:                                ;   in Loop: Header=BB0_23 Depth=1
	strb	w19, [x26], #1
	ldr	w8, [sp, #60]                   ; 4-byte Folded Reload
	cmp	w21, w8
	b.hi	LBB0_15
LBB0_23:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_31 Depth 2
                                        ;     Child Loop BB0_35 Depth 2
	mov	x9, x21
	ldrb	w8, [x25]
	add	x23, x22, w21, uxtw
	ldrb	w10, [x23]
	add	w21, w21, #1
	cmp	w8, w10
	b.ne	LBB0_25
; %bb.24:                               ;   in Loop: Header=BB0_23 Depth=1
	mov	w19, #9
	b	LBB0_26
LBB0_25:                                ;   in Loop: Header=BB0_23 Depth=1
	ldrb	w11, [x22, x21]
	madd	w11, w10, w20, w11
	udiv	w19, w11, w8
LBB0_26:                                ;   in Loop: Header=BB0_23 Depth=1
	ldrb	w11, [x25, #1]
	mul	w12, w19, w11
	ldrb	w13, [x22, x21]
	madd	w10, w10, w20, w13
	msub	w13, w19, w8, w10
	add	w9, w9, #2
	ldrb	w9, [x22, w9, uxtw]
	madd	w13, w13, w20, w9
	cmp	w12, w13
	b.ls	LBB0_28
; %bb.27:                               ;   in Loop: Header=BB0_23 Depth=1
	sub	w12, w19, #1
	mul	w11, w12, w11
	msub	w8, w12, w8, w10
	madd	w8, w8, w20, w9
	sub	w9, w19, #2
	cmp	w11, w8
	csel	w19, w9, w12, hi
LBB0_28:                                ;   in Loop: Header=BB0_23 Depth=1
	cbz	w19, LBB0_22
; %bb.29:                               ;   in Loop: Header=BB0_23 Depth=1
	strb	wzr, [x27]
	mov	x0, x25
	mov	x1, x24
	mov	x2, x19
	ldr	x3, [sp, #48]                   ; 8-byte Folded Reload
	bl	__one_mult
	cmn	w24, #1
	b.eq	LBB0_22
; %bb.30:                               ;   in Loop: Header=BB0_23 Depth=1
	mov	w9, #0
	ldr	x8, [sp, #40]                   ; 8-byte Folded Reload
LBB0_31:                                ;   Parent Loop BB0_23 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldrb	w10, [x23, x8]
	ldrb	w11, [x27, x8]
	add	w9, w9, w10
	sub	w10, w9, w11
	add	w9, w10, #10
	cmp	w10, #0
	csel	w11, w9, w10, lt
	asr	w9, w10, #31
	strb	w11, [x23, x8]
	sub	x8, x8, #1
	cmn	w8, #1
	b.ne	LBB0_31
; %bb.32:                               ;   in Loop: Header=BB0_23 Depth=1
	tbz	w10, #31, LBB0_22
; %bb.33:                               ;   in Loop: Header=BB0_23 Depth=1
	sub	w19, w19, #1
	cbz	w24, LBB0_22
; %bb.34:                               ;   in Loop: Header=BB0_23 Depth=1
	mov	w9, #0
	ldr	x8, [sp, #40]                   ; 8-byte Folded Reload
LBB0_35:                                ;   Parent Loop BB0_23 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldrb	w10, [x23, x8]
	ldrb	w11, [x28, x8]
	add	w9, w9, w10
	add	w10, w9, w11
	add	w9, w10, #246
	cmp	w10, #9
	csel	w11, w9, w10, hi
	cset	w9, hi
	strb	w11, [x23, x8]
	sub	x8, x8, #1
	cbnz	w8, LBB0_35
; %bb.36:                               ;   in Loop: Header=BB0_23 Depth=1
	cmp	w10, #10
	b.lo	LBB0_22
; %bb.37:                               ;   in Loop: Header=BB0_23 Depth=1
	ldrb	w9, [x23, x8]
	add	w9, w9, #1
	mov	w10, #52429
	mul	w10, w9, w10
	lsr	w10, w10, #19
	msub	w9, w10, w20, w9
	strb	w9, [x23, x8]
	b	LBB0_22
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_PLUS,8,3                       ; @PLUS
	.comm	_MINUS,8,3                      ; @MINUS
	.comm	_TRUE,1,0                       ; @TRUE
	.comm	_FALSE,1,0                      ; @FALSE
.subsections_via_symbols
