	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_PGTYPESnumeric_from_long       ## -- Begin function PGTYPESnumeric_from_long
	.p2align	4, 0x90
_PGTYPESnumeric_from_long:              ## @PGTYPESnumeric_from_long
	.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	%rsi, %rdx
	movq	%rdi, %r14
	negq	%r14
	cmovsq	%rdi, %r14
	testq	%rdi, %rdi
	jns	LBB0_1
## %bb.2:
	movq	_NUMERIC_NEG@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_NUMERIC_POS@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %eax
	movl	%eax, 24(%rdx)
	movq	_LONG_MAX@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	imulq	$1717986919, %rax, %rax         ## imm = 0x66666667
	movq	%rax, %rcx
	shrq	$63, %rcx
	sarq	$34, %rax
	addl	%ecx, %eax
	movslq	%eax, %r12
	movl	$1, %r13d
	movl	$-1, %eax
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rbx
	movq	%r13, %rcx
	addq	%r13, %rcx
	leaq	(%rcx,%rcx,4), %r13
	incl	%eax
	cmpq	%r14, %r13
	ja	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpq	%r12, %r13
	jle	LBB0_4
LBB0_6:
	leal	1(%rax), %r15d
	cmpq	%r12, %r13
	cmovlel	%eax, %r15d
	leal	2(%r15), %esi
	movq	%rdx, %rdi
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	callq	_alloc_var
	testq	%rax, %rax
	js	LBB0_7
## %bb.8:
	cmpq	%r12, %r13
	cmovgq	%r13, %rbx
	movabsq	$4294967297, %rax               ## imm = 0x100000001
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%rcx)
	movl	%r15d, 8(%rcx)
	movq	16(%rcx), %rcx
	movabsq	$7378697629483820647, %rsi      ## imm = 0x6666666666666667
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_9 Depth=1
	movq	%r14, %rax
	cqto
	idivq	%rbx
	movq	%rdx, %r14
LBB0_12:                                ##   in Loop: Header=BB0_9 Depth=1
	movq	%rax, (%rcx)
	movq	%rbx, %rax
	imulq	%rsi
	movq	%rdx, %rbx
	movq	%rdx, %rax
	shrq	$63, %rax
	sarq	$2, %rbx
	addq	%rax, %rbx
	addq	$8, %rcx
	testq	%r14, %r14
	jle	LBB0_13
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rax
	orq	%rbx, %rax
	shrq	$32, %rax
	jne	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	movl	%r14d, %eax
	xorl	%edx, %edx
	divl	%ebx
                                        ## kill: def $eax killed $eax def $rax
	movl	%edx, %r14d
	jmp	LBB0_12
LBB0_13:
	xorl	%eax, %eax
	jmp	LBB0_14
LBB0_7:
	movl	$-1, %eax
LBB0_14:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NUMERIC_NEG,4,2                ## @NUMERIC_NEG
	.comm	_NUMERIC_POS,4,2                ## @NUMERIC_POS
	.comm	_LONG_MAX,4,2                   ## @LONG_MAX
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_PGTYPESnumeric_from_long       ; -- Begin function PGTYPESnumeric_from_long
	.p2align	2
_PGTYPESnumeric_from_long:              ; @PGTYPESnumeric_from_long
	.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	x19, x1
Lloh0:
	adrp	x8, _NUMERIC_NEG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NUMERIC_NEG@GOTPAGEOFF]
Lloh2:
	adrp	x9, _NUMERIC_POS@GOTPAGE
Lloh3:
	ldr	x9, [x9, _NUMERIC_POS@GOTPAGEOFF]
	cmp	x0, #0
	csel	x8, x8, x9, lt
	cneg	x20, x0, mi
	ldr	w8, [x8]
	str	w8, [x1, #24]
Lloh4:
	adrp	x8, _LONG_MAX@GOTPAGE
Lloh5:
	ldr	x8, [x8, _LONG_MAX@GOTPAGEOFF]
Lloh6:
	ldrsw	x8, [x8]
	mov	w9, #26215
	movk	w9, #26214, lsl #16
	mul	x8, x8, x9
	lsr	x9, x8, #63
	asr	x8, x8, #34
	add	w8, w8, w9
	sxtw	x21, w8
	mov	w8, #-1
	mov	w22, #1
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	mov	x23, x22
	add	x9, x22, x22, lsl #2
	lsl	x22, x9, #1
	add	w8, w8, #1
	cmp	x22, x20
	ccmp	x22, x21, #0, ls
	b.le	LBB0_1
; %bb.2:
	cmp	x22, x21
	cinc	w24, w8, gt
	add	w1, w24, #2
	mov	x0, x19
	bl	_alloc_var
	tbnz	x0, #63, LBB0_6
; %bb.3:
	cmp	x22, x21
	csel	x8, x22, x23, gt
	movi.2s	v0, #1
	str	d0, [x19]
	str	w24, [x19, #8]
	ldr	x9, [x19, #16]
	mov	x10, #7378697629483820646
	movk	x10, #26215
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	sdiv	x11, x20, x8
	msub	x20, x11, x8, x20
	str	x11, [x9], #8
	smulh	x8, x8, x10
	asr	x11, x8, #2
	add	x8, x11, x8, lsr #63
	cmp	x20, #0
	b.gt	LBB0_4
; %bb.5:
	mov	w0, #0
	b	LBB0_7
LBB0_6:
	mov	w0, #-1
LBB0_7:
	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 AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_NUMERIC_NEG,4,2                ; @NUMERIC_NEG
	.comm	_NUMERIC_POS,4,2                ; @NUMERIC_POS
	.comm	_LONG_MAX,4,2                   ; @LONG_MAX
.subsections_via_symbols
