	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function text_format_parse_digits
_text_format_parse_digits:              ## @text_format_parse_digits
	.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	%rsi, %r12
	movq	%rdi, %rsi
	movq	(%rdi), %r14
	movl	$0, -44(%rbp)
	movb	(%r14), %bl
	leal	-48(%rbx), %ecx
	xorl	%edi, %edi
	movl	$0, %eax
	cmpb	$9, %cl
	ja	LBB0_7
## %bb.1:
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	xorl	%edi, %edi
	leaq	-44(%rbp), %r13
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	_ERRCODE_NUMERIC_VALUE_OUT_OF_RANGE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	leaq	L_.str(%rip), %rdi
	callq	_errmsg
	movl	%r15d, %edi
	movl	%eax, %esi
	callq	_ereport
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_ADVANCE_PARSE_POINTER
	movzbl	(%r14), %ebx
	leal	-48(%rbx), %eax
	movl	-44(%rbp), %edi
	cmpb	$10, %al
	jae	LBB0_6
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	$10, %esi
	movq	%r13, %rdx
	callq	_pg_mul_s32_overflow
	movl	%eax, %edi
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	addb	$-48, %bl
	movl	-44(%rbp), %edi
	movsbl	%bl, %esi
	movq	%r13, %rdx
	callq	_pg_add_s32_overflow
	movl	%eax, %edi
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_4
	jmp	LBB0_5
LBB0_6:
	movl	$1, %eax
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
LBB0_7:
	movq	%r14, (%rsi)
	movl	%edi, (%rdx)
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.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	"number is out of range"

	.no_dead_strip	_text_format_parse_digits
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function text_format_parse_digits
_text_format_parse_digits:              ; @text_format_parse_digits
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x2
	mov	x20, x0
	mov	w0, #0
	mov	w8, #0
	ldr	x21, [x20]
	str	wzr, [sp, #12]
	ldrb	w24, [x21]
	sub	w9, w24, #48
	cmp	w9, #9
	b.hi	LBB0_7
; %bb.1:
	mov	x22, x1
	mov	w0, #0
Lloh0:
	adrp	x25, _ERROR@GOTPAGE
Lloh1:
	ldr	x25, [x25, _ERROR@GOTPAGEOFF]
Lloh2:
	adrp	x26, _ERRCODE_NUMERIC_VALUE_OUT_OF_RANGE@GOTPAGE
Lloh3:
	ldr	x26, [x26, _ERRCODE_NUMERIC_VALUE_OUT_OF_RANGE@GOTPAGEOFF]
Lloh4:
	adrp	x23, l_.str@PAGE
Lloh5:
	add	x23, x23, l_.str@PAGEOFF
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w24, [x25]
	ldr	w0, [x26]
	bl	_errcode
	mov	x0, x23
	bl	_errmsg
	mov	x1, x0
	mov	x0, x24
	bl	_ereport
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x21
	mov	x1, x22
	bl	_ADVANCE_PARSE_POINTER
	ldrb	w24, [x21]
	sub	w8, w24, #48
	ldr	w0, [sp, #12]
	cmp	w8, #10
	b.hs	LBB0_6
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	add	x2, sp, #12
	mov	w1, #10
	bl	_pg_mul_s32_overflow
	bl	_unlikely
	cbnz	x0, LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	sub	w8, w24, #48
	ldr	w0, [sp, #12]
	sxtb	w1, w8
	add	x2, sp, #12
	bl	_pg_add_s32_overflow
	bl	_unlikely
	cbnz	x0, LBB0_2
	b	LBB0_3
LBB0_6:
	mov	w8, #1
LBB0_7:
	str	x21, [x20]
	str	w0, [x19]
	mov	x0, x8
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.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	"number is out of range"

	.no_dead_strip	_text_format_parse_digits
.subsections_via_symbols
