	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rsend                          ## -- Begin function rsend
	.p2align	4, 0x90
_rsend:                                 ## @rsend
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movq	%rdx, %r14
	movq	%rsi, %r12
	movl	%edi, %esi
	movq	_RS_OLAP_START_SIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	movq	_idm@GOTPCREL(%rip), %rdi
	callq	_idm_at
	movq	%rax, %rbx
	movq	%rax, %r13
	movq	(%rax), %rax
	movq	_SOCK_DGRAM@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	addq	$48, %rbx
	movq	%rbx, %rdi
	callq	_fastlock_acquire
	movq	%r13, %rdi
	movq	%r12, %rsi
	movq	%r14, %rdx
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	callq	_dsend
	movl	%eax, %r14d
	movq	%rbx, %rdi
	callq	_fastlock_release
	movl	%r14d, %eax
	jmp	LBB0_30
LBB0_2:
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	movq	%r12, -80(%rbp)                 ## 8-byte Spill
	movq	_rs_opening@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 8(%r13)
	je	LBB0_6
## %bb.3:
	movq	%r13, %rdi
	callq	_rs_do_connect
	testl	%eax, %eax
	je	LBB0_6
## %bb.4:
	movq	_errno@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	movq	_EINPROGRESS@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rdx
	jne	LBB0_30
## %bb.5:
	movq	_EAGAIN@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	%rdx, (%rcx)
	jmp	LBB0_30
LBB0_6:
	addq	$48, %rbx
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_fastlock_acquire
	cmpq	$0, 72(%r13)
	je	LBB0_8
## %bb.7:
	movq	%r13, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_rs_send_iomaps
	movl	%eax, %r14d
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	testl	%eax, %eax
	jne	LBB0_29
LBB0_8:
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	testq	%r12, %r12
	je	LBB0_28
## %bb.9:
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	callq	_rs_can_send
	testl	%eax, %eax
	jne	LBB0_15
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	%r13, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_rs_nonblocking
	movq	_rs_conn_can_send@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	_rs_get_comp
	testl	%eax, %eax
	jne	LBB0_12
## %bb.13:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	_rs_writable@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 8(%r13)
	je	LBB0_14
LBB0_15:                                ##   in Loop: Header=BB0_10 Depth=1
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movq	_RS_MAX_TRANSFER@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdx
	setb	%al
	cmpq	%r12, %rdx
	setb	%cl
	movq	%r12, %r15
	cmovbq	%rdx, %r15
	andb	%al, %cl
	shlq	%cl, %rdx
	movq	16(%r13), %rax
	cmpq	%rax, %r15
	jb	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	%rax, %r15
LBB0_17:                                ##   in Loop: Header=BB0_10 Depth=1
	movq	24(%r13), %rax
	movq	64(%r13), %rcx
	movq	(%rcx,%rax,8), %rax
	cmpq	%rax, %r15
	jb	LBB0_19
## %bb.18:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	%rax, %r15
LBB0_19:                                ##   in Loop: Header=BB0_10 Depth=1
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	cmpq	32(%r13), %r15
	jbe	LBB0_20
## %bb.21:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	%r13, %rdi
	callq	_rs_sbuf_left
	cmpq	%rax, %r15
	jbe	LBB0_22
## %bb.25:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	%r13, %rdi
	callq	_rs_sbuf_left
	movq	56(%r13), %rcx
	movq	%rax, 8(%rcx)
	movq	(%rcx), %rdi
	movq	%rbx, %rsi
	movq	%rax, %rdx
	callq	_memcpy
	movq	56(%r13), %rax
	movq	8(%rax), %rsi
	movq	%r15, %rdx
	subq	%rsi, %rdx
	movq	%rdx, 32(%rax)
	movq	40(%r13), %rdi
	addq	%rbx, %rsi
	callq	_memcpy
	movq	56(%r13), %rsi
	movq	%r13, %rdi
	movl	$2, %edx
	movq	%r15, %rcx
	xorl	%r8d, %r8d
	callq	_rs_write_data
	movl	%eax, %r14d
	movq	56(%r13), %rax
	movq	32(%rax), %rcx
	addq	40(%r13), %rcx
	movq	%rcx, (%rax)
	jmp	LBB0_26
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_10 Depth=1
	movq	%rbx, -104(%rbp)
	movq	%r15, -96(%rbp)
	movq	$0, -88(%rbp)
	movq	_IBV_SEND_INLINE@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%r13, %rdi
	leaq	-104(%rbp), %rsi
	movl	$1, %edx
	movq	%r15, %rcx
	callq	_rs_write_data
	movl	%eax, %r14d
	jmp	LBB0_26
	.p2align	4, 0x90
