	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_PGTYPESnumeric_to_long         ## -- Begin function PGTYPESnumeric_to_long
	.p2align	4, 0x90
_PGTYPESnumeric_to_long:                ## @PGTYPESnumeric_to_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, %r14
	xorl	%esi, %esi
	callq	_PGTYPESnumeric_to_asc
	movl	$-1, %r15d
	testq	%rax, %rax
	je	LBB0_7
## %bb.1:
	movq	%rax, %rbx
	movq	_errno@GOTPCREL(%rip), %r12
	movq	$0, (%r12)
	leaq	-48(%rbp), %rsi
	movq	%rax, %rdi
	movl	$10, %edx
	callq	_strtol
	movq	%rax, (%r14)
	movq	-48(%rbp), %r13
	movq	%rbx, %rdi
	callq	_free
	cmpq	%rbx, %r13
	je	LBB0_7
## %bb.2:
	movq	(%r12), %rax
	movq	_ERANGE@GOTPCREL(%rip), %rcx
	xorl	%r15d, %r15d
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.3:
	movq	(%r14), %rax
	movq	_LONG_MIN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.5:
	movq	_PGTYPES_NUM_UNDERFLOW@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_4:
	movq	_PGTYPES_NUM_OVERFLOW@GOTPCREL(%rip), %rax
LBB0_6:
	movq	(%rax), %rax
	movq	%rax, (%r12)
	movl	$-1, %r15d
LBB0_7:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_errno,8,3                      ## @errno
	.comm	_ERANGE,8,3                     ## @ERANGE
	.comm	_LONG_MIN,8,3                   ## @LONG_MIN
	.comm	_PGTYPES_NUM_UNDERFLOW,8,3      ## @PGTYPES_NUM_UNDERFLOW
	.comm	_PGTYPES_NUM_OVERFLOW,8,3       ## @PGTYPES_NUM_OVERFLOW
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_PGTYPESnumeric_to_long         ; -- Begin function PGTYPESnumeric_to_long
	.p2align	2
_PGTYPESnumeric_to_long:                ; @PGTYPESnumeric_to_long
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x1
	mov	w1, #0
	bl	_PGTYPESnumeric_to_asc
	cbz	x0, LBB0_4
; %bb.1:
	mov	x20, x0
Lloh0:
	adrp	x21, _errno@GOTPAGE
Lloh1:
	ldr	x21, [x21, _errno@GOTPAGEOFF]
	str	xzr, [x21]
	add	x1, sp, #8
	mov	w2, #10
	bl	_strtol
	str	x0, [x19]
	ldr	x22, [sp, #8]
	mov	x0, x20
	bl	_free
	cmp	x22, x20
	b.eq	LBB0_4
; %bb.2:
	ldr	x8, [x21]
Lloh2:
	adrp	x9, _ERANGE@GOTPAGE
Lloh3:
	ldr	x9, [x9, _ERANGE@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.3:
	ldr	x8, [x19]
Lloh5:
	adrp	x9, _LONG_MIN@GOTPAGE
Lloh6:
	ldr	x9, [x9, _LONG_MIN@GOTPAGEOFF]
Lloh7:
	adrp	x10, _PGTYPES_NUM_UNDERFLOW@GOTPAGE
Lloh8:
	ldr	x10, [x10, _PGTYPES_NUM_UNDERFLOW@GOTPAGEOFF]
Lloh9:
	adrp	x11, _PGTYPES_NUM_OVERFLOW@GOTPAGE
Lloh10:
	ldr	x11, [x11, _PGTYPES_NUM_OVERFLOW@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x8, x9
	csel	x8, x10, x11, eq
	ldr	x8, [x8]
	str	x8, [x21]
LBB0_4:
	mov	w0, #-1
	b	LBB0_6
LBB0_5:
	mov	w0, #0
LBB0_6:
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_errno,8,3                      ; @errno
	.comm	_ERANGE,8,3                     ; @ERANGE
	.comm	_LONG_MIN,8,3                   ; @LONG_MIN
	.comm	_PGTYPES_NUM_UNDERFLOW,8,3      ; @PGTYPES_NUM_UNDERFLOW
	.comm	_PGTYPES_NUM_OVERFLOW,8,3       ; @PGTYPES_NUM_OVERFLOW
.subsections_via_symbols
