	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_PQsetvalue                     ## -- Begin function PQsetvalue
	.p2align	4, 0x90
_PQsetvalue:                            ## @PQsetvalue
	.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
	movl	%r8d, %r14d
	movq	%rcx, %rbx
	movl	%edx, %r13d
	movl	%esi, %r12d
	movq	%rdi, %r15
	movq	$0, -48(%rbp)
	movl	%edx, %esi
	callq	_check_field_number
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movl	(%r15), %ecx
	testl	%r12d, %r12d
	js	LBB0_4
## %bb.3:
	cmpl	%r12d, %ecx
	jl	LBB0_4
## %bb.5:
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	jne	LBB0_15
## %bb.6:
	movl	4(%r15), %esi
	shll	$4, %esi
	movq	%r15, %rdi
	movl	$1, %edx
	callq	_pqResultAlloc
	testq	%rax, %rax
	je	LBB0_23
## %bb.7:
	movl	4(%r15), %r8d
	testl	%r8d, %r8d
	jle	LBB0_14
## %bb.8:
	movq	8(%r15), %rcx
	cmpl	$1, %r8d
	jne	LBB0_10
## %bb.9:
	xorl	%esi, %esi
	jmp	LBB0_12
LBB0_1:
	xorl	%ebx, %ebx
	jmp	LBB0_26
LBB0_4:
	addq	$16, %r15
	leaq	L_.str(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	movl	%r12d, %edx
	xorl	%eax, %eax
	callq	_pqInternalNotice
	jmp	LBB0_26
LBB0_10:
	movl	%r8d, %r9d
	andl	$-2, %r9d
	movq	%rax, %rbx
	addq	$24, %rbx
	xorl	%esi, %esi
	movq	_NULL_LEN@GOTPCREL(%rip), %rdx
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rdx), %edi
	movl	%edi, -24(%rbx)
	movq	%rcx, -16(%rbx)
	movl	(%rdx), %edi
	movl	%edi, -8(%rbx)
	movq	%rcx, (%rbx)
	addq	$2, %rsi
	addq	$32, %rbx
	cmpq	%rsi, %r9
	jne	LBB0_11
LBB0_12:
	testb	$1, %r8b
	je	LBB0_14
## %bb.13:
	movq	_NULL_LEN@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	shlq	$4, %rsi
	movl	%edx, (%rax,%rsi)
	movq	%rcx, 8(%rax,%rsi)
LBB0_14:
	leaq	-48(%rbp), %rdx
	movq	%r15, %rdi
	movq	%rax, %rsi
	callq	_pqAddTuple
	testl	%eax, %eax
	je	LBB0_23
LBB0_15:
	movq	24(%r15), %rax
	movslq	%r12d, %rcx
	movq	(%rax,%rcx,8), %r12
	movslq	%r13d, %r13
	shlq	$4, %r13
	leaq	(%r12,%r13), %rcx
	movq	_NULL_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpq	$0, -56(%rbp)                   ## 8-byte Folded Reload
	je	LBB0_17
## %bb.16:
	cmpl	%r14d, %eax
	je	LBB0_17
## %bb.19:
	testl	%r14d, %r14d
	jle	LBB0_20
## %bb.21:
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	leal	1(%r14), %esi
	movl	$1, %ebx
	movq	%r15, %rdi
	movl	$1, %edx
	callq	_pqResultAlloc
	movq	%rax, 8(%r12,%r13)
	testq	%rax, %rax
	je	LBB0_23
## %bb.22:
	leaq	(%r12,%r13), %r15
	addq	$8, %r15
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movl	%r14d, (%rcx)
	movq	%rax, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movl	%r14d, %edx
	callq	_memcpy
	movq	(%r15), %rax
	movl	%r14d, %ecx
	movb	$0, (%rax,%rcx)
	jmp	LBB0_26
LBB0_23:
	movq	-48(%rbp), %rdx
	testq	%rdx, %rdx
	jne	LBB0_25
## %bb.24:
	leaq	L_.str.1(%rip), %rdi
	callq	_libpq_gettext
	movq	%rax, %rdx
	movq	%rax, -48(%rbp)
