	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function PLyObject_ToJsonbValue
_PLyObject_ToJsonbValue:                ## @PLyObject_ToJsonbValue
	.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
	movl	%edx, %r14d
	movq	%rsi, %r15
	movq	%rdi, %rbx
	callq	_PyString_Check
	testq	%rax, %rax
	jne	LBB0_4
## %bb.1:
	movq	%rbx, %rdi
	callq	_PyUnicode_Check
	testq	%rax, %rax
	je	LBB0_2
LBB0_4:
	cmpq	$0, (%r15)
	je	LBB0_6
## %bb.5:
	leaq	-48(%rbp), %r12
	jmp	LBB0_7
LBB0_6:
	movl	$8, %edi
	callq	_palloc
	movq	%rax, %r12
LBB0_7:
	movq	_Py_None@GOTPCREL(%rip), %rax
	cmpq	%rbx, (%rax)
	je	LBB0_8
## %bb.9:
	movq	%rbx, %rdi
	callq	_PyString_Check
	testq	%rax, %rax
	jne	LBB0_11
## %bb.10:
	movq	%rbx, %rdi
	callq	_PyUnicode_Check
	testq	%rax, %rax
	je	LBB0_12
LBB0_11:
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_PLyString_ToJsonbValue
	jmp	LBB0_17
LBB0_8:
	movq	_jbvNull@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r12)
LBB0_17:
	cmpq	$0, (%r15)
	je	LBB0_22
## %bb.18:
	testl	%r14d, %r14d
	jne	LBB0_19
## %bb.20:
	movq	_WJB_VALUE@GOTPCREL(%rip), %rax
	jmp	LBB0_21
LBB0_19:
	movq	_WJB_ELEM@GOTPCREL(%rip), %rax
LBB0_21:
	movl	(%rax), %esi
	movq	%r15, %rdi
	movq	%r12, %rdx
	callq	_pushJsonbValue
	movq	%rax, %r12
LBB0_22:
	movq	%r12, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	%rbx, %rdi
	callq	_PySequence_Check
	testq	%rax, %rax
	je	LBB0_3
## %bb.23:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PLySequence_ToJsonbValue       ## TAILCALL
LBB0_12:
	movq	%rbx, %rdi
	callq	_PyBool_Check
	testq	%rax, %rax
	je	LBB0_14
## %bb.13:
	movq	_jbvBool@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r12)
	movq	_Py_True@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	cmpq	%rbx, (%rax)
	sete	%cl
	movl	%ecx, (%r12)
	jmp	LBB0_17
LBB0_3:
	movq	%rbx, %rdi
	callq	_PyMapping_Check
	testq	%rax, %rax
	je	LBB0_4
## %bb.24:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PLyMapping_ToJsonbValue        ## TAILCALL
LBB0_14:
	movq	%rbx, %rdi
	callq	_PyNumber_Check
	testq	%rax, %rax
	je	LBB0_16
## %bb.15:
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_PLyNumber_ToJsonbValue
	movq	%rax, %r12
	jmp	LBB0_17
LBB0_16:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	_ERRCODE_FEATURE_NOT_SUPPORTED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	movq	(%rbx), %rdi
	callq	_PLyObject_AsString
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_errmsg
	movl	%r13d, %edi
	movl	%eax, %esi
	callq	_ereport
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.comm	_Py_None,8,3                    ## @Py_None
	.comm	_jbvNull,4,2                    ## @jbvNull
	.comm	_jbvBool,4,2                    ## @jbvBool
	.comm	_Py_True,8,3                    ## @Py_True
	.comm	_ERROR,4,2                      ## @ERROR
	.comm	_ERRCODE_FEATURE_NOT_SUPPORTED,4,2 ## @ERRCODE_FEATURE_NOT_SUPPORTED
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Python type \"%s\" cannot be transformed to jsonb"

	.comm	_WJB_ELEM,4,2                   ## @WJB_ELEM
	.comm	_WJB_VALUE,4,2                  ## @WJB_VALUE
	.no_dead_strip	_PLyObject_ToJsonbValue
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function PLyObject_ToJsonbValue
_PLyObject_ToJsonbValue:                ; @PLyObject_ToJsonbValue
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x20, x2
	mov	x19, x1
	mov	x22, x0
	bl	_PyString_Check
	cbnz	x0, LBB0_2
; %bb.1:
	mov	x0, x22
	bl	_PyUnicode_Check
	cbz	x0, LBB0_13
