	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _scif_send_fence_signal_wait
__scif_send_fence_signal_wait:          ## @_scif_send_fence_signal_wait
	.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, %r14
	movq	%rdi, %r15
	leaq	8(%rsi), %r12
	movq	_SCIF_NODE_ALIVE_TIMEOUT@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r13), %esi
	movq	%r12, %rdi
	callq	_wait_for_completion_timeout
	testl	%eax, %eax
	jne	LBB0_2
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%r15, %rdi
	callq	_scifdev_alive
	testq	%rax, %rax
	jne	LBB0_1
## %bb.4:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	testl	%ebx, %ebx
	jns	LBB0_9
	jmp	LBB0_6
LBB0_2:
	movl	%eax, %ebx
	testl	%ebx, %ebx
	jns	LBB0_9
LBB0_6:
	movq	%r15, %rdi
	callq	_mutex_lock
	movq	(%r14), %rax
	movq	_OP_IN_PROGRESS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_8
## %bb.7:
	movq	_OP_FAILED@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r14)
LBB0_8:
	movq	%r15, %rdi
	callq	_mutex_unlock
LBB0_9:
	movq	_ENXIO@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	xorl	%ecx, %ecx
	testl	%ebx, %ebx
	cmovsl	%ebx, %ecx
	movq	(%r14), %rdx
	movq	_OP_FAILED@GOTPCREL(%rip), %rsi
	cmovsl	%ecx, %eax
	cmpq	(%rsi), %rdx
	cmovnel	%ecx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SCIF_NODE_ALIVE_TIMEOUT,4,2    ## @SCIF_NODE_ALIVE_TIMEOUT
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_OP_IN_PROGRESS,8,3             ## @OP_IN_PROGRESS
	.comm	_OP_FAILED,8,3                  ## @OP_FAILED
	.comm	_ENXIO,4,2                      ## @ENXIO
	.no_dead_strip	__scif_send_fence_signal_wait
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function _scif_send_fence_signal_wait
__scif_send_fence_signal_wait:          ; @_scif_send_fence_signal_wait
	.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
	add	x22, x1, #8
Lloh0:
	adrp	x23, _SCIF_NODE_ALIVE_TIMEOUT@GOTPAGE
Lloh1:
	ldr	x23, [x23, _SCIF_NODE_ALIVE_TIMEOUT@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x23]
	mov	x0, x22
	bl	_wait_for_completion_timeout
	cbnz	w0, LBB0_4
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x20
	bl	_scifdev_alive
	cbnz	x0, LBB0_1
; %bb.3:
Lloh2:
	adrp	x8, _ENODEV@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_5
LBB0_4:
	mov	x21, x0
LBB0_5:
Lloh5:
	adrp	x22, _OP_FAILED@GOTPAGE
Lloh6:
	ldr	x22, [x22, _OP_FAILED@GOTPAGEOFF]
	tbz	w21, #31, LBB0_9
; %bb.6:
	mov	x0, x20
	bl	_mutex_lock
	ldr	x8, [x19]
Lloh7:
	adrp	x9, _OP_IN_PROGRESS@GOTPAGE
Lloh8:
	ldr	x9, [x9, _OP_IN_PROGRESS@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.7:
	ldr	x8, [x22]
	str	x8, [x19]
LBB0_8:
	mov	x0, x20
	bl	_mutex_unlock
LBB0_9:
	cmp	w21, #0
	csel	w8, w21, wzr, lt
	ldr	x9, [x19]
	ldr	x10, [x22]
	ccmp	x9, x10, #0, ge
Lloh10:
	adrp	x9, _ENXIO@GOTPAGE
Lloh11:
	ldr	x9, [x9, _ENXIO@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	csneg	w0, w8, w9, ne
	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	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_SCIF_NODE_ALIVE_TIMEOUT,4,2    ; @SCIF_NODE_ALIVE_TIMEOUT
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_OP_IN_PROGRESS,8,3             ; @OP_IN_PROGRESS
	.comm	_OP_FAILED,8,3                  ; @OP_FAILED
	.comm	_ENXIO,4,2                      ; @ENXIO
	.no_dead_strip	__scif_send_fence_signal_wait
.subsections_via_symbols
