	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_evbuffer_launch_read_          ## -- Begin function evbuffer_launch_read_
	.p2align	4, 0x90
_evbuffer_launch_read_:                 ## @evbuffer_launch_read_
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, -80(%rbp)                 ## 8-byte Spill
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	callq	_upcast_evbuffer
	movq	%rax, %r14
	movq	%rsp, %r12
	movl	$0, -56(%rbp)
	movq	_MAX_WSABUFS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r13
	testq	%r14, %r14
	je	LBB0_3
## %bb.1:
	movq	%r15, %rdi
	callq	_EVBUFFER_LOCK
	xorl	%edi, %edi
	cmpl	$0, 32(%r14)
	sete	%dil
	callq	_EVUTIL_ASSERT
	cmpq	$0, (%r15)
	jne	LBB0_18
## %bb.4:
	cmpl	$0, (%r14)
	je	LBB0_6
LBB0_18:
	movl	$-1, %ebx
LBB0_19:
	movq	%r15, %rdi
	callq	_EVBUFFER_UNLOCK
	jmp	LBB0_20
LBB0_3:
	movl	$-1, %ebx
LBB0_20:
	movq	%r12, %rsp
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_22
## %bb.21:
	movl	%ebx, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	$0, 24(%r14)
	movl	$0, 4(%r14)
	movq	8(%r14), %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	movq	_MAX_WSABUFS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_evbuffer_expand_fast_
	cmpl	$-1, %eax
	je	LBB0_18
## %bb.7:
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	xorl	%r12d, %r12d
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_evbuffer_freeze
	movq	_MAX_WSABUFS@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-88(%rbp), %r8
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movq	%r13, %rdx
	movl	$1, %r9d
	callq	_evbuffer_read_setup_vecs_
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	testl	%eax, %eax
	jle	LBB0_10
## %bb.8:
	movl	-52(%rbp), %ebx                 ## 4-byte Reload
	shlq	$2, %rbx
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r14), %rdi
	addq	%r15, %rdi
	leaq	(%r15,%r13), %rsi
	callq	_WSABUF_FROM_EVBUFFER_IOV
	addq	$4, %r15
	cmpq	%r15, %rbx
	jne	LBB0_9
LBB0_10:
	movl	-52(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 4(%r14)
	movq	-88(%rbp), %rax
	movq	(%rax), %rbx
	movq	%rbx, 24(%r14)
	testq	%rbx, %rbx
	je	LBB0_13
## %bb.11:
	xorl	%r12d, %r12d
	movq	_EVBUFFER_MEM_PINNED_R@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r13), %esi
	movq	%rbx, %rdi
	callq	_evbuffer_chain_pin_
	incl	%r12d
	movq	(%rbx), %rbx
	testq	%rbx, %rbx
	jne	LBB0_12
LBB0_13:
	xorl	%edi, %edi
	movl	-52(%rbp), %ebx                 ## 4-byte Reload
	cmpl	%ebx, %r12d
	sete	%dil
	callq	_EVUTIL_ASSERT
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	callq	_evbuffer_incref_
	movl	16(%r14), %edi
	movq	8(%r14), %rsi
	subq	$8, %rsp
	leaq	-92(%rbp), %rcx
	leaq	-56(%rbp), %r8
	movl	%ebx, %edx
	movq	-80(%rbp), %r9                  ## 8-byte Reload
	pushq	$0
	callq	_WSARecv
	addq	$16, %rsp
	testq	%rax, %rax
	je	LBB0_15
## %bb.14:
	xorl	%eax, %eax
	callq	_WSAGetLastError
	movq	_WSA_IO_PENDING@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_17
LBB0_15:
	movl	$1, (%r14)
	xorl	%ebx, %ebx
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	jmp	LBB0_19
LBB0_17:
	movq	_EVBUFFER_MEM_PINNED_R@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_pin_release
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_evbuffer_unfreeze
	movq	%r15, %rdi
	callq	_evbuffer_free
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	jmp	LBB0_18
LBB0_22:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_WSABUFS,4,2                ## @MAX_WSABUFS
	.comm	_EVBUFFER_MEM_PINNED_R,4,2      ## @EVBUFFER_MEM_PINNED_R
	.comm	_WSA_IO_PENDING,4,2             ## @WSA_IO_PENDING
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_evbuffer_launch_read_          ; -- Begin function evbuffer_launch_read_
	.p2align	2