LBB0_22:                                ##   in Loop: Header=BB0_10 Depth=1
	movq	56(%r13), %rax
	movq	(%rax), %rdi
	movq	%rbx, %rsi
	movq	%r15, %rdx
	callq	_memcpy
	movq	56(%r13), %rsi
	movq	%r15, 8(%rsi)
	movq	%r13, %rdi
	movl	$1, %edx
	movq	%r15, %rcx
	xorl	%r8d, %r8d
	callq	_rs_write_data
	movl	%eax, %r14d
	movq	%r13, %rdi
	callq	_rs_sbuf_left
	cmpq	%rax, %r15
	jae	LBB0_24
## %bb.23:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	56(%r13), %rax
	addq	%r15, (%rax)
	jmp	LBB0_26
LBB0_24:                                ##   in Loop: Header=BB0_10 Depth=1
	movq	40(%r13), %rax
	movq	56(%r13), %rcx
	movq	%rax, (%rcx)
	.p2align	4, 0x90
LBB0_26:                                ##   in Loop: Header=BB0_10 Depth=1
	testl	%r14d, %r14d
	jne	LBB0_29
## %bb.27:                              ##   in Loop: Header=BB0_10 Depth=1
	addq	%r15, %rbx
	subq	%r15, %r12
	jne	LBB0_10
LBB0_28:
	xorl	%r12d, %r12d
	xorl	%r14d, %r14d
LBB0_29:
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_fastlock_release
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	%eax, %ecx
	subl	%r12d, %ecx
	cmpq	%rax, %r12
	movl	%ecx, %eax
	cmovel	%r14d, %eax
	testl	%r14d, %r14d
	cmovel	%ecx, %eax
LBB0_30:
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	movl	%eax, %r14d
	jmp	LBB0_29
LBB0_14:
	movq	_ECONNRESET@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_ERR
	movl	%eax, %r14d
	jmp	LBB0_29
	.cfi_endproc
                                        ## -- End function
	.comm	_RS_OLAP_START_SIZE,8,3         ## @RS_OLAP_START_SIZE
	.comm	_idm,4,2                        ## @idm
	.comm	_SOCK_DGRAM,8,3                 ## @SOCK_DGRAM
	.comm	_rs_opening,4,2                 ## @rs_opening
	.comm	_errno,8,3                      ## @errno
	.comm	_EINPROGRESS,8,3                ## @EINPROGRESS
	.comm	_EAGAIN,8,3                     ## @EAGAIN
	.comm	_rs_conn_can_send,4,2           ## @rs_conn_can_send
	.comm	_rs_writable,4,2                ## @rs_writable
	.comm	_ECONNRESET,4,2                 ## @ECONNRESET
	.comm	_RS_MAX_TRANSFER,8,3            ## @RS_MAX_TRANSFER
	.comm	_IBV_SEND_INLINE,4,2            ## @IBV_SEND_INLINE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rsend                          ; -- Begin function rsend
	.p2align	2
_rsend:                                 ; @rsend
	.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	x20, x3
	mov	x19, x2
	mov	x21, x1
	mov	x1, x0
Lloh0:
	adrp	x8, _RS_OLAP_START_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RS_OLAP_START_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	x26, [x8]
Lloh3:
	adrp	x0, _idm@GOTPAGE
Lloh4:
	ldr	x0, [x0, _idm@GOTPAGEOFF]
	bl	_idm_at
	mov	x23, x0
	ldr	x8, [x0]
Lloh5:
	adrp	x9, _SOCK_DGRAM@GOTPAGE
