	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pqAddTuple
_pqAddTuple:                            ## @pqAddTuple
	.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
	movq	%rdi, %rbx
	movq	(%rdi), %rcx
	movq	8(%rdi), %rax
	cmpq	%rax, %rcx
	jae	LBB0_3
## %bb.1:
	movq	24(%rbx), %rax
LBB0_2:
	movq	%r14, (%rax,%rcx,8)
	incq	%rcx
	movq	%rcx, (%rbx)
	movl	$1, %eax
	jmp	LBB0_11
LBB0_3:
	movq	%rdx, %r15
	movq	_INT_MAX@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r12d
	movl	%r12d, %ecx
	shrl	$31, %ecx
	addl	%r12d, %ecx
	sarl	%ecx
	movslq	%ecx, %rcx
	cmpq	%rcx, %rax
	jbe	LBB0_6
## %bb.4:
	movslq	%r12d, %r13
	cmpq	%r13, %rax
	jb	LBB0_7
## %bb.5:
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_9
LBB0_6:
	leal	(%rax,%rax), %ecx
	testq	%rax, %rax
	movl	$128, %r12d
	cmovnel	%ecx, %r12d
	movslq	%r12d, %r13
LBB0_7:
	movq	_SIZE_MAX@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	shrq	$3, %rax
	cmpq	%r13, %rax
	jae	LBB0_12
## %bb.8:
	leaq	L_.str.1(%rip), %rdi
LBB0_9:
	callq	_libpq_gettext
	movq	%rax, (%r15)
LBB0_10:
	xorl	%eax, %eax
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	movq	24(%rbx), %rdi
	leal	(,%r12,8), %esi
	testq	%rdi, %rdi
	je	LBB0_15
## %bb.13:
	callq	_realloc
	testq	%rax, %rax
	jne	LBB0_14
	jmp	LBB0_10
LBB0_15:
	movl	%esi, %edi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_10
LBB0_14:
	subl	8(%rbx), %r12d
	shll	$3, %r12d
	addl	%r12d, 16(%rbx)
	movq	%r13, 8(%rbx)
	movq	%rax, 24(%rbx)
	movq	(%rbx), %rcx
	jmp	LBB0_2
	.cfi_endproc
                                        ## -- End function
	.comm	_INT_MAX,4,2                    ## @INT_MAX
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"PGresult cannot support more than INT_MAX tuples"

	.comm	_SIZE_MAX,4,2                   ## @SIZE_MAX
L_.str.1:                               ## @.str.1
	.asciz	"size_t overflow"

	.no_dead_strip	_pqAddTuple
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pqAddTuple
_pqAddTuple:                            ; @pqAddTuple
	.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	x20, x1
	mov	x19, x0
	ldp	x9, x8, [x0]
	cmp	x9, x8
	b.hs	LBB0_3
; %bb.1:
	ldr	x0, [x19, #24]
LBB0_2:
	str	x20, [x0, x9, lsl #3]
	add	x8, x9, #1
	str	x8, [x19]
	mov	w0, #1
	b	LBB0_13
LBB0_3:
	mov	x21, x2
Lloh0:
	adrp	x9, _INT_MAX@GOTPAGE
Lloh1:
	ldr	x9, [x9, _INT_MAX@GOTPAGEOFF]
Lloh2:
	ldr	w23, [x9]
	cmp	w23, #0
	cinc	w9, w23, lt
	asr	w9, w9, #1
	cmp	x8, w9, sxtw
	b.ls	LBB0_6
; %bb.4:
	sxtw	x22, w23
	cmp	x8, x22
	b.hs	LBB0_11
; %bb.5:
                                        ; kill: def $w23 killed $w23 killed $x23 def $x23
	b	LBB0_7
LBB0_6:
	lsl	w9, w8, #1
	cmp	x8, #0
	mov	w8, #128
	csel	w23, w8, w9, eq
	sxtw	x22, w23
LBB0_7:
Lloh3:
	adrp	x8, _SIZE_MAX@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SIZE_MAX@GOTPAGEOFF]
Lloh5:
	ldrsw	x8, [x8]
	cmp	x22, x8, lsr #3
	b.ls	LBB0_9
; %bb.8:
Lloh6:
	adrp	x0, l_.str.1@PAGE
Lloh7:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_12
LBB0_9:
	ldr	x0, [x19, #24]
	lsl	w1, w23, #3
	cbz	x0, LBB0_14
; %bb.10:
	bl	_realloc
	cbnz	x0, LBB0_15
	b	LBB0_13
LBB0_11:
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
LBB0_12:
	bl	_libpq_gettext
	mov	x8, x0
	mov	w0, #0
	str	x8, [x21]
LBB0_13:
	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
LBB0_14:
	mov	x0, x1
	bl	_malloc
	cbz	x0, LBB0_13
LBB0_15:
	ldr	w8, [x19, #8]
	ldr	w9, [x19, #16]
	sub	w8, w23, w8
	add	w8, w9, w8, lsl #3
	str	w8, [x19, #16]
	str	x22, [x19, #8]
	str	x0, [x19, #24]
	ldr	x9, [x19]
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_INT_MAX,4,2                    ; @INT_MAX
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"PGresult cannot support more than INT_MAX tuples"

	.comm	_SIZE_MAX,4,2                   ; @SIZE_MAX
l_.str.1:                               ; @.str.1
	.asciz	"size_t overflow"

	.no_dead_strip	_pqAddTuple
.subsections_via_symbols
