	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_SPI_register_relation          ## -- Begin function SPI_register_relation
	.p2align	4, 0x90
_SPI_register_relation:                 ## @SPI_register_relation
	.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_2
## %bb.1:
	movq	%rdi, %r14
	cmpq	$0, (%rdi)
	je	LBB0_2
## %bb.3:
	xorl	%edi, %edi
	callq	__SPI_begin_call
	testl	%eax, %eax
	js	LBB0_4
## %bb.5:
	movq	(%r14), %rdi
	callq	__SPI_find_ENR_by_name
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	_SPI_ERROR_REL_DUPLICATE@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_2:
	movq	_SPI_ERROR_ARGUMENT@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_11
LBB0_4:
	movl	%eax, %ebx
	jmp	LBB0_11
LBB0_7:
	movq	__SPI_current@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rax
	movq	(%rax), %rdi
	testq	%rdi, %rdi
	jne	LBB0_9
## %bb.8:
	xorl	%eax, %eax
	callq	_create_queryEnv
	movq	(%rbx), %rcx
	movq	%rax, (%rcx)
	movq	(%rbx), %rax
	movq	(%rax), %rdi
LBB0_9:
	movq	%r14, %rsi
	callq	_register_ENR
	movq	_SPI_OK_REL_REGISTER@GOTPCREL(%rip), %rax
LBB0_10:
	movl	(%rax), %ebx
	xorl	%edi, %edi
	callq	__SPI_end_call
LBB0_11:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SPI_ERROR_ARGUMENT,4,2         ## @SPI_ERROR_ARGUMENT
	.comm	_SPI_ERROR_REL_DUPLICATE,4,2    ## @SPI_ERROR_REL_DUPLICATE
	.comm	__SPI_current,8,3               ## @_SPI_current
	.comm	_SPI_OK_REL_REGISTER,4,2        ## @SPI_OK_REL_REGISTER
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_SPI_register_relation          ; -- Begin function SPI_register_relation
	.p2align	2
_SPI_register_relation:                 ; @SPI_register_relation
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	cbz	x0, LBB0_5
; %bb.1:
	mov	x19, x0
	ldr	x8, [x0]
	cbz	x8, LBB0_5
; %bb.2:
	mov	w0, #0
	bl	__SPI_begin_call
	tbnz	w0, #31, LBB0_6
; %bb.3:
	ldr	x0, [x19]
	bl	__SPI_find_ENR_by_name
	cbz	x0, LBB0_7
; %bb.4:
Lloh0:
	adrp	x8, _SPI_ERROR_REL_DUPLICATE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SPI_ERROR_REL_DUPLICATE@GOTPAGEOFF]
	b	LBB0_10
LBB0_5:
Lloh2:
	adrp	x8, _SPI_ERROR_ARGUMENT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SPI_ERROR_ARGUMENT@GOTPAGEOFF]
Lloh4:
	ldr	w20, [x8]
	b	LBB0_11
LBB0_6:
	mov	x20, x0
	b	LBB0_11
LBB0_7:
Lloh5:
	adrp	x20, __SPI_current@GOTPAGE
Lloh6:
	ldr	x20, [x20, __SPI_current@GOTPAGEOFF]
	ldr	x8, [x20]
	ldr	x0, [x8]
	cbnz	x0, LBB0_9
; %bb.8:
	bl	_create_queryEnv
	ldr	x8, [x20]
	str	x0, [x8]
	ldr	x8, [x20]
	ldr	x0, [x8]
LBB0_9:
	mov	x1, x19
	bl	_register_ENR
Lloh7:
	adrp	x8, _SPI_OK_REL_REGISTER@GOTPAGE
Lloh8:
	ldr	x8, [x8, _SPI_OK_REL_REGISTER@GOTPAGEOFF]
LBB0_10:
	ldr	w20, [x8]
	mov	w0, #0
	bl	__SPI_end_call
LBB0_11:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_SPI_ERROR_ARGUMENT,4,2         ; @SPI_ERROR_ARGUMENT
	.comm	_SPI_ERROR_REL_DUPLICATE,4,2    ; @SPI_ERROR_REL_DUPLICATE
	.comm	__SPI_current,8,3               ; @_SPI_current
	.comm	_SPI_OK_REL_REGISTER,4,2        ; @SPI_OK_REL_REGISTER
.subsections_via_symbols
