	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function scif_create_remote_window
_scif_create_remote_window:             ## @scif_create_remote_window
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movq	%rdi, %r14
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	callq	_might_sleep
	movl	$40, %edi
	callq	_scif_zalloc
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	movq	%rax, %rbx
	movq	_SCIFEP_MAGIC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%rbx)
	movl	%r15d, (%rbx)
	movl	%r15d, %edi
	callq	_scif_zalloc
	movq	%rax, 24(%rbx)
	testq	%rax, %rax
	je	LBB0_5
## %bb.2:
	movl	%r15d, %edi
	callq	_scif_zalloc
	movq	%rax, 16(%rbx)
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_scif_create_remote_lookup
	testq	%rax, %rax
	je	LBB0_4
LBB0_5:
	movq	%rbx, %rdi
	callq	_scif_destroy_remote_window
	xorl	%r12d, %r12d
LBB0_6:
	movq	%r12, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	_SCIF_WINDOW_PEER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%rbx)
	movq	_OP_IDLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	movq	%rbx, %rdi
	addq	$4, %rdi
	callq	_INIT_LIST_HEAD
	movq	%rbx, %r12
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_SCIFEP_MAGIC,4,2               ## @SCIFEP_MAGIC
	.comm	_SCIF_WINDOW_PEER,4,2           ## @SCIF_WINDOW_PEER
	.comm	_OP_IDLE,4,2                    ## @OP_IDLE
	.no_dead_strip	_scif_create_remote_window
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function scif_create_remote_window
_scif_create_remote_window:             ; @scif_create_remote_window
	.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
	mov	x21, x1
	mov	x20, x0
	bl	_might_sleep
	mov	w0, #40
	bl	_scif_zalloc
	mov	x19, x0
	cbz	x0, LBB0_5
; %bb.1:
Lloh0:
	adrp	x8, _SCIFEP_MAGIC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SCIFEP_MAGIC@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x19, #32]
	str	w21, [x19]
	mov	x0, x21
	bl	_scif_zalloc
	str	x0, [x19, #24]
	cbz	x0, LBB0_4
; %bb.2:
	mov	x0, x21
	bl	_scif_zalloc
	str	x0, [x19, #16]
	cbz	x0, LBB0_4
; %bb.3:
	mov	x0, x20
	mov	x1, x19
	bl	_scif_create_remote_lookup
	cbz	x0, LBB0_6
LBB0_4:
	mov	x0, x19
	bl	_scif_destroy_remote_window
	mov	x19, #0
LBB0_5:
	mov	x0, x19
	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
LBB0_6:
Lloh3:
	adrp	x8, _SCIF_WINDOW_PEER@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SCIF_WINDOW_PEER@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _OP_IDLE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _OP_IDLE@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #8]
	add	x0, x19, #4
	bl	_INIT_LIST_HEAD
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_SCIFEP_MAGIC,4,2               ; @SCIFEP_MAGIC
	.comm	_SCIF_WINDOW_PEER,4,2           ; @SCIF_WINDOW_PEER
	.comm	_OP_IDLE,4,2                    ; @OP_IDLE
	.no_dead_strip	_scif_create_remote_window
.subsections_via_symbols
