	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_scif_send                      ## -- Begin function scif_send
	.p2align	4, 0x90
_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r14d
	movl	%edx, %r15d
	movq	%rsi, %r12
	movq	%rdi, %r13
	movq	_scif_info@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_scif_ep_states@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%r13), %rcx
	movl	(%rax,%rcx,4), %ecx
	leaq	L_.str(%rip), %rsi
	movq	%r13, %rdx
	callq	_dev_dbg
	testl	%r15d, %r15d
	je	LBB0_1
## %bb.2:
	movq	%r13, %rdi
	movl	%r15d, %esi
	movl	%r14d, %edx
	callq	_scif_msg_param_check
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_9
## %bb.3:
	cmpl	$0, 12(%r13)
	je	LBB0_4
## %bb.5:
	movq	_SCIF_SEND_BLOCK@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_7
## %bb.6:
	leaq	8(%r13), %rdi
	callq	_mutex_lock
LBB0_7:
	movq	%r13, %rdi
	movq	%r12, %rsi
	movl	%r15d, %edx
	movl	%r14d, %ecx
	callq	__scif_send
	movl	%eax, %ebx
	movq	_SCIF_SEND_BLOCK@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_9
## %bb.8:
	addq	$8, %r13
	movq	%r13, %rdi
	callq	_mutex_unlock
	jmp	LBB0_9
LBB0_1:
	xorl	%ebx, %ebx
	jmp	LBB0_9
LBB0_4:
	movq	_ENOTCONN@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_9:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_scif_info,4,2                  ## @scif_info
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"SCIFAPI send (K): ep %p %s\n"

	.comm	_scif_ep_states,8,3             ## @scif_ep_states
	.comm	_ENOTCONN,4,2                   ## @ENOTCONN
	.comm	_SCIF_SEND_BLOCK,4,2            ## @SCIF_SEND_BLOCK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_scif_send                      ; -- Begin function scif_send
	.p2align	2
_scif_send:                             ; @scif_send
	.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	x20, x3
	mov	x21, x2
	mov	x22, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _scif_info@GOTPAGE
Lloh1:
	ldr	x8, [x8, _scif_info@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _scif_ep_states@GOTPAGE
Lloh4:
	ldr	x8, [x8, _scif_ep_states@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	ldr	x9, [x19]
	ldr	w3, [x8, x9, lsl #2]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x19
	bl	_dev_dbg
	cbz	w21, LBB0_7
; %bb.1:
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	bl	_scif_msg_param_check
	mov	x23, x0
	cbnz	w0, LBB0_9
; %bb.2:
	ldr	w8, [x19, #12]
	cbz	w8, LBB0_8
; %bb.3:
Lloh8:
	adrp	x24, _SCIF_SEND_BLOCK@GOTPAGE
Lloh9:
	ldr	x24, [x24, _SCIF_SEND_BLOCK@GOTPAGEOFF]
	ldr	w8, [x24]
	tst	w8, w20
	b.eq	LBB0_5
; %bb.4:
	add	x0, x19, #8
	bl	_mutex_lock
LBB0_5:
	mov	x0, x19
	mov	x1, x22
	mov	x2, x21
	mov	x3, x20
	bl	__scif_send
	mov	x23, x0
	ldr	w8, [x24]
	tst	w8, w20
	b.eq	LBB0_9
; %bb.6:
	add	x0, x19, #8
	bl	_mutex_unlock
	b	LBB0_9
LBB0_7:
	mov	w23, #0
	b	LBB0_9
LBB0_8:
Lloh10:
	adrp	x8, _ENOTCONN@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ENOTCONN@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w23, w8
LBB0_9:
	mov	x0, x23
	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 AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_scif_info,4,2                  ; @scif_info
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"SCIFAPI send (K): ep %p %s\n"

	.comm	_scif_ep_states,8,3             ; @scif_ep_states
	.comm	_ENOTCONN,4,2                   ; @ENOTCONN
	.comm	_SCIF_SEND_BLOCK,4,2            ; @SCIF_SEND_BLOCK
.subsections_via_symbols
