	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function add_json
_add_json:                              ## @add_json
	.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
	movl	%r8d, %ebx
	movq	%rcx, %r15
	movl	%edx, %r14d
	movl	%esi, %r13d
	movl	%edi, %r12d
	movq	_InvalidOid@GOTPCREL(%rip), %rdx
	cmpq	%rcx, (%rdx)
	jne	LBB0_2
## %bb.1:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	%ebx, -48(%rbp)                 ## 4-byte Spill
	movl	%r14d, %ebx
	movl	(%rax), %r14d
	movq	_ERRCODE_INVALID_PARAMETER_VALUE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	leaq	L_.str(%rip), %rdi
	callq	_errmsg
	movl	%r14d, %edi
	movl	%ebx, %r14d
	movl	-48(%rbp), %ebx                 ## 4-byte Reload
	movl	%eax, %esi
	callq	_ereport
	movq	_InvalidOid@GOTPCREL(%rip), %rdx
LBB0_2:
	testl	%r13d, %r13d
	je	LBB0_4
## %bb.3:
	movq	_JSONTYPE_NULL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%ecx, -44(%rbp)
	movq	(%rdx), %r8
	movq	%r8, -56(%rbp)
	jmp	LBB0_5
LBB0_4:
	leaq	-44(%rbp), %rsi
	leaq	-56(%rbp), %rdx
	movq	%r15, %rdi
	callq	_json_categorize_type
	movl	-44(%rbp), %ecx
	movq	-56(%rbp), %r8
LBB0_5:
	movl	%r12d, %edi
	movl	%r13d, %esi
	movl	%r14d, %edx
	movl	%ebx, %r9d
	callq	_datum_to_json
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_InvalidOid,8,3                 ## @InvalidOid
	.comm	_ERROR,4,2                      ## @ERROR
	.comm	_ERRCODE_INVALID_PARAMETER_VALUE,4,2 ## @ERRCODE_INVALID_PARAMETER_VALUE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"could not determine input data type"

	.comm	_JSONTYPE_NULL,4,2              ## @JSONTYPE_NULL
	.no_dead_strip	_add_json
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function add_json
_add_json:                              ; @add_json
	.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	x19, x4
	mov	x23, x3
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
Lloh0:
	adrp	x25, _InvalidOid@GOTPAGE
Lloh1:
	ldr	x25, [x25, _InvalidOid@GOTPAGEOFF]
	ldr	x8, [x25]
	cmp	x8, x3
	b.ne	LBB0_2
; %bb.1:
Lloh2:
	adrp	x8, _ERROR@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh4:
	ldr	w24, [x8]
Lloh5:
	adrp	x8, _ERRCODE_INVALID_PARAMETER_VALUE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ERRCODE_INVALID_PARAMETER_VALUE@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	bl	_errcode
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	bl	_errmsg
	mov	x1, x0
	mov	x0, x24
	bl	_ereport
LBB0_2:
	cbz	w21, LBB0_4
; %bb.3:
Lloh10:
	adrp	x8, _JSONTYPE_NULL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _JSONTYPE_NULL@GOTPAGEOFF]
Lloh12:
	ldr	w3, [x8]
	str	w3, [sp, #12]
	ldr	x4, [x25]
	str	x4, [sp]
	b	LBB0_5
LBB0_4:
	add	x1, sp, #12
	mov	x2, sp
	mov	x0, x23
	bl	_json_categorize_type
	ldr	w3, [sp, #12]
	ldr	x4, [sp]
LBB0_5:
	mov	x0, x22
	mov	x1, x21
	mov	x2, x20
	mov	x5, x19
	bl	_datum_to_json
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_InvalidOid,8,3                 ; @InvalidOid
	.comm	_ERROR,4,2                      ; @ERROR
	.comm	_ERRCODE_INVALID_PARAMETER_VALUE,4,2 ; @ERRCODE_INVALID_PARAMETER_VALUE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"could not determine input data type"

	.comm	_JSONTYPE_NULL,4,2              ; @JSONTYPE_NULL
	.no_dead_strip	_add_json
.subsections_via_symbols
