	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rpc_sock_write
_rpc_sock_write:                        ## @rpc_sock_write
	.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	$40, %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
	movl	%edx, %r13d
	movq	%rsi, %rbx
	movsd	%xmm0, -56(%rbp)                ## 8-byte Spill
	movq	%rdi, %r15
	movq	_write@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	callq	_ADD_CNT
	movl	(%r14), %edi
	callq	_START_TIMER
	movq	(%r15), %rax
	testq	%rax, %rax
	js	LBB0_1
## %bb.3:
	movq	%rax, -72(%rbp)
	movq	_POLLOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -64(%rbp)
	movq	8(%r15), %rsi
	testq	%rsi, %rsi
	je	LBB0_4
## %bb.5:
	movq	_RPC_OUT_BUF_SIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movq	16(%r15), %rcx
	movq	24(%r15), %rax
	cmpq	%rdx, %rsi
	je	LBB0_7
## %bb.6:
	movl	$1, %r12d
	cmpq	%rcx, %rax
	jge	LBB0_8
LBB0_7:
	movq	%rcx, _rpc_sock_write.t(%rip)
	subq	%rcx, %rdx
	movq	32(%r15), %rcx
	addq	%rcx, %rdx
	movq	%rdx, _rpc_sock_write.t+8(%rip)
	xorl	%r12d, %r12d
LBB0_8:
	movq	%rcx, _rpc_sock_write.t+16(%rip)
	subq	%rcx, %rax
	movq	%rax, _rpc_sock_write.t+24(%rip)
	testq	%rbx, %rbx
	jne	LBB0_10
	jmp	LBB0_12
LBB0_1:
	movl	(%r14), %edi
	jmp	LBB0_2
LBB0_4:
	movl	$2, %r12d
	testq	%rbx, %rbx
	je	LBB0_12
LBB0_10:
	testl	%r13d, %r13d
	je	LBB0_12
## %bb.11:
	movq	%rbx, _rpc_sock_write.t+32(%rip)
	movslq	%r13d, %rax
	movq	%rax, _rpc_sock_write.t+40(%rip)
	movl	$3, %r13d
	jmp	LBB0_13
LBB0_12:
	movl	$2, %r13d
	cmpl	$2, %r12d
	jne	LBB0_13
## %bb.37:
	movl	(%r14), %edi
	callq	_END_TIMER
	xorl	%ebx, %ebx
	jmp	LBB0_36
LBB0_13:
	xorl	%ebx, %ebx
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	leaq	-72(%rbp), %rdi
	movl	$1, %esi
	movl	%eax, %edx
	callq	_poll
	testq	%rax, %rax
	jle	LBB0_15
## %bb.16:                              ##   in Loop: Header=BB0_14 Depth=1
	movq	_send@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_ADD_CNT
	movq	(%r15), %rdi
	movl	%r12d, %esi
	shlq	$4, %rsi
	leaq	_rpc_sock_write.t(%rip), %rax
	addq	%rax, %rsi
	movl	%r13d, %edx
	subl	%r12d, %edx
	callq	_writev
	testl	%eax, %eax
	js	LBB0_17
## %bb.18:                              ##   in Loop: Header=BB0_14 Depth=1
	addl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_22
## %bb.19:                              ##   in Loop: Header=BB0_14 Depth=1
	testl	%r12d, %r12d
	jne	LBB0_22
## %bb.20:                              ##   in Loop: Header=BB0_14 Depth=1
	movl	%eax, %ecx
	movq	_rpc_sock_write.t+8(%rip), %rdx
	movq	%rdx, %rsi
	subq	%rcx, %rsi
	jle	LBB0_21
## %bb.31:                              ##   in Loop: Header=BB0_14 Depth=1
	movq	%rsi, _rpc_sock_write.t+8(%rip)
	addq	%rcx, _rpc_sock_write.t(%rip)
	addq	%rcx, 16(%r15)
	subq	%rcx, 8(%r15)
	xorl	%r12d, %r12d
	jmp	LBB0_32
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_14 Depth=1
	testb	$1, %r14b
	je	LBB0_32
	jmp	LBB0_35
LBB0_21:                                ##   in Loop: Header=BB0_14 Depth=1
	subl	%edx, %eax
	movq	32(%r15), %rcx
	movq	%rcx, 16(%r15)
	subq	%rdx, 8(%r15)
	movl	$1, %r12d
