	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pg_strtoint32                  ## -- Begin function pg_strtoint32
	.p2align	4, 0x90
_pg_strtoint32:                         ## @pg_strtoint32
	.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	%rdi, %r14
	movl	$0, -44(%rbp)
	movsbl	(%rdi), %edi
	callq	_likely
	movq	%r14, %rbx
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movq	%r14, %rbx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	(%rbx), %edi
	callq	_isspace
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movsbl	1(%rbx), %edi
	incq	%rbx
	callq	_likely
	testq	%rax, %rax
	jne	LBB0_2
LBB0_4:
	movb	(%rbx), %r12b
	leal	-43(%r12), %eax
	xorl	%r15d, %r15d
	testb	$-3, %al
	sete	%r15b
	movzbl	(%rbx,%r15), %edi
	callq	_isdigit
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_11
## %bb.5:
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	addq	%r15, %rbx
	incq	%rbx
	leaq	-44(%rbp), %r15
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	-1(%rbx), %eax
	testb	%al, %al
	je	LBB0_16
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movzbl	%al, %edi
	callq	_isdigit
	movzbl	-1(%rbx), %r12d
	testq	%rax, %rax
	je	LBB0_13
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	-44(%rbp), %edi
	movl	$10, %esi
	movq	%r15, %rdx
	callq	_pg_mul_s32_overflow
	movl	%eax, %edi
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_6 Depth=1
	movsbl	%r12b, %esi
	addl	$-48, %esi
	movl	-44(%rbp), %edi
	movq	%r15, %rdx
	callq	_pg_sub_s32_overflow
	movl	%eax, %edi
	callq	_unlikely
	incq	%rbx
	testq	%rax, %rax
	je	LBB0_6
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_13 Depth=1
	movzbl	(%rbx), %r12d
	incq	%rbx
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	testb	%r12b, %r12b
	je	LBB0_16
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=1
	movzbl	%r12b, %edi
	callq	_isspace
	testq	%rax, %rax
	jne	LBB0_12
## %bb.15:
	xorl	%r13d, %r13d
	cmpb	$0, -1(%rbx)
	setne	%r13b
LBB0_16:
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movl	%r13d, %edi
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_11
## %bb.17:
	movl	-44(%rbp), %eax
	cmpb	$45, %bl
	je	LBB0_20
## %bb.18:
	movq	_PG_INT32_MIN@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpl	(%rcx), %eax
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_19
LBB0_10:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	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	%r14, %rsi
	callq	_errmsg
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_ereport
LBB0_11:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	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	%r14, %rdx
	callq	_errmsg
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_ereport
	xorl	%eax, %eax
LBB0_20:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_19:
	xorl	%eax, %eax
	subl	-44(%rbp), %eax
	jmp	LBB0_20
	.cfi_endproc
                                        ## -- End function
	.comm	_PG_INT32_MIN,4,2               ## @PG_INT32_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	"integer"

	.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	_pg_strtoint32                  ; -- Begin function pg_strtoint32
	.p2align	2
_pg_strtoint32:                         ; @pg_strtoint32
	.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	x19, x0
	str	wzr, [sp, #12]
	ldrsb	w0, [x0]
	bl	_likely
	mov	x22, x19
	cbz	x0, LBB0_4
; %bb.1:
	mov	x22, x19
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w0, [x22]
	bl	_isspace
	cbz	x0, LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldrsb	w0, [x22, #1]!
	bl	_likely
	cbnz	x0, LBB0_2
LBB0_4:
	ldrb	w20, [x22]
	cmp	w20, #45
	mov	w8, #43
	ccmp	w20, w8, #4, ne
	cset	w23, eq
	ldrb	w0, [x22, x23]
	bl	_isdigit
	cmp	x0, #0
	cset	w0, eq
	bl	_unlikely
Lloh0:
	adrp	x21, _ERROR@GOTPAGE
Lloh1:
	ldr	x21, [x21, _ERROR@GOTPAGEOFF]
	cbnz	x0, LBB0_18
; %bb.5:
	add	x8, x23, x22
	add	x22, x8, #1
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldurb	w0, [x22, #-1]
	cbz	w0, LBB0_14
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	bl	_isdigit
	ldursb	w23, [x22, #-1]
	cbz	x0, LBB0_10
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w0, [sp, #12]
	add	x2, sp, #12
	mov	w1, #10
	bl	_pg_mul_s32_overflow
	bl	_unlikely
	cbnz	x0, LBB0_17
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=1
	sub	w1, w23, #48
	ldr	w0, [sp, #12]
	add	x2, sp, #12
	bl	_pg_sub_s32_overflow
	bl	_unlikely
	add	x22, x22, #1
	cbz	x0, LBB0_6
	b	LBB0_17
LBB0_10:
	and	w8, w23, #0xff
	cbz	w8, LBB0_13
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	and	w0, w8, #0xff
	bl	_isspace
	cbz	x0, LBB0_20
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	ldrb	w8, [x22], #1
	cbnz	w8, LBB0_11
LBB0_13:
	mov	w0, #0
LBB0_14:
	bl	_unlikely
	cbnz	x0, LBB0_18
LBB0_15:
	ldr	w0, [sp, #12]
	cmp	w20, #45
	b.eq	LBB0_19
; %bb.16:
Lloh2:
	adrp	x8, _PG_INT32_MIN@GOTPAGE
Lloh3:
	ldr	x8, [x8, _PG_INT32_MIN@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	cmp	w0, w8
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_21
LBB0_17:
	ldr	w20, [x21]
Lloh5:
	adrp	x8, _ERRCODE_NUMERIC_VALUE_OUT_OF_RANGE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ERRCODE_NUMERIC_VALUE_OUT_OF_RANGE@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	bl	_errcode
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
Lloh10:
	adrp	x2, l_.str.1@PAGE
Lloh11:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x1, x19
	bl	_errmsg
	mov	x1, x0
	mov	x0, x20
	bl	_ereport
LBB0_18:
	ldr	w20, [x21]
Lloh12:
	adrp	x8, _ERRCODE_INVALID_TEXT_REPRESENTATION@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ERRCODE_INVALID_TEXT_REPRESENTATION@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	bl	_errcode
Lloh15:
	adrp	x0, l_.str.2@PAGE
Lloh16:
	add	x0, x0, l_.str.2@PAGEOFF
Lloh17:
	adrp	x1, l_.str.1@PAGE
Lloh18:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x19
	bl	_errmsg
	mov	x1, x0
	mov	x0, x20
	bl	_ereport
	mov	w0, #0
LBB0_19:
	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_20:
	ldurb	w8, [x22, #-1]
	cmp	w8, #0
	cset	w0, ne
	bl	_unlikely
	cbnz	x0, LBB0_18
	b	LBB0_15
LBB0_21:
	ldr	w8, [sp, #12]
	neg	w0, w8
	b	LBB0_19
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_PG_INT32_MIN,4,2               ; @PG_INT32_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	"integer"

	.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
