	.file	"extr_jsonb_util.c_convertJsonbScalar.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"NaN"
.LC1:
	.string	"invalid jsonb scalar type"
	.text
	.p2align 4
	.type	convertJsonbScalar, @function
convertJsonbScalar:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r15
	push	r14
	push	r13
	push	r12
	push	rbx
	sub	rsp, 24
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -56[rbp], rax
	xor	eax, eax
	mov	eax, DWORD PTR [rdx]
	add	eax, -128
	cmp	eax, 4
	ja	.L2
	mov	rbx, rdx
	lea	rdx, .L4[rip]
	mov	r12d, edi
	mov	r13, rsi
	movsx	rax, DWORD PTR [rdx+rax*4]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L4:
	.long	.L8-.L4
	.long	.L7-.L4
	.long	.L6-.L4
	.long	.L5-.L4
	.long	.L3-.L4
	.text
	.p2align 4,,10
	.p2align 3
.L5:
	mov	eax, DWORD PTR MAXDATELEN[rip]
	mov	rcx, rsp
	mov	r14, rsp
	add	eax, 1
	cdqe
	add	rax, 15
	mov	rdx, rax
	and	rax, -4096
	sub	rcx, rax
	and	rdx, -16
	mov	rax, rcx
	cmp	rsp, rax
	je	.L14
.L22:
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	cmp	rsp, rax
	jne	.L22
.L14:
	and	edx, 4095
	sub	rsp, rdx
	test	rdx, rdx
	jne	.L23
.L15:
	mov	edx, DWORD PTR 12[rbx]
	mov	esi, DWORD PTR 16[rbx]
	lea	rcx, 8[rbx]
	mov	rdi, rsp
	call	JsonEncodeDateTime@PLT
	mov	rdi, rsp
	call	strlen@PLT
	mov	rsi, rsp
	mov	edi, r12d
	mov	rbx, rax
	mov	rdx, rax
	call	appendToBuffer@PLT
	mov	DWORD PTR 0[r13], ebx
	mov	rsp, r14
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L3:
	mov	edx, DWORD PTR 20[rbx]
	mov	eax, DWORD PTR JENTRY_ISBOOL_FALSE[rip]
	test	edx, edx
	je	.L12
	mov	eax, DWORD PTR JENTRY_ISBOOL_TRUE[rip]
.L12:
	mov	DWORD PTR 0[r13], eax
	.p2align 4,,10
	.p2align 3
.L1:
	mov	rax, QWORD PTR -56[rbp]
	xor	rax, QWORD PTR fs:40
	jne	.L24
	lea	rsp, -40[rbp]
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	r15
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	mov	rdi, QWORD PTR 24[rbx]
	call	numeric_is_nan@PLT
	test	eax, eax
	je	.L10
	mov	edx, 3
	lea	rsi, .LC0[rip]
	mov	edi, r12d
	call	appendToBuffer@PLT
	mov	DWORD PTR 0[r13], 3
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L6:
	mov	eax, DWORD PTR JENTRY_ISNULL[rip]
	mov	DWORD PTR [rsi], eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L8:
	mov	rdx, QWORD PTR 40[rbx]
	mov	rsi, QWORD PTR 32[rbx]
	call	appendToBuffer@PLT
	mov	rax, QWORD PTR 40[rbx]
	mov	DWORD PTR 0[r13], eax
	jmp	.L1
.L2:
	mov	edi, DWORD PTR ERROR[rip]
	lea	rsi, .LC1[rip]
	call	elog@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L10:
	mov	rdi, QWORD PTR 24[rbx]
	call	VARSIZE_ANY@PLT
	mov	edi, r12d
	mov	r15d, eax
	call	padBufferToInt@PLT
	mov	rsi, QWORD PTR 24[rbx]
	movsx	rdx, r15d
	mov	edi, r12d
	mov	r14d, eax
	call	appendToBuffer@PLT
	movsx	edx, WORD PTR JENTRY_ISNUMERIC[rip]
	movsx	eax, r14w
	lea	r14d, [rax+r15]
	or	r14d, edx
	mov	DWORD PTR 0[r13], r14d
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L23:
	or	QWORD PTR -8[rsp+rdx], 0
	jmp	.L15