LBB0_22:                                ##   in Loop: Header=BB0_14 Depth=1
	testl	%eax, %eax
	je	LBB0_26
## %bb.23:                              ##   in Loop: Header=BB0_14 Depth=1
	cmpl	$1, %r12d
	jne	LBB0_26
## %bb.24:                              ##   in Loop: Header=BB0_14 Depth=1
	movslq	%eax, %rcx
	movq	_rpc_sock_write.t+24(%rip), %rdx
	movq	%rdx, %rsi
	subq	%rcx, %rsi
	jle	LBB0_25
## %bb.38:                              ##   in Loop: Header=BB0_14 Depth=1
	movq	%rsi, _rpc_sock_write.t+24(%rip)
	addq	%rcx, _rpc_sock_write.t+16(%rip)
	addq	%rcx, 16(%r15)
	subq	%rcx, 8(%r15)
	movl	$1, %r12d
	jmp	LBB0_32
LBB0_25:                                ##   in Loop: Header=BB0_14 Depth=1
	subl	%edx, %eax
	movq	32(%r15), %rcx
	movq	%rcx, 24(%r15)
	movq	%rcx, 16(%r15)
	movq	$0, 8(%r15)
	movl	$2, %r12d
LBB0_26:                                ##   in Loop: Header=BB0_14 Depth=1
	testl	%eax, %eax
	je	LBB0_32
## %bb.27:                              ##   in Loop: Header=BB0_14 Depth=1
	cmpl	$2, %r12d
	jne	LBB0_32
## %bb.28:                              ##   in Loop: Header=BB0_14 Depth=1
	cltq
	movq	_rpc_sock_write.t+40(%rip), %rcx
	subq	%rax, %rcx
	jle	LBB0_30
## %bb.29:                              ##   in Loop: Header=BB0_14 Depth=1
	movq	%rcx, _rpc_sock_write.t+40(%rip)
	addq	%rax, _rpc_sock_write.t+32(%rip)
	movl	$2, %r12d
	.p2align	4, 0x90
LBB0_32:                                ##   in Loop: Header=BB0_14 Depth=1
	cmpl	-44(%rbp), %ebx                 ## 4-byte Folded Reload
	jge	LBB0_35
## %bb.33:                              ##   in Loop: Header=BB0_14 Depth=1
	cmpl	%r13d, %r12d
	jge	LBB0_35
