	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _scif_send
__scif_send:                            ## @_scif_send
	.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
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r12d
	movq	%rsi, %r14
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movq	32(%rdi), %rbx
	movq	_SCIF_SEND_BLOCK@GOTPCREL(%rip), %rax
	movl	%ecx, -64(%rbp)                 ## 4-byte Spill
	testl	%ecx, (%rax)
	je	LBB0_2
## %bb.1:
	xorl	%eax, %eax
	callq	_might_sleep
LBB0_2:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	leaq	8(%rax), %r15
	movq	%r15, %rdi
	callq	_spin_lock
	testl	%r12d, %r12d
	je	LBB0_3
## %bb.4:
	movq	%r14, -72(%rbp)                 ## 8-byte Spill
	xorl	%ecx, %ecx
	movl	%r12d, -60(%rbp)                ## 4-byte Spill
	movl	%r12d, -48(%rbp)                ## 4-byte Spill
LBB0_5:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_6 Depth 2
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_6 Depth=2
	movzbl	%al, %esi
	movl	%r14d, %edi
	callq	_wait_event_interruptible
	movl	%eax, %r14d
	movq	%r12, %r15
	movq	%r12, %rdi
	callq	_spin_lock
	testl	%r14d, %r14d
	jne	LBB0_17
LBB0_6:                                 ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	_SCIFEP_CONNECTED@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	xorl	%r14d, %r14d
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	cmpq	(%rcx), %rax
	jne	LBB0_17
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=2
	movq	%rbx, %rdi
	callq	_scif_rb_space
	testl	%eax, %eax
	jne	LBB0_8
## %bb.13:                              ##   in Loop: Header=BB0_6 Depth=2
	movq	_SCIF_ENDPT_QP_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	decl	%esi
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	callq	_min
	movl	%eax, %r13d
	movl	-64(%rbp), %eax                 ## 4-byte Reload
	movq	_SCIF_SEND_BLOCK@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_17
## %bb.14:                              ##   in Loop: Header=BB0_6 Depth=2
	movq	%r15, %r12
	movq	%r15, %rdi
	callq	_spin_unlock
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movl	12(%rdx), %r14d
	movq	_SCIFEP_CONNECTED@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movb	$1, %al
	cmpq	(%rdx), %rcx
	jne	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_6 Depth=2
	movq	%rbx, %rdi
	callq	_scif_rb_space
	cmpl	%r13d, %eax
	setge	%al
	jmp	LBB0_16
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=1
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	movl	%eax, %esi
	callq	_min
	movl	%eax, %r12d
	movq	%rbx, %rdi
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	movl	%eax, %edx
	callq	_scif_rb_write
	testl	%eax, %eax
	js	LBB0_9
## %bb.10:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	%rbx, %rdi
	callq	_scif_rb_commit
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movl	24(%rdx), %eax
	movl	%eax, -76(%rbp)
	movq	_SCIF_CLIENT_SENT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -80(%rbp)
	movl	20(%rdx), %eax
	movq	-88(%rbp), %rcx
	movl	%eax, (%rcx)
	movl	16(%rdx), %edi
	leaq	-88(%rbp), %rsi
	callq	__scif_nodeqp_send
	testl	%eax, %eax
	jne	LBB0_9
## %bb.11:                              ##   in Loop: Header=BB0_5 Depth=1
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	addl	%r12d, %ecx
	movslq	%r12d, %rax
	addq	%rax, -72(%rbp)                 ## 8-byte Folded Spill
	movl	-60(%rbp), %eax                 ## 4-byte Reload
	subl	%ecx, %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	jne	LBB0_5
## %bb.12:
	movl	-60(%rbp), %r12d                ## 4-byte Reload
	testl	%r12d, %r12d
	jne	LBB0_25
	jmp	LBB0_19
LBB0_17:
	movl	-44(%rbp), %r12d                ## 4-byte Reload
	testl	%r12d, %r12d
	jne	LBB0_25
	jmp	LBB0_19
LBB0_3:
	xorl	%r14d, %r14d
	testl	%r12d, %r12d
	jne	LBB0_25
