	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function convertJsonbScalar
_convertJsonbScalar:                    ## @convertJsonbScalar
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movl	(%rdx), %eax
	addl	$-128, %eax
	cmpl	$4, %eax
	ja	LBB0_3
## %bb.1:
	movq	%rdx, %rbx
	movq	%rsi, %r14
	movl	%edi, %r15d
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_2:
	movq	32(%rbx), %rsi
	movq	40(%rbx), %rdx
	movl	%r15d, %edi
	callq	_appendToBuffer
	movl	40(%rbx), %eax
	jmp	LBB0_13
LBB0_3:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_17
## %bb.4:
	leaq	L_.str.1(%rip), %rsi
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_elog                           ## TAILCALL
LBB0_5:
	movq	24(%rbx), %rdi
	callq	_numeric_is_nan
	testl	%eax, %eax
	je	LBB0_16
## %bb.6:
	leaq	L_.str(%rip), %rsi
	movl	$3, %edx
	movl	%r15d, %edi
	callq	_appendToBuffer
	movl	$3, (%r14)
	jmp	LBB0_14
LBB0_7:
	movq	_JENTRY_ISNULL@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_8:
	movq	%rsp, %r13
	movq	_MAXDATELEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	incl	%eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r12
	leaq	8(%rbx), %rcx
	movl	12(%rbx), %edx
	movl	16(%rbx), %esi
	movq	%r12, %rdi
	callq	_JsonEncodeDateTime
	movq	%r12, %rdi
	callq	_strlen
	movq	%rax, %rbx
	movl	%r15d, %edi
	movq	%r12, %rsi
	movq	%rax, %rdx
	callq	_appendToBuffer
	movl	%ebx, (%r14)
	movq	%r13, %rsp
	jmp	LBB0_14
LBB0_9:
	cmpl	$0, 20(%rbx)
	jne	LBB0_11
## %bb.10:
	movq	_JENTRY_ISBOOL_FALSE@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_11:
	movq	_JENTRY_ISBOOL_TRUE@GOTPCREL(%rip), %rax
LBB0_12:
	movl	(%rax), %eax
LBB0_13:
	movl	%eax, (%r14)
LBB0_14:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_17
## %bb.15:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	movq	24(%rbx), %rdi
	callq	_VARSIZE_ANY
	movl	%eax, %r12d
	movl	%r15d, %edi
	callq	_padBufferToInt
	movl	%eax, %r13d
	movq	24(%rbx), %rsi
	movslq	%r12d, %rbx
	movl	%r15d, %edi
	movq	%rbx, %rdx
	callq	_appendToBuffer
	movq	_JENTRY_ISNUMERIC@GOTPCREL(%rip), %rax
	movswl	(%rax), %eax
	movswl	%r13w, %ecx
	addl	%ecx, %ebx
	orl	%eax, %ebx
	movl	%ebx, (%r14)
	jmp	LBB0_14
LBB0_17:
	callq	___stack_chk_fail
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
LJTI0_0:
	.long	L0_0_set_2
	.long	L0_0_set_5
	.long	L0_0_set_7
	.long	L0_0_set_8
	.long	L0_0_set_9
	.end_data_region
                                        ## -- End function
	.comm	_JENTRY_ISNULL,4,2              ## @JENTRY_ISNULL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"NaN"

	.comm	_JENTRY_ISNUMERIC,2,1           ## @JENTRY_ISNUMERIC
	.comm	_JENTRY_ISBOOL_TRUE,4,2         ## @JENTRY_ISBOOL_TRUE
	.comm	_JENTRY_ISBOOL_FALSE,4,2        ## @JENTRY_ISBOOL_FALSE
	.comm	_MAXDATELEN,4,2                 ## @MAXDATELEN
	.comm	_ERROR,4,2                      ## @ERROR
L_.str.1:                               ## @.str.1
	.asciz	"invalid jsonb scalar type"

	.no_dead_strip	_convertJsonbScalar
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function convertJsonbScalar
_convertJsonbScalar:                    ; @convertJsonbScalar
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	sub	sp, sp, #16
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
	ldr	w8, [x2]
	sub	w8, w8, #128
	cmp	w8, #4
	b.hi	LBB0_3
; %bb.1:
	mov	x21, x2
	mov	x19, x1
	mov	x20, x0
Lloh3:
	adrp	x9, lJTI0_0@PAGE
