	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_SPI_register_trigger_data      ## -- Begin function SPI_register_trigger_data
	.p2align	4, 0x90
_SPI_register_trigger_data:             ## @SPI_register_trigger_data
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	movq	%rdi, %r14
	cmpq	$0, 24(%rdi)
	je	LBB0_4
## %bb.3:
	movl	$4, %edi
	callq	_palloc
	movq	%rax, %rbx
	movq	16(%r14), %rax
	movl	4(%rax), %eax
	movl	%eax, 36(%rbx)
	movq	8(%r14), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%rbx)
	movq	$0, 24(%rbx)
	movq	_ENR_NAMED_TUPLESTORE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 16(%rbx)
	movq	24(%r14), %rdi
	callq	_tuplestore_tuple_count
	movq	%rax, 8(%rbx)
	movq	24(%r14), %rax
	movq	%rax, (%rbx)
	movq	%rbx, %rdi
	callq	_SPI_register_relation
	movq	_SPI_OK_REL_REGISTER@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_8
LBB0_4:
	cmpq	$0, (%r14)
	je	LBB0_6
## %bb.5:
	movl	$4, %edi
	callq	_palloc
	movq	%rax, %rbx
	movq	16(%r14), %rax
	movl	(%rax), %eax
	movl	%eax, 36(%rbx)
	movq	8(%r14), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%rbx)
	movq	$0, 24(%rbx)
	movq	_ENR_NAMED_TUPLESTORE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 16(%rbx)
	movq	(%r14), %rdi
	callq	_tuplestore_tuple_count
	movq	%rax, 8(%rbx)
	movq	(%r14), %rax
	movq	%rax, (%rbx)
	movq	%rbx, %rdi
	callq	_SPI_register_relation
	movq	_SPI_OK_REL_REGISTER@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_8
LBB0_6:
	movq	_SPI_OK_TD_REGISTER@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_1:
	movq	_SPI_ERROR_ARGUMENT@GOTPCREL(%rip), %rax
LBB0_7:
	movl	(%rax), %eax
LBB0_8:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SPI_ERROR_ARGUMENT,4,2         ## @SPI_ERROR_ARGUMENT
	.comm	_ENR_NAMED_TUPLESTORE,8,3       ## @ENR_NAMED_TUPLESTORE
	.comm	_SPI_OK_REL_REGISTER,4,2        ## @SPI_OK_REL_REGISTER
	.comm	_SPI_OK_TD_REGISTER,4,2         ## @SPI_OK_TD_REGISTER
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_SPI_register_trigger_data      ; -- Begin function SPI_register_trigger_data
	.p2align	2
_SPI_register_trigger_data:             ; @SPI_register_trigger_data
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	cbz	x0, LBB0_6
; %bb.1:
	mov	x19, x0
	ldr	x8, [x0, #24]
Lloh0:
	adrp	x22, _ENR_NAMED_TUPLESTORE@GOTPAGE
Lloh1:
	ldr	x22, [x22, _ENR_NAMED_TUPLESTORE@GOTPAGEOFF]
Lloh2:
	adrp	x21, _SPI_OK_REL_REGISTER@GOTPAGE
Lloh3:
	ldr	x21, [x21, _SPI_OK_REL_REGISTER@GOTPAGEOFF]
	cbz	x8, LBB0_3
; %bb.2:
	mov	w0, #4
	bl	_palloc
	mov	x20, x0
	ldp	x9, x8, [x19, #8]
	ldr	w8, [x8, #4]
	ldr	w9, [x9]
	stp	w9, w8, [x0, #32]
	ldr	x8, [x22]
	stp	x8, xzr, [x0, #16]
	ldr	x0, [x19, #24]
	bl	_tuplestore_tuple_count
	ldr	x8, [x19, #24]
	stp	x8, x0, [x20]
	mov	x0, x20
	bl	_SPI_register_relation
	ldr	w8, [x21]
	cmp	w0, w8
	b.ne	LBB0_8
LBB0_3:
	ldr	x8, [x19]
	cbz	x8, LBB0_5
; %bb.4:
	mov	w0, #4
	bl	_palloc
	mov	x20, x0
	ldp	x9, x8, [x19, #8]
	ldr	w8, [x8]
	ldr	x0, [x19]
	ldr	w9, [x9]
	stp	w9, w8, [x20, #32]
	ldr	x8, [x22]
	stp	x8, xzr, [x20, #16]
	bl	_tuplestore_tuple_count
	ldr	x8, [x19]
	stp	x8, x0, [x20]
	mov	x0, x20
	bl	_SPI_register_relation
	ldr	w8, [x21]
	cmp	w0, w8
	b.ne	LBB0_8
LBB0_5:
Lloh4:
	adrp	x8, _SPI_OK_TD_REGISTER@GOTPAGE
Lloh5:
	ldr	x8, [x8, _SPI_OK_TD_REGISTER@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:
Lloh6:
	adrp	x8, _SPI_ERROR_ARGUMENT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SPI_ERROR_ARGUMENT@GOTPAGEOFF]
LBB0_7:
	ldr	w0, [x8]
LBB0_8:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_SPI_ERROR_ARGUMENT,4,2         ; @SPI_ERROR_ARGUMENT
	.comm	_ENR_NAMED_TUPLESTORE,8,3       ; @ENR_NAMED_TUPLESTORE
	.comm	_SPI_OK_REL_REGISTER,4,2        ; @SPI_OK_REL_REGISTER
	.comm	_SPI_OK_TD_REGISTER,4,2         ; @SPI_OK_TD_REGISTER
.subsections_via_symbols
