	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sreal_sub                      ## -- Begin function sreal_sub
	.p2align	4, 0x90
_sreal_sub:                             ## @sreal_sub
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r12
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	%rsi, %rdi
	movq	%rdx, %rsi
	callq	_sreal_compare
	shrq	$63, %rax
	xorl	$1, %eax
	movl	%eax, %edi
	callq	_gcc_assert
	movl	(%r15), %eax
	movl	(%r12), %ecx
	movl	%eax, %ebx
	subl	%ecx, %ebx
	movl	%eax, (%r14)
	movq	_SREAL_BITS@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %ebx
	jle	LBB0_2
## %bb.1:
	movq	24(%r15), %rax
	movq	%rax, 24(%r14)
	movq	8(%r15), %rax
	movq	%rax, 8(%r14)
	jmp	LBB0_8
LBB0_2:
	cmpl	%ecx, %eax
	je	LBB0_4
## %bb.3:
	leaq	-72(%rbp), %r13
	movq	%r13, %rdi
	movq	%r12, %rsi
	callq	_copy
	movq	%r13, %rdi
	movl	%ebx, %esi
	callq	_shift_right
	movq	%r13, %r12
LBB0_4:
	movq	8(%r15), %rdx
	movq	24(%r15), %rax
	movq	8(%r12), %rsi
	movq	24(%r12), %rdi
	movq	%rdx, %rcx
	subq	%rsi, %rcx
	jge	LBB0_6
## %bb.5:
	notq	%rdi
	movq	_SREAL_PART_BITS@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movl	$1, %ebx
	shll	%cl, %ebx
	addq	%rdi, %rax
	movslq	%ebx, %rcx
	subq	%rsi, %rdx
	addq	%rcx, %rdx
	movq	%rdx, %rcx
	jmp	LBB0_7
LBB0_6:
	subq	%rdi, %rax
LBB0_7:
	movq	%rax, 24(%r14)
	movq	%rcx, 8(%r14)
	movq	%r14, %rdi
	callq	_normalize
LBB0_8:
	movq	%r14, %rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SREAL_BITS,4,2                 ## @SREAL_BITS
	.comm	_SREAL_PART_BITS,4,2            ## @SREAL_PART_BITS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sreal_sub                      ; -- Begin function sreal_sub
	.p2align	2
_sreal_sub:                             ; @sreal_sub
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
	mov	x0, x1
	mov	x1, x2
	bl	_sreal_compare
	lsr	x8, x0, #63
	eor	w0, w8, #0x1
	bl	_gcc_assert
	ldr	w8, [x20]
	ldr	w9, [x21]
	str	w8, [x19]
Lloh0:
	adrp	x10, _SREAL_BITS@GOTPAGE
Lloh1:
	ldr	x10, [x10, _SREAL_BITS@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x10]
	sub	w22, w8, w9
	cmp	w22, w10
	b.le	LBB0_2
; %bb.1:
	ldr	x8, [x20, #24]
	str	x8, [x19, #24]
	ldr	x8, [x20, #8]
	str	x8, [x19, #8]
	b	LBB0_8
LBB0_2:
	cmp	w8, w9
	b.eq	LBB0_4
; %bb.3:
	mov	x0, sp
	mov	x1, x21
	bl	_copy
	mov	x0, sp
	mov	x1, x22
	bl	_shift_right
	mov	x21, sp
LBB0_4:
	ldr	x8, [x20, #8]
	ldr	x11, [x21, #8]
	ldr	x9, [x20, #24]
	ldr	x10, [x21, #24]
	subs	x8, x8, x11
	b.ge	LBB0_6
; %bb.5:
	mvn	x10, x10
	add	x9, x9, x10
Lloh3:
	adrp	x10, _SREAL_PART_BITS@GOTPAGE
Lloh4:
	ldr	x10, [x10, _SREAL_PART_BITS@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	mov	w11, #1
	lsl	w10, w11, w10
	add	x8, x8, w10, sxtw
	b	LBB0_7
LBB0_6:
	sub	x9, x9, x10
LBB0_7:
	str	x9, [x19, #24]
	str	x8, [x19, #8]
	mov	x0, x19
	bl	_normalize
LBB0_8:
	mov	x0, x19
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_SREAL_BITS,4,2                 ; @SREAL_BITS
	.comm	_SREAL_PART_BITS,4,2            ; @SREAL_PART_BITS
.subsections_via_symbols
