	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_scanint8                       ## -- Begin function scanint8
	.p2align	4, 0x90
_scanint8:                              ## @scanint8
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movl	%esi, %r13d
	movq	%rdi, %r12
	movl	$0, -44(%rbp)
	movb	(%rdi), %al
	testb	%al, %al
	je	LBB0_1
## %bb.2:
	movq	%r12, %rbx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	%al, %edi
	callq	_isspace
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movzbl	1(%rbx), %eax
	incq	%rbx
	testb	%al, %al
	jne	LBB0_3
## %bb.5:
	xorl	%eax, %eax
	jmp	LBB0_7
LBB0_1:
	xorl	%eax, %eax
	movq	%r12, %rbx
	jmp	LBB0_7
LBB0_6:
	movb	(%rbx), %al
LBB0_7:
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	addl	$-43, %eax
	xorl	%r14d, %r14d
	testb	$-3, %al
	sete	%r14b
	movzbl	(%rbx,%r14), %edi
	callq	_isdigit
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_8
LBB0_27:
	xorl	%ebx, %ebx
	testl	%r13d, %r13d
	jne	LBB0_30
## %bb.28:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_ERRCODE_INVALID_TEXT_REPRESENTATION@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	leaq	L_.str.2(%rip), %rdi
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdx
	jmp	LBB0_29
LBB0_8:
	movl	%r13d, -48(%rbp)                ## 4-byte Spill
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	leaq	(%r14,%rbx), %r15
	incq	%r15
	leaq	-44(%rbp), %r13
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	-1(%r15), %eax
	testb	%al, %al
	je	LBB0_10
## %bb.11:                              ##   in Loop: Header=BB0_9 Depth=1
	movzbl	%al, %edi
	callq	_isdigit
	movzbl	-1(%r15), %r14d
	testq	%rax, %rax
	je	LBB0_16
## %bb.12:                              ##   in Loop: Header=BB0_9 Depth=1
	movl	-44(%rbp), %edi
	movl	$10, %esi
	movq	%r13, %rdx
	callq	_pg_mul_s64_overflow
	movl	%eax, %edi
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_9 Depth=1
	movsbl	%r14b, %esi
	addl	$-48, %esi
	movl	-44(%rbp), %edi
	movq	%r13, %rdx
	callq	_pg_sub_s64_overflow
	movl	%eax, %edi
	callq	_unlikely
	incq	%r15
	testq	%rax, %rax
	je	LBB0_9
	jmp	LBB0_14
LBB0_16:
	testb	%r14b, %r14b
	je	LBB0_10
## %bb.17:
	movl	-48(%rbp), %r13d                ## 4-byte Reload
	.p2align	4, 0x90
LBB0_18:                                ## =>This Inner Loop Header: Depth=1
	movzbl	%r14b, %edi
	callq	_isspace
	testq	%rax, %rax
	je	LBB0_19
## %bb.20:                              ##   in Loop: Header=BB0_18 Depth=1
	movzbl	(%r15), %r14d
	incq	%r15
	testb	%r14b, %r14b
	jne	LBB0_18
	jmp	LBB0_21
LBB0_10:
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movl	-48(%rbp), %r13d                ## 4-byte Reload
	jmp	LBB0_22
LBB0_19:
	xorl	%ebx, %ebx
	cmpb	$0, -1(%r15)
	setne	%bl
LBB0_21:
	movq	-56(%rbp), %r14                 ## 8-byte Reload
LBB0_22:
	movl	%ebx, %edi
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_27
## %bb.23:
	movl	-44(%rbp), %eax
	cmpb	$45, -64(%rbp)                  ## 1-byte Folded Reload
	je	LBB0_26