_evbuffer_launch_read_:                 ; @evbuffer_launch_read_
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	sub	sp, sp, #32
	mov	x21, x2
	mov	x23, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
	bl	_upcast_evbuffer
	mov	x20, x0
	mov	x24, sp
	stur	wzr, [x29, #-88]
Lloh3:
	adrp	x25, _MAX_WSABUFS@GOTPAGE
Lloh4:
	ldr	x25, [x25, _MAX_WSABUFS@GOTPAGEOFF]
	ldr	w8, [x25]
	lsl	x8, x8, #2
	mov	x9, x8
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x22, x9, x8
	mov	sp, x22
	cbz	x0, LBB0_5
; %bb.1:
	mov	x0, x19
	bl	_EVBUFFER_LOCK
	ldr	w8, [x20, #32]
	cmp	w8, #0
	cset	w0, eq
	bl	_EVUTIL_ASSERT
	ldr	x8, [x19]
	cbnz	x8, LBB0_3
; %bb.2:
	ldr	w8, [x20]
	cbz	w8, LBB0_8
LBB0_3:
	mov	w21, #-1
LBB0_4:
	mov	x0, x19
	bl	_EVBUFFER_UNLOCK
	b	LBB0_6
LBB0_5:
	mov	w21, #-1
LBB0_6:
	mov	sp, x24
	ldur	x8, [x29, #-72]
Lloh7:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh8:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_19
; %bb.7:
	mov	x0, x21
	sub	sp, x29, #64
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_8:
	str	xzr, [x20, #24]
	str	wzr, [x20, #4]
	ldr	x0, [x20, #8]
	mov	w1, #0
	mov	w2, #8
	bl	_memset
	ldr	w2, [x25]
	mov	x0, x19
	mov	x1, x23
	bl	_evbuffer_expand_fast_
	cmn	w0, #1
	b.eq	LBB0_3
; %bb.9:
	mov	x0, x19
	mov	w1, #0
	bl	_evbuffer_freeze
	ldr	w3, [x25]
	sub	x4, x29, #80
	mov	x0, x19
	mov	x1, x23
	mov	x2, x22
	mov	w5, #1
	bl	_evbuffer_read_setup_vecs_
	mov	x23, x0
	cmp	w0, #1
	b.lt	LBB0_12
; %bb.10:
	mov	x25, #0
	mov	w8, w23
	lsl	x26, x8, #2
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #8]
	add	x0, x8, x25
	add	x1, x22, x25
	bl	_WSABUF_FROM_EVBUFFER_IOV
	add	x25, x25, #4
	cmp	x26, x25
	b.ne	LBB0_11
LBB0_12:
	str	w23, [x20, #4]
	ldur	x8, [x29, #-80]
	ldr	x22, [x8]
	str	x22, [x20, #24]
	mov	w25, #0
	cbz	x22, LBB0_15
; %bb.13:
Lloh10:
	adrp	x26, _EVBUFFER_MEM_PINNED_R@GOTPAGE
Lloh11:
	ldr	x26, [x26, _EVBUFFER_MEM_PINNED_R@GOTPAGEOFF]
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x26]
	mov	x0, x22
	bl	_evbuffer_chain_pin_
	add	w25, w25, #1
	ldr	x22, [x22]
	cbnz	x22, LBB0_14
LBB0_15:
	cmp	w25, w23
	cset	w0, eq
	bl	_EVUTIL_ASSERT
	mov	x0, x19
	bl	_evbuffer_incref_
	ldr	w0, [x20, #16]
	ldr	x1, [x20, #8]
	sub	x3, x29, #84
	sub	x4, x29, #88
	mov	x2, x23
	mov	x5, x21
	mov	x6, #0
	bl	_WSARecv
	cbz	x0, LBB0_17
; %bb.16:
	bl	_WSAGetLastError
Lloh12:
	adrp	x8, _WSA_IO_PENDING@GOTPAGE
Lloh13:
	ldr	x8, [x8, _WSA_IO_PENDING@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_18
LBB0_17:
	mov	w21, #0
	mov	w8, #1
	str	w8, [x20]
	b	LBB0_4
LBB0_18:
Lloh15:
	adrp	x8, _EVBUFFER_MEM_PINNED_R@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EVBUFFER_MEM_PINNED_R@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_pin_release
	mov	x0, x19
	mov	w1, #0
	bl	_evbuffer_unfreeze
	mov	x0, x19
	bl	_evbuffer_free
	b	LBB0_3
LBB0_19:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_WSABUFS,4,2                ; @MAX_WSABUFS
	.comm	_EVBUFFER_MEM_PINNED_R,4,2      ; @EVBUFFER_MEM_PINNED_R
	.comm	_WSA_IO_PENDING,4,2             ; @WSA_IO_PENDING
.subsections_via_symbols
