	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ws_realloc_send_buf
_ws_realloc_send_buf:                   ## @ws_realloc_send_buf
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r13d
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	8(%rdi), %r12
	movq	8(%r12), %rdi
	movl	(%r12), %ebx
	leal	(%rbx,%r13), %esi
	callq	_realloc
	addl	%r13d, %ebx
	jle	LBB0_2
## %bb.1:
	testq	%rax, %rax
	jne	LBB0_2
## %bb.5:
	movq	%r14, %rdi
	callq	_ws_clear_queue
	movq	_WS_ERR@GOTPCREL(%rip), %rax
	movq	_WS_CLOSE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movq	%r14, %rdi
	movl	$1, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ws_set_status                  ## TAILCALL
LBB0_2:
	movq	%rax, 8(%r12)
	movslq	(%r12), %rdi
	addq	%rax, %rdi
	movq	%r15, %rsi
	movl	%r13d, %edx
	callq	_memcpy
	addl	(%r12), %r13d
	movl	%r13d, (%r12)
	movq	_WS_THROTTLE_THLD@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r13d
	jl	LBB0_4
## %bb.3:
	movq	_WS_THROTTLING@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r14)
LBB0_4:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WS_ERR,4,2                     ## @WS_ERR
	.comm	_WS_CLOSE,4,2                   ## @WS_CLOSE
	.comm	_WS_THROTTLE_THLD,4,2           ## @WS_THROTTLE_THLD
	.comm	_WS_THROTTLING,4,2              ## @WS_THROTTLING
	.no_dead_strip	_ws_realloc_send_buf
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ws_realloc_send_buf
_ws_realloc_send_buf:                   ; @ws_realloc_send_buf
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	ldr	x23, [x0, #8]
	ldr	w8, [x23]
	add	w22, w8, w2
	ldr	x0, [x23, #8]
	mov	x1, x22
	bl	_realloc
	cmp	w22, #1
	ccmp	x0, #0, #0, ge
	b.eq	LBB0_4
; %bb.1:
	str	x0, [x23, #8]
	ldrsw	x8, [x23]
	add	x0, x0, x8
	mov	x1, x21
	mov	x2, x20
	bl	_memcpy
	ldr	w8, [x23]
	add	w8, w8, w20
	str	w8, [x23]
Lloh0:
	adrp	x9, _WS_THROTTLE_THLD@GOTPAGE
Lloh1:
	ldr	x9, [x9, _WS_THROTTLE_THLD@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	w8, w9
	b.lt	LBB0_3
; %bb.2:
Lloh3:
	adrp	x8, _WS_THROTTLING@GOTPAGE
Lloh4:
	ldr	x8, [x8, _WS_THROTTLING@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
LBB0_3:
	mov	w0, #0
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_4:
	mov	x0, x19
	bl	_ws_clear_queue
Lloh6:
	adrp	x8, _WS_ERR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _WS_ERR@GOTPAGEOFF]
Lloh8:
	adrp	x9, _WS_CLOSE@GOTPAGE
Lloh9:
	ldr	x9, [x9, _WS_CLOSE@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
Lloh11:
	ldr	w9, [x9]
	orr	w1, w9, w8
	mov	x0, x19
	mov	w2, #1
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_ws_set_status
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_WS_ERR,4,2                     ; @WS_ERR
	.comm	_WS_CLOSE,4,2                   ; @WS_CLOSE
	.comm	_WS_THROTTLE_THLD,4,2           ; @WS_THROTTLE_THLD
	.comm	_WS_THROTTLING,4,2              ; @WS_THROTTLING
	.no_dead_strip	_ws_realloc_send_buf
.subsections_via_symbols
