	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function validate_send_wr
_validate_send_wr:                      ## @validate_send_wr
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r14d
	movl	%edx, %ebx
	movq	%rsi, %r12
	movq	%rdi, %r15
	movl	(%rsi), %eax
	xorl	%edi, %edi
	cmpl	(%r15), %eax
	setg	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_1
LBB0_7:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_8:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	_WR_ATOMIC_MASK@GOTPCREL(%rip), %rax
	andl	(%rax), %ebx
	movl	%ebx, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	cmpl	$8, %r14d
	jb	LBB0_7
## %bb.3:
	movq	%r12, %rdi
	callq	_atomic_wr
	testb	$7, (%rax)
	jne	LBB0_7
LBB0_4:
	movq	_IB_SEND_INLINE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%ebx, %ebx
	movl	$0, %edi
	testl	%eax, 4(%r12)
	je	LBB0_6
## %bb.5:
	xorl	%edi, %edi
	cmpl	%r14d, 4(%r15)
	setb	%dil
LBB0_6:
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_7
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_WR_ATOMIC_MASK,4,2             ## @WR_ATOMIC_MASK
	.comm	_IB_SEND_INLINE,4,2             ## @IB_SEND_INLINE
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_validate_send_wr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function validate_send_wr
_validate_send_wr:                      ; @validate_send_wr
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x3
	mov	x22, x2
	mov	x21, x1
	mov	x20, x0
	ldr	w8, [x1]
	ldr	w9, [x0]
	cmp	w8, w9
	cset	w0, gt
	bl	_unlikely
	cbz	x0, LBB0_3
LBB0_1:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_2:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_3:
Lloh3:
	adrp	x8, _WR_ATOMIC_MASK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _WR_ATOMIC_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	and	w0, w8, w22
	bl	_unlikely
	cbz	x0, LBB0_6
; %bb.4:
	cmp	w19, #8
	b.lo	LBB0_1
; %bb.5:
	mov	x0, x21
	bl	_atomic_wr
	ldrb	w8, [x0]
	tst	w8, #0x7
	b.ne	LBB0_1
LBB0_6:
	ldr	w8, [x21, #4]
Lloh6:
	adrp	x9, _IB_SEND_INLINE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _IB_SEND_INLINE@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_8
; %bb.7:
	ldr	w8, [x20, #4]
	cmp	w8, w19
	cset	w0, lo
	bl	_unlikely
	cbnz	x0, LBB0_1
	b	LBB0_2
LBB0_8:
	mov	w0, #0
	bl	_unlikely
	cbnz	x0, LBB0_1
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_WR_ATOMIC_MASK,4,2             ; @WR_ATOMIC_MASK
	.comm	_IB_SEND_INLINE,4,2             ; @IB_SEND_INLINE
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_validate_send_wr
.subsections_via_symbols
