	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function d2d_small_int
_d2d_small_int:                         ## @d2d_small_int
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %rbx
	movq	_DOUBLE_BIAS@GOTPCREL(%rip), %rax
	movq	_DOUBLE_MANTISSA_BITS@GOTPCREL(%rip), %r13
	movl	(%r13), %ecx
	movl	%ecx, %edx
	addl	(%rax), %ecx
	negl	%edx
	subl	%ecx, %ebx
	xorl	%r12d, %r12d
	cmpl	%edx, %ebx
	jl	LBB0_4
## %bb.1:
	testl	%ebx, %ebx
	jg	LBB0_4
## %bb.2:
	movq	%rdi, %r15
	movl	$1, %edi
	callq	_UINT64CONST
	negl	%ebx
	movl	%ebx, %ecx
	shll	%cl, %eax
	decl	%eax
	cltq
	testq	%r15, %rax
	jne	LBB0_4
## %bb.3:
	movl	$1, %edi
	callq	_UINT64CONST
	movb	(%r13), %cl
	shll	%cl, %eax
	cltq
	orq	%r15, %rax
	movl	%ebx, %ecx
	sarq	%cl, %rax
	movq	%rax, (%r14)
	movq	$0, 8(%r14)
	movl	$1, %r12d
LBB0_4:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DOUBLE_BIAS,4,2                ## @DOUBLE_BIAS
	.comm	_DOUBLE_MANTISSA_BITS,4,2       ## @DOUBLE_MANTISSA_BITS
	.no_dead_strip	_d2d_small_int
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function d2d_small_int
_d2d_small_int:                         ; @d2d_small_int
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	w21, #0
Lloh0:
	adrp	x8, _DOUBLE_BIAS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DOUBLE_BIAS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x22, _DOUBLE_MANTISSA_BITS@GOTPAGE
Lloh4:
	ldr	x22, [x22, _DOUBLE_MANTISSA_BITS@GOTPAGEOFF]
	ldr	w9, [x22]
	add	w8, w8, w9
	sub	w23, w1, w8
	neg	w8, w9
	cmp	w23, w8
	ccmp	w23, #0, #0, ge
	b.gt	LBB0_3
; %bb.1:
	mov	x19, x2
	mov	x20, x0
	mov	w0, #1
	bl	_UINT64CONST
	mov	w21, #0
	neg	w23, w23
	lsl	w8, w0, w23
	sub	w8, w8, #1
	sxtw	x8, w8
	tst	x8, x20
	b.ne	LBB0_3
; %bb.2:
	mov	w21, #1
	mov	w0, #1
	bl	_UINT64CONST
	ldr	w8, [x22]
	lsl	w8, w0, w8
	sxtw	x8, w8
	orr	x8, x8, x20
	asr	x8, x8, x23
	stp	x8, xzr, [x19]
LBB0_3:
	mov	x0, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_DOUBLE_BIAS,4,2                ; @DOUBLE_BIAS
	.comm	_DOUBLE_MANTISSA_BITS,4,2       ; @DOUBLE_MANTISSA_BITS
	.no_dead_strip	_d2d_small_int
.subsections_via_symbols