LBB0_19:
	movl	%r14d, %r12d
	testl	%r14d, %r14d
	jne	LBB0_25
## %bb.20:
	movq	_SCIFEP_CONNECTED@GOTPCREL(%rip), %rcx
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	xorl	%r12d, %r12d
	cmpq	%rax, (%rcx)
	je	LBB0_25
## %bb.21:
	movq	_SCIFEP_DISCONNECTED@GOTPCREL(%rip), %rcx
	cmpq	%rax, (%rcx)
	jne	LBB0_22
## %bb.23:
	movq	_ECONNRESET@GOTPCREL(%rip), %rax
	jmp	LBB0_24
LBB0_22:
	movq	_ENOTCONN@GOTPCREL(%rip), %rax
LBB0_24:
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
LBB0_25:
	movq	%r15, %rdi
	callq	_spin_unlock
	movl	%r12d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movl	-44(%rbp), %r12d                ## 4-byte Reload
	movl	%eax, %r14d
	testl	%r12d, %r12d
	jne	LBB0_25
	jmp	LBB0_19
	.cfi_endproc
                                        ## -- End function
	.comm	_SCIF_SEND_BLOCK,4,2            ## @SCIF_SEND_BLOCK
	.comm	_SCIFEP_CONNECTED,8,3           ## @SCIFEP_CONNECTED
	.comm	_SCIF_CLIENT_SENT,4,2           ## @SCIF_CLIENT_SENT
	.comm	_SCIF_ENDPT_QP_SIZE,4,2         ## @SCIF_ENDPT_QP_SIZE
	.comm	_SCIFEP_DISCONNECTED,8,3        ## @SCIFEP_DISCONNECTED
	.comm	_ECONNRESET,4,2                 ## @ECONNRESET
	.comm	_ENOTCONN,4,2                   ## @ENOTCONN
	.no_dead_strip	__scif_send
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function _scif_send
__scif_send:                            ; @_scif_send
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x22, x3
	mov	x21, x2
	mov	x26, x1
	mov	x20, x0
	ldr	x24, [x0, #32]
Lloh0:
	adrp	x28, _SCIF_SEND_BLOCK@GOTPAGE
Lloh1:
	ldr	x28, [x28, _SCIF_SEND_BLOCK@GOTPAGEOFF]
	ldr	w8, [x28]
	tst	w8, w3
	b.eq	LBB0_2
; %bb.1:
	bl	_might_sleep
LBB0_2:
	add	x19, x20, #8
	mov	x0, x19
	bl	_spin_lock
	cbz	w21, LBB0_15
; %bb.3:
	mov	w8, #0
Lloh2:
	adrp	x23, _SCIFEP_CONNECTED@GOTPAGE
Lloh3:
	ldr	x23, [x23, _SCIFEP_CONNECTED@GOTPAGEOFF]
	mov	x25, x21
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
	str	w8, [sp, #12]                   ; 4-byte Folded Spill
	str	x26, [sp]                       ; 8-byte Folded Spill
	b	LBB0_7
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=2
	mov	x0, x24
	bl	_scif_rb_space
	cmp	w0, w27
	cset	w1, ge
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=2
	mov	x0, x26
	bl	_wait_event_interruptible
	mov	x26, x0
	mov	x0, x19
	bl	_spin_lock
	cbnz	w26, LBB0_17
LBB0_7:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x23]
	ldr	x9, [x20]
	cmp	x8, x9
	b.ne	LBB0_16
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=2
	mov	x0, x24
	bl	_scif_rb_space
	cbnz	w0, LBB0_12
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=2
Lloh4:
	adrp	x8, _SCIF_ENDPT_QP_SIZE@GOTPAGE
Lloh5:
	ldr	x8, [x8, _SCIF_ENDPT_QP_SIZE@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	sub	w1, w8, #1
	mov	x0, x25
	bl	_min
	ldr	w8, [x28]
	tst	w8, w22
	b.eq	LBB0_16
; %bb.10:                               ;   in Loop: Header=BB0_7 Depth=2
	mov	x27, x0
	mov	x0, x19
	bl	_spin_unlock
	ldr	w26, [x20, #12]
	ldr	x8, [x23]
	ldr	x9, [x20]
	cmp	x8, x9
	b.eq	LBB0_5
; %bb.11:                               ;   in Loop: Header=BB0_7 Depth=2
	mov	w1, #1
	b	LBB0_6
LBB0_12:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x1, x0
	mov	x0, x25
	bl	_min
	mov	x25, x0
	mov	x0, x24
	ldr	x1, [sp]                        ; 8-byte Folded Reload
	mov	x2, x25
	bl	_scif_rb_write
	tbnz	w0, #31, LBB0_23
; %bb.13:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x24
	bl	_scif_rb_commit
Lloh7:
	adrp	x8, _SCIF_CLIENT_SENT@GOTPAGE
Lloh8:
	ldr	x8, [x8, _SCIF_CLIENT_SENT@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	ldp	w10, w9, [x20, #20]
	stp	w8, w9, [sp, #24]
	ldr	x8, [sp, #16]
	str	w10, [x8]
	ldr	w0, [x20, #16]
	add	x1, sp, #16
	bl	__scif_nodeqp_send
	cbnz	w0, LBB0_23
; %bb.14:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	x26, [sp]                       ; 8-byte Folded Reload
	add	x26, x26, w25, sxtw
	ldr	w8, [sp, #12]                   ; 4-byte Folded Reload
	add	w8, w25, w8
	subs	w25, w21, w8
	b.ne	LBB0_4
LBB0_15:
	mov	w26, #0
	cbnz	w21, LBB0_22
	b	LBB0_18
LBB0_16:
	mov	w26, #0
LBB0_17:
	ldr	w21, [sp, #12]                  ; 4-byte Folded Reload
	cbnz	w21, LBB0_22
LBB0_18:
	mov	x21, x26
	cbnz	w26, LBB0_22
; %bb.19:
Lloh10:
	adrp	x8, _SCIFEP_CONNECTED@GOTPAGE
Lloh11:
	ldr	x8, [x8, _SCIFEP_CONNECTED@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x8]
	ldr	x8, [x20]
	cmp	x9, x8
	b.ne	LBB0_21
; %bb.20:
	mov	w21, #0
	b	LBB0_22
LBB0_21:
Lloh13:
	adrp	x9, _SCIFEP_DISCONNECTED@GOTPAGE
Lloh14:
	ldr	x9, [x9, _SCIFEP_DISCONNECTED@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
Lloh16:
	adrp	x10, _ECONNRESET@GOTPAGE
Lloh17:
	ldr	x10, [x10, _ECONNRESET@GOTPAGEOFF]
Lloh18:
	adrp	x11, _ENOTCONN@GOTPAGE
Lloh19:
	ldr	x11, [x11, _ENOTCONN@GOTPAGEOFF]
	cmp	x9, x8
	csel	x8, x10, x11, eq
	ldr	w8, [x8]
	neg	w21, w8
LBB0_22:
	mov	x0, x19
	bl	_spin_unlock
	mov	x0, x21
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_23:
	mov	x26, x0
	ldr	w21, [sp, #12]                  ; 4-byte Folded Reload
	cbnz	w21, LBB0_22
	b	LBB0_18
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_SCIF_SEND_BLOCK,4,2            ; @SCIF_SEND_BLOCK
	.comm	_SCIFEP_CONNECTED,8,3           ; @SCIFEP_CONNECTED
	.comm	_SCIF_CLIENT_SENT,4,2           ; @SCIF_CLIENT_SENT
	.comm	_SCIF_ENDPT_QP_SIZE,4,2         ; @SCIF_ENDPT_QP_SIZE
	.comm	_SCIFEP_DISCONNECTED,8,3        ; @SCIFEP_DISCONNECTED
	.comm	_ECONNRESET,4,2                 ; @ECONNRESET
	.comm	_ENOTCONN,4,2                   ; @ENOTCONN
	.no_dead_strip	__scif_send
.subsections_via_symbols
