	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function datum_to_jsonb
_datum_to_jsonb:                        ## @datum_to_jsonb
	.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	$104, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, %r15d
	movl	%r8d, %r13d
	movl	%ecx, %ebx
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movl	%esi, %r14d
	movl	%edi, %r12d
	xorl	%eax, %eax
	callq	_check_stack_depth
	testl	%r14d, %r14d
	je	LBB0_2
## %bb.1:
	xorl	%edi, %edi
	testl	%r15d, %r15d
	sete	%dil
	callq	_Assert
	movq	_jbvNull@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -88(%rbp)
LBB0_36:
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
LBB0_37:
	movq	(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_38
## %bb.39:
	movl	(%rax), %eax
	cmpl	$128, %eax
	je	LBB0_42
## %bb.40:
	cmpl	$129, %eax
	jne	LBB0_47
## %bb.41:
	movq	_WJB_ELEM@GOTPCREL(%rip), %rax
	jmp	LBB0_45
LBB0_2:
	addl	$-130, %ebx
	testl	%r15d, %r15d
	je	LBB0_6
## %bb.3:
	cmpl	$9, %ebx
	ja	LBB0_34
## %bb.4:
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%rbx,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_5:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_ERRCODE_INVALID_PARAMETER_VALUE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	leaq	L_.str(%rip), %rdi
	callq	_errmsg
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_ereport
	jmp	LBB0_36
LBB0_38:
	movl	$129, -136(%rbp)
	movabsq	$4294967297, %rax               ## imm = 0x100000001
	movq	%rax, -128(%rbp)
	movq	_WJB_BEGIN_ARRAY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-136(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_pushJsonbValue
	movq	%rax, 8(%rbx)
	movq	_WJB_ELEM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-88(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_pushJsonbValue
	movq	%rax, 8(%rbx)
	movq	_WJB_END_ARRAY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	jmp	LBB0_46
LBB0_42:
	testl	%r15d, %r15d
	jne	LBB0_43
## %bb.44:
	movq	_WJB_VALUE@GOTPCREL(%rip), %rax
	jmp	LBB0_45
LBB0_47:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	callq	_elog
	jmp	LBB0_48
LBB0_6:
	cmpl	$9, %ebx
	ja	LBB0_34
## %bb.7:
	leaq	LJTI0_1(%rip), %rax
	movslq	(%rax,%rbx,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_20:
	movq	_jbvString@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -88(%rbp)
	movq	_TIMESTAMPTZOID@GOTPCREL(%rip), %rax
	jmp	LBB0_18
LBB0_43:
	movq	_WJB_KEY@GOTPCREL(%rip), %rax
LBB0_45:
	movl	(%rax), %esi
	leaq	-88(%rbp), %rdx
	movq	%rbx, %rdi
LBB0_46:
	callq	_pushJsonbValue
	movq	%rax, 8(%rbx)
LBB0_48:
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_34:
	movl	%r13d, %edi
	movl	%r12d, %esi
	callq	_OidOutputFunctionCall
	movq	%rax, %rbx
	movq	_jbvString@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -88(%rbp)
	movq	%rbx, %rdi
	callq	_strlen
	movq	%rax, %rdi
	callq	_checkStringLen
	jmp	LBB0_35
LBB0_19:
	movq	_jbvString@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -88(%rbp)
	movq	_TIMESTAMPOID@GOTPCREL(%rip), %rax
	jmp	LBB0_18
LBB0_17:
	movq	_jbvString@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -88(%rbp)
	movq	_DATEOID@GOTPCREL(%rip), %rax
LBB0_18:
	movl	(%rax), %edx
	xorl	%edi, %edi
	movl	%r12d, %esi
	xorl	%ecx, %ecx
	callq	_JsonEncodeDateTime
	movq	%rax, -72(%rbp)
	movq	%rax, %rdi
	callq	_strlen
	movq	%rax, -64(%rbp)
	jmp	LBB0_36
LBB0_11:
	movl	%r13d, %edi
	movl	%r12d, %esi
	callq	_OidOutputFunctionCall
	movq	%rax, %rbx
	jmp	LBB0_16
LBB0_15:
	movl	%r12d, %edi
	callq	_DatumGetBool
	testl	%eax, %eax
	leaq	L_.str.2(%rip), %rax
	leaq	L_.str.1(%rip), %rbx
	cmoveq	%rax, %rbx
	jmp	LBB0_16
LBB0_12:
	movl	%r13d, %edi
	movl	%r12d, %esi
	callq	_OidOutputFunctionCall
	movq	%rax, %rbx
	movq	%rax, %rdi
	movl	$78, %esi
	callq	_strchr
	testq	%rax, %rax
	jne	LBB0_16
## %bb.13:
	movq	%rbx, %rdi
	movl	$110, %esi
	callq	_strchr
	testq	%rax, %rax
	je	LBB0_14
LBB0_16:
	movq	_jbvString@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -88(%rbp)
	movq	%rbx, %rdi
	callq	_strlen
LBB0_35:
	movq	%rax, -64(%rbp)
	movq	%rbx, -72(%rbp)
	jmp	LBB0_36
LBB0_21:
	movl	%r13d, %edi
	movl	%r12d, %esi
	callq	_OidFunctionCall1
	movl	%eax, %r12d
LBB0_22:
	movl	%r12d, %edi
	callq	_DatumGetTextPP
	movq	%rax, %rdi
	movl	$1, %esi
	callq	_makeJsonLexContext
	movq	%rax, %r14
	leaq	-88(%rbp), %r12
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	$32, %edx
	callq	_memset
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, -64(%rbp)
	movq	_jsonb_in_object_start@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -68(%rbp)
	movq	_jsonb_in_array_start@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -72(%rbp)
	movq	_jsonb_in_object_end@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -76(%rbp)
	movq	_jsonb_in_array_end@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -80(%rbp)
	movq	_jsonb_in_scalar@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -84(%rbp)
	movq	_jsonb_in_object_field_start@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -88(%rbp)
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_pg_parse_json
	jmp	LBB0_37
LBB0_23:
	movl	%r15d, -92(%rbp)                ## 4-byte Spill
	movl	%r12d, %edi
	callq	_DatumGetJsonbP
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_JsonbIteratorInit
	movq	%rax, -136(%rbp)
	movq	%rbx, %rdi
	callq	_JB_ROOT_IS_SCALAR
	testl	%eax, %eax
	je	LBB0_24
## %bb.49:
	leaq	-136(%rbp), %rbx
	leaq	-88(%rbp), %r14
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movl	$1, %edx
	callq	_JsonbIteratorNext
	xorl	%edi, %edi
	cmpl	$129, -88(%rbp)
	sete	%dil
	callq	_Assert
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movl	$1, %edx
	callq	_JsonbIteratorNext
	movl	-92(%rbp), %r15d                ## 4-byte Reload
	jmp	LBB0_36
LBB0_9:
	movl	%r12d, %edi
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rsi
	callq	_composite_to_jsonb
	jmp	LBB0_37
LBB0_10:
	movq	_jbvBool@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -88(%rbp)
	movl	%r12d, %edi
	callq	_DatumGetBool
	movl	%eax, -52(%rbp)
	jmp	LBB0_36
LBB0_8:
	movl	%r12d, %edi
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rsi
	callq	_array_to_jsonb_internal
	jmp	LBB0_37
LBB0_24:
	leaq	-136(%rbp), %rdi
	leaq	-88(%rbp), %rsi
	xorl	%edx, %edx
	callq	_JsonbIteratorNext
	movq	_WJB_DONE@GOTPCREL(%rip), %r14
	cmpl	(%r14), %eax
	jne	LBB0_25
LBB0_33:
	movl	-92(%rbp), %r15d                ## 4-byte Reload
	jmp	LBB0_36
LBB0_25:
	movq	_WJB_END_ARRAY@GOTPCREL(%rip), %r15
	leaq	-136(%rbp), %r12
	leaq	-88(%rbp), %rbx
	jmp	LBB0_26
LBB0_30:                                ##   in Loop: Header=BB0_26 Depth=1
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rdi
	movl	%eax, %esi
	xorl	%edx, %edx
LBB0_32:                                ##   in Loop: Header=BB0_26 Depth=1
	callq	_pushJsonbValue
	movq	%rax, 8(%r13)
	movq	%r12, %rdi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	callq	_JsonbIteratorNext
	cmpl	(%r14), %eax
	je	LBB0_33
LBB0_26:                                ## =>This Inner Loop Header: Depth=1
	cmpl	(%r15), %eax
	je	LBB0_30
## %bb.27:                              ##   in Loop: Header=BB0_26 Depth=1
	movq	_WJB_END_OBJECT@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_30
## %bb.28:                              ##   in Loop: Header=BB0_26 Depth=1
	movq	_WJB_BEGIN_ARRAY@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_30
## %bb.29:                              ##   in Loop: Header=BB0_26 Depth=1
	movq	_WJB_BEGIN_OBJECT@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_30
## %bb.31:                              ##   in Loop: Header=BB0_26 Depth=1
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rdi
	movl	%eax, %esi
	movq	%rbx, %rdx
	jmp	LBB0_32
LBB0_14:
	movq	_jbvNumeric@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -88(%rbp)
	movq	_numeric_in@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	%rbx, %rdi
	callq	_CStringGetDatum
	movl	%eax, %r12d
	movq	_InvalidOid@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_ObjectIdGetDatum
	movl	%eax, %r13d
	movl	$-1, %edi
	callq	_Int32GetDatum
	movl	%r14d, %edi
	movl	%r12d, %esi
	movl	%r13d, %edx
	movl	%eax, %ecx
	callq	_DirectFunctionCall3
	movl	%eax, %edi
	callq	_DatumGetNumeric
	movl	%eax, -56(%rbp)
	movq	%rbx, %rdi
	callq	_pfree
	jmp	LBB0_36
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_20, LBB0_20-LJTI0_0
.set L0_0_set_19, LBB0_19-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_17, LBB0_17-LJTI0_0
.set L0_0_set_15, LBB0_15-LJTI0_0
LJTI0_0:
	.long	L0_0_set_20
	.long	L0_0_set_19
	.long	L0_0_set_11
	.long	L0_0_set_5
	.long	L0_0_set_5
	.long	L0_0_set_5
	.long	L0_0_set_17
	.long	L0_0_set_5
	.long	L0_0_set_15
	.long	L0_0_set_5
.set L0_1_set_20, LBB0_20-LJTI0_1
.set L0_1_set_19, LBB0_19-LJTI0_1
.set L0_1_set_12, LBB0_12-LJTI0_1
.set L0_1_set_21, LBB0_21-LJTI0_1
.set L0_1_set_23, LBB0_23-LJTI0_1
.set L0_1_set_22, LBB0_22-LJTI0_1
.set L0_1_set_17, LBB0_17-LJTI0_1
.set L0_1_set_9, LBB0_9-LJTI0_1
.set L0_1_set_10, LBB0_10-LJTI0_1
.set L0_1_set_8, LBB0_8-LJTI0_1
LJTI0_1:
	.long	L0_1_set_20
	.long	L0_1_set_19
	.long	L0_1_set_12
	.long	L0_1_set_21
	.long	L0_1_set_23
	.long	L0_1_set_22
	.long	L0_1_set_17
	.long	L0_1_set_9
	.long	L0_1_set_10
	.long	L0_1_set_8
	.end_data_region
                                        ## -- End function
	.comm	_jbvNull,4,2                    ## @jbvNull
	.comm	_ERROR,4,2                      ## @ERROR
	.comm	_ERRCODE_INVALID_PARAMETER_VALUE,4,2 ## @ERRCODE_INVALID_PARAMETER_VALUE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"key value must be scalar, not array, composite, or json"

L_.str.1:                               ## @.str.1
	.asciz	"true"

L_.str.2:                               ## @.str.2
	.asciz	"false"

	.comm	_jbvString,8,3                  ## @jbvString
	.comm	_jbvBool,4,2                    ## @jbvBool
	.comm	_jbvNumeric,4,2                 ## @jbvNumeric
	.comm	_numeric_in,4,2                 ## @numeric_in
	.comm	_InvalidOid,4,2                 ## @InvalidOid
	.comm	_DATEOID,4,2                    ## @DATEOID
	.comm	_TIMESTAMPOID,4,2               ## @TIMESTAMPOID
	.comm	_TIMESTAMPTZOID,4,2             ## @TIMESTAMPTZOID
	.comm	_jsonb_in_object_start,4,2      ## @jsonb_in_object_start
	.comm	_jsonb_in_array_start,4,2       ## @jsonb_in_array_start
	.comm	_jsonb_in_object_end,4,2        ## @jsonb_in_object_end
	.comm	_jsonb_in_array_end,4,2         ## @jsonb_in_array_end
	.comm	_jsonb_in_scalar,4,2            ## @jsonb_in_scalar
	.comm	_jsonb_in_object_field_start,4,2 ## @jsonb_in_object_field_start
	.comm	_WJB_DONE,4,2                   ## @WJB_DONE
	.comm	_WJB_END_ARRAY,4,2              ## @WJB_END_ARRAY
	.comm	_WJB_END_OBJECT,4,2             ## @WJB_END_OBJECT
	.comm	_WJB_BEGIN_ARRAY,4,2            ## @WJB_BEGIN_ARRAY
	.comm	_WJB_BEGIN_OBJECT,4,2           ## @WJB_BEGIN_OBJECT
	.comm	_WJB_ELEM,4,2                   ## @WJB_ELEM
	.comm	_WJB_KEY,4,2                    ## @WJB_KEY
	.comm	_WJB_VALUE,4,2                  ## @WJB_VALUE
L_.str.3:                               ## @.str.3
	.asciz	"unexpected parent of nested structure"

	.no_dead_strip	_datum_to_jsonb
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function datum_to_jsonb
_datum_to_jsonb:                        ; @datum_to_jsonb
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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	x20, x5
	mov	x22, x4
	mov	x23, x3
	mov	x19, x2
	mov	x24, x1
	mov	x21, x0
	bl	_check_stack_depth
	cbz	w24, LBB0_6
; %bb.1:
	cmp	w20, #0
	cset	w0, eq
	bl	_Assert
Lloh0:
	adrp	x8, _jbvNull@GOTPAGE
Lloh1:
	ldr	x8, [x8, _jbvNull@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #40]
LBB0_2:
	ldr	x8, [x19]
	cbz	x8, LBB0_10
; %bb.3:
	ldr	w8, [x8]
	cmp	w8, #128
	b.eq	LBB0_11
; %bb.4:
	cmp	w8, #129
	b.ne	LBB0_14
; %bb.5:
Lloh3:
	adrp	x8, _WJB_ELEM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _WJB_ELEM@GOTPAGEOFF]
	b	LBB0_12
LBB0_6:
	sub	w8, w23, #130
	cmp	w8, #9
	cbz	w20, LBB0_16
; %bb.7:
	b.hi	LBB0_19
; %bb.8:
Lloh5:
	adrp	x9, lJTI0_0@PAGE
Lloh6:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_9
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_9:
Lloh7:
	adrp	x8, _ERROR@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh9:
	ldr	w21, [x8]
Lloh10:
	adrp	x8, _ERRCODE_INVALID_PARAMETER_VALUE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ERRCODE_INVALID_PARAMETER_VALUE@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	bl	_errcode
Lloh13:
	adrp	x0, l_.str@PAGE
Lloh14:
	add	x0, x0, l_.str@PAGEOFF
	bl	_errmsg
	mov	x1, x0
	mov	x0, x21
	bl	_ereport
	b	LBB0_2
LBB0_10:
	mov	w8, #129
	str	w8, [sp]
	movi.2s	v0, #1
	str	d0, [sp, #8]
Lloh15:
	adrp	x8, _WJB_BEGIN_ARRAY@GOTPAGE
Lloh16:
	ldr	x8, [x8, _WJB_BEGIN_ARRAY@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	x2, sp
	mov	x0, x19
	bl	_pushJsonbValue
	str	x0, [x19, #8]
Lloh18:
	adrp	x8, _WJB_ELEM@GOTPAGE
Lloh19:
	ldr	x8, [x8, _WJB_ELEM@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	add	x2, sp, #40
	mov	x0, x19
	bl	_pushJsonbValue
	str	x0, [x19, #8]
Lloh21:
	adrp	x8, _WJB_END_ARRAY@GOTPAGE
Lloh22:
	ldr	x8, [x8, _WJB_END_ARRAY@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, #0
	b	LBB0_13
LBB0_11:
Lloh24:
	adrp	x8, _WJB_KEY@GOTPAGE
Lloh25:
	ldr	x8, [x8, _WJB_KEY@GOTPAGEOFF]
Lloh26:
	adrp	x9, _WJB_VALUE@GOTPAGE
Lloh27:
	ldr	x9, [x9, _WJB_VALUE@GOTPAGEOFF]
	cmp	w20, #0
	csel	x8, x9, x8, eq
LBB0_12:
	ldr	w1, [x8]
	add	x2, sp, #40
	mov	x0, x19
LBB0_13:
	bl	_pushJsonbValue
	str	x0, [x19, #8]
	b	LBB0_15
LBB0_14:
Lloh28:
	adrp	x8, _ERROR@GOTPAGE
Lloh29:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh30:
	ldr	w0, [x8]
Lloh31:
	adrp	x1, l_.str.3@PAGE
Lloh32:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_elog
LBB0_15:
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
LBB0_16:
	b.hi	LBB0_19
; %bb.17:
Lloh33:
	adrp	x9, lJTI0_1@PAGE
Lloh34:
	add	x9, x9, lJTI0_1@PAGEOFF
	adr	x10, LBB0_18
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_18:
Lloh35:
	adrp	x8, _jbvString@GOTPAGE
Lloh36:
	ldr	x8, [x8, _jbvString@GOTPAGEOFF]
Lloh37:
	ldr	x8, [x8]
	str	w8, [sp, #40]
Lloh38:
	adrp	x8, _TIMESTAMPTZOID@GOTPAGE
Lloh39:
	ldr	x8, [x8, _TIMESTAMPTZOID@GOTPAGEOFF]
	b	LBB0_22
LBB0_19:
	mov	x0, x22
	mov	x1, x21
	bl	_OidOutputFunctionCall
	mov	x21, x0
Lloh40:
	adrp	x8, _jbvString@GOTPAGE
Lloh41:
	ldr	x8, [x8, _jbvString@GOTPAGEOFF]
Lloh42:
	ldr	x8, [x8]
	str	w8, [sp, #40]
	bl	_strlen
	bl	_checkStringLen
	b	LBB0_29
LBB0_20:
Lloh43:
	adrp	x8, _jbvString@GOTPAGE
Lloh44:
	ldr	x8, [x8, _jbvString@GOTPAGEOFF]
Lloh45:
	ldr	x8, [x8]
	str	w8, [sp, #40]
Lloh46:
	adrp	x8, _TIMESTAMPOID@GOTPAGE
Lloh47:
	ldr	x8, [x8, _TIMESTAMPOID@GOTPAGEOFF]
	b	LBB0_22
LBB0_21:
Lloh48:
	adrp	x8, _jbvString@GOTPAGE
Lloh49:
	ldr	x8, [x8, _jbvString@GOTPAGEOFF]
Lloh50:
	ldr	x8, [x8]
	str	w8, [sp, #40]
Lloh51:
	adrp	x8, _DATEOID@GOTPAGE
Lloh52:
	ldr	x8, [x8, _DATEOID@GOTPAGEOFF]
LBB0_22:
	ldr	w2, [x8]
	mov	x0, #0
	mov	x1, x21
	mov	x3, #0
	bl	_JsonEncodeDateTime
	str	x0, [sp, #56]
	bl	_strlen
	str	x0, [sp, #64]
	b	LBB0_2
LBB0_23:
	mov	x0, x22
	mov	x1, x21
	bl	_OidOutputFunctionCall
	mov	x21, x0
Lloh53:
	adrp	x8, _jbvString@GOTPAGE
Lloh54:
	ldr	x8, [x8, _jbvString@GOTPAGEOFF]
Lloh55:
	ldr	x8, [x8]
	str	w8, [sp, #40]
	b	LBB0_28
LBB0_24:
	mov	x0, x21
	bl	_DatumGetBool
Lloh56:
	adrp	x8, l_.str.1@PAGE
Lloh57:
	add	x8, x8, l_.str.1@PAGEOFF
Lloh58:
	adrp	x9, l_.str.2@PAGE
Lloh59:
	add	x9, x9, l_.str.2@PAGEOFF
	cmp	w0, #0
	csel	x21, x9, x8, eq
	b	LBB0_27
LBB0_25:
	mov	x0, x22
	mov	x1, x21
	bl	_OidOutputFunctionCall
	mov	x21, x0
	mov	w1, #78
	bl	_strchr
	cbnz	x0, LBB0_27
; %bb.26:
	mov	x0, x21
	mov	w1, #110
	bl	_strchr
	cbz	x0, LBB0_43
LBB0_27:
Lloh60:
	adrp	x8, _jbvString@GOTPAGE
Lloh61:
	ldr	x8, [x8, _jbvString@GOTPAGEOFF]
Lloh62:
	ldr	x8, [x8]
	str	w8, [sp, #40]
	mov	x0, x21
LBB0_28:
	bl	_strlen
LBB0_29:
	stp	x21, x0, [sp, #56]
	b	LBB0_2
LBB0_30:
	mov	x0, x22
	mov	x1, x21
	bl	_OidFunctionCall1
	mov	x21, x0
LBB0_31:
	mov	x0, x21
	bl	_DatumGetTextPP
	mov	w1, #1
	bl	_makeJsonLexContext
	mov	x21, x0
	add	x0, sp, #40
	mov	w1, #0
	mov	w2, #32
	bl	_memset
	str	x19, [sp, #64]
Lloh63:
	adrp	x8, _jsonb_in_object_start@GOTPAGE
Lloh64:
	ldr	x8, [x8, _jsonb_in_object_start@GOTPAGEOFF]
Lloh65:
	ldr	w8, [x8]
Lloh66:
	adrp	x9, _jsonb_in_array_start@GOTPAGE
Lloh67:
	ldr	x9, [x9, _jsonb_in_array_start@GOTPAGEOFF]
Lloh68:
	ldr	w9, [x9]
	stp	w9, w8, [sp, #56]
Lloh69:
	adrp	x8, _jsonb_in_object_end@GOTPAGE
Lloh70:
	ldr	x8, [x8, _jsonb_in_object_end@GOTPAGEOFF]
Lloh71:
	adrp	x9, _jsonb_in_array_end@GOTPAGE
Lloh72:
	ldr	x9, [x9, _jsonb_in_array_end@GOTPAGEOFF]
Lloh73:
	ldr	w8, [x8]
Lloh74:
	ldr	w9, [x9]
	stp	w9, w8, [sp, #48]
Lloh75:
	adrp	x8, _jsonb_in_scalar@GOTPAGE
Lloh76:
	ldr	x8, [x8, _jsonb_in_scalar@GOTPAGEOFF]
Lloh77:
	ldr	w8, [x8]
Lloh78:
	adrp	x9, _jsonb_in_object_field_start@GOTPAGE
Lloh79:
	ldr	x9, [x9, _jsonb_in_object_field_start@GOTPAGEOFF]
Lloh80:
	ldr	w9, [x9]
	stp	w9, w8, [sp, #40]
	add	x1, sp, #40
	mov	x0, x21
	bl	_pg_parse_json
	b	LBB0_2
LBB0_32:
	mov	x0, x21
	bl	_DatumGetJsonbP
	mov	x21, x0
	bl	_JsonbIteratorInit
	str	x0, [sp]
	mov	x0, x21
	bl	_JB_ROOT_IS_SCALAR
	cbz	w0, LBB0_37
; %bb.33:
	mov	x0, sp
	add	x1, sp, #40
	mov	w2, #1
	bl	_JsonbIteratorNext
	ldr	w8, [sp, #40]
	cmp	w8, #129
	cset	w0, eq
	bl	_Assert
	mov	x0, sp
	add	x1, sp, #40
	mov	w2, #1
	bl	_JsonbIteratorNext
	b	LBB0_2
LBB0_34:
	mov	x0, x21
	mov	x1, x19
	bl	_composite_to_jsonb
	b	LBB0_2
LBB0_35:
Lloh81:
	adrp	x8, _jbvBool@GOTPAGE
Lloh82:
	ldr	x8, [x8, _jbvBool@GOTPAGEOFF]
Lloh83:
	ldr	w8, [x8]
	str	w8, [sp, #40]
	mov	x0, x21
	bl	_DatumGetBool
	str	w0, [sp, #76]
	b	LBB0_2
LBB0_36:
	mov	x0, x21
	mov	x1, x19
	bl	_array_to_jsonb_internal
	b	LBB0_2
LBB0_37:
	mov	x0, sp
	add	x1, sp, #40
	mov	w2, #0
	bl	_JsonbIteratorNext
Lloh84:
	adrp	x21, _WJB_DONE@GOTPAGE
Lloh85:
	ldr	x21, [x21, _WJB_DONE@GOTPAGEOFF]
	ldr	w8, [x21]
	cmp	w0, w8
	b.eq	LBB0_2
; %bb.38:
	mov	x1, x0
Lloh86:
	adrp	x22, _WJB_END_ARRAY@GOTPAGE
Lloh87:
	ldr	x22, [x22, _WJB_END_ARRAY@GOTPAGEOFF]
Lloh88:
	adrp	x23, _WJB_END_OBJECT@GOTPAGE
Lloh89:
	ldr	x23, [x23, _WJB_END_OBJECT@GOTPAGEOFF]
Lloh90:
	adrp	x24, _WJB_BEGIN_ARRAY@GOTPAGE
Lloh91:
	ldr	x24, [x24, _WJB_BEGIN_ARRAY@GOTPAGEOFF]
Lloh92:
	adrp	x25, _WJB_BEGIN_OBJECT@GOTPAGE
Lloh93:
	ldr	x25, [x25, _WJB_BEGIN_OBJECT@GOTPAGEOFF]
	b	LBB0_41
LBB0_39:                                ;   in Loop: Header=BB0_41 Depth=1
	add	x2, sp, #40
	mov	x0, x19
LBB0_40:                                ;   in Loop: Header=BB0_41 Depth=1
	bl	_pushJsonbValue
	str	x0, [x19, #8]
	mov	x0, sp
	add	x1, sp, #40
	mov	w2, #0
	bl	_JsonbIteratorNext
	mov	x1, x0
	ldr	w8, [x21]
	cmp	w0, w8
	b.eq	LBB0_2
LBB0_41:                                ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x22]
	ldr	w9, [x23]
	ldr	w10, [x24]
	ldr	w11, [x25]
	cmp	w1, w8
	ccmp	w1, w9, #4, ne
	ccmp	w1, w10, #4, ne
	ccmp	w1, w11, #4, ne
	b.ne	LBB0_39
; %bb.42:                               ;   in Loop: Header=BB0_41 Depth=1
	mov	x0, x19
	mov	x2, #0
	b	LBB0_40
LBB0_43:
Lloh94:
	adrp	x8, _jbvNumeric@GOTPAGE
Lloh95:
	ldr	x8, [x8, _jbvNumeric@GOTPAGEOFF]
Lloh96:
	ldr	w8, [x8]
	str	w8, [sp, #40]
Lloh97:
	adrp	x8, _numeric_in@GOTPAGE
Lloh98:
	ldr	x8, [x8, _numeric_in@GOTPAGEOFF]
Lloh99:
	ldr	w22, [x8]
	mov	x0, x21
	bl	_CStringGetDatum
	mov	x23, x0
Lloh100:
	adrp	x8, _InvalidOid@GOTPAGE
Lloh101:
	ldr	x8, [x8, _InvalidOid@GOTPAGEOFF]
Lloh102:
	ldr	w0, [x8]
	bl	_ObjectIdGetDatum
	mov	x24, x0
	mov	w0, #-1
	bl	_Int32GetDatum
	mov	x3, x0
	mov	x0, x22
	mov	x1, x23
	mov	x2, x24
	bl	_DirectFunctionCall3
	bl	_DatumGetNumeric
	str	w0, [sp, #72]
	mov	x0, x21
	bl	_pfree
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGot	Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGot	Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpAdd	Lloh58, Lloh59
	.loh AdrpAdd	Lloh56, Lloh57
	.loh AdrpLdrGotLdr	Lloh60, Lloh61, Lloh62
	.loh AdrpLdrGotLdr	Lloh78, Lloh79, Lloh80
	.loh AdrpLdrGotLdr	Lloh75, Lloh76, Lloh77
	.loh AdrpLdrGotLdr	Lloh71, Lloh72, Lloh74
	.loh AdrpLdrGotLdr	Lloh69, Lloh70, Lloh73
	.loh AdrpLdrGotLdr	Lloh66, Lloh67, Lloh68
	.loh AdrpLdrGotLdr	Lloh63, Lloh64, Lloh65
	.loh AdrpLdrGotLdr	Lloh81, Lloh82, Lloh83
	.loh AdrpLdrGot	Lloh84, Lloh85
	.loh AdrpLdrGot	Lloh92, Lloh93
	.loh AdrpLdrGot	Lloh90, Lloh91
	.loh AdrpLdrGot	Lloh88, Lloh89
	.loh AdrpLdrGot	Lloh86, Lloh87
	.loh AdrpLdrGotLdr	Lloh100, Lloh101, Lloh102
	.loh AdrpLdrGotLdr	Lloh97, Lloh98, Lloh99
	.loh AdrpLdrGotLdr	Lloh94, Lloh95, Lloh96
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_18-LBB0_9)>>2
	.byte	(LBB0_20-LBB0_9)>>2
	.byte	(LBB0_23-LBB0_9)>>2
	.byte	(LBB0_9-LBB0_9)>>2
	.byte	(LBB0_9-LBB0_9)>>2
	.byte	(LBB0_9-LBB0_9)>>2
	.byte	(LBB0_21-LBB0_9)>>2
	.byte	(LBB0_9-LBB0_9)>>2
	.byte	(LBB0_24-LBB0_9)>>2
	.byte	(LBB0_9-LBB0_9)>>2
lJTI0_1:
	.byte	(LBB0_18-LBB0_18)>>2
	.byte	(LBB0_20-LBB0_18)>>2
	.byte	(LBB0_25-LBB0_18)>>2
	.byte	(LBB0_30-LBB0_18)>>2
	.byte	(LBB0_32-LBB0_18)>>2
	.byte	(LBB0_31-LBB0_18)>>2
	.byte	(LBB0_21-LBB0_18)>>2
	.byte	(LBB0_34-LBB0_18)>>2
	.byte	(LBB0_35-LBB0_18)>>2
	.byte	(LBB0_36-LBB0_18)>>2
                                        ; -- End function
	.comm	_jbvNull,4,2                    ; @jbvNull
	.comm	_ERROR,4,2                      ; @ERROR
	.comm	_ERRCODE_INVALID_PARAMETER_VALUE,4,2 ; @ERRCODE_INVALID_PARAMETER_VALUE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"key value must be scalar, not array, composite, or json"

l_.str.1:                               ; @.str.1
	.asciz	"true"

l_.str.2:                               ; @.str.2
	.asciz	"false"

	.comm	_jbvString,8,3                  ; @jbvString
	.comm	_jbvBool,4,2                    ; @jbvBool
	.comm	_jbvNumeric,4,2                 ; @jbvNumeric
	.comm	_numeric_in,4,2                 ; @numeric_in
	.comm	_InvalidOid,4,2                 ; @InvalidOid
	.comm	_DATEOID,4,2                    ; @DATEOID
	.comm	_TIMESTAMPOID,4,2               ; @TIMESTAMPOID
	.comm	_TIMESTAMPTZOID,4,2             ; @TIMESTAMPTZOID
	.comm	_jsonb_in_object_start,4,2      ; @jsonb_in_object_start
	.comm	_jsonb_in_array_start,4,2       ; @jsonb_in_array_start
	.comm	_jsonb_in_object_end,4,2        ; @jsonb_in_object_end
	.comm	_jsonb_in_array_end,4,2         ; @jsonb_in_array_end
	.comm	_jsonb_in_scalar,4,2            ; @jsonb_in_scalar
	.comm	_jsonb_in_object_field_start,4,2 ; @jsonb_in_object_field_start
	.comm	_WJB_DONE,4,2                   ; @WJB_DONE
	.comm	_WJB_END_ARRAY,4,2              ; @WJB_END_ARRAY
	.comm	_WJB_END_OBJECT,4,2             ; @WJB_END_OBJECT
	.comm	_WJB_BEGIN_ARRAY,4,2            ; @WJB_BEGIN_ARRAY
	.comm	_WJB_BEGIN_OBJECT,4,2           ; @WJB_BEGIN_OBJECT
	.comm	_WJB_ELEM,4,2                   ; @WJB_ELEM
	.comm	_WJB_KEY,4,2                    ; @WJB_KEY
	.comm	_WJB_VALUE,4,2                  ; @WJB_VALUE
l_.str.3:                               ; @.str.3
	.asciz	"unexpected parent of nested structure"

	.no_dead_strip	_datum_to_jsonb
.subsections_via_symbols
