	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rpc_force_ready_bytes
_rpc_force_ready_bytes:                 ## @rpc_force_ready_bytes
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	(%rdi), %eax
	cmpl	%esi, %eax
	jge	LBB0_13
## %bb.1:
	movl	%esi, %ebx
	movq	%rdi, %r15
	movsd	%xmm0, -64(%rbp)                ## 8-byte Spill
	movq	_force_read@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	callq	_ADD_CNT
	movl	(%r14), %edi
	callq	_START_TIMER
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	subl	(%r15), %ebx
	movl	4(%r15), %r14d
	movl	%r14d, %edi
	notl	%edi
	shrl	$31, %edi
	callq	_assert
	movq	_POLLIN@GOTPCREL(%rip), %rax
	movq	_POLLERR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movl	%r14d, -56(%rbp)
	movq	_POLLNVAL@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	_POLLHUP@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movl	%ecx, -52(%rbp)
	xorl	%eax, %eax
	movq	_errno@GOTPCREL(%rip), %r13
	leaq	-56(%rbp), %r12
	xorl	%r14d, %r14d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_2 Depth=1
	testb	$1, %r14b
	jne	LBB0_4
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	movsd	-64(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	callq	_get_ms_timeout
	movb	$1, %r14b
	testl	%eax, %eax
	je	LBB0_12
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	$0, (%r13)
	movq	%r12, %rdi
	movl	$1, %esi
	movl	%eax, %edx
	callq	_poll
	testq	%rax, %rax
	jle	LBB0_3
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_get_ready_bytes
	movl	%eax, %ecx
	movl	$-1, %eax
	testl	%ecx, %ecx
	js	LBB0_13
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	subl	%ecx, %ebx
	jle	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	_POLLNVAL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	_POLLERR@GOTPCREL(%rip), %rdx
	orl	(%rdx), %ecx
	movq	_POLLHUP@GOTPCREL(%rip), %rdx
	orl	(%rdx), %ecx
	testl	%ecx, -48(%rbp)
	je	LBB0_11
	jmp	LBB0_13
LBB0_4:
	movq	(%r13), %rdi
	testq	%rdi, %rdi
	je	LBB0_5
## %bb.6:
	callq	_strerror
	movq	%rax, %rsi
	movq	(%r13), %rdx
	jmp	LBB0_7
LBB0_5:
	leaq	L_.str(%rip), %rsi
	xorl	%edx, %edx
LBB0_7:
	movq	%r15, %rdi
	callq	_rpc_server_seterror
LBB0_12:
	movq	_force_read@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_END_TIMER
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	subl	%ebx, %eax
LBB0_13:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_force_read,4,2                 ## @force_read
	.comm	_POLLIN,4,2                     ## @POLLIN
	.comm	_POLLERR,4,2                    ## @POLLERR
	.comm	_POLLNVAL,4,2                   ## @POLLNVAL
	.comm	_POLLHUP,4,2                    ## @POLLHUP
	.comm	_errno,8,3                      ## @errno
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Timeout"

	.no_dead_strip	_rpc_force_ready_bytes
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rpc_force_ready_bytes
_rpc_force_ready_bytes:                 ; @rpc_force_ready_bytes
	.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, x0
	ldr	w0, [x0]
	cmp	w0, w1
	b.ge	LBB0_14
; %bb.1:
	fmov	d8, d0
	mov	x19, x1
Lloh0:
	adrp	x22, _force_read@GOTPAGE
Lloh1:
	ldr	x22, [x22, _force_read@GOTPAGEOFF]
	ldr	w0, [x22]
	bl	_ADD_CNT
	ldr	w0, [x22]
	bl	_START_TIMER
	ldp	w8, w24, [x20]
	sub	w21, w19, w8
	mvn	w8, w24
	lsr	w0, w8, #31
	bl	_assert
	mov	w2, #0
	mov	w27, #0
Lloh2:
	adrp	x8, _POLLIN@GOTPAGE
Lloh3:
	ldr	x8, [x8, _POLLIN@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x23, _POLLERR@GOTPAGE
Lloh6:
	ldr	x23, [x23, _POLLERR@GOTPAGEOFF]
	ldr	w9, [x23]
	orr	w8, w9, w8
Lloh7:
	adrp	x25, _POLLNVAL@GOTPAGE
Lloh8:
	ldr	x25, [x25, _POLLNVAL@GOTPAGEOFF]
	ldr	w9, [x25]
	orr	w8, w8, w9
Lloh9:
	adrp	x26, _POLLHUP@GOTPAGE
Lloh10:
	ldr	x26, [x26, _POLLHUP@GOTPAGEOFF]
	ldr	w9, [x26]
	orr	w8, w8, w9
	stp	w24, w8, [sp]
Lloh11:
	adrp	x24, _errno@GOTPAGE
Lloh12:
	ldr	x24, [x24, _errno@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	tbnz	w27, #0, LBB0_9
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	fmov	d0, d8
	bl	_get_ms_timeout
	mov	x2, x0
	mov	w27, #1
	cbz	w0, LBB0_13
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	str	xzr, [x24]
	mov	x0, sp
	mov	w1, #1
	bl	_poll
	cmp	x0, #0
	b.le	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x20
	mov	x1, x21
	bl	_get_ready_bytes
	tbnz	w0, #31, LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	sub	w21, w21, w0
	cmp	w21, #1
	b.lt	LBB0_13
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [sp, #8]
	ldr	w9, [x23]
	ldr	w10, [x25]
	orr	w9, w10, w9
	ldr	w10, [x26]
	orr	w9, w9, w10
	tst	w9, w8
	b.eq	LBB0_3
LBB0_8:
	mov	w0, #-1
	b	LBB0_14
LBB0_9:
	ldr	x0, [x24]
	cbz	x0, LBB0_11
; %bb.10:
	bl	_strerror
	mov	x1, x0
	ldr	x2, [x24]
	b	LBB0_12
LBB0_11:
	mov	x2, #0
Lloh13:
	adrp	x1, l_.str@PAGE
Lloh14:
	add	x1, x1, l_.str@PAGEOFF
LBB0_12:
	mov	x0, x20
	bl	_rpc_server_seterror
LBB0_13:
	ldr	w0, [x22]
	bl	_END_TIMER
	sub	w0, w19, w21
LBB0_14:
	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
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_force_read,4,2                 ; @force_read
	.comm	_POLLIN,4,2                     ; @POLLIN
	.comm	_POLLERR,4,2                    ; @POLLERR
	.comm	_POLLNVAL,4,2                   ; @POLLNVAL
	.comm	_POLLHUP,4,2                    ; @POLLHUP
	.comm	_errno,8,3                      ; @errno
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Timeout"

	.no_dead_strip	_rpc_force_ready_bytes
.subsections_via_symbols
