	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_JsonbValueToJsonb              ## -- Begin function JsonbValueToJsonb
	.p2align	4, 0x90
_JsonbValueToJsonb:                     ## @JsonbValueToJsonb
	.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	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	callq	_IsAJsonbScalar
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	$0, -32(%rbp)
	movq	_jbvArray@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -64(%rbp)
	movabsq	$4294967297, %rax               ## imm = 0x100000001
	movq	%rax, -40(%rbp)
	movq	_WJB_BEGIN_ARRAY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-32(%rbp), %r14
	leaq	-64(%rbp), %rdx
	movq	%r14, %rdi
	callq	_pushJsonbValue
	movq	_WJB_ELEM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movq	%rbx, %rdx
	callq	_pushJsonbValue
	movq	_WJB_END_ARRAY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_pushJsonbValue
	movq	%rax, %rdi
	callq	_convertToJsonb
	movq	%rax, %r14
	jmp	LBB0_5
LBB0_2:
	movq	(%rbx), %rax
	movq	_jbvObject@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_6
## %bb.3:
	movq	_jbvArray@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_6
## %bb.4:
	movq	_jbvBinary@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	sete	%dil
	callq	_Assert
	movq	_VARHDRSZ@GOTPCREL(%rip), %r15
	movq	8(%rbx), %rdi
	addq	(%r15), %rdi
	callq	_palloc
	movq	%rax, %r14
	movq	8(%rbx), %rsi
	addq	(%r15), %rsi
	movq	%rax, %rdi
	callq	_SET_VARSIZE
	movq	%r14, %rdi
	callq	_VARDATA
	movl	16(%rbx), %esi
	movq	8(%rbx), %rdx
	movl	%eax, %edi
	callq	_memcpy
LBB0_5:
	movq	%r14, %rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	%rbx, %rdi
	addq	$40, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_convertToJsonb                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_jbvArray,8,3                   ## @jbvArray
	.comm	_WJB_BEGIN_ARRAY,4,2            ## @WJB_BEGIN_ARRAY
	.comm	_WJB_ELEM,4,2                   ## @WJB_ELEM
	.comm	_WJB_END_ARRAY,4,2              ## @WJB_END_ARRAY
	.comm	_jbvObject,8,3                  ## @jbvObject
	.comm	_jbvBinary,8,3                  ## @jbvBinary
	.comm	_VARHDRSZ,8,3                   ## @VARHDRSZ
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_JsonbValueToJsonb              ; -- Begin function JsonbValueToJsonb
	.p2align	2
_JsonbValueToJsonb:                     ; @JsonbValueToJsonb
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	mov	x19, x0
	bl	_IsAJsonbScalar
	cbz	x0, LBB0_2
; %bb.1:
	str	xzr, [sp, #40]
Lloh0:
	adrp	x8, _jbvArray@GOTPAGE
Lloh1:
	ldr	x8, [x8, _jbvArray@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #8]
	movi.2s	v0, #1
	str	d0, [sp, #32]
Lloh3:
	adrp	x8, _WJB_BEGIN_ARRAY@GOTPAGE
Lloh4:
	ldr	x8, [x8, _WJB_BEGIN_ARRAY@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	add	x0, sp, #40
	add	x2, sp, #8
	bl	_pushJsonbValue
Lloh6:
	adrp	x8, _WJB_ELEM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _WJB_ELEM@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	add	x0, sp, #40
	mov	x2, x19
	bl	_pushJsonbValue
Lloh9:
	adrp	x8, _WJB_END_ARRAY@GOTPAGE
Lloh10:
	ldr	x8, [x8, _WJB_END_ARRAY@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	add	x0, sp, #40
	mov	x2, #0
	bl	_pushJsonbValue
	bl	_convertToJsonb
	mov	x20, x0
	b	LBB0_5
LBB0_2:
	ldr	x8, [x19]
Lloh12:
	adrp	x9, _jbvObject@GOTPAGE
Lloh13:
	ldr	x9, [x9, _jbvObject@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
Lloh15:
	adrp	x10, _jbvArray@GOTPAGE
Lloh16:
	ldr	x10, [x10, _jbvArray@GOTPAGEOFF]
Lloh17:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_4
; %bb.3:
	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
	add	sp, sp, #96
	b	_convertToJsonb
LBB0_4:
Lloh18:
	adrp	x9, _jbvBinary@GOTPAGE
Lloh19:
	ldr	x9, [x9, _jbvBinary@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, eq
	bl	_Assert
Lloh21:
	adrp	x21, _VARHDRSZ@GOTPAGE
Lloh22:
	ldr	x21, [x21, _VARHDRSZ@GOTPAGEOFF]
	ldr	x8, [x21]
	ldr	x9, [x19, #8]
	add	x0, x9, x8
	bl	_palloc
	mov	x20, x0
	ldr	x8, [x21]
	ldr	x9, [x19, #8]
	add	x1, x9, x8
	bl	_SET_VARSIZE
	mov	x0, x20
	bl	_VARDATA
	ldr	w1, [x19, #16]
	ldr	x2, [x19, #8]
	bl	_memcpy
LBB0_5:
	mov	x0, x20
	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
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_jbvArray,8,3                   ; @jbvArray
	.comm	_WJB_BEGIN_ARRAY,4,2            ; @WJB_BEGIN_ARRAY
	.comm	_WJB_ELEM,4,2                   ; @WJB_ELEM
	.comm	_WJB_END_ARRAY,4,2              ; @WJB_END_ARRAY
	.comm	_jbvObject,8,3                  ; @jbvObject
	.comm	_jbvBinary,8,3                  ; @jbvBinary
	.comm	_VARHDRSZ,8,3                   ; @VARHDRSZ
.subsections_via_symbols
