	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_byte_stuffer_recv_byte         ## -- Begin function byte_stuffer_recv_byte
	.p2align	4, 0x90
_byte_stuffer_recv_byte:                ## @byte_stuffer_recv_byte
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	%rdi, %r8
	movq	_states@GOTPCREL(%rip), %rax
	movq	(%rax), %r10
	movq	%rdi, %rax
	shlq	$5, %rax
	leaq	(%r10,%rax), %rdi
	movq	(%r10,%rax), %rdx
	testq	%rdx, %rdx
	je	LBB0_1
## %bb.2:
	decq	%rdx
	movq	%rdx, (%rdi)
	testq	%rsi, %rsi
	je	LBB0_3
## %bb.7:
	leaq	(%r10,%rax), %r8
	addq	$16, %r8
	movq	16(%r10,%rax), %r9
	movq	_MAX_FRAME_SIZE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %r9
	jne	LBB0_9
## %bb.8:
	movq	%rsi, (%rdi)
	xorl	%ecx, %ecx
	cmpq	$255, %rsi
	sete	%cl
	movl	%ecx, 8(%r10,%rax)
	movq	$0, (%r8)
	popq	%rbp
	retq
LBB0_1:
	movq	%rsi, (%rdi)
	xorl	%edx, %edx
	cmpq	$255, %rsi
	sete	%dl
	movl	%edx, 8(%r10,%rax)
	movq	$0, 16(%r10,%rax)
	popq	%rbp
	retq
LBB0_3:
	testq	%rdx, %rdx
	je	LBB0_4
## %bb.6:
	popq	%rbp
	jmp	_init_byte_stuffer_state        ## TAILCALL
LBB0_9:
	testq	%rdx, %rdx
	je	LBB0_10
## %bb.13:
	movq	24(%r10,%rax), %rax
	leaq	1(%r9), %rcx
	movq	%rcx, (%r8)
	movq	%rsi, (%rax,%r9,8)
	jmp	LBB0_14
LBB0_4:
	movq	16(%r10,%rax), %rdx
	testq	%rdx, %rdx
	jle	LBB0_14
## %bb.5:
	movq	24(%r10,%rax), %rsi
	movq	%r8, %rdi
	popq	%rbp
	jmp	_validator_recv_frame           ## TAILCALL
LBB0_14:
	popq	%rbp
	retq
LBB0_10:
	cmpl	$0, 8(%r10,%rax)
	movq	%rsi, (%rdi)
	je	LBB0_12
## %bb.11:
	addq	%r10, %rax
	addq	$8, %rax
	xorl	%ecx, %ecx
	cmpq	$255, %rsi
	sete	%cl
	movl	%ecx, (%rax)
	popq	%rbp
	retq
LBB0_12:
	movq	24(%r10,%rax), %rax
	leaq	1(%r9), %rcx
	movq	%rcx, (%r8)
	movq	$0, (%rax,%r9,8)
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_states,8,3                     ## @states
	.comm	_MAX_FRAME_SIZE,8,3             ## @MAX_FRAME_SIZE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_byte_stuffer_recv_byte         ; -- Begin function byte_stuffer_recv_byte
	.p2align	2
_byte_stuffer_recv_byte:                ; @byte_stuffer_recv_byte
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _states@GOTPAGE
Lloh1:
	ldr	x8, [x8, _states@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x8]
	add	x8, x9, x0, lsl #5
	ldr	x10, [x8]
	cbz	x10, LBB0_4
; %bb.1:
	sub	x12, x10, #1
	str	x12, [x8]
	cbz	x1, LBB0_5
; %bb.2:
	add	x13, x9, x0, lsl #5
	mov	x10, x13
	ldr	x11, [x10, #16]!
Lloh3:
	adrp	x14, _MAX_FRAME_SIZE@GOTPAGE
Lloh4:
	ldr	x14, [x14, _MAX_FRAME_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	x14, [x14]
	cmp	x11, x14
	b.ne	LBB0_7
; %bb.3:
	str	x1, [x8]
	cmp	x1, #255
	cset	w8, eq
	str	w8, [x13, #8]
	str	xzr, [x10]
	ret
LBB0_4:
	str	x1, [x8]
	cmp	x1, #255
	cset	w9, eq
	str	w9, [x8, #8]
	str	xzr, [x8, #16]
	ret
LBB0_5:
	cbz	x12, LBB0_9
; %bb.6:
	mov	x0, x8
	b	_init_byte_stuffer_state
LBB0_7:
	cbz	x12, LBB0_12
; %bb.8:
	add	x8, x9, x0, lsl #5
	ldr	x8, [x8, #24]
	add	x9, x11, #1
	str	x9, [x10]
	str	x1, [x8, x11, lsl #3]
	b	LBB0_11
LBB0_9:
	add	x8, x9, x0, lsl #5
	ldr	x2, [x8, #16]
	cmp	x2, #1
	b.lt	LBB0_11
; %bb.10:
	ldr	x1, [x8, #24]
	b	_validator_recv_frame
LBB0_11:
	ret
LBB0_12:
	add	x12, x9, x0, lsl #5
	mov	x9, x12
	ldr	w13, [x9, #8]!
	str	x1, [x8]
	cbz	w13, LBB0_14
; %bb.13:
	cmp	x1, #255
	cset	w8, eq
	str	w8, [x9]
	ret
LBB0_14:
	ldr	x8, [x12, #24]
	add	x9, x11, #1
	str	x9, [x10]
	str	xzr, [x8, x11, lsl #3]
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_states,8,3                     ; @states
	.comm	_MAX_FRAME_SIZE,8,3             ; @MAX_FRAME_SIZE
.subsections_via_symbols
