	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function populate_record_worker
_populate_record_worker:                ## @populate_record_worker
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r12d
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movq	%rsi, %rbx
	movq	%rdi, %r14
	xorl	%r15d, %r15d
	testl	%ecx, %ecx
	setne	%r15b
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -80(%rbp)
	movaps	%xmm0, -96(%rbp)
	movq	$0, -64(%rbp)
	movq	(%rdi), %rax
	movl	8(%rax), %edi
	movq	(%rax), %r13
	testq	%r13, %r13
	movl	%edi, -48(%rbp)                 ## 4-byte Spill
	je	LBB0_1
## %bb.4:
	testl	%r12d, %r12d
	jne	LBB0_5
	jmp	LBB0_10
LBB0_1:
	movl	$24, %esi
	callq	_MemoryContextAllocZero
	movq	%rax, %r13
	movq	(%r14), %rax
	movq	%r13, (%rax)
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 16(%r13)
	testl	%r12d, %r12d
	je	LBB0_3
## %bb.2:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movq	%r13, %rdx
	callq	_get_record_type_from_argument
LBB0_5:
	xorl	%edi, %edi
	callq	_PG_ARGISNULL
	testq	%rax, %rax
	je	LBB0_6
## %bb.8:
	movq	(%r13), %rax
	movq	_RECORDOID@GOTPCREL(%rip), %r12
	cmpq	(%r12), %rax
	jne	LBB0_10
## %bb.9:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movq	%r13, %rdx
	callq	_get_record_type_from_query
	movq	(%r13), %rax
	xorl	%edi, %edi
	cmpq	(%r12), %rax
	sete	%dil
	callq	_Assert
	jmp	LBB0_10
LBB0_6:
	xorl	%edi, %edi
	callq	_PG_GETARG_HEAPTUPLEHEADER
	movq	%rax, %r14
	movq	(%r13), %rax
	movq	_RECORDOID@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	jne	LBB0_11
## %bb.7:
	movq	%r14, %rdi
	callq	_HeapTupleHeaderGetTypeId
	movl	%eax, 12(%r13)
	movq	%r14, %rdi
	callq	_HeapTupleHeaderGetTypMod
	movl	%eax, 8(%r13)
	jmp	LBB0_11
LBB0_3:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movq	%r13, %rdx
	callq	_get_record_type_from_query
LBB0_10:
	xorl	%r14d, %r14d
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
LBB0_11:
	movl	%r15d, %edi
	callq	_PG_ARGISNULL
	testq	%rax, %rax
	je	LBB0_15
## %bb.12:
	testq	%r14, %r14
	je	LBB0_14
## %bb.13:
	movq	%r14, %rdi
	callq	_PG_RETURN_POINTER
	jmp	LBB0_15
LBB0_14:
	xorl	%eax, %eax
	callq	_PG_RETURN_NULL
LBB0_15:
	movl	%ebx, -96(%rbp)
	movl	%r15d, %edi
	testl	%ebx, %ebx
	je	LBB0_17
## %bb.16:
	callq	_PG_GETARG_TEXT_PP
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_VARDATA_ANY
	movl	%eax, -72(%rbp)
	movq	%rbx, %rdi
	callq	_VARSIZE_ANY_EXHDR
	movl	%eax, -76(%rbp)
	movq	_JSON_TOKEN_INVALID@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -80(%rbp)
	jmp	LBB0_18
LBB0_17:
	callq	_PG_GETARG_JSONB_P
	leaq	-120(%rbp), %rcx
	movq	%rcx, -88(%rbp)
	movq	_jbvBinary@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, -104(%rbp)
	movq	%rax, -112(%rbp)
	movq	%rax, %rdi
	callq	_VARSIZE
	movq	_VARHDRSZ@GOTPCREL(%rip), %rcx
	subq	(%rcx), %rax
	movq	%rax, -120(%rbp)
