	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bio_bufferevent_ctrl
_bio_bufferevent_ctrl:                  ## @bio_bufferevent_ctrl
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
                                        ## kill: def $esi killed $esi def $rsi
	addl	$-128, %esi
	cmpl	$5, %esi
	ja	LBB0_7
## %bb.1:
	movq	8(%rdi), %r8
	movl	$1, %eax
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rsi,4), %rsi
	addq	%rcx, %rsi
	jmpq	*%rsi
LBB0_8:
	popq	%rbp
	retq
LBB0_7:
	xorl	%eax, %eax
	popq	%rbp
	retq
LBB0_6:
	movq	%r8, %rdi
	callq	_bufferevent_get_output
	jmp	LBB0_5
LBB0_3:
	movslq	%edx, %rcx
	movq	%rcx, (%rdi)
	popq	%rbp
	retq
LBB0_2:
	movq	(%rdi), %rax
	popq	%rbp
	retq
LBB0_4:
	movq	%r8, %rdi
	callq	_bufferevent_get_input
LBB0_5:
	movl	%eax, %edi
	callq	_evbuffer_get_length
	movl	%eax, %ecx
	xorl	%eax, %eax
	testl	%ecx, %ecx
	setne	%al
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
LJTI0_0:
	.long	L0_0_set_6
	.long	L0_0_set_3
	.long	L0_0_set_4
	.long	L0_0_set_2
	.long	L0_0_set_8
	.long	L0_0_set_8
	.end_data_region
                                        ## -- End function
	.no_dead_strip	_bio_bufferevent_ctrl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bio_bufferevent_ctrl
_bio_bufferevent_ctrl:                  ; @bio_bufferevent_ctrl
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	sub	w10, w1, #128
	cmp	w10, #5
	b.hi	LBB0_3
; %bb.1:
	mov	x8, x0
	ldr	x9, [x0, #8]
	mov	w0, #1
Lloh0:
	adrp	x11, lJTI0_0@PAGE
Lloh1:
	add	x11, x11, lJTI0_0@PAGEOFF
	adr	x12, LBB0_2
	ldrb	w13, [x11, x10]
	add	x12, x12, x13, lsl #2
	br	x12
LBB0_2:
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_3:
	mov	x0, #0
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_4:
	mov	x0, x9
	bl	_bufferevent_get_output
	b	LBB0_8
LBB0_5:
	sxtw	x9, w2
	str	x9, [x8]
	mov	w0, #1
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_6:
	ldr	x0, [x8]
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_7:
	mov	x0, x9
	bl	_bufferevent_get_input
LBB0_8:
	bl	_evbuffer_get_length
	cmp	w0, #0
	cset	w0, ne
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
                                        ; -- End function
	.no_dead_strip	_bio_bufferevent_ctrl
.subsections_via_symbols