LBB0_2:
	ldr	x8, [x19]
	cbz	x8, LBB0_4
; %bb.3:
	add	x21, sp, #8
	b	LBB0_5
LBB0_4:
	mov	w0, #8
	bl	_palloc
	mov	x21, x0
LBB0_5:
Lloh0:
	adrp	x8, _Py_None@GOTPAGE
Lloh1:
	ldr	x8, [x8, _Py_None@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, x22
	b.eq	LBB0_9
; %bb.6:
	mov	x0, x22
	bl	_PyString_Check
	cbnz	x0, LBB0_8
; %bb.7:
	mov	x0, x22
	bl	_PyUnicode_Check
	cbz	x0, LBB0_15
LBB0_8:
	mov	x0, x22
	mov	x1, x21
	bl	_PLyString_ToJsonbValue
	b	LBB0_10
LBB0_9:
Lloh3:
	adrp	x8, _jbvNull@GOTPAGE
Lloh4:
	ldr	x8, [x8, _jbvNull@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x21, #4]
LBB0_10:
	ldr	x8, [x19]
	cbz	x8, LBB0_12
; %bb.11:
Lloh6:
	adrp	x8, _WJB_ELEM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _WJB_ELEM@GOTPAGEOFF]
Lloh8:
	adrp	x9, _WJB_VALUE@GOTPAGE
Lloh9:
	ldr	x9, [x9, _WJB_VALUE@GOTPAGEOFF]
	cmp	w20, #0
	csel	x8, x9, x8, eq
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x21
	bl	_pushJsonbValue
	mov	x21, x0
LBB0_12:
	mov	x0, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_13:
	mov	x0, x22
	bl	_PySequence_Check
	cbz	x0, LBB0_17
; %bb.14:
	mov	x0, x22
	mov	x1, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_PLySequence_ToJsonbValue
LBB0_15:
	mov	x0, x22
	bl	_PyBool_Check
	cbz	x0, LBB0_19
; %bb.16:
Lloh10:
	adrp	x8, _jbvBool@GOTPAGE
Lloh11:
	ldr	x8, [x8, _jbvBool@GOTPAGEOFF]
Lloh12:
	adrp	x9, _Py_True@GOTPAGE
Lloh13:
	ldr	x9, [x9, _Py_True@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
Lloh15:
	ldr	x9, [x9]
	cmp	x9, x22
	cset	w9, eq
	stp	w9, w8, [x21]
	b	LBB0_10
LBB0_17:
	mov	x0, x22
	bl	_PyMapping_Check
	cbz	x0, LBB0_2
; %bb.18:
	mov	x0, x22
	mov	x1, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_PLyMapping_ToJsonbValue
LBB0_19:
	mov	x0, x22
	bl	_PyNumber_Check
	cbz	x0, LBB0_21
; %bb.20:
	mov	x0, x22
	mov	x1, x21
	bl	_PLyNumber_ToJsonbValue
	mov	x21, x0
	b	LBB0_10
LBB0_21:
Lloh16:
	adrp	x8, _ERROR@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh18:
	ldr	w23, [x8]
Lloh19:
	adrp	x8, _ERRCODE_FEATURE_NOT_SUPPORTED@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ERRCODE_FEATURE_NOT_SUPPORTED@GOTPAGEOFF]
Lloh21:
	ldr	w0, [x8]
	bl	_errcode
	ldr	x0, [x22]
	bl	_PLyObject_AsString
	mov	x1, x0
Lloh22:
	adrp	x0, l_.str@PAGE
Lloh23:
	add	x0, x0, l_.str@PAGEOFF
	bl	_errmsg
	mov	x1, x0
	mov	x0, x23
	bl	_ereport
	b	LBB0_10
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh14
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_Py_None,8,3                    ; @Py_None
	.comm	_jbvNull,4,2                    ; @jbvNull
	.comm	_jbvBool,4,2                    ; @jbvBool
	.comm	_Py_True,8,3                    ; @Py_True
	.comm	_ERROR,4,2                      ; @ERROR
	.comm	_ERRCODE_FEATURE_NOT_SUPPORTED,4,2 ; @ERRCODE_FEATURE_NOT_SUPPORTED
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Python type \"%s\" cannot be transformed to jsonb"

	.comm	_WJB_ELEM,4,2                   ; @WJB_ELEM
	.comm	_WJB_VALUE,4,2                  ; @WJB_VALUE
	.no_dead_strip	_PLyObject_ToJsonbValue
.subsections_via_symbols
