	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function scif_destroy_incomplete_window
_scif_destroy_incomplete_window:        ## @scif_destroy_incomplete_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	%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, %rbx
	movq	%rdi, %r14
	movl	(%rsi), %r15d
	movq	_OP_IN_PROGRESS@GOTPCREL(%rip), %r12
	movq	_SCIF_NODE_ALIVE_TIMEOUT@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	48(%rbx), %edi
	movq	32(%rbx), %rax
	xorl	%esi, %esi
	cmpq	(%r12), %rax
	setne	%sil
	movl	(%r13), %edx
	callq	_wait_event_timeout
	testl	%eax, %eax
	jne	LBB0_3
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%r14, %rdi
	callq	_scifdev_alive
	testq	%rax, %rax
	jne	LBB0_1
LBB0_3:
	movq	%r14, %rdi
	callq	_mutex_lock
	movq	%r14, %rdi
	callq	_mutex_unlock
	movl	24(%rbx), %edx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_scif_free_window_offset
	movq	16(%rbx), %rdi
	imull	$56, %r15d, %r14d
	movl	%r14d, %esi
	callq	_scif_free
	movq	8(%rbx), %rdi
	movl	%r14d, %esi
	callq	_scif_free
	movq	%rbx, %rdi
	movl	$56, %esi
	callq	_scif_free
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_OP_IN_PROGRESS,8,3             ## @OP_IN_PROGRESS
	.comm	_SCIF_NODE_ALIVE_TIMEOUT,4,2    ## @SCIF_NODE_ALIVE_TIMEOUT
	.comm	_OP_COMPLETED,8,3               ## @OP_COMPLETED
	.comm	_SCIF_FREE_VIRT,4,2             ## @SCIF_FREE_VIRT
	.comm	_SCIF_REGISTER,8,3              ## @SCIF_REGISTER
	.no_dead_strip	_scif_destroy_incomplete_window
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function scif_destroy_incomplete_window
_scif_destroy_incomplete_window:        ; @scif_destroy_incomplete_window
	.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	x19, x1
	mov	x20, x0
	ldr	w21, [x1]
Lloh0:
	adrp	x22, _OP_IN_PROGRESS@GOTPAGE
Lloh1:
	ldr	x22, [x22, _OP_IN_PROGRESS@GOTPAGEOFF]
Lloh2:
	adrp	x23, _SCIF_NODE_ALIVE_TIMEOUT@GOTPAGE
Lloh3:
	ldr	x23, [x23, _SCIF_NODE_ALIVE_TIMEOUT@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x19, #48]
	ldr	x8, [x19, #32]
	ldr	x9, [x22]
	cmp	x8, x9
	cset	w1, ne
	ldr	w2, [x23]
	bl	_wait_event_timeout
	cbnz	w0, LBB0_3
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x20
	bl	_scifdev_alive
	cbnz	x0, LBB0_1
LBB0_3:
	mov	x0, x20
	bl	_mutex_lock
	mov	x0, x20
	bl	_mutex_unlock
	ldr	w2, [x19, #24]
	mov	x0, x20
	mov	x1, x19
	bl	_scif_free_window_offset
	ldr	x0, [x19, #16]
	mov	w8, #56
	mul	w20, w21, w8
	mov	x1, x20
	bl	_scif_free
	ldr	x0, [x19, #8]
	mov	x1, x20
	bl	_scif_free
	mov	x0, x19
	mov	w1, #56
	bl	_scif_free
	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	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_OP_IN_PROGRESS,8,3             ; @OP_IN_PROGRESS
	.comm	_SCIF_NODE_ALIVE_TIMEOUT,4,2    ; @SCIF_NODE_ALIVE_TIMEOUT
	.comm	_OP_COMPLETED,8,3               ; @OP_COMPLETED
	.comm	_SCIF_FREE_VIRT,4,2             ; @SCIF_FREE_VIRT
	.comm	_SCIF_REGISTER,8,3              ; @SCIF_REGISTER
	.no_dead_strip	_scif_destroy_incomplete_window
.subsections_via_symbols
