	.file	"extr_jsonfuncs.c_setPathObject.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"cannot replace existing key"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"Try using the function jsonb_set to replace key value."
	.text
	.p2align 4
	.type	setPathObject, @function
setPathObject:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rdi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, r8
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 168
	.cfi_def_cfa_offset 224
	mov	rax, QWORD PTR 224[rsp]
	mov	QWORD PTR 40[rsp], rsi
	mov	QWORD PTR 56[rsp], rdx
	mov	DWORD PTR 36[rsp], ecx
	mov	DWORD PTR 20[rsp], r9d
	mov	QWORD PTR 48[rsp], rax
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 152[rsp], rax
	xor	eax, eax
	mov	DWORD PTR 16[rsp], 1
	cmp	r9d, ecx
	jge	.L2
	movsx	rax, r9d
	mov	edi, DWORD PTR [rdx+rax*4]
	xor	eax, eax
	test	edi, edi
	setne	al
	mov	DWORD PTR 16[rsp], eax
.L2:
	mov	esi, DWORD PTR 232[rsp]
	test	esi, esi
	jne	.L3
	mov	eax, DWORD PTR JB_PATH_CREATE_OR_INSERT[rip]
	test	DWORD PTR 240[rsp], eax
	jne	.L43
	.p2align 4,,10
	.p2align 3
