	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_scif_recv_reg                  ## -- Begin function scif_recv_reg
	.p2align	4, 0x90
_scif_recv_reg:                         ## @scif_recv_reg
	.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
	movq	%rsi, %r13
	movq	8(%rsi), %rax
	movq	(%rax), %rbx
	movq	8(%rax), %r14
	leaq	12(%rbx), %r15
	movq	%r15, %rdi
	callq	_mutex_lock
	leaq	20(%rbx), %r12
	movq	%r12, %rdi
	callq	_spin_lock
	movq	(%rbx), %rax
	movq	_SCIFEP_CONNECTED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movq	_SCIF_REGISTER_ACK@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r13)
	movl	8(%rbx), %edi
	movq	%r13, %rsi
	callq	_scif_nodeqp_send
	movl	8(%rbx), %edi
	movq	%r14, %rsi
	callq	_scif_fixup_aper_base
	leaq	16(%rbx), %rsi
	movq	%r14, %rdi
	callq	_scif_insert_window
	jmp	LBB0_3
LBB0_2:
	movq	_SCIF_REGISTER_NACK@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r13)
	movl	8(%rbx), %edi
	movq	%r13, %rsi
	callq	_scif_nodeqp_send
LBB0_3:
	movq	%r12, %rdi
	callq	_spin_unlock
	movq	%r15, %rdi
	callq	_mutex_unlock
	movl	8(%rbx), %edi
	movq	%r14, %rsi
	callq	_scif_destroy_remote_lookup
	movq	(%r13), %rax
	movq	_SCIF_REGISTER_NACK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.5:
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_scif_destroy_remote_window     ## TAILCALL
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SCIFEP_CONNECTED,8,3           ## @SCIFEP_CONNECTED
	.comm	_SCIF_REGISTER_ACK,8,3          ## @SCIF_REGISTER_ACK
	.comm	_SCIF_REGISTER_NACK,8,3         ## @SCIF_REGISTER_NACK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_scif_recv_reg                  ; -- Begin function scif_recv_reg
	.p2align	2
_scif_recv_reg:                         ; @scif_recv_reg
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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, x1
	ldr	x8, [x1, #8]
	ldp	x23, x19, [x8]
	add	x21, x23, #12
	mov	x0, x21
	bl	_mutex_lock
	add	x22, x23, #20
	mov	x0, x22
	bl	_spin_lock
	ldr	x8, [x23]
Lloh0:
	adrp	x9, _SCIFEP_CONNECTED@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SCIFEP_CONNECTED@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
Lloh3:
	adrp	x24, _SCIF_REGISTER_NACK@GOTPAGE
Lloh4:
	ldr	x24, [x24, _SCIF_REGISTER_NACK@GOTPAGEOFF]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
Lloh5:
	adrp	x8, _SCIF_REGISTER_ACK@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SCIF_REGISTER_ACK@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	str	x8, [x20]
	ldr	w0, [x23, #8]
	mov	x1, x20
	bl	_scif_nodeqp_send
	ldr	w0, [x23, #8]
	mov	x1, x19
	bl	_scif_fixup_aper_base
	add	x1, x23, #16
	mov	x0, x19
	bl	_scif_insert_window
	b	LBB0_3
LBB0_2:
	ldr	x8, [x24]
	str	x8, [x20]
	ldr	w0, [x23, #8]
	mov	x1, x20
	bl	_scif_nodeqp_send
LBB0_3:
	mov	x0, x22
	bl	_spin_unlock
	mov	x0, x21
	bl	_mutex_unlock
	ldr	w0, [x23, #8]
	mov	x1, x19
	bl	_scif_destroy_remote_lookup
	ldr	x8, [x20]
	ldr	x9, [x24]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.4:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_scif_destroy_remote_window
LBB0_5:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_SCIFEP_CONNECTED,8,3           ; @SCIFEP_CONNECTED
	.comm	_SCIF_REGISTER_ACK,8,3          ; @SCIF_REGISTER_ACK
	.comm	_SCIF_REGISTER_NACK,8,3         ; @SCIF_REGISTER_NACK
.subsections_via_symbols
