	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _scif_fence_wait
__scif_fence_wait:                      ## @_scif_fence_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_SCIF_REMOTE_FENCE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, %esi
	movl	(%rdi), %eax
	movl	4(%rdi), %ebx
	xorl	%r14d, %r14d
	movl	%eax, %edi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_dma_async_is_tx_complete
	movq	_DMA_COMPLETE@GOTPCREL(%rip), %rcx
	xorl	%esi, %esi
	cmpq	(%rcx), %rax
	sete	%sil
	movq	_SCIF_NODE_ALIVE_TIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%ebx, %edi
	callq	_wait_event_interruptible_timeout
	movq	_ETIMEDOUT@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	subl	(%rcx), %edx
	testl	%eax, %eax
	cmovnsl	%r14d, %eax
	cmovel	%edx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SCIF_REMOTE_FENCE,4,2          ## @SCIF_REMOTE_FENCE
	.comm	_DMA_COMPLETE,8,3               ## @DMA_COMPLETE
	.comm	_SCIF_NODE_ALIVE_TIMEOUT,4,2    ## @SCIF_NODE_ALIVE_TIMEOUT
	.comm	_ETIMEDOUT,4,2                  ## @ETIMEDOUT
	.no_dead_strip	__scif_fence_wait
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function _scif_fence_wait
__scif_fence_wait:                      ; @_scif_fence_wait
	.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
Lloh0:
	adrp	x8, _SCIF_REMOTE_FENCE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SCIF_REMOTE_FENCE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	bic	w1, w1, w8
	ldp	w0, w19, [x0]
	mov	x2, #0
	mov	x3, #0
	bl	_dma_async_is_tx_complete
Lloh3:
	adrp	x8, _DMA_COMPLETE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DMA_COMPLETE@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x0, x8
	cset	w1, eq
Lloh6:
	adrp	x8, _SCIF_NODE_ALIVE_TIMEOUT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SCIF_NODE_ALIVE_TIMEOUT@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_wait_event_interruptible_timeout
	cmp	w0, #0
	csel	w8, w0, wzr, lt
Lloh9:
	adrp	x9, _ETIMEDOUT@GOTPAGE
Lloh10:
	ldr	x9, [x9, _ETIMEDOUT@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	csneg	w0, w8, w9, ne
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_SCIF_REMOTE_FENCE,4,2          ; @SCIF_REMOTE_FENCE
	.comm	_DMA_COMPLETE,8,3               ; @DMA_COMPLETE
	.comm	_SCIF_NODE_ALIVE_TIMEOUT,4,2    ; @SCIF_NODE_ALIVE_TIMEOUT
	.comm	_ETIMEDOUT,4,2                  ; @ETIMEDOUT
	.no_dead_strip	__scif_fence_wait
.subsections_via_symbols