.L1:
	mov	rax, QWORD PTR 152[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L44
	add	rsp, 168
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	jle	.L1
	movsx	rax, DWORD PTR 20[rsp]
	mov	rcx, QWORD PTR 40[rsp]
	xor	r14d, r14d
	lea	r15, 96[rsp]
	lea	rbp, 64[rsp]
	lea	rax, [rcx+rax*4]
	mov	QWORD PTR 24[rsp], rax
	mov	eax, DWORD PTR 36[rsp]
	sub	eax, 1
	mov	DWORD PTR 32[rsp], eax
	jmp	.L20
	.p2align 4,,10
	.p2align 3
.L6:
	mov	rsi, rbx
	mov	rdx, r15
	mov	rdi, r12
	call	pushJsonbValue@PLT
	xor	edx, edx
	mov	rsi, rbp
	mov	rdi, r13
	call	JsonbIteratorNext@PLT
	mov	edx, 0
	cmp	QWORD PTR WJB_BEGIN_ARRAY[rip], rax
	mov	rdi, r12
	cmovg	rdx, rbp
	mov	rsi, rax
	mov	rbx, rax
	call	pushJsonbValue@PLT
	cmp	QWORD PTR WJB_BEGIN_ARRAY[rip], rbx
	je	.L29
	cmp	QWORD PTR WJB_BEGIN_OBJECT[rip], rbx
	je	.L29
.L10:
	add	r14d, 1
	cmp	DWORD PTR 232[rsp], r14d
	je	.L1
.L20:
	mov	edx, 1
	mov	rsi, r15
	mov	rdi, r13
	call	JsonbIteratorNext@PLT
	xor	edi, edi
	cmp	QWORD PTR WJB_KEY[rip], rax
	sete	dil
	mov	rbx, rax
	call	Assert@PLT
	mov	ecx, DWORD PTR 16[rsp]
	test	ecx, ecx
	jne	.L6
	mov	rdi, QWORD PTR 24[rsp]
	mov	rax, QWORD PTR 96[rsp]
	mov	edi, DWORD PTR [rdi]
	mov	QWORD PTR 8[rsp], rax
	call	VARSIZE_ANY_EXHDR@PLT
	cmp	QWORD PTR 8[rsp], rax
	je	.L45
.L7:
	mov	eax, DWORD PTR JB_PATH_CREATE_OR_INSERT[rip]
	test	DWORD PTR 240[rsp], eax
	je	.L6
	mov	ecx, DWORD PTR 20[rsp]
	cmp	DWORD PTR 32[rsp], ecx
	jne	.L6
	mov	eax, DWORD PTR 232[rsp]
	sub	eax, 1
	cmp	eax, r14d
	jne	.L6
	mov	rax, QWORD PTR jbvString[rip]
	mov	QWORD PTR 144[rsp], rax
	mov	rax, QWORD PTR 24[rsp]
	mov	edi, DWORD PTR [rax]
	call	VARSIZE_ANY_EXHDR@PLT
	mov	QWORD PTR 128[rsp], rax
	mov	rax, QWORD PTR 24[rsp]
	mov	edi, DWORD PTR [rax]
	call	VARDATA_ANY@PLT
	mov	rsi, QWORD PTR WJB_KEY[rip]
	mov	rdi, r12
	lea	rdx, 128[rsp]
	mov	QWORD PTR 136[rsp], rax
	call	pushJsonbValue@PLT
	mov	rsi, QWORD PTR 48[rsp]
	mov	rdi, r12
	call	addJsonbToParseState@PLT
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L29:
	mov	ebx, 1
	.p2align 4,,10
	.p2align 3
.L19:
	mov	rsi, rbp
	xor	edx, edx
	mov	rdi, r13
	call	JsonbIteratorNext@PLT
	mov	rsi, rax
	mov	rax, QWORD PTR WJB_BEGIN_ARRAY[rip]
	cmp	rax, rsi
	je	.L14
	cmp	QWORD PTR WJB_BEGIN_OBJECT[rip], rsi
	je	.L14
	cmp	QWORD PTR WJB_END_ARRAY[rip], rsi
	je	.L16
.L46:
	cmp	QWORD PTR WJB_END_OBJECT[rip], rsi
	je	.L16
	cmp	rax, rsi
	jg	.L23
	xor	edx, edx
	mov	rdi, r12
	call	pushJsonbValue@PLT
	jmp	.L19
	.p2align 4,,10
	.p2align 3
.L14:
	add	ebx, 1
	cmp	QWORD PTR WJB_END_ARRAY[rip], rsi
	jne	.L46
.L16:
	sub	ebx, 1
	mov	edx, 0
	cmp	rax, rsi
	mov	rdi, r12
	cmovg	rdx, rbp
	call	pushJsonbValue@PLT
	test	ebx, ebx
	jne	.L19
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L23:
	mov	rdx, rbp
	mov	rdi, r12
	call	pushJsonbValue@PLT
	jmp	.L19
	.p2align 4,,10
	.p2align 3
.L45:
	mov	rax, QWORD PTR 24[rsp]
	mov	rdx, QWORD PTR 96[rsp]
	mov	edi, DWORD PTR [rax]
	mov	QWORD PTR 8[rsp], rdx
	call	VARDATA_ANY@PLT
	mov	rdx, QWORD PTR 8[rsp]
	mov	rdi, QWORD PTR 104[rsp]
	mov	rsi, rax
	call	memcmp@PLT
	test	rax, rax
	jne	.L7
	mov	ecx, DWORD PTR 20[rsp]
	cmp	DWORD PTR 32[rsp], ecx
	jne	.L8
	mov	eax, DWORD PTR JB_PATH_INSERT_BEFORE[rip]
	or	eax, DWORD PTR JB_PATH_INSERT_AFTER[rip]
	test	DWORD PTR 240[rsp], eax
	jne	.L47
.L9:
	mov	edx, 1
	mov	rsi, rbp
	mov	rdi, r13
	call	JsonbIteratorNext@PLT
	mov	DWORD PTR 16[rsp], 1
	mov	eax, DWORD PTR JB_PATH_DELETE[rip]
	test	DWORD PTR 240[rsp], eax
	jne	.L10
	mov	rsi, QWORD PTR WJB_KEY[rip]
	mov	rdi, r12
	mov	rdx, r15
	call	pushJsonbValue@PLT
	mov	rsi, QWORD PTR 48[rsp]
	mov	rdi, r12
	call	addJsonbToParseState@PLT
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L43:
	mov	eax, DWORD PTR 36[rsp]
	sub	eax, 1
	cmp	eax, DWORD PTR 20[rsp]
	jne	.L1
	mov	rax, QWORD PTR jbvString[rip]
	mov	rcx, QWORD PTR 40[rsp]
	mov	QWORD PTR 144[rsp], rax
	movsx	rax, DWORD PTR 20[rsp]
	lea	rbx, [rcx+rax*4]
	mov	edi, DWORD PTR [rbx]
	call	VARSIZE_ANY_EXHDR@PLT
	mov	edi, DWORD PTR [rbx]
	mov	QWORD PTR 128[rsp], rax
	call	VARDATA_ANY@PLT
	mov	rsi, QWORD PTR WJB_KEY[rip]
	mov	rdi, r12
	lea	rdx, 128[rsp]
	mov	QWORD PTR 136[rsp], rax
	call	pushJsonbValue@PLT
	mov	rsi, QWORD PTR 48[rsp]
	mov	rdi, r12
	call	addJsonbToParseState@PLT
	jmp	.L1
.L8:
	mov	rdx, r15
	mov	rsi, rbx
	mov	rdi, r12
	call	pushJsonbValue@PLT
	mov	eax, DWORD PTR 240[rsp]
	mov	r8, r12
	mov	rdi, r13
	push	rax
	.cfi_def_cfa_offset 232
	push	QWORD PTR 56[rsp]
	.cfi_def_cfa_offset 240
	mov	eax, DWORD PTR 36[rsp]
	mov	ecx, DWORD PTR 52[rsp]
	mov	rdx, QWORD PTR 72[rsp]
	mov	rsi, QWORD PTR 56[rsp]
	lea	r9d, 1[rax]
	call	setPath@PLT
	pop	rax
	.cfi_def_cfa_offset 232
	pop	rdx
	.cfi_def_cfa_offset 224
	jmp	.L10
.L47:
	mov	edi, DWORD PTR ERRCODE_INVALID_PARAMETER_VALUE[rip]
	call	errcode@PLT
	lea	rdi, .LC0[rip]
	call	errmsg@PLT
	lea	rdi, .LC1[rip]
	call	errhint@PLT
	mov	edi, DWORD PTR ERROR[rip]
	mov	esi, eax
	call	ereport@PLT
	jmp	.L9
.L44:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	setPathObject, .-setPathObject
	.comm	jbvString,8,8
	.comm	WJB_KEY,8,8
	.comm	WJB_END_OBJECT,8,8
	.comm	WJB_END_ARRAY,8,8
	.comm	WJB_BEGIN_OBJECT,8,8
	.comm	WJB_BEGIN_ARRAY,8,8
	.comm	JB_PATH_INSERT_BEFORE,4,4
	.comm	JB_PATH_INSERT_AFTER,4,4
	.comm	JB_PATH_DELETE,4,4
	.comm	JB_PATH_CREATE_OR_INSERT,4,4
	.comm	ERROR,4,4
	.comm	ERRCODE_INVALID_PARAMETER_VALUE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_jsonfuncs.c_setPathObject.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"cannot replace existing key\000"
	.align	2
.LC1:
	.ascii	"Try using the function jsonb_set to replace key val"
	.ascii	"ue.\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	setPathObject, %function
setPathObject:
	@ args = 20, pretend = 0, frame = 64
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	sub	sp, sp, #84
	mov	r6, r0
	ldr	r0, [sp, #124]
	str	r3, [sp, #24]
	cmp	r0, r3
	ldr	r3, .L48
	str	r1, [sp, #28]
	str	r2, [sp, #36]
	ldr	r3, [r3]
	str	r3, [sp, #76]
	mov	r3,#0
	ldr	r3, [sp, #128]
	ldr	r7, [sp, #120]
	str	r3, [sp, #32]
	movge	r3, #1
	strge	r3, [sp, #16]
	bge	.L2
	ldr	r3, [r2, r0, lsl #2]
	subs	r3, r3, #0
	movne	r3, #1
	str	r3, [sp, #16]
.L2:
	ldr	r3, [sp, #132]
	cmp	r3, #0
	bne	.L3
	ldr	r3, .L48+4
	ldr	r2, [sp, #136]
	ldr	r3, [r3]
	tst	r2, r3
	bne	.L43
.L1:
	ldr	r3, .L48
	ldr	r2, [r3]
	ldr	r3, [sp, #76]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L44
	add	sp, sp, #84
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L3:
	ble	.L1
	ldr	r3, [sp, #28]
	ldr	r2, [sp, #124]
	mov	r9, #0
	add	r3, r3, r2, lsl #2
	ldr	r8, .L48+8
	ldr	fp, .L48+12
	ldr	r10, .L48+16
	str	r3, [sp, #20]
	b	.L20
.L6:
	mov	r1, r4
	add	r2, sp, #52
	add	r4, sp, #40
	mov	r0, r7
	bl	pushJsonbValue
	mov	r1, r4
	mov	r2, #0
	mov	r0, r6
	bl	JsonbIteratorNext
	mov	r5, r0
	ldr	r2, [r8]
	mov	r1, r0
	cmp	r2, r0
	movgt	r2, r4
	movle	r2, #0
	mov	r0, r7
	bl	pushJsonbValue
	ldr	r3, [r8]
	cmp	r3, r5
	beq	.L29
	ldr	r3, [r10]
	cmp	r3, r5
	beq	.L29
.L10:
	ldr	r3, [sp, #132]
	add	r9, r9, #1
	cmp	r3, r9
	beq	.L1
.L20:
	mov	r2, #1
	add	r1, sp, #52
	mov	r0, r6
	bl	JsonbIteratorNext
	mov	r4, r0
	ldr	r3, .L48+20
	ldr	r0, [r3]
	sub	r0, r0, r4
	clz	r0, r0
	lsr	r0, r0, #5
	bl	Assert
	ldr	r3, [sp, #16]
	cmp	r3, #0
	bne	.L6
	ldr	r3, [sp, #20]
	ldr	r5, [sp, #52]
	ldr	r0, [r3]
	bl	VARSIZE_ANY_EXHDR
	cmp	r5, r0
	beq	.L45
.L7:
	ldr	r3, .L48+4
	ldr	r2, [sp, #136]
	ldr	r3, [r3]
	tst	r2, r3
	beq	.L6
	ldr	r3, [sp, #24]
	ldr	r2, [sp, #124]
	sub	r3, r3, #1
	cmp	r3, r2
	bne	.L6
	ldr	r3, [sp, #132]
	sub	r3, r3, #1
	cmp	r3, r9
	bne	.L6
	ldr	r3, .L48+24
	ldr	r5, [sp, #20]
	ldr	r3, [r3]
	ldr	r0, [r5]
	str	r3, [sp, #72]
	bl	VARSIZE_ANY_EXHDR
	mov	r3, r0
	ldr	r0, [r5]
	str	r3, [sp, #64]
	bl	VARDATA_ANY
	mov	r3, r0
	ldr	r1, .L48+20
	mov	r0, r7
	ldr	r1, [r1]
	add	r2, sp, #64
	str	r3, [sp, #68]
	bl	pushJsonbValue
	mov	r0, r7
	ldr	r1, [sp, #32]
	bl	addJsonbToParseState
	b	.L6
.L29:
	mov	r5, #1
.L19:
	mov	r2, #0
	mov	r1, r4
	mov	r0, r6
	bl	JsonbIteratorNext
	ldr	r2, [r8]
	mov	r1, r0
	cmp	r2, r0
	beq	.L14
	ldr	r3, [r10]
	cmp	r3, r0
	beq	.L14
	ldr	r3, [fp]
	cmp	r3, r1
	beq	.L16
.L46:
	ldr	r3, .L48+28
	ldr	r3, [r3]
	cmp	r3, r1
	beq	.L16
	cmp	r2, r1
	bgt	.L23
	mov	r2, #0
	mov	r0, r7
	bl	pushJsonbValue
	b	.L19
.L14:
	ldr	r3, [fp]
	add	r5, r5, #1
	cmp	r3, r1
	bne	.L46
.L16:
	cmp	r2, r1
	movgt	r2, r4
	movle	r2, #0
	mov	r0, r7
	sub	r5, r5, #1
	bl	pushJsonbValue
	cmp	r5, #0
	bne	.L19
	b	.L10
.L23:
	mov	r2, r4
	mov	r0, r7
	bl	pushJsonbValue
	b	.L19
.L45:
	ldr	r3, [sp, #20]
	ldr	r5, [sp, #56]
	ldr	r0, [r3]
	bl	VARDATA_ANY
	ldr	r2, [sp, #52]
	mov	r1, r0
	mov	r0, r5
	bl	memcmp
	cmp	r0, #0
	bne	.L7
	ldr	r3, [sp, #24]
	ldr	r2, [sp, #124]
	sub	r3, r3, #1
	cmp	r3, r2
	bne	.L8
	ldr	r3, .L48+32
	ldr	r2, .L48+36
	ldr	r3, [r3]
	ldr	r2, [r2]
	orr	r3, r3, r2
	ldr	r2, [sp, #136]
	tst	r3, r2
	bne	.L47
.L9:
	mov	r2, #1
	mov	r0, r6
	add	r1, sp, #40
	bl	JsonbIteratorNext
	ldr	r3, .L48+40
	ldr	r2, [sp, #136]
	ldr	r3, [r3]
	tst	r2, r3
	movne	r3, #1
	strne	r3, [sp, #16]
	bne	.L10
	ldr	r3, .L48+20
	add	r2, sp, #52
	ldr	r1, [r3]
	mov	r0, r7
	bl	pushJsonbValue
	mov	r0, r7
	ldr	r1, [sp, #32]
	bl	addJsonbToParseState
	mov	r3, #1
	str	r3, [sp, #16]
	b	.L10
.L43:
	ldr	r3, [sp, #24]
	ldr	r2, [sp, #124]
	sub	r3, r3, #1
	cmp	r3, r2
	bne	.L1
	ldr	r3, .L48+24
	ldr	r4, [sp, #28]
	ldr	r3, [r3]
	ldr	r0, [r4, r2, lsl #2]
	str	r3, [sp, #72]
	bl	VARSIZE_ANY_EXHDR
	mov	r3, r0
	ldr	r2, [sp, #124]
	str	r3, [sp, #64]
	ldr	r0, [r4, r2, lsl #2]
	bl	VARDATA_ANY
	mov	r3, r0
	ldr	r1, .L48+20
	mov	r0, r7
	ldr	r1, [r1]
	add	r2, sp, #64
	str	r3, [sp, #68]
	bl	pushJsonbValue
	mov	r0, r7
	ldr	r1, [sp, #32]
	bl	addJsonbToParseState
	b	.L1
.L8:
	mov	r1, r4
	add	r2, sp, #52
	mov	r0, r7
	bl	pushJsonbValue
	ldr	r2, [sp, #136]
	ldr	r3, [sp, #124]
	str	r2, [sp, #12]
	ldr	r2, [sp, #32]
	add	r3, r3, #1
	str	r2, [sp, #8]
	str	r3, [sp, #4]
	mov	r0, r6
	ldr	r3, [sp, #24]
	ldr	r2, [sp, #36]
	ldr	r1, [sp, #28]
	str	r7, [sp]
	bl	setPath
	b	.L10
.L47:
	ldr	r2, .L48+44
	ldr	r3, .L48+48
	ldr	r0, [r2]
	ldr	r4, [r3]
	bl	errcode
	ldr	r0, .L48+52
	bl	errmsg
	ldr	r0, .L48+56
	bl	errhint
	mov	r1, r0
	mov	r0, r4
	bl	ereport
	b	.L9
.L44:
	bl	__stack_chk_fail
.L49:
	.align	2
.L48:
	.word	.LC2
	.word	JB_PATH_CREATE_OR_INSERT
	.word	WJB_BEGIN_ARRAY
	.word	WJB_END_ARRAY
	.word	WJB_BEGIN_OBJECT
	.word	WJB_KEY
	.word	jbvString
	.word	WJB_END_OBJECT
	.word	JB_PATH_INSERT_BEFORE
	.word	JB_PATH_INSERT_AFTER
	.word	JB_PATH_DELETE
	.word	ERRCODE_INVALID_PARAMETER_VALUE
	.word	ERROR
	.word	.LC0
	.word	.LC1
	.size	setPathObject, .-setPathObject
	.comm	jbvString,4,4
	.comm	WJB_KEY,4,4
	.comm	WJB_END_OBJECT,4,4
	.comm	WJB_END_ARRAY,4,4
	.comm	WJB_BEGIN_OBJECT,4,4
	.comm	WJB_BEGIN_ARRAY,4,4
	.comm	JB_PATH_INSERT_BEFORE,4,4
	.comm	JB_PATH_INSERT_AFTER,4,4
	.comm	JB_PATH_DELETE,4,4
	.comm	JB_PATH_CREATE_OR_INSERT,4,4
	.comm	ERROR,4,4
	.comm	ERRCODE_INVALID_PARAMETER_VALUE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