## %bb.24:
	movq	_PG_INT64_MIN@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpl	(%rcx), %eax
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_25
LBB0_14:
	xorl	%ebx, %ebx
	cmpl	$0, -48(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_30
## %bb.15:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_ERRCODE_NUMERIC_VALUE_OUT_OF_RANGE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	leaq	L_.str(%rip), %rdi
	leaq	L_.str.1(%rip), %rdx
	movq	%r12, %rsi
LBB0_29:
	callq	_errmsg
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_ereport
LBB0_30:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_25:
	xorl	%eax, %eax
	subl	-44(%rbp), %eax
	movq	-56(%rbp), %r14                 ## 8-byte Reload
LBB0_26:
	movl	%eax, (%r14)
	movl	$1, %ebx
	jmp	LBB0_30
	.cfi_endproc
                                        ## -- End function
	.comm	_PG_INT64_MIN,4,2               ## @PG_INT64_MIN
	.comm	_ERROR,4,2                      ## @ERROR
	.comm	_ERRCODE_NUMERIC_VALUE_OUT_OF_RANGE,4,2 ## @ERRCODE_NUMERIC_VALUE_OUT_OF_RANGE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"value \"%s\" is out of range for type %s"

L_.str.1:                               ## @.str.1
	.asciz	"bigint"

	.comm	_ERRCODE_INVALID_TEXT_REPRESENTATION,4,2 ## @ERRCODE_INVALID_TEXT_REPRESENTATION
L_.str.2:                               ## @.str.2
	.asciz	"invalid input syntax for type %s: \"%s\""

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_scanint8                       ; -- Begin function scanint8
	.p2align	2
_scanint8:                              ; @scanint8
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	str	wzr, [sp, #12]
	ldrb	w8, [x0]
	cbz	w8, LBB0_5
; %bb.1:
	mov	x23, x19
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	and	w0, w8, #0xff
	bl	_isspace
	cbz	x0, LBB0_6
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldrb	w8, [x23, #1]!
	cbnz	w8, LBB0_2
; %bb.4:
	mov	w22, #0
	b	LBB0_7
LBB0_5:
	mov	w22, #0
	mov	x23, x19
	b	LBB0_7
LBB0_6:
	ldrb	w22, [x23]
LBB0_7:
	cmp	w22, #45
	mov	w8, #43
	ccmp	w22, w8, #4, ne
	cset	w24, eq
	ldrb	w0, [x23, x24]
	bl	_isdigit
	cmp	x0, #0
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_10
LBB0_8:
	cbnz	w21, LBB0_25
; %bb.9:
Lloh0:
	adrp	x8, _ERROR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
Lloh3:
	adrp	x8, _ERRCODE_INVALID_TEXT_REPRESENTATION@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ERRCODE_INVALID_TEXT_REPRESENTATION@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_errcode
Lloh6:
	adrp	x0, l_.str.2@PAGE
Lloh7:
	add	x0, x0, l_.str.2@PAGEOFF
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x19
	b	LBB0_24
LBB0_10:
	add	x8, x24, x23
	add	x23, x8, #1
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldurb	w0, [x23, #-1]
	cbz	w0, LBB0_19
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	bl	_isdigit
	ldursb	w24, [x23, #-1]
	cbz	x0, LBB0_15
; %bb.13:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	w0, [sp, #12]
	add	x2, sp, #12
	mov	w1, #10
	bl	_pg_mul_s64_overflow
	bl	_unlikely
	cbnz	x0, LBB0_22
; %bb.14:                               ;   in Loop: Header=BB0_11 Depth=1
	sub	w1, w24, #48
	ldr	w0, [sp, #12]
	add	x2, sp, #12
	bl	_pg_sub_s64_overflow
	bl	_unlikely
	add	x23, x23, #1
	cbz	x0, LBB0_11
	b	LBB0_22
LBB0_15:
	and	w8, w24, #0xff
	cbz	w8, LBB0_18
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	and	w0, w8, #0xff
	bl	_isspace
	cbz	x0, LBB0_27
; %bb.17:                               ;   in Loop: Header=BB0_16 Depth=1
	ldrb	w8, [x23], #1
	cbnz	w8, LBB0_16
LBB0_18:
	mov	w0, #0
LBB0_19:
	bl	_unlikely
	cbnz	x0, LBB0_8
LBB0_20:
	ldr	w8, [sp, #12]
	cmp	w22, #45
	b.eq	LBB0_29
; %bb.21:
Lloh10:
	adrp	x9, _PG_INT64_MIN@GOTPAGE
Lloh11:
	ldr	x9, [x9, _PG_INT64_MIN@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	cmp	w8, w9
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_28
LBB0_22:
	cbnz	w21, LBB0_25
; %bb.23:
Lloh13:
	adrp	x8, _ERROR@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh15:
	ldr	w20, [x8]
Lloh16:
	adrp	x8, _ERRCODE_NUMERIC_VALUE_OUT_OF_RANGE@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ERRCODE_NUMERIC_VALUE_OUT_OF_RANGE@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
	bl	_errcode
Lloh19:
	adrp	x0, l_.str@PAGE
Lloh20:
	add	x0, x0, l_.str@PAGEOFF
Lloh21:
	adrp	x2, l_.str.1@PAGE
Lloh22:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x1, x19
LBB0_24:
	bl	_errmsg
	mov	x1, x0
	mov	x0, x20
	bl	_ereport
LBB0_25:
	mov	w0, #0
LBB0_26:
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_27:
	ldurb	w8, [x23, #-1]
	cmp	w8, #0
	cset	w0, ne
	bl	_unlikely
	cbnz	x0, LBB0_8
	b	LBB0_20
LBB0_28:
	ldr	w8, [sp, #12]
	neg	w8, w8
LBB0_29:
	str	w8, [x20]
	mov	w0, #1
	b	LBB0_26
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_PG_INT64_MIN,4,2               ; @PG_INT64_MIN
	.comm	_ERROR,4,2                      ; @ERROR
	.comm	_ERRCODE_NUMERIC_VALUE_OUT_OF_RANGE,4,2 ; @ERRCODE_NUMERIC_VALUE_OUT_OF_RANGE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"value \"%s\" is out of range for type %s"

l_.str.1:                               ; @.str.1
	.asciz	"bigint"

	.comm	_ERRCODE_INVALID_TEXT_REPRESENTATION,4,2 ; @ERRCODE_INVALID_TEXT_REPRESENTATION
l_.str.2:                               ; @.str.2
	.asciz	"invalid input syntax for type %s: \"%s\""

.subsections_via_symbols