Lloh4:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
	ldp	x1, x2, [x21, #32]
	mov	x0, x20
	bl	_appendToBuffer
	ldr	x8, [x21, #40]
	str	w8, [x19]
	b	LBB0_12
LBB0_3:
Lloh5:
	adrp	x8, _ERROR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	ldur	x8, [x29, #-56]
Lloh8:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh9:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_15
; %bb.4:
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	sub	sp, x29, #48
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_elog
LBB0_5:
	ldr	x0, [x21, #24]
	bl	_numeric_is_nan
	cbz	w0, LBB0_14
; %bb.6:
Lloh13:
	adrp	x1, l_.str@PAGE
Lloh14:
	add	x1, x1, l_.str@PAGEOFF
	mov	w21, #3
	mov	x0, x20
	mov	w2, #3
	bl	_appendToBuffer
	str	w21, [x19]
	b	LBB0_12
LBB0_7:
Lloh15:
	adrp	x8, _JENTRY_ISNULL@GOTPAGE
Lloh16:
	ldr	x8, [x8, _JENTRY_ISNULL@GOTPAGEOFF]
	b	LBB0_10
LBB0_8:
	mov	x23, sp
Lloh17:
	adrp	x8, _MAXDATELEN@GOTPAGE
Lloh18:
	ldr	x8, [x8, _MAXDATELEN@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	add	w8, w8, #1
	mov	x9, x8
Lloh20:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh21:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x22, x9, x8
	mov	sp, x22
	add	x3, x21, #8
	ldp	w2, w1, [x21, #12]
	mov	x0, x22
	bl	_JsonEncodeDateTime
	mov	x0, x22
	bl	_strlen
	mov	x21, x0
	mov	x0, x20
	mov	x1, x22
	mov	x2, x21
	bl	_appendToBuffer
	str	w21, [x19]
	mov	sp, x23
	b	LBB0_12
LBB0_9:
	ldr	w8, [x21, #20]
Lloh22:
	adrp	x9, _JENTRY_ISBOOL_TRUE@GOTPAGE
Lloh23:
	ldr	x9, [x9, _JENTRY_ISBOOL_TRUE@GOTPAGEOFF]
Lloh24:
	adrp	x10, _JENTRY_ISBOOL_FALSE@GOTPAGE
Lloh25:
	ldr	x10, [x10, _JENTRY_ISBOOL_FALSE@GOTPAGEOFF]
	cmp	w8, #0
	csel	x8, x10, x9, eq
LBB0_10:
	ldr	w8, [x8]
LBB0_11:
	str	w8, [x19]
LBB0_12:
	ldur	x8, [x29, #-56]
Lloh26:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh27:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh28:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_15
; %bb.13:
	sub	sp, x29, #48
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_14:
	ldr	x0, [x21, #24]
	bl	_VARSIZE_ANY
	mov	x22, x0
	mov	x0, x20
	bl	_padBufferToInt
	mov	x23, x0
	ldr	x1, [x21, #24]
	sxtw	x2, w22
	mov	x0, x20
	bl	_appendToBuffer
Lloh29:
	adrp	x8, _JENTRY_ISNUMERIC@GOTPAGE
Lloh30:
	ldr	x8, [x8, _JENTRY_ISNUMERIC@GOTPAGEOFF]
Lloh31:
	ldrsh	w8, [x8]
	add	w9, w22, w23
	orr	w8, w9, w8
	b	LBB0_11
LBB0_15:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
	.byte	(LBB0_8-LBB0_2)>>2
	.byte	(LBB0_9-LBB0_2)>>2
                                        ; -- End function
	.comm	_JENTRY_ISNULL,4,2              ; @JENTRY_ISNULL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"NaN"

	.comm	_JENTRY_ISNUMERIC,2,1           ; @JENTRY_ISNUMERIC
	.comm	_JENTRY_ISBOOL_TRUE,4,2         ; @JENTRY_ISBOOL_TRUE
	.comm	_JENTRY_ISBOOL_FALSE,4,2        ; @JENTRY_ISBOOL_FALSE
	.comm	_MAXDATELEN,4,2                 ; @MAXDATELEN
	.comm	_ERROR,4,2                      ; @ERROR
l_.str.1:                               ; @.str.1
	.asciz	"invalid jsonb scalar type"

	.no_dead_strip	_convertJsonbScalar
.subsections_via_symbols