## %bb.34:                              ##   in Loop: Header=BB0_14 Depth=1
	movsd	-56(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	callq	_get_ms_timeout
	movb	$1, %r14b
	testl	%eax, %eax
	jne	LBB0_14
LBB0_35:
	movq	_write@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_END_TIMER
	jmp	LBB0_36
LBB0_17:
	movq	_errno@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_strerror
	movl	(%rbx), %edx
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_rpc_server_seterror
	movq	%r15, %rdi
	callq	_rpc_server_failure
	movq	_write@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
LBB0_2:
	callq	_END_TIMER
	movl	$-1, %ebx
LBB0_36:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_30:
	sete	%al
	movzbl	%al, %edi
	callq	_assert
	jmp	LBB0_35
	.cfi_endproc
                                        ## -- End function
	.comm	_write,4,2                      ## @write
	.comm	_POLLOUT,4,2                    ## @POLLOUT
.zerofill __DATA,__bss,_rpc_sock_write.t,48,4 ## @rpc_sock_write.t
	.comm	_RPC_OUT_BUF_SIZE,8,3           ## @RPC_OUT_BUF_SIZE
	.comm	_send,4,2                       ## @send
	.comm	_errno,4,2                      ## @errno
	.no_dead_strip	_rpc_sock_write
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rpc_sock_write
_rpc_sock_write:                        ; @rpc_sock_write
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	d9, d8, [sp, #16]               ; 16-byte Folded Spill
	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
	.cfi_offset b8, -104
	.cfi_offset b9, -112
	mov	x20, x3
	mov	x21, x2
	mov	x22, x1
	fmov	d8, d0
	mov	x19, x0
Lloh0:
	adrp	x23, _write@GOTPAGE
Lloh1:
	ldr	x23, [x23, _write@GOTPAGEOFF]
	ldr	w0, [x23]
	bl	_ADD_CNT
	ldr	w0, [x23]
	bl	_START_TIMER
	ldr	x8, [x19]
	tbnz	x8, #63, LBB0_36
; %bb.1:
	str	x8, [sp]
Lloh2:
	adrp	x8, _POLLOUT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _POLLOUT@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	str	w8, [sp, #8]
	ldr	x11, [x19, #8]
Lloh5:
	adrp	x24, _rpc_sock_write.t@PAGE
Lloh6:
	add	x24, x24, _rpc_sock_write.t@PAGEOFF
	cbz	x11, LBB0_4
; %bb.2:
Lloh7:
	adrp	x8, _RPC_OUT_BUF_SIZE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _RPC_OUT_BUF_SIZE@GOTPAGEOFF]
Lloh9:
	ldr	x10, [x8]
	ldp	x9, x8, [x19, #16]
	cmp	x11, x10
	ccmp	x8, x9, #8, ne
	b.ge	LBB0_5
; %bb.3:
	mov	w28, #0
	str	x9, [x24]
	ldr	x11, [x19, #32]
	sub	x9, x10, x9
	add	x9, x9, x11
	str	x9, [x24, #8]
	mov	x9, x11
	b	LBB0_6
LBB0_4:
	mov	w28, #2
	b	LBB0_7
LBB0_5:
	mov	w28, #1
LBB0_6:
	sub	x8, x8, x9
Lloh10:
	adrp	x10, _rpc_sock_write.t@PAGE+16
Lloh11:
	add	x10, x10, _rpc_sock_write.t@PAGEOFF+16
	stp	x9, x8, [x10]
LBB0_7:
Lloh12:
	adrp	x26, _rpc_sock_write.t@PAGE+32
Lloh13:
	add	x26, x26, _rpc_sock_write.t@PAGEOFF+32
	cbz	x22, LBB0_10
; %bb.8:
	cbz	w21, LBB0_10
; %bb.9:
	sxtw	x8, w21
	stp	x22, x8, [x26]
	mov	w22, #3
	b	LBB0_13
LBB0_10:
	cmp	w28, #2
	b.ne	LBB0_12
; %bb.11:
	ldr	w0, [x23]
	bl	_END_TIMER
	mov	w21, #0
	b	LBB0_37
LBB0_12:
	mov	w22, #2
LBB0_13:
	mov	w21, #0
	mov	w25, #0
	mov	w2, #0
Lloh14:
	adrp	x27, _send@GOTPAGE
Lloh15:
	ldr	x27, [x27, _send@GOTPAGEOFF]
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, sp
	mov	w1, #1
	bl	_poll
	cmp	x0, #0
	b.le	LBB0_20
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=1
	ldr	w0, [x27]
	bl	_ADD_CNT
	ldr	x0, [x19]
	add	x1, x24, w28, uxtw #4
	sub	w2, w22, w28
	bl	_writev
                                        ; kill: def $w0 killed $w0 def $x0
	tbnz	w0, #31, LBB0_35
; %bb.16:                               ;   in Loop: Header=BB0_14 Depth=1
	add	w21, w0, w21
	cbz	w0, LBB0_22
; %bb.17:                               ;   in Loop: Header=BB0_14 Depth=1
	cbnz	w28, LBB0_22
; %bb.18:                               ;   in Loop: Header=BB0_14 Depth=1
	mov	w8, w0
Lloh16:
	adrp	x9, _rpc_sock_write.t@PAGE+8
Lloh17:
	ldr	x9, [x9, _rpc_sock_write.t@PAGEOFF+8]
	subs	x10, x9, x8
	b.le	LBB0_21
; %bb.19:                               ;   in Loop: Header=BB0_14 Depth=1
	mov	w28, #0
	ldr	x9, [x24]
	add	x9, x9, x8
	stp	x9, x10, [x24]
	ldp	x10, x9, [x19, #8]
	add	x9, x9, x8
	sub	x8, x10, x8
	stp	x8, x9, [x19, #8]
	b	LBB0_31
LBB0_20:                                ;   in Loop: Header=BB0_14 Depth=1
	tbz	w25, #0, LBB0_31
	b	LBB0_34
LBB0_21:                                ;   in Loop: Header=BB0_14 Depth=1
	sub	w0, w0, w9
	ldr	x8, [x19, #32]
	ldr	x10, [x19, #8]
	sub	x9, x10, x9
	stp	x9, x8, [x19, #8]
	mov	w28, #1
LBB0_22:                                ;   in Loop: Header=BB0_14 Depth=1
	cbz	w0, LBB0_27
; %bb.23:                               ;   in Loop: Header=BB0_14 Depth=1
	cmp	w28, #1
	b.ne	LBB0_27
; %bb.24:                               ;   in Loop: Header=BB0_14 Depth=1
	sxtw	x8, w0
Lloh18:
	adrp	x9, _rpc_sock_write.t@PAGE+24
Lloh19:
	ldr	x9, [x9, _rpc_sock_write.t@PAGEOFF+24]
	subs	x10, x9, x8
	b.le	LBB0_26
; %bb.25:                               ;   in Loop: Header=BB0_14 Depth=1
Lloh20:
	adrp	x11, _rpc_sock_write.t@PAGE+16
Lloh21:
	add	x11, x11, _rpc_sock_write.t@PAGEOFF+16
	ldr	x9, [x11]
	add	x9, x9, x8
	stp	x9, x10, [x11]
	ldp	x10, x9, [x19, #8]
	add	x9, x9, x8
	sub	x8, x10, x8
	stp	x8, x9, [x19, #8]
	mov	w28, #1
	b	LBB0_31
LBB0_26:                                ;   in Loop: Header=BB0_14 Depth=1
	sub	w0, w0, w9
	ldr	x8, [x19, #32]
	stp	x8, x8, [x19, #16]
	str	xzr, [x19, #8]
	mov	w28, #2
LBB0_27:                                ;   in Loop: Header=BB0_14 Depth=1
	cbz	w0, LBB0_31
; %bb.28:                               ;   in Loop: Header=BB0_14 Depth=1
	cmp	w28, #2
	b.ne	LBB0_31
; %bb.29:                               ;   in Loop: Header=BB0_14 Depth=1
                                        ; kill: def $w0 killed $w0 killed $x0 def $x0
	sxtw	x8, w0
Lloh22:
	adrp	x9, _rpc_sock_write.t@PAGE+40
Lloh23:
	ldr	x9, [x9, _rpc_sock_write.t@PAGEOFF+40]
	subs	x9, x9, x8
	b.le	LBB0_38
; %bb.30:                               ;   in Loop: Header=BB0_14 Depth=1
	ldr	x10, [x26]
	add	x8, x10, x8
	stp	x8, x9, [x26]
	mov	w28, #2
LBB0_31:                                ;   in Loop: Header=BB0_14 Depth=1
	cmp	w21, w20
	b.ge	LBB0_34
; %bb.32:                               ;   in Loop: Header=BB0_14 Depth=1
	cmp	w28, w22
	b.ge	LBB0_34
; %bb.33:                               ;   in Loop: Header=BB0_14 Depth=1
	fmov	d0, d8
	bl	_get_ms_timeout
	mov	x2, x0
	mov	w25, #1
	cbnz	w0, LBB0_14
LBB0_34:
	ldr	w0, [x23]
	bl	_END_TIMER
	b	LBB0_37
LBB0_35:
Lloh24:
	adrp	x20, _errno@GOTPAGE
Lloh25:
	ldr	x20, [x20, _errno@GOTPAGEOFF]
	ldr	w0, [x20]
	bl	_strerror
	mov	x1, x0
	ldr	w2, [x20]
	mov	x0, x19
	bl	_rpc_server_seterror
	mov	x0, x19
	bl	_rpc_server_failure
LBB0_36:
	ldr	w0, [x23]
	bl	_END_TIMER
	mov	w21, #-1
LBB0_37:
	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
	ldp	d9, d8, [sp, #16]               ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_38:
	cset	w0, eq
	bl	_assert
	b	LBB0_34
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdr	Lloh16, Lloh17
	.loh AdrpLdr	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdr	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_write,4,2                      ; @write
	.comm	_POLLOUT,4,2                    ; @POLLOUT
.zerofill __DATA,__bss,_rpc_sock_write.t,48,3 ; @rpc_sock_write.t
	.comm	_RPC_OUT_BUF_SIZE,8,3           ; @RPC_OUT_BUF_SIZE
	.comm	_send,4,2                       ; @send
	.comm	_errno,4,2                      ; @errno
	.no_dead_strip	_rpc_sock_write
.subsections_via_symbols