LBB0_18:
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	movq	(%r13), %rsi
	addq	$8, %r13
	movl	$0, (%rsp)
	leaq	-96(%rbp), %r9
	movq	%r13, %rdi
	xorl	%edx, %edx
	movq	%r14, %r8
	callq	_populate_composite
	movl	%eax, %edi
	callq	_PG_RETURN_DATUM
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RECORDOID,8,3                  ## @RECORDOID
	.comm	_JSON_TOKEN_INVALID,4,2         ## @JSON_TOKEN_INVALID
	.comm	_jbvBinary,4,2                  ## @jbvBinary
	.comm	_VARHDRSZ,8,3                   ## @VARHDRSZ
	.no_dead_strip	_populate_record_worker
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function populate_record_worker
_populate_record_worker:                ; @populate_record_worker
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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	x25, x3
	mov	x22, x2
	mov	x23, x1
	mov	x24, x0
	cmp	w3, #0
	cset	w21, ne
	str	xzr, [sp, #64]
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [sp, #32]
	ldr	x8, [x0]
	ldr	w19, [x8, #8]
	ldr	x20, [x8]
	cbz	x20, LBB0_2
; %bb.1:
	cbnz	w25, LBB0_4
	b	LBB0_10
LBB0_2:
	mov	x0, x19
	mov	w1, #24
	bl	_MemoryContextAllocZero
	mov	x20, x0
	ldr	x8, [x24]
	str	x0, [x8]
	str	w19, [x0, #16]
	cbz	w25, LBB0_9
; %bb.3:
	mov	x0, x24
	mov	x1, x23
	mov	x2, x20
	bl	_get_record_type_from_argument
LBB0_4:
	mov	w0, #0
	bl	_PG_ARGISNULL
	cbz	x0, LBB0_7
; %bb.5:
	ldr	x8, [x20]
Lloh0:
	adrp	x25, _RECORDOID@GOTPAGE
Lloh1:
	ldr	x25, [x25, _RECORDOID@GOTPAGEOFF]
	ldr	x9, [x25]
	cmp	x8, x9
	b.ne	LBB0_10
; %bb.6:
	mov	x0, x24
	mov	x1, x23
	mov	x2, x20
	bl	_get_record_type_from_query
	ldr	x8, [x20]
	ldr	x9, [x25]
	cmp	x8, x9
	cset	w0, eq
	bl	_Assert
	b	LBB0_10
LBB0_7:
	bl	_PG_GETARG_HEAPTUPLEHEADER
	mov	x23, x0
	ldr	x8, [x20]
Lloh2:
	adrp	x9, _RECORDOID@GOTPAGE
Lloh3:
	ldr	x9, [x9, _RECORDOID@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_11
; %bb.8:
	mov	x0, x23
	bl	_HeapTupleHeaderGetTypeId
	str	w0, [x20, #12]
	mov	x0, x23
	bl	_HeapTupleHeaderGetTypMod
	str	w0, [x20, #8]
	b	LBB0_11
LBB0_9:
	mov	x0, x24
	mov	x1, x23
	mov	x2, x20
	bl	_get_record_type_from_query
LBB0_10:
	mov	x23, #0
LBB0_11:
	mov	x0, x21
	bl	_PG_ARGISNULL
	cbz	x0, LBB0_15
; %bb.12:
	cbz	x23, LBB0_14
; %bb.13:
	mov	x0, x23
	bl	_PG_RETURN_POINTER
	b	LBB0_15
LBB0_14:
	bl	_PG_RETURN_NULL
LBB0_15:
	str	w22, [sp, #32]
	mov	x0, x21
	cbz	w22, LBB0_17
; %bb.16:
	bl	_PG_GETARG_TEXT_PP
	mov	x21, x0
	bl	_VARDATA_ANY
	str	w0, [sp, #56]
	mov	x0, x21
	bl	_VARSIZE_ANY_EXHDR
Lloh5:
	adrp	x8, _JSON_TOKEN_INVALID@GOTPAGE
Lloh6:
	ldr	x8, [x8, _JSON_TOKEN_INVALID@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	stp	w8, w0, [sp, #48]
	b	LBB0_18
LBB0_17:
	bl	_PG_GETARG_JSONB_P
	add	x8, sp, #8
	str	x8, [sp, #40]
Lloh8:
	adrp	x8, _jbvBinary@GOTPAGE
Lloh9:
	ldr	x8, [x8, _jbvBinary@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	str	w8, [sp, #24]
	str	x0, [sp, #16]
	bl	_VARSIZE
Lloh11:
	adrp	x8, _VARHDRSZ@GOTPAGE
Lloh12:
	ldr	x8, [x8, _VARHDRSZ@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	sub	x8, x0, x8
	str	x8, [sp, #8]
LBB0_18:
	ldr	x1, [x20], #8
	add	x5, sp, #32
	mov	x0, x20
	mov	x2, #0
	mov	x3, x19
	mov	x4, x23
	mov	w6, #0
	bl	_populate_composite
	bl	_PG_RETURN_DATUM
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_RECORDOID,8,3                  ; @RECORDOID
	.comm	_JSON_TOKEN_INVALID,4,2         ; @JSON_TOKEN_INVALID
	.comm	_jbvBinary,4,2                  ; @jbvBinary
	.comm	_VARHDRSZ,8,3                   ; @VARHDRSZ
	.no_dead_strip	_populate_record_worker
.subsections_via_symbols
