	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function populate_scalar
_populate_scalar:                       ## @populate_scalar
	.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	%rcx, %r14
	movl	%edx, %r8d
	movq	%rsi, %rbx
	movq	%rdi, %r12
	cmpq	$0, 32(%rcx)
	je	LBB0_13
## %bb.1:
	movl	%r8d, -44(%rbp)                 ## 4-byte Spill
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	movl	8(%r14), %r15d
	movq	16(%r14), %r12
	movq	%r12, %rdi
	callq	_Assert
	movq	%r12, %r13
	testl	%r15d, %r15d
	js	LBB0_3
## %bb.2:
	leal	1(%r15), %edi
	callq	_palloc
	movq	%rax, %r13
	movq	%rax, %rdi
	movq	%r12, %rsi
	movl	%r15d, %edx
	callq	_memcpy
	movb	$0, (%r13,%r15)
LBB0_3:
	movq	%r12, %r15
	movq	_JSONOID@GOTPCREL(%rip), %rax
	cmpq	%rbx, (%rax)
	je	LBB0_6
## %bb.4:
	movq	_JSONBOID@GOTPCREL(%rip), %rax
	cmpq	%rbx, (%rax)
	jne	LBB0_5
LBB0_6:
	movq	24(%r14), %rax
	movq	_JSON_TOKEN_STRING@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.7:
	leaq	-64(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_initStringInfo
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_escape_json
	movq	%r15, %r14
	cmpq	%r15, %r13
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	je	LBB0_9
## %bb.8:
	movq	%r13, %rdi
	callq	_pfree
LBB0_9:
	movq	-64(%rbp), %r13
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	jmp	LBB0_10
LBB0_5:
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movq	%r15, %r14
LBB0_10:
	movl	(%r12), %edx
	addq	$4, %r12
	movq	%r12, %rdi
	movq	%r13, %rsi
	callq	_InputFunctionCall
	movl	%eax, %ebx
	cmpq	%r14, %r13
	je	LBB0_12
## %bb.11:
	movq	%r13, %rdi
	callq	_pfree
LBB0_12:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	movq	(%r14), %rdi
	movq	_JSONBOID@GOTPCREL(%rip), %rax
	cmpq	%rbx, (%rax)
	jne	LBB0_14
## %bb.28:
	callq	_JsonbValueToJsonb
	movq	%rax, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_JsonbPGetDatum                 ## TAILCALL
LBB0_14:
	movq	_JSONOID@GOTPCREL(%rip), %rcx
	movq	(%rdi), %rdx
	movq	_jbvBinary@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	%rbx, (%rcx)
	jne	LBB0_17
## %bb.15:
	cmpq	%rax, %rdx
	je	LBB0_17
## %bb.16:
	movl	%r8d, %ebx
	callq	_JsonbValueToJsonb
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_VARSIZE
	xorl	%r14d, %r14d
	xorl	%edi, %edi
	movq	%r15, %rsi
	movl	%eax, %edx
	callq	_JsonbToCString
	movl	%ebx, %ecx
	movq	%rax, %r13
	jmp	LBB0_10
LBB0_17:
	movq	_jbvString@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rdx
	jne	LBB0_21
## %bb.18:
	movl	40(%rdi), %esi
	movl	44(%rdi), %edi
	movl	%r8d, %ebx
	callq	_pnstrdup
	jmp	LBB0_19
LBB0_21:
	movq	_jbvBool@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rdx
	jne	LBB0_23
## %bb.22:
	cmpq	$0, 32(%rdi)
	leaq	L_.str.1(%rip), %rax
	leaq	L_.str(%rip), %rdi
	cmoveq	%rax, %rdi
	movl	%r8d, %ebx
	callq	_pstrdup
LBB0_19:
	movl	%ebx, %ecx
LBB0_20:
	movq	%rax, %r13
	xorl	%r14d, %r14d
	jmp	LBB0_10
LBB0_23:
	movq	_jbvNumeric@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rdx
	jne	LBB0_25
## %bb.24:
	movq	_numeric_out@GOTPCREL(%rip), %rax
	movl	%r8d, %r14d
	movl	(%rax), %r15d
	movl	24(%rdi), %edi
	callq	_PointerGetDatum
	movl	%r15d, %edi
	movl	%eax, %esi
	callq	_DirectFunctionCall1
	movl	%eax, %edi
	callq	_DatumGetCString
	movl	%r14d, %ecx
	jmp	LBB0_20
LBB0_25:
	movl	%r8d, %ebx
	cmpq	%rax, %rdx
	jne	LBB0_27
## %bb.26:
	movq	16(%rdi), %rsi
	movl	8(%rdi), %edx
	xorl	%r14d, %r14d
	xorl	%edi, %edi
	callq	_JsonbToCString
	movq	%rax, %r13
	movl	%ebx, %ecx
	jmp	LBB0_10
LBB0_27:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_elog
	movl	(%r12), %edx
	addq	$4, %r12
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	%ebx, %ecx
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_InputFunctionCall              ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_JSONOID,8,3                    ## @JSONOID
	.comm	_JSONBOID,8,3                   ## @JSONBOID
	.comm	_JSON_TOKEN_STRING,8,3          ## @JSON_TOKEN_STRING
	.comm	_jbvBinary,8,3                  ## @jbvBinary
	.comm	_jbvString,8,3                  ## @jbvString
	.comm	_jbvBool,8,3                    ## @jbvBool
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"true"

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

	.comm	_jbvNumeric,8,3                 ## @jbvNumeric
	.comm	_numeric_out,4,2                ## @numeric_out
	.comm	_ERROR,4,2                      ## @ERROR
L_.str.2:                               ## @.str.2
	.asciz	"unrecognized jsonb type: %d"

	.no_dead_strip	_populate_scalar
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function populate_scalar
_populate_scalar:                       ; @populate_scalar
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x24, x3
	mov	x19, x2
	mov	x23, x1
	mov	x20, x0
	ldr	x8, [x3, #32]
	cbz	x8, LBB0_8
; %bb.1:
	ldr	w25, [x24, #8]
	ldr	x22, [x24, #16]
	mov	x0, x22
	bl	_Assert
	mov	x21, x22
	tbnz	w25, #31, LBB0_3
; %bb.2:
	add	w0, w25, #1
	bl	_palloc
	mov	x21, x0
	mov	x1, x22
	mov	x2, x25
	bl	_memcpy
	strb	wzr, [x21, x25]
LBB0_3:
Lloh0:
	adrp	x8, _JSONOID@GOTPAGE
Lloh1:
	ldr	x8, [x8, _JSONOID@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _JSONBOID@GOTPAGE
Lloh4:
	ldr	x9, [x9, _JSONBOID@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x23
	ccmp	x9, x23, #4, ne
	b.ne	LBB0_16
; %bb.4:
	ldr	x8, [x24, #24]
Lloh6:
	adrp	x9, _JSON_TOKEN_STRING@GOTPAGE
Lloh7:
	ldr	x9, [x9, _JSON_TOKEN_STRING@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_16
; %bb.5:
	add	x0, sp, #8
	bl	_initStringInfo
	add	x0, sp, #8
	mov	x1, x21
	bl	_escape_json
	cmp	x21, x22
	b.eq	LBB0_7
; %bb.6:
	mov	x0, x21
	bl	_pfree
LBB0_7:
	ldr	x21, [sp, #8]
	b	LBB0_16
LBB0_8:
	ldr	x0, [x24]
Lloh9:
	adrp	x8, _JSONBOID@GOTPAGE
Lloh10:
	ldr	x8, [x8, _JSONBOID@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	cmp	x8, x23
	b.ne	LBB0_10
; %bb.9:
	bl	_JsonbValueToJsonb
	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
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	b	_JsonbPGetDatum
LBB0_10:
Lloh12:
	adrp	x8, _JSONOID@GOTPAGE
Lloh13:
	ldr	x8, [x8, _JSONOID@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x8]
	ldr	x2, [x0]
Lloh15:
	adrp	x8, _jbvBinary@GOTPAGE
Lloh16:
	ldr	x8, [x8, _jbvBinary@GOTPAGEOFF]
Lloh17:
	ldr	x8, [x8]
	cmp	x9, x23
	ccmp	x2, x8, #4, eq
	b.ne	LBB0_13
; %bb.11:
Lloh18:
	adrp	x9, _jbvString@GOTPAGE
Lloh19:
	ldr	x9, [x9, _jbvString@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	cmp	x2, x9
	b.ne	LBB0_19
; %bb.12:
	ldp	w1, w8, [x0, #40]
	mov	x0, x8
	bl	_pnstrdup
	b	LBB0_15
LBB0_13:
	bl	_JsonbValueToJsonb
	mov	x21, x0
	bl	_VARSIZE
	mov	x2, x0
	mov	x0, #0
	mov	x1, x21
LBB0_14:
	bl	_JsonbToCString
LBB0_15:
	mov	x21, x0
	mov	x22, #0
LBB0_16:
	ldr	w2, [x20], #4
	mov	x0, x20
	mov	x1, x21
	mov	x3, x19
	bl	_InputFunctionCall
	mov	x19, x0
	cmp	x21, x22
	b.eq	LBB0_18
; %bb.17:
	mov	x0, x21
	bl	_pfree
LBB0_18:
	mov	x0, x19
	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
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_19:
Lloh21:
	adrp	x9, _jbvBool@GOTPAGE
Lloh22:
	ldr	x9, [x9, _jbvBool@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
	cmp	x2, x9
	b.ne	LBB0_21
; %bb.20:
	ldr	x8, [x0, #32]
Lloh24:
	adrp	x9, l_.str@PAGE
Lloh25:
	add	x9, x9, l_.str@PAGEOFF
Lloh26:
	adrp	x10, l_.str.1@PAGE
Lloh27:
	add	x10, x10, l_.str.1@PAGEOFF
	cmp	x8, #0
	csel	x0, x10, x9, eq
	bl	_pstrdup
	b	LBB0_15
LBB0_21:
Lloh28:
	adrp	x9, _jbvNumeric@GOTPAGE
Lloh29:
	ldr	x9, [x9, _jbvNumeric@GOTPAGEOFF]
Lloh30:
	ldr	x9, [x9]
	cmp	x2, x9
	b.ne	LBB0_23
; %bb.22:
Lloh31:
	adrp	x8, _numeric_out@GOTPAGE
Lloh32:
	ldr	x8, [x8, _numeric_out@GOTPAGEOFF]
Lloh33:
	ldr	w21, [x8]
	ldr	w0, [x0, #24]
	bl	_PointerGetDatum
	mov	x1, x0
	mov	x0, x21
	bl	_DirectFunctionCall1
	bl	_DatumGetCString
	b	LBB0_15
LBB0_23:
	cmp	x2, x8
	b.ne	LBB0_25
; %bb.24:
	ldr	x1, [x0, #16]
	ldr	w2, [x0, #8]
	mov	x0, #0
	b	LBB0_14
LBB0_25:
Lloh34:
	adrp	x8, _ERROR@GOTPAGE
Lloh35:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh36:
	ldr	w0, [x8]
Lloh37:
	adrp	x1, l_.str.2@PAGE
Lloh38:
	add	x1, x1, l_.str.2@PAGEOFF
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_elog
	ldr	w2, [x20], #4
	mov	x0, x20
	mov	x1, #0
	mov	x3, x19
	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
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	b	_InputFunctionCall
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.cfi_endproc
                                        ; -- End function
	.comm	_JSONOID,8,3                    ; @JSONOID
	.comm	_JSONBOID,8,3                   ; @JSONBOID
	.comm	_JSON_TOKEN_STRING,8,3          ; @JSON_TOKEN_STRING
	.comm	_jbvBinary,8,3                  ; @jbvBinary
	.comm	_jbvString,8,3                  ; @jbvString
	.comm	_jbvBool,8,3                    ; @jbvBool
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"true"

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

	.comm	_jbvNumeric,8,3                 ; @jbvNumeric
	.comm	_numeric_out,4,2                ; @numeric_out
	.comm	_ERROR,4,2                      ; @ERROR
l_.str.2:                               ; @.str.2
	.asciz	"unrecognized jsonb type: %d"

	.no_dead_strip	_populate_scalar
.subsections_via_symbols