.L24:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	convertJsonbScalar, .-convertJsonbScalar
	.comm	MAXDATELEN,4,4
	.comm	JENTRY_ISNUMERIC,2,2
	.comm	JENTRY_ISNULL,4,4
	.comm	JENTRY_ISBOOL_TRUE,4,4
	.comm	JENTRY_ISBOOL_FALSE,4,4
	.comm	ERROR,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_jsonb_util.c_convertJsonbScalar.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"NaN\000"
	.align	2
.LC1:
	.ascii	"invalid jsonb scalar type\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	convertJsonbScalar, %function
convertJsonbScalar:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, fp, lr}
	add	fp, sp, #24
	sub	sp, sp, #12
	ldr	r3, [r2]
	mov	r4, r2
	ldr	r2, .L17
	sub	r3, r3, #128
	mov	r6, r0
	mov	r5, r1
	ldr	r2, [r2]
	str	r2, [fp, #-32]
	mov	r2,#0
	cmp	r3, #4
	ldrls	pc, [pc, r3, asl #2]
	b	.L2
.L4:
	.word	.L8
	.word	.L7
	.word	.L6
	.word	.L5
	.word	.L3
.L3:
	ldr	r3, [r4, #16]
	cmp	r3, #0
	ldrne	r3, .L17+4
	ldreq	r3, .L17+8
	ldr	r3, [r3]
	str	r3, [r1]
.L1:
	ldr	r3, .L17
	ldr	r2, [r3]
	ldr	r3, [fp, #-32]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L16
	sub	sp, fp, #24
	@ sp needed
	pop	{r4, r5, r6, r7, r8, fp, pc}
.L8:
	ldr	r2, [r4, #28]
	ldr	r1, [r4, #24]
	bl	appendToBuffer
	ldr	r3, [r4, #28]
	str	r3, [r5]
	b	.L1
.L7:
	ldr	r0, [r4, #20]
	bl	numeric_is_nan
	cmp	r0, #0
	beq	.L10
	mov	r0, r6
	mov	r2, #3
	ldr	r1, .L17+12
	bl	appendToBuffer
	mov	r3, #3
	str	r3, [r5]
	b	.L1
.L6:
	ldr	r3, .L17+16
	ldr	r3, [r3]
	str	r3, [r1]
	b	.L1
.L5:
	ldr	r3, .L17+20
	mov	r7, sp
	ldr	r2, [r3]
	ldr	r1, [r4, #12]
	add	r2, r2, #8
	bic	r2, r2, #7
	sub	sp, sp, r2
	add	r3, r4, #4
	ldr	r2, [r4, #8]
	mov	r0, sp
	bl	JsonEncodeDateTime
	mov	r0, sp
	bl	strlen
	mov	r4, r0
	mov	r1, sp
	mov	r0, r6
	mov	r2, r4
	bl	appendToBuffer
	str	r4, [r5]
	mov	sp, r7
	b	.L1
.L10:
	ldr	r0, [r4, #20]
	bl	VARSIZE_ANY
	mov	r8, r0
	mov	r0, r6
	bl	padBufferToInt
	mov	r7, r0
	mov	r2, r8
	mov	r0, r6
	ldr	r1, [r4, #20]
	bl	appendToBuffer
	ldr	r3, .L17+24
	add	r7, r7, r8
	ldrsh	r2, [r3]
	orr	r7, r2, r7
	str	r7, [r5]
	b	.L1
.L16:
	bl	__stack_chk_fail
.L2:
	ldr	r3, .L17+28
	ldr	r1, .L17+32
	ldr	r0, [r3]
	bl	elog
	b	.L1
.L18:
	.align	2
.L17:
	.word	.LC2
	.word	JENTRY_ISBOOL_TRUE
	.word	JENTRY_ISBOOL_FALSE
	.word	.LC0
	.word	JENTRY_ISNULL
	.word	MAXDATELEN
	.word	JENTRY_ISNUMERIC
	.word	ERROR
	.word	.LC1
	.size	convertJsonbScalar, .-convertJsonbScalar
	.comm	MAXDATELEN,4,4
	.comm	JENTRY_ISNUMERIC,2,2
	.comm	JENTRY_ISNULL,4,4
	.comm	JENTRY_ISBOOL_TRUE,4,4
	.comm	JENTRY_ISBOOL_FALSE,4,4
	.comm	ERROR,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