Lloh6:
	ldr	x9, [x9, _SOCK_DGRAM@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	add	x22, x23, #48
	mov	x0, x22
	bl	_fastlock_acquire
	mov	x0, x23
	mov	x1, x21
	mov	x2, x19
	mov	x3, x20
	bl	_dsend
	mov	x19, x0
	mov	x0, x22
	bl	_fastlock_release
	mov	x0, x19
	b	LBB0_26
LBB0_2:
	ldr	w8, [x23, #8]
Lloh8:
	adrp	x9, _rs_opening@GOTPAGE
Lloh9:
	ldr	x9, [x9, _rs_opening@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.3:
	mov	x0, x23
	bl	_rs_do_connect
	cbz	w0, LBB0_6
; %bb.4:
Lloh11:
	adrp	x8, _errno@GOTPAGE
Lloh12:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
	ldr	x9, [x8]
Lloh13:
	adrp	x10, _EINPROGRESS@GOTPAGE
Lloh14:
	ldr	x10, [x10, _EINPROGRESS@GOTPAGEOFF]
Lloh15:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_26
; %bb.5:
Lloh16:
	adrp	x9, _EAGAIN@GOTPAGE
Lloh17:
	ldr	x9, [x9, _EAGAIN@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	str	x9, [x8]
	b	LBB0_26
LBB0_6:
	add	x0, x23, #48
	str	x0, [sp]                        ; 8-byte Folded Spill
	bl	_fastlock_acquire
	ldr	x8, [x23, #72]
	cbz	x8, LBB0_8
; %bb.7:
	mov	x0, x23
	mov	x1, x20
	bl	_rs_send_iomaps
	mov	x25, x0
	mov	x27, x19
	cbnz	w0, LBB0_25
LBB0_8:
	cbz	x19, LBB0_23
; %bb.9:
	mov	x27, x19
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x23
	bl	_rs_can_send
	cbnz	w0, LBB0_13
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	mov	x0, x23
	mov	x1, x20
	bl	_rs_nonblocking
	mov	x1, x0
Lloh19:
	adrp	x8, _rs_conn_can_send@GOTPAGE
Lloh20:
	ldr	x8, [x8, _rs_conn_can_send@GOTPAGEOFF]
Lloh21:
	ldr	w2, [x8]
	mov	x0, x23
	bl	_rs_get_comp
	cbnz	w0, LBB0_27
; %bb.12:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	w8, [x23, #8]
Lloh22:
	adrp	x9, _rs_writable@GOTPAGE
Lloh23:
	ldr	x9, [x9, _rs_writable@GOTPAGEOFF]
Lloh24:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_28
LBB0_13:                                ;   in Loop: Header=BB0_10 Depth=1
Lloh25:
	adrp	x8, _RS_MAX_TRANSFER@GOTPAGE
Lloh26:
	ldr	x8, [x8, _RS_MAX_TRANSFER@GOTPAGEOFF]
Lloh27:
	ldr	x8, [x8]
	cmp	x26, x8
	cset	w22, lo
	cmp	x26, x27
	csel	x8, x26, x27, lo
	cset	w28, lo
	ldp	x9, x10, [x23, #16]
	cmp	x8, x9
	csel	x8, x8, x9, lo
	ldr	x9, [x23, #64]
	ldr	x9, [x9, x10, lsl #3]
	cmp	x8, x9
	csel	x24, x8, x9, lo
	ldr	x8, [x23, #32]
	cmp	x24, x8
	b.ls	LBB0_16
; %bb.14:                               ;   in Loop: Header=BB0_10 Depth=1
	mov	x0, x23
	bl	_rs_sbuf_left
	cmp	x24, x0
	b.ls	LBB0_17
; %bb.15:                               ;   in Loop: Header=BB0_10 Depth=1
	mov	x0, x23
	bl	_rs_sbuf_left
	mov	x2, x0
	ldr	x8, [x23, #56]
	str	x0, [x8, #8]
	ldr	x0, [x8]
	mov	x1, x21
	bl	_memcpy
	ldr	x8, [x23, #56]
	ldr	x9, [x8, #8]
	sub	x2, x24, x9
	str	x2, [x8, #32]
	ldr	x0, [x23, #40]
	add	x1, x21, x9
	bl	_memcpy
	ldr	x1, [x23, #56]
	mov	x0, x23
	mov	w2, #2
	mov	x3, x24
	mov	w4, #0
	bl	_rs_write_data
	mov	x25, x0
	ldr	x8, [x23, #40]
	ldr	x9, [x23, #56]
	ldr	x10, [x9, #32]
	add	x8, x10, x8
	b	LBB0_20
LBB0_16:                                ;   in Loop: Header=BB0_10 Depth=1
	stp	x21, x24, [sp, #8]
	str	xzr, [sp, #24]
Lloh28:
	adrp	x8, _IBV_SEND_INLINE@GOTPAGE
Lloh29:
	ldr	x8, [x8, _IBV_SEND_INLINE@GOTPAGEOFF]
Lloh30:
	ldr	w4, [x8]
	add	x1, sp, #8
	mov	x0, x23
	mov	w2, #1
	mov	x3, x24
	bl	_rs_write_data
	mov	x25, x0
	b	LBB0_21
LBB0_17:                                ;   in Loop: Header=BB0_10 Depth=1
	ldr	x8, [x23, #56]
	ldr	x0, [x8]
	mov	x1, x21
	mov	x2, x24
	bl	_memcpy
	ldr	x1, [x23, #56]
	str	x24, [x1, #8]
	mov	x0, x23
	mov	w2, #1
	mov	x3, x24
	mov	w4, #0
	bl	_rs_write_data
	mov	x25, x0
	mov	x0, x23
	bl	_rs_sbuf_left
	cmp	x24, x0
	b.hs	LBB0_19
; %bb.18:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	x8, [x23, #56]
	ldr	x9, [x8]
	add	x9, x9, x24
	str	x9, [x8]
	b	LBB0_21
LBB0_19:                                ;   in Loop: Header=BB0_10 Depth=1
	ldr	x8, [x23, #40]
	ldr	x9, [x23, #56]
LBB0_20:                                ;   in Loop: Header=BB0_10 Depth=1
	str	x8, [x9]
LBB0_21:                                ;   in Loop: Header=BB0_10 Depth=1
	cbnz	w25, LBB0_25
; %bb.22:                               ;   in Loop: Header=BB0_10 Depth=1
	and	w8, w28, w22
	lsl	x26, x26, x8
	add	x21, x21, x24
	subs	x27, x27, x24
	b.ne	LBB0_10
	b	LBB0_24
LBB0_23:
	mov	x27, #0
LBB0_24:
	mov	w25, #0
LBB0_25:
	ldr	x0, [sp]                        ; 8-byte Folded Reload
	bl	_fastlock_release
	sub	w8, w19, w27
	cmp	x27, x19
	ccmp	w25, #0, #4, eq
	csel	w0, w25, w8, ne
LBB0_26:
	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_27:
	mov	x25, x0
	b	LBB0_25
LBB0_28:
Lloh31:
	adrp	x8, _ECONNRESET@GOTPAGE
Lloh32:
	ldr	x8, [x8, _ECONNRESET@GOTPAGEOFF]
Lloh33:
	ldr	w0, [x8]
	bl	_ERR
	mov	x25, x0
	b	LBB0_25
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
	.comm	_RS_OLAP_START_SIZE,8,3         ; @RS_OLAP_START_SIZE
	.comm	_idm,4,2                        ; @idm
	.comm	_SOCK_DGRAM,8,3                 ; @SOCK_DGRAM
	.comm	_rs_opening,4,2                 ; @rs_opening
	.comm	_errno,8,3                      ; @errno
	.comm	_EINPROGRESS,8,3                ; @EINPROGRESS
	.comm	_EAGAIN,8,3                     ; @EAGAIN
	.comm	_rs_conn_can_send,4,2           ; @rs_conn_can_send
	.comm	_rs_writable,4,2                ; @rs_writable
	.comm	_ECONNRESET,4,2                 ; @ECONNRESET
	.comm	_RS_MAX_TRANSFER,8,3            ; @RS_MAX_TRANSFER
	.comm	_IBV_SEND_INLINE,4,2            ; @IBV_SEND_INLINE
.subsections_via_symbols