LBB0_25:
	addq	$16, %r15
	leaq	L_.str.2(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_pqInternalNotice
	jmp	LBB0_26
LBB0_17:
	movl	%eax, (%rcx)
	jmp	LBB0_18
LBB0_20:
	movl	$0, (%rcx)
LBB0_18:
	movq	8(%r15), %rax
	movq	%rax, 8(%r12,%r13)
	movl	$1, %ebx
LBB0_26:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"row number %d is out of range 0..%d"

	.comm	_NULL_LEN,4,2                   ## @NULL_LEN
L_.str.1:                               ## @.str.1
	.asciz	"out of memory"

L_.str.2:                               ## @.str.2
	.asciz	"%s"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_PQsetvalue                     ; -- Begin function PQsetvalue
	.p2align	2
_PQsetvalue:                            ; @PQsetvalue
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	mov	x20, x4
	mov	x21, x3
	mov	x23, x2
	mov	x22, x1
	mov	x19, x0
	str	xzr, [sp, #24]
	mov	x1, x2
	bl	_check_field_number
	cbz	w0, LBB0_23
; %bb.1:
	ldr	w8, [x19]
	tbnz	w22, #31, LBB0_14
; %bb.2:
	cmp	w8, w22
	b.lt	LBB0_14
; %bb.3:
	b.ne	LBB0_9
; %bb.4:
	ldr	w8, [x19, #4]
	lsl	w1, w8, #4
	mov	x0, x19
	mov	w2, #1
	bl	_pqResultAlloc
	cbz	x0, LBB0_15
; %bb.5:
	mov	x1, x0
	ldr	w8, [x19, #4]
	cmp	w8, #1
	b.lt	LBB0_8
; %bb.6:
	ldr	x9, [x19, #8]
	add	x10, x1, #8
Lloh0:
	adrp	x11, _NULL_LEN@GOTPAGE
Lloh1:
	ldr	x11, [x11, _NULL_LEN@GOTPAGEOFF]
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w12, [x11]
	stur	w12, [x10, #-8]
	str	x9, [x10], #16
	subs	x8, x8, #1
	b.ne	LBB0_7
LBB0_8:
	add	x2, sp, #24
	mov	x0, x19
	bl	_pqAddTuple
	cbz	w0, LBB0_15
LBB0_9:
	ldr	x8, [x19, #24]
	ldr	x22, [x8, w22, sxtw #3]
	sxtw	x24, w23
	add	x23, x22, w23, sxtw #4
Lloh2:
	adrp	x8, _NULL_LEN@GOTPAGE
Lloh3:
	ldr	x8, [x8, _NULL_LEN@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	cbz	x21, LBB0_19
; %bb.10:
	cmp	w8, w20
	b.eq	LBB0_19
; %bb.11:
	cmp	w20, #0
	b.le	LBB0_20
; %bb.12:
	add	w1, w20, #1
	mov	x0, x19
	mov	w2, #1
	bl	_pqResultAlloc
	add	x22, x22, x24, lsl #4
	str	x0, [x22, #8]!
	cbz	x0, LBB0_15
; %bb.13:
	str	w20, [x23]
	mov	x1, x21
	mov	x2, x20
	bl	_memcpy
	ldr	x8, [x22]
	strb	wzr, [x8, w20, uxtw]
	b	LBB0_22
LBB0_14:
	add	x0, x19, #16
	stp	x22, x8, [sp]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_18
LBB0_15:
	ldr	x0, [sp, #24]
	cbnz	x0, LBB0_17
; %bb.16:
Lloh7:
	adrp	x0, l_.str.1@PAGE
Lloh8:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_libpq_gettext
	str	x0, [sp, #24]
LBB0_17:
	add	x8, x19, #16
	str	x0, [sp]
Lloh9:
	adrp	x1, l_.str.2@PAGE
Lloh10:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x8
LBB0_18:
	bl	_pqInternalNotice
	mov	w0, #0
	b	LBB0_23
LBB0_19:
	str	w8, [x23]
	b	LBB0_21
LBB0_20:
	str	wzr, [x23]
LBB0_21:
	ldr	x8, [x19, #8]
	add	x9, x22, x24, lsl #4
	str	x8, [x9, #8]
LBB0_22:
	mov	w0, #1
LBB0_23:
	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
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"row number %d is out of range 0..%d"

	.comm	_NULL_LEN,4,2                   ; @NULL_LEN
l_.str.1:                               ; @.str.1
	.asciz	"out of memory"

l_.str.2:                               ; @.str.2
	.asciz	"%s"

.subsections_via_symbols
